A program to recognize and reward our most engaged community members
Hi, everyone! When the particles are subjected to an inward particle body force, they traverse the cylinder geometry without any collision, as illustrated below.The zip file is the complete code.
The code is as follows:
By moving the cylinder along the +X direction, I found that there was contact force between the particles and the cylinder, but it seemed that the Newton equation was not triggered.
Hi,
Where you have "results.force = " can you try replacing this with "results.force += "
The forces are calculated in the Contact Model and passed down the chain to the Body Force. When you use "+=" the BodyForce will add your custom forces to the Contact Model forces.
If you use "=" then the BodyForce is overwriting the ContactModel forces.
Regards
Stephen