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 - 1 of 11
    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