Fluent-EDEM

Guozhen Li
Guozhen Li Altair Community Member
edited May 29 in Community Q&A

Hi,

I am doing EDEM-Fluent two-way coupled simulation with the latest coupling tool downloaded from this community, compatible with EDEM and Fluent 2023. Now I would like to access CFD field data on each individual particle through API and access these info in EDEM if possible. But I have no idea how to extract fluid data from Fluent in the coupling tool. Any advice on it? 

 

Regards,

Yang Qi

Tagged:

Answers

  • jerrinjobs
    jerrinjobs
    Altair Employee
    edited May 29

    Hi Yang

    You would need to extract the fluid field from Fluent as a CGNS file. EDEM can import CGNS file to apply a force (using API) on the particles.

    Steps on how to export CGNS file from Fluent would be a question for the Fluent team/forum I think.

    Hope this helps.

    Thanks,
    Jerrin Job

  • Guozhen Li
    Guozhen Li Altair Community Member
    edited May 29

    Hi Yang

    You would need to extract the fluid field from Fluent as a CGNS file. EDEM can import CGNS file to apply a force (using API) on the particles.

    Steps on how to export CGNS file from Fluent would be a question for the Fluent team/forum I think.

    Hope this helps.

    Thanks,
    Jerrin Job

    Hi Jerrin,

    Thanks for your reply. I think since particle infos are retrieved from EDEM and injected through DPM in fluent. During the calculation of drag force, the fluid force was accessed and used in drag calculation, see in the attached snip from compute_particle_force.c. My problem is that I have no idea how to transfer this fluid velocity back into EDEM. Is it possible to define a custom property with 3 elements? But I don't know how to pass the fluid velocity in this .c file to a particle custom property. Any ideas or alternative way? 

    image

    Regards,

    Yang Qi

     

  • jerrinjobs
    jerrinjobs
    Altair Employee
    edited May 29

    Hi Jerrin,

    Thanks for your reply. I think since particle infos are retrieved from EDEM and injected through DPM in fluent. During the calculation of drag force, the fluid force was accessed and used in drag calculation, see in the attached snip from compute_particle_force.c. My problem is that I have no idea how to transfer this fluid velocity back into EDEM. Is it possible to define a custom property with 3 elements? But I don't know how to pass the fluid velocity in this .c file to a particle custom property. Any ideas or alternative way? 

    image

    Regards,

    Yang Qi

     

    Hi Yang

    For a coupled simulation, the drag forces are calculated in the CFD solver and the force values are what is passed on to EDEM particles, and the field is not passed on to EDEM. And this is the structure of the coupling interface with EDEM.

    If you want the field in EDEM, you will have to do it manually, because the coupling interface does not allow passing on field data. You can export the field from Fluent as a CGNS file, and then import into EDEM, and use an API to add additional forces.

    Hope this helps.

    Thanks,
    Jerrin Job