Data for Creating a Dynamic Factory API Model from Existing Simulation

Andrew Greeley
Andrew Greeley Altair Community Member
edited July 2022 in Community Q&A

Hello,

I am attempting to create a dynamic factory API model out of a particle stream in an existing model, and I need to capture the data to give it. As particles cross a position threshold in the existing model, I would like to capture and store data including the time, position, velocity, particle type and size, etc. Then if I can export the data into a text file, I can read it into the factory API.

Does anyone have any recommendations on going about capturing and storing the data? Saving .h5 files at each time step is almost certainly out of the question. I have begun looking at the Residence Time in Geometry particle body force API model for inspiration, but haven't gone very deep yet.

All thoughts and recommendations are appreciated. Please let me know if I can clarify anything.

Tagged:

Answers

  • Stephen Cole
    Stephen Cole
    Altair Employee
    edited September 2021

    Hi, without using the API could you use the Block Factory 'dynamic' option:

     

    https://learn.altair.com/course/view.php?id=147&section=12

     

    You can record a block of material (including properties like velocity) rather than recording the material passing a plane at a specific time and then introduce this block periodically to the simulation.  Replicating the output of one simulation as the input to another.

     

    Regards

    Stephen

  • Andrew Greeley
    Andrew Greeley Altair Community Member
    edited September 2021

    Hi Stephen,

     

    Thanks for the reply. I should have specified that I already tried a block replication approach, but it didn't meet my requirements. The simulation output the factory will be replicating has a somewhat sparse output such that an appropriately sized box would contain as few as 10-20 particles, meaning many different blocks would be required to represent the powder size distribution. More importantly, the mass flow rate is critically important, and using the block approach makes it very difficult to have a consistent flow rate.

    Please let me know if I can clarify anything else. I will begin experimenting with custom particle body force models and come back if I uncover more specific questions that don't belong in a new thread.

  • Andrew Greeley
    Andrew Greeley Altair Community Member
    edited October 2021

    Hi all,

    I have been successful in my development of a particle body force model which collects and writes particle data out to be recreated later, but I have one remaining question:

    -Does the Particle Body Force API have any way of returning a particle's scale? I can get the mass and volume, but I need the scale for particle creation. As I am using multi-sphere particles with a size distribution, deriving the scale from the volume could be involved and I'd like to skip that if possible.

    Best,

    Andrew

  • Stephen Cole
    Stephen Cole
    Altair Employee
    edited October 2021

    Hi all,

    I have been successful in my development of a particle body force model which collects and writes particle data out to be recreated later, but I have one remaining question:

    -Does the Particle Body Force API have any way of returning a particle's scale? I can get the mass and volume, but I need the scale for particle creation. As I am using multi-sphere particles with a size distribution, deriving the scale from the volume could be involved and I'd like to skip that if possible.

    Best,

    Andrew

    Hi Andrew,


    For Scale I believe you have to manually input the volume or mass of the particle prototype (the particle setup in the EDEM Creator) and then calculate the scale based on the actual mass or volume of the created particle.

     

    For manually inputting the mass or volume you can do this by setting up the API to read a a preference (.txt) file.


    Regards

    Stephen

  • Ludovico
    Ludovico Altair Community Member
    edited July 2022

    Hi Andrew,
    How did you solve your the issue you described? I've the very same situation and I'm looking up for a solution, can you help me?
    Thank you in advance!

     

    Best regards,

    Ludovico