Itasca C++ Interface
|
The ContactModelMechnicalState class holds necessary information to communicate back and forth between the code (e.g., PFC) and the contact model. It is derived from ContactModelState, and adds necessary information for mechanical contact models. contactmodel. More...
#include <contactmodelmechanical.h>
Public Member Functions | |
ContactModelMechanicalState () | |
Constructor. | |
~ContactModelMechanicalState () override | |
Destructor. | |
virtual const IContactMechanical * | getMechanicalContact () const =0 |
Return a const pointer to the IContactMechanical interface. | |
virtual const IContact * | getContact () const =0 |
Return a const pointer to the IContact interface. | |
Public Member Functions inherited from cmodelsxd::ContactModelState | |
ContactModelState () | |
Constructor. | |
virtual | ~ContactModelState () |
Destructor. | |
virtual const IProgram * | getProgram () const =0 |
Return a const pointer to the IPrgram interface. | |
bool | setActive (bool b=true) |
Set the activity state of the contact. | |
bool | setCouldBeActive (bool b=true) |
Set the activity state of the contact. | |
bool | setActivated (bool b=true) |
Set the activity state of the contact. | |
bool | isActive () const |
Returns true if the contact state is active. | |
bool | isInactive () const |
Returns true if the contact state is inactive. | |
bool | activated () const |
Returns true if the contact state is activated. | |
bool | couldBeActive () const |
Returns true if the contact could be activate in subsequent steps. | |
Public Attributes | |
DVect | relativeTranslationalIncrement_ |
DAVect | relativeAngularIncrement_ |
current relative angular displacement increment | |
DVect2 | end1Curvature_ |
principal curvatures of end1 (min,max) | |
DVect2 | end2Curvature_ |
principal curvatures of end2 (min,max) | |
double | inertialMass_ |
double | gap_ |
current contact gap | |
bool | canFail_ |
failure should be discarded | |
Public Attributes inherited from cmodelsxd::ContactModelState | |
quint32 | activeState_ = 0 |
Current activity state flag. | |
bool | trackEnergy_ = false |
indicate whether energy tracking is activated | |
The ContactModelMechnicalState class holds necessary information to communicate back and forth between the code (e.g., PFC) and the contact model. It is derived from ContactModelState, and adds necessary information for mechanical contact models. contactmodel.
double cmodelsxd::ContactModelMechanicalState::inertialMass_ |
Effective inertial mass of the contact (required for viscous damping)
DVect cmodelsxd::ContactModelMechanicalState::relativeTranslationalIncrement_ |
current relative translational displacement increment