How to determine the numbe of particles in a given direction
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?
Kind regards,
Chao
Best 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
0
Answers
-
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
0 -
Stephen Cole_21117 said:
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
1 -
Stephen Cole_21117 said:
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
0 -
Richard Wood_20774 said:
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
0