How to determine the numbe of particles in a given direction

Chao
Chao Altair Community Member
edited July 2023 in Community Q&A

Dear Sir/Madam,

I am recently looking through the Heat transfer API code and a question comes to my mind.

In the API code, we usually specify element1 and element2 and then perform the subsequent operations.

However, I was just wondering if there is any function to determine the number of particles in a certain direction. 

For example, in the following figure, there are 4 columns of particles, each with 3 particles. What function can be used to determine that the number of particles along the y-direction is 3?

 

image

Kind regards,

Chao

Tagged:

Best Answer

  • Stephen Cole
    Stephen Cole
    Altair Employee
    edited July 2023 Answer ✓

    Hi Chao,


    This can be a bit of a challenge as EDEM give you contact pair information , so you know the contact information for the particle neighbour but not it’s neighbours neighbour which can make this type of analysis difficult.


    If you use a Particle Body Force you get the information about all the particles each time-step.  The PBF acts after the contact model so you could store the positions of the particles via the PBF and then next time-step apply any updated forces based on this.

     

    Regards

    Stephen

Answers

  • Stephen Cole
    Stephen Cole
    Altair Employee
    edited July 2023 Answer ✓

    Hi Chao,


    This can be a bit of a challenge as EDEM give you contact pair information , so you know the contact information for the particle neighbour but not it’s neighbours neighbour which can make this type of analysis difficult.


    If you use a Particle Body Force you get the information about all the particles each time-step.  The PBF acts after the contact model so you could store the positions of the particles via the PBF and then next time-step apply any updated forces based on this.

     

    Regards

    Stephen

  • RWood
    RWood
    Altair Employee
    edited July 2023

    Hi Chao,


    This can be a bit of a challenge as EDEM give you contact pair information , so you know the contact information for the particle neighbour but not it’s neighbours neighbour which can make this type of analysis difficult.


    If you use a Particle Body Force you get the information about all the particles each time-step.  The PBF acts after the contact model so you could store the positions of the particles via the PBF and then next time-step apply any updated forces based on this.

     

    Regards

    Stephen

    And on top of Stephen's comments, there's no automatic functionality in the API that is going to help you there, you'll have to do all the tracking of either particle or contact positions yourself to determine how many particles are within a column (x1 < x < x2, say).

    You could also try using EDEMpy, but I think you'll still have the manual stage to deal with.

    Richard

  • Chao
    Chao Altair Community Member
    edited July 2023

    Hi Chao,


    This can be a bit of a challenge as EDEM give you contact pair information , so you know the contact information for the particle neighbour but not it’s neighbours neighbour which can make this type of analysis difficult.


    If you use a Particle Body Force you get the information about all the particles each time-step.  The PBF acts after the contact model so you could store the positions of the particles via the PBF and then next time-step apply any updated forces based on this.

     

    Regards

    Stephen

    Thank you Stephen!

    Reagards,

    Chao

  • Chao
    Chao Altair Community Member
    edited July 2023

    And on top of Stephen's comments, there's no automatic functionality in the API that is going to help you there, you'll have to do all the tracking of either particle or contact positions yourself to determine how many particles are within a column (x1 < x < x2, say).

    You could also try using EDEMpy, but I think you'll still have the manual stage to deal with.

    Richard

    Thank you Richard!

    Regards,

    Chao