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. | |
![]() | |
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_ = DVect(0.0) |
CAxes | axes_ |
contact axis system | |
DAVect | relativeAngularIncrement_ = DAVect(0.0) |
current relative angular displacement increment | |
DVect2 | end1Curvature_ = DVect2(0.0) |
principal curvatures of end1 (min,max) | |
DVect2 | end2Curvature_ = DVect2(0.0) |
principal curvatures of end2 (min,max) | |
double | inertialMass_ = 0.0 |
double | gap_ = 0.0 |
current contact gap | |
double | maxConvergence_ = 0.0 |
maximum convergence of the pieces | |
double | end1Volume_ = 0.0 |
volume of end1 | |
double | end2Volume_ = 0.0 |
volume of end2 | |
std::array< double, 3 > | end1Stress_ = {0,0,0} |
stress on end1 | |
std::array< double, 3 > | end2Stress_ = {0,0,0} |
stress on end2 | |
bool | canFail_ = true |
failure should be discarded | |
![]() | |
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_ = 0.0 |
Effective inertial mass of the contact (required for viscous damping)
current relative translational displacement increment