chrono::ChSystemSMC::ChContactForceSMC Class Referenceabstract
Description
Base class for contact force calculation.
A user can override thie default implementation by attaching a custom derived class; see SetContactForceAlgorithm.
#include <ChSystemSMC.h>
Inheritance diagram for chrono::ChSystemSMC::ChContactForceSMC:
Public Member Functions | |
virtual ChVector | CalculateForce (const ChSystemSMC &sys, const ChVector<> &normal_dir, const ChVector<> &p1, const ChVector<> &p2, const ChVector<> &vel1, const ChVector<> &vel2, const ChMaterialCompositeSMC &mat, double delta, double eff_radius, double mass1, double mass2) const =0 |
Calculate contact force (resultant of both normal and tangential components) for a contact between two objects, obj1 and obj2. More... | |
Member Function Documentation
◆ CalculateForce()
|
pure virtual |
Calculate contact force (resultant of both normal and tangential components) for a contact between two objects, obj1 and obj2.
Note that this function is always called with delta > 0.
- Parameters
-
sys containing system normal_dir normal contact direction (expressed in global frame) p1 most penetrated point on obj1 (expressed in global frame) p2 most penetrated point on obj2 (expressed in global frame) vel1 velocity of contact point on obj1 (expressed in global frame) vel2 velocity of contact point on obj2 (expressed in global frame) mat composite material for contact pair delta overlap in normal direction eff_radius effective radius of curvature at contact mass1 mass of obj1 mass2 mass of obj2
Implemented in chrono::ChDefaultContactForceSMC.
The documentation for this class was generated from the following file:
- /builds/uwsbel/chrono/src/chrono/physics/ChSystemSMC.h