How to determine the numbe of particles in a given direction

User: "Chao"
Altair Community Member
Updated by Chao

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

Find more posts tagged with

Sort by:
1 - 4 of 41
    User: "Stephen Cole"
    Altair Employee
    Accepted Answer
    Updated by Stephen Cole

    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

    User: "RWood"
    Altair Employee
    Updated by RWood

    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

    User: "Chao"
    Altair Community Member
    OP
    Updated by Chao

    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

    User: "Chao"
    Altair Community Member
    OP
    Updated by Chao

    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