Regarding the API editing of IPluginParticleBodyForce, how can I get the position of a geometry?
Find more posts tagged with
Sort by:
1 - 6 of
61
Hi,
You could connect a particle to a geometry using the Rigid Link condition. Then query the particle information in the Body Force.
You may want to consider the particle position and how it compares to the geometry centre of mass. Also if this particle is going to contact and interact with other particles.
I'm not aware of this been done before but there should be no specific limits.
Regards
Stephen
Hi,
This is challenging as EDEM doesn't have an API (in the Physics Models) that gives you geometry position. All the physics models are contact or particle based. So if the particle is in contact with a geometry you can find the contact information and position, but if the geometry has no particle contacts then it's not considered in the physics model API.
There is the EDEM coupling interface which gives geometry information, but this is a slightly different system where you create an executable and use it to transfer particle or geometry information via the Coupling Interface. I'm unsure if it is possible to directly link the coupling interface executable with a physics model library.
https://help.altair.com/edem/topics/coupling_interface_programming_guide/introducing_the_coupling_interface_programming_guide_c.htm
You can query the geometry position with EDEMpy however only when the data is saved, more as a post-processing option.
If the motion is pre-defined you could manually copy this into your code. Closest would be this example:
Regards
Stephen