chrono::ChGenericConstraint_Chf_HorDistance Class Reference
Description
Algebraic constraint on ChFunctions.
Impose handle distance along X axis.
#include <ChGenericConstraint.h>
Inheritance diagram for chrono::ChGenericConstraint_Chf_HorDistance:
Collaboration diagram for chrono::ChGenericConstraint_Chf_HorDistance:
Public Member Functions | |
ChGenericConstraint_Chf_HorDistance (ChFunction *mRootFunct, char *mTreeIDs, int mhA, int mhB) | |
double | GetDistance () |
void | SetDistance (double md) |
virtual int | Get_Cn () override |
Returns the number of equations in this constraints (the size of the C residual vector) | |
int | GetHandleA () |
int | GetHandleB () |
void | SetHandleA (int mh) |
void | SetHandleB (int mh) |
virtual bool | Update () override |
Compute the residuals (vector 'C') of the constraint equations, where C=0 is for satisfied constraints. More... | |
Public Member Functions inherited from chrono::ChGenericConstraint_Chf | |
ChGenericConstraint_Chf (ChFunction *mRootFunct, char *mTreeIDs) | |
ChFunction * | Get_root_function () |
ChFunction * | Get_target_function () |
ChRefFunctionSegment * | Get_target_reference () |
virtual bool | RestoreReferences (ChFunction *mroot) override |
This may be overloaded by child classes. More... | |
Public Member Functions inherited from chrono::ChGenericConstraint | |
bool | IsValid () |
Tells if the constraint data is currently valid. More... | |
bool | IsDisabled () |
Tells if the constraint is currently turned on or off by the user. | |
void | SetDisabled (bool mon) |
bool | IsActive () const |
Tells if the constraint is currently active, in general, that is tells if it must be included into the system solver or not. | |
const ChVectorDynamic & | Get_C () const |
Returns the matrix of residuals (a column vector with Cn elements. | |
void | Reset_Cn (int mCn) |
Changes the number of equations in this constraints (reset the size of the C residual vector). | |
Additional Inherited Members | |
Protected Attributes inherited from chrono::ChGenericConstraint_Chf | |
ChFunction * | root_function |
ChRefFunctionSegment | target_function |
Protected Attributes inherited from chrono::ChGenericConstraint | |
bool | valid |
bool | disabled |
int | Cn |
constraints equations in this constraint | |
ChVectorDynamic | C |
residual matrix | |
Member Function Documentation
◆ Update()
|
overridevirtual |
Compute the residuals (vector 'C') of the constraint equations, where C=0 is for satisfied constraints.
Should return false if updating was not possible.
Reimplemented from chrono::ChGenericConstraint.
The documentation for this class was generated from the following files:
- /builds/uwsbel/chrono/src/chrono/physics/ChGenericConstraint.h
- /builds/uwsbel/chrono/src/chrono/physics/ChGenericConstraint.cpp