chrono::ChSystemSMC::ChContactForceTorqueSMC Class Referenceabstract

Description

Base class for contact force calculation.

A user can override thie default implementation by attaching a custom derived class; see SetContactForceTorqueAlgorithm.

#include <ChSystemSMC.h>

Inheritance diagram for chrono::ChSystemSMC::ChContactForceTorqueSMC:

Public Member Functions

virtual ChWrenchd CalculateForceTorque (const ChSystemSMC &sys, const ChVector3d &normal_dir, const ChVector3d &p1, const ChVector3d &p2, const ChVector3d &vel1, const ChVector3d &vel2, const ChContactMaterialCompositeSMC &mat, double delta, double eff_radius, double mass1, double mass2, ChContactable *objA, ChContactable *objB) 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

◆ CalculateForceTorque()

virtual ChWrenchd chrono::ChSystemSMC::ChContactForceTorqueSMC::CalculateForceTorque ( const ChSystemSMC sys,
const ChVector3d normal_dir,
const ChVector3d p1,
const ChVector3d p2,
const ChVector3d vel1,
const ChVector3d vel2,
const ChContactMaterialCompositeSMC mat,
double  delta,
double  eff_radius,
double  mass1,
double  mass2,
ChContactable objA,
ChContactable objB 
) const
pure virtual

Calculate contact force (resultant of both normal and tangential components) for a contact between two objects, obj1 and obj2.

Optionally, can compute torque, or leave it as zero. 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
objApointer to contactable obj1
objBpointer to contactable obj2

Implemented in chrono::ChDefaultContactForceTorqueSMC.


The documentation for this class was generated from the following file:
  • /builds/uwsbel/chrono/src/chrono/physics/ChSystemSMC.h