How to Design an API to Simulate Particle-geometry Interaction
Hello everyone,
I'm currently working on designing an API to simulate the force between particles and geometry surfaces within a certain distance range. Specifically, when the distance between a particle and a geometry surface reaches a certain value, I want to apply a force related to the particle's charge and the perpendicular distance from the wall.
The issue I'm facing is that I'm unsure how to set this distance value and whether I need to utilize a contact radius to achieve this functionality. Does anyone have any experience or suggestions they could share?
Thank you all for your help!
Answers
-
Hi Alice,
The best way to implement this force is by using the contact radius. By defining a contact radius that is larger than the particle's physical radius you'll be able to apply forces even if the particle and the geometry are not touching each other. Keep in mind that the contact radius value will define the greatest distance for which the force will be applied, this means that if the distance between the particle and the geometry is greater than the particle contact radius then the force will be zero.
Best regards,
Renan0