Is the use scenario of API:Multiple Fields when the fluid fills all spaces?

bigshow
bigshow Altair Community Member
edited August 27 in Community Q&A

Is the use scenario of API-Multiple Fields when the fluid fills all spaces?

The blue box shows the imported fluid field, but the places without flow fields are affected by the fluid drag.

The red particles are affected by the fluid drag.image

https://community.altair.com/community/en/edem-api-particle-body-force-field-data-coupling-multiple-fields-cuda?id=kb_article&sysparm_article=KB0122032

Tagged:

Answers

  • Stephen Cole
    Stephen Cole
    Altair Employee
    edited August 26

    Hi,

    That's correct the assumption is that the field fills all the space.  The particles pickup the closest point in the field using 8 points and inverse weighted distance method to calculate the vector values.  So if the particles are outside the field they can still pickup the closest point/points.

    You could modify this in the API as you have the particle and field positions, however its currently setup to assume particles are inside the field.

    Regards

    Stephen

     

     

  • bigshow
    bigshow Altair Community Member
    edited August 26

    Hi,

    That's correct the assumption is that the field fills all the space.  The particles pickup the closest point in the field using 8 points and inverse weighted distance method to calculate the vector values.  So if the particles are outside the field they can still pickup the closest point/points.

    You could modify this in the API as you have the particle and field positions, however its currently setup to assume particles are inside the field.

    Regards

    Stephen

     

     

    Thank you very much for your reply.

    Do you have any good suggestions on how to modify the API for this situation?

    Because I am not very good at modifying API.

  • Stephen Cole
    Stephen Cole
    Altair Employee
    edited August 26
    xixihaha said:

    Thank you very much for your reply.

    Do you have any good suggestions on how to modify the API for this situation?

    Because I am not very good at modifying API.

    Hi, one way to achieve the same goal would be to extend the flow field into the area where the particles are, you could have it as zero velocity although this does still apply a drag force.

    With the API changes you have access to the particle position in the API, you could specify that, for example, particles below a certain Z position would not be included, e.g.

     

        if (particle.position.z < 0.0)     {         return eSuccess;     }     else     {         //original code     }

    You can find more information on the API in the help and YouTube series:

    Intro to EDEM API - Part 1

    Regards

    Stephen

  • bigshow
    bigshow Altair Community Member
    edited August 27

    Hi, one way to achieve the same goal would be to extend the flow field into the area where the particles are, you could have it as zero velocity although this does still apply a drag force.

    With the API changes you have access to the particle position in the API, you could specify that, for example, particles below a certain Z position would not be included, e.g.

     

        if (particle.position.z < 0.0)     {         return eSuccess;     }     else     {         //original code     }

    You can find more information on the API in the help and YouTube series:

    Intro to EDEM API - Part 1

    Regards

    Stephen

    "This is a good idea: Thank you very much for your reply."