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()

virtual ChVector chrono::ChSystemSMC::ChContactForceSMC::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
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
syscontaining system
normal_dirnormal contact direction (expressed in global frame)
p1most penetrated point on obj1 (expressed in global frame)
p2most penetrated point on obj2 (expressed in global frame)
vel1velocity of contact point on obj1 (expressed in global frame)
vel2velocity of contact point on obj2 (expressed in global frame)
matcomposite material for contact pair
deltaoverlap in normal direction
eff_radiuseffective radius of curvature at contact
mass1mass of obj1
mass2mass 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