How to store particle information before it is deleted?

fyw
fyw Altair Community Member
edited June 11 in Community Q&A

Hi,

I want to store the speed of those particles that are out of the computational domain and are about to be deleted. I already know how to write the information to a txt file, but I don't know how to do it before deleting.

Regards

Fang yanwei

2024.06.11

Tagged:

Answers

  • Stephen Cole
    Stephen Cole
    Altair Employee
    edited June 11

    Hi Fang,

    There are a couple of options you could look at.  You can export data during run-time so if you create a bin group in the area just before the particles are leaving the domain and setup a query to export velocity of particles in the bin.  You can set the write out frequency to be quite high so it catches the particles before they leave, however there is always the possibility of exporting the data from 1 particle more than once.    This functionality was included in 2022.3.  You can do the same in the Analyst however you would have to save more data and you may want a higher write out frequency which the export during simulation run time gives you.

    2022.3

    Alternatively you would have to write out the data with the EDEM API, in this example we delete the particles once they contact a geometry.  This gives us the info on the contact and in the example the data is stored on the geometry but could be written to a file. edem-api-contact-model-example-removing-particles