|
MBDyn-1.7.3
|
#include <planej.h>


Public Member Functions | |
| PlaneHingeJoint (unsigned int uL, const DofOwner *pDO, const StructNode *pN1, const StructNode *pN2, const Vec3 &dTmp1, const Vec3 &dTmp2, const Mat3x3 &R1hTmp, const Mat3x3 &R2hTmp, const OrientationDescription &od, flag fOut, const bool _calcInitdTheta=true, const doublereal initDTheta=0., const doublereal rr=0., const doublereal pref=0., BasicShapeCoefficient *const sh=0, BasicFriction *const f=0) | |
| ~PlaneHingeJoint (void) | |
| virtual void | ReadInitialState (MBDynParser &HP) |
| virtual std::ostream & | Restart (std::ostream &out) const |
| virtual Joint::Type | GetJointType (void) const |
| virtual unsigned int | iGetNumDof (void) const |
| virtual std::ostream & | DescribeDof (std::ostream &out, const char *prefix="", bool bInitial=false) const |
| virtual void | DescribeDof (std::vector< std::string > &desc, bool bInitial=false, int i=-1) const |
| virtual std::ostream & | DescribeEq (std::ostream &out, const char *prefix="", bool bInitial=false) const |
| virtual void | DescribeEq (std::vector< std::string > &desc, bool bInitial=false, int i=-1) const |
| DofOrder::Order | GetDofType (unsigned int i) const |
| virtual void | SetValue (DataManager *pDM, VectorHandler &X, VectorHandler &XP, SimulationEntity::Hints *ph=0) |
| virtual Hint * | ParseHint (DataManager *pDM, const char *s) const |
| virtual void | AfterConvergence (const VectorHandler &X, const VectorHandler &XP) |
| void | WorkSpaceDim (integer *piNumRows, integer *piNumCols) const |
| VariableSubMatrixHandler & | AssJac (VariableSubMatrixHandler &WorkMat, doublereal dCoef, const VectorHandler &XCurr, const VectorHandler &XPrimeCurr) |
| SubVectorHandler & | AssRes (SubVectorHandler &WorkVec, doublereal dCoef, const VectorHandler &XCurr, const VectorHandler &XPrimeCurr) |
| DofOrder::Order | GetEqType (unsigned int i) const |
| void | OutputPrepare (OutputHandler &OH) |
| void | Output (OutputHandler &OH) const |
| virtual unsigned int | iGetInitialNumDof (void) const |
| virtual void | InitialWorkSpaceDim (integer *piNumRows, integer *piNumCols) const |
| VariableSubMatrixHandler & | InitialAssJac (VariableSubMatrixHandler &WorkMat, const VectorHandler &XCurr) |
| SubVectorHandler & | InitialAssRes (SubVectorHandler &WorkVec, const VectorHandler &XCurr) |
| virtual unsigned int | iGetNumPrivData (void) const |
| virtual unsigned int | iGetPrivDataIdx (const char *s) const |
| virtual doublereal | dGetPrivData (unsigned int i) const |
| virtual void | GetConnectedNodes (std::vector< const Node * > &connectedNodes) const |
Public Member Functions inherited from Elem | |
| Elem (unsigned int uL, flag fOut) | |
| virtual | ~Elem (void) |
| virtual void | AssMats (VariableSubMatrixHandler &WorkMatA, VariableSubMatrixHandler &WorkMatB, const VectorHandler &XCurr, const VectorHandler &XPrimeCurr) |
| virtual bool | bInverseDynamics (void) const |
| void | SetInverseDynamicsFlags (unsigned uIDF) |
| unsigned | GetInverseDynamicsFlags (void) const |
| bool | bIsErgonomy (void) const |
| bool | bIsRightHandSide (void) const |
| virtual VariableSubMatrixHandler & | AssJac (VariableSubMatrixHandler &WorkMat, const VectorHandler &XCurr) |
| virtual SubVectorHandler & | AssRes (SubVectorHandler &WorkVec, const VectorHandler &XCurr, const VectorHandler &XPrimeCurr, const VectorHandler &XPrimePrimeCurr, InverseDynamics::Order iOrder=InverseDynamics::INVERSE_DYNAMICS) |
| virtual int | GetNumConnectedNodes (void) const |
Public Member Functions inherited from WithLabel | |
| WithLabel (unsigned int uL=0, const std::string &sN="") | |
| virtual | ~WithLabel (void) |
| void | PutLabel (unsigned int uL) |
| void | PutName (const std::string &sN) |
| unsigned int | GetLabel (void) const |
| const std::string & | GetName (void) const |
Public Member Functions inherited from SimulationEntity | |
| SimulationEntity (void) | |
| virtual | ~SimulationEntity (void) |
| virtual bool | bIsValidIndex (unsigned int i) const |
| virtual void | BeforePredict (VectorHandler &, VectorHandler &, VectorHandler &, VectorHandler &) const |
| virtual void | AfterPredict (VectorHandler &X, VectorHandler &XP) |
| virtual void | Update (const VectorHandler &XCurr, const VectorHandler &XPrimeCurr) |
| virtual void | DerivativesUpdate (const VectorHandler &XCurr, const VectorHandler &XPrimeCurr) |
| virtual void | AfterConvergence (const VectorHandler &X, const VectorHandler &XP, const VectorHandler &XPP) |
| virtual std::ostream & | OutputAppend (std::ostream &out) const |
Public Member Functions inherited from ToBeOutput | |
| ToBeOutput (flag fOut=fDefaultOut) | |
| virtual | ~ToBeOutput (void) |
| virtual void | Output (OutputHandler &OH, const VectorHandler &X, const VectorHandler &XP) const |
| virtual flag | fToBeOutput (void) const |
| virtual bool | bToBeOutput (void) const |
| virtual void | SetOutputFlag (flag f=flag(1)) |
Public Member Functions inherited from Joint | |
| Joint (unsigned int uL, const DofOwner *pD, flag fOut) | |
| virtual | ~Joint (void) |
| virtual Elem::Type | GetElemType (void) const |
| std::ostream & | Output (std::ostream &out, const char *sJointName, unsigned int uLabel, const Vec3 &FLocal, const Vec3 &MLocal, const Vec3 &FGlobal, const Vec3 &MGlobal) const |
| virtual void | SetInitialValue (VectorHandler &) |
| virtual void | Update (const VectorHandler &XCurr, InverseDynamics::Order iOrder=InverseDynamics::INVERSE_DYNAMICS) |
| bool | bIsPrescribedMotion (void) const |
| bool | bIsTorque (void) const |
Public Member Functions inherited from ElemGravityOwner | |
| ElemGravityOwner (unsigned int uL, flag fOut) | |
| virtual | ~ElemGravityOwner (void) |
| virtual doublereal | dGetM (void) const |
| Vec3 | GetS (void) const |
| Mat3x3 | GetJ (void) const |
| Vec3 | GetB (void) const |
| Vec3 | GetG (void) const |
Public Member Functions inherited from GravityOwner | |
| GravityOwner (void) | |
| virtual | ~GravityOwner (void) |
| void | PutGravity (const Gravity *pG) |
| virtual bool | bGetGravity (const Vec3 &X, Vec3 &Acc) const |
Public Member Functions inherited from ElemWithDofs | |
| ElemWithDofs (unsigned int uL, const DofOwner *pDO, flag fOut) | |
| virtual | ~ElemWithDofs (void) |
Public Member Functions inherited from DofOwnerOwner | |
| DofOwnerOwner (const DofOwner *pDO) | |
| virtual | ~DofOwnerOwner () |
| virtual const DofOwner * | pGetDofOwner (void) const |
| virtual integer | iGetFirstIndex (void) const |
Public Member Functions inherited from InitialAssemblyElem | |
| InitialAssemblyElem (unsigned int uL, flag fOut) | |
| virtual | ~InitialAssemblyElem (void) |
Public Member Functions inherited from SubjectToInitialAssembly | |
| SubjectToInitialAssembly (void) | |
| virtual | ~SubjectToInitialAssembly (void) |
Protected Attributes | |
| OrientationDescription | od |
Protected Attributes inherited from WithLabel | |
| unsigned int | uLabel |
| std::string | sName |
Protected Attributes inherited from ToBeOutput | |
| flag | fOutput |
Protected Attributes inherited from GravityOwner | |
| Gravity * | pGravity |
Private Attributes | |
| const StructNode * | pNode1 |
| const StructNode * | pNode2 |
| Vec3 | d1 |
| Mat3x3 | R1h |
| Vec3 | d2 |
| Mat3x3 | R2h |
| Vec3 | F |
| Vec3 | M |
| bool | calcInitdTheta |
| int | NTheta |
| doublereal | dTheta |
| doublereal | dThetaWrapped |
| BasicShapeCoefficient *const | Sh_c |
| BasicFriction *const | fc |
| const doublereal | preF |
| const doublereal | r |
| doublereal | M3 |
Static Private Attributes | |
| static const unsigned int | NumSelfDof |
| static const unsigned int | NumDof |
| PlaneHingeJoint::PlaneHingeJoint | ( | unsigned int | uL, |
| const DofOwner * | pDO, | ||
| const StructNode * | pN1, | ||
| const StructNode * | pN2, | ||
| const Vec3 & | dTmp1, | ||
| const Vec3 & | dTmp2, | ||
| const Mat3x3 & | R1hTmp, | ||
| const Mat3x3 & | R2hTmp, | ||
| const OrientationDescription & | od, | ||
| flag | fOut, | ||
| const bool | _calcInitdTheta = true, |
||
| const doublereal | initDTheta = 0., |
||
| const doublereal | rr = 0., |
||
| const doublereal | pref = 0., |
||
| BasicShapeCoefficient *const | sh = 0, |
||
| BasicFriction *const | f = 0 |
||
| ) |
Definition at line 49 of file planej.cc.
References NO_OP, SAFEDELETEARR, SAFENEWARR, and STRLENOF.
|
virtual |
Reimplemented from SimulationEntity.
Definition at line 473 of file planej.cc.
References BasicFriction::AfterConvergence(), grad::Dot(), dTheta, dThetaWrapped, F, fc, StructNode::GetRCurr(), StructNode::GetWCurr(), DofOwnerOwner::iGetFirstIndex(), M_PI, Vec3::Norm(), NTheta, NumSelfDof, pNode1, pNode2, preF, r, R1h, R2h, and RotManip::VecRot().

|
virtual |
Implements Elem.
Definition at line 540 of file planej.cc.
References ExpandableMatrix::Add(), FullSubMatrixHandler::Add(), BasicFriction::AssJac(), d1, d2, DEBUGCOUT, Vec3::dGet(), grad::Dot(), BasicShapeCoefficient::dSh_c(), F, BasicFriction::fc(), fc, StructNode::GetRRef(), Mat3x3::GetVec(), StructNode::GetWCurr(), DofOwnerOwner::iGetFirstIndex(), StructDispNode::iGetFirstMomentumIndex(), StructDispNode::iGetFirstPositionIndex(), iGetNumDof(), ExpandableMatrix::Link(), M, MatCross, MatCrossCross, Vec3::Norm(), NumSelfDof, pNode1, pNode2, preF, FullSubMatrixHandler::PutCoef(), FullSubMatrixHandler::PutColIndex(), FullSubMatrixHandler::PutRowIndex(), r, R1h, R2h, ExpandableRowVector::ReDim(), ExpandableMatrix::ReDim(), FullSubMatrixHandler::ResizeReset(), ExpandableRowVector::Set(), ExpandableMatrix::Set(), ExpandableMatrix::SetBlockDim(), VariableSubMatrixHandler::SetFull(), Sh_c, BasicShapeCoefficient::Sh_c(), ExpandableMatrix::Sub(), FullSubMatrixHandler::Sub(), WorkSpaceDim(), and Zero3.

|
virtual |
!!!!!!!!!!!!!
Implements Elem.
Definition at line 813 of file planej.cc.
References VectorHandler::Add(), ASSERT, BasicFriction::AssRes(), Vec3::Cross(), d1, d2, DEBUGCOUT, Vec3::dGet(), Vec3::Dot(), grad::Dot(), F, BasicFriction::fc(), fc, StructNode::GetRCurr(), Mat3x3::GetVec(), StructNode::GetWCurr(), StructDispNode::GetXCurr(), DofOwnerOwner::iGetFirstIndex(), StructDispNode::iGetFirstMomentumIndex(), iGetNumDof(), M, M3, MBDYN_EXCEPT_ARGS, Vec3::Norm(), NumSelfDof, pNode1, pNode2, preF, VectorHandler::PutCoef(), SubVectorHandler::PutRowIndex(), r, R1h, R2h, VectorHandler::ResizeReset(), Sh_c, BasicShapeCoefficient::Sh_c(), VectorHandler::Sub(), and WorkSpaceDim().

|
virtual |
Reimplemented from Elem.
Definition at line 98 of file planej.cc.
References SimulationEntity::DescribeDof(), fc, DofOwnerOwner::iGetFirstIndex(), SimulationEntity::iGetNumDof(), and NumSelfDof.

|
virtual |
Reimplemented from Elem.
Definition at line 136 of file planej.cc.
References SimulationEntity::DescribeDof(), fc, WithLabel::GetLabel(), MBDYN_EXCEPT_ARGS, NumSelfDof, and xyz.

|
virtual |
Reimplemented from Elem.
Definition at line 237 of file planej.cc.
References SimulationEntity::DescribeEq(), fc, DofOwnerOwner::iGetFirstIndex(), SimulationEntity::iGetNumDof(), and NumSelfDof.

|
virtual |
Reimplemented from Elem.
Definition at line 273 of file planej.cc.
References SimulationEntity::DescribeEq(), fc, WithLabel::GetLabel(), MBDYN_EXCEPT_ARGS, NumSelfDof, and xyz.

|
virtual |
Reimplemented from SimulationEntity.
Definition at line 1482 of file planej.cc.
References ASSERT, dThetaWrapped, F, WithLabel::GetLabel(), StructNode::GetRCurr(), StructNode::GetWCurr(), iGetNumPrivData(), M, M_PI, MBDYN_EXCEPT_ARGS, Mat3x3::MulTV(), NTheta, pNode1, pNode2, R1h, R2h, and RotManip::VecRot().

|
inlinevirtual |
|
virtual |
Reimplemented from Elem.
Definition at line 927 of file planej.cc.
References DofOrder::ALGEBRAIC, ASSERT, fc, SimulationEntity::GetDofType(), iGetNumDof(), and NumSelfDof.

|
virtual |
Reimplemented from SimulationEntity.
Definition at line 937 of file planej.cc.
References DofOrder::ALGEBRAIC, ASSERTMSGBREAK, fc, SimulationEntity::GetEqType(), iGetNumDof(), and NumSelfDof.

|
inlinevirtual |
|
inlinevirtual |
Implements SubjectToInitialAssembly.
|
virtual |
Reimplemented from Elem.
Definition at line 917 of file planej.cc.
References fc, SimulationEntity::iGetNumDof(), and NumSelfDof.
Referenced by AssJac(), AssRes(), GetDofType(), and GetEqType().

|
virtual |
Reimplemented from SimulationEntity.
Definition at line 1440 of file planej.cc.
Referenced by dGetPrivData().
|
virtual |
|
virtual |
Implements SubjectToInitialAssembly.
Definition at line 1079 of file planej.cc.
References FullSubMatrixHandler::Add(), Vec3::Cross(), d1, d2, Vec3::dGet(), F, WithLabel::GetLabel(), StructNode::GetRRef(), Mat3x3::GetVec(), StructNode::GetWRef(), DofOwnerOwner::iGetFirstIndex(), StructDispNode::iGetFirstPositionIndex(), InitialWorkSpaceDim(), M, MatCross, MatCrossCross, MBDYN_EXCEPT_ARGS, pNode1, pNode2, FullSubMatrixHandler::PutCoef(), FullSubMatrixHandler::PutColIndex(), FullSubMatrixHandler::PutRowIndex(), R1h, R2h, FullSubMatrixHandler::ResizeReset(), VariableSubMatrixHandler::SetFull(), and FullSubMatrixHandler::Sub().

|
virtual |
Implements SubjectToInitialAssembly.
Definition at line 1333 of file planej.cc.
References VectorHandler::Add(), Vec3::Cross(), grad::Cross(), d1, d2, DEBUGCOUT, Vec3::dGet(), F, StructNode::GetRCurr(), StructDispNode::GetVCurr(), Mat3x3::GetVec(), StructNode::GetWCurr(), StructDispNode::GetXCurr(), DofOwnerOwner::iGetFirstIndex(), StructDispNode::iGetFirstPositionIndex(), InitialWorkSpaceDim(), M, pNode1, pNode2, VectorHandler::PutCoef(), SubVectorHandler::PutRowIndex(), R1h, R2h, VectorHandler::ResizeReset(), and VectorHandler::Sub().

|
inlinevirtual |
Implements SubjectToInitialAssembly.
Definition at line 171 of file planej.h.
Referenced by InitialAssJac(), and InitialAssRes().
|
virtual |
Reimplemented from ToBeOutput.
Definition at line 975 of file planej.cc.
References ToBeOutput::bToBeOutput(), dRaDegr, EULER_123, EULER_313, EULER_321, F, BasicFriction::fc(), fc, OutputHandler::GetCurrentStep(), WithLabel::GetLabel(), StructNode::GetRCurr(), StructNode::GetWCurr(), OutputHandler::JOINTS, OutputHandler::Joints(), M, M3, MatR2EulerAngles123(), MatR2EulerAngles313(), MatR2EulerAngles321(), od, ORIENTATION_MATRIX, ORIENTATION_VECTOR, Joint::Output(), Vec3::pGetVec(), pNode1, pNode2, R1h, R2h, OutputHandler::UseNetCDF(), OutputHandler::UseText(), and RotManip::VecRot().

|
virtual |
Reimplemented from ToBeOutput.
Definition at line 949 of file planej.cc.
References ToBeOutput::bToBeOutput(), OutputHandler::JOINTS, od, Joint::OutputPrepare_int(), and OutputHandler::UseNetCDF().

|
virtual |
Reimplemented from SimulationEntity.
Definition at line 432 of file planej.cc.
References fc, SimulationEntity::ParseHint(), and STRLENOF.

|
virtual |
Reimplemented from SimulationEntity.
Definition at line 510 of file planej.cc.
References F, HighParser::GetReal(), MBDynParser::GetVec3(), and M.

|
virtual |
Implements Elem.
Definition at line 519 of file planej.cc.
References d1, d2, Vec3::dGet(), dTheta, F, WithLabel::GetLabel(), Mat3x3::GetVec(), M, pNode1, pNode2, R1h, R2h, Joint::Restart(), Write(), and Vec3::Write().

|
virtual |
Reimplemented from Joint.
Definition at line 374 of file planej.cc.
References calcInitdTheta, d1, d2, Vec3::dGet(), dTheta, dThetaWrapped, F, fc, StructNode::GetRCurr(), StructDispNode::GetXCurr(), DofOwnerOwner::iGetFirstIndex(), M, Mat3x3::MulTM(), NumSelfDof, pNode1, pNode2, VectorHandler::Put(), VectorHandler::PutCoef(), R1h, R2h, BasicFriction::SetValue(), and RotManip::VecRot().

|
private |
Definition at line 68 of file planej.h.
Referenced by SetValue().
|
private |
Definition at line 55 of file planej.h.
Referenced by AssJac(), AssRes(), InitialAssJac(), InitialAssRes(), Restart(), and SetValue().
|
private |
Definition at line 57 of file planej.h.
Referenced by AssJac(), AssRes(), InitialAssJac(), InitialAssRes(), Restart(), and SetValue().
|
mutableprivate |
Definition at line 70 of file planej.h.
Referenced by AfterConvergence(), Restart(), and SetValue().
|
mutableprivate |
Definition at line 70 of file planej.h.
Referenced by AfterConvergence(), dGetPrivData(), and SetValue().
|
private |
Definition at line 59 of file planej.h.
Referenced by AfterConvergence(), AssJac(), AssRes(), dGetPrivData(), InitialAssJac(), InitialAssRes(), Output(), ReadInitialState(), Restart(), and SetValue().
|
private |
Definition at line 74 of file planej.h.
Referenced by AfterConvergence(), AssJac(), AssRes(), DescribeDof(), DescribeEq(), GetDofType(), GetEqType(), iGetNumDof(), Output(), ParseHint(), SetValue(), WorkSpaceDim(), and ~PlaneHingeJoint().
|
private |
Definition at line 60 of file planej.h.
Referenced by AssJac(), AssRes(), dGetPrivData(), InitialAssJac(), InitialAssRes(), Output(), ReadInitialState(), Restart(), and SetValue().
|
private |
|
mutableprivate |
Definition at line 69 of file planej.h.
Referenced by AfterConvergence(), and dGetPrivData().
|
staticprivate |
Definition at line 79 of file planej.h.
Referenced by WorkSpaceDim().
|
staticprivate |
Definition at line 78 of file planej.h.
Referenced by AfterConvergence(), AssJac(), AssRes(), DescribeDof(), DescribeEq(), GetDofType(), GetEqType(), iGetNumDof(), and SetValue().
|
protected |
Definition at line 83 of file planej.h.
Referenced by Output(), and OutputPrepare().
|
private |
Definition at line 53 of file planej.h.
Referenced by AfterConvergence(), AssJac(), AssRes(), dGetPrivData(), GetConnectedNodes(), InitialAssJac(), InitialAssRes(), Output(), Restart(), and SetValue().
|
private |
Definition at line 54 of file planej.h.
Referenced by AfterConvergence(), AssJac(), AssRes(), dGetPrivData(), GetConnectedNodes(), InitialAssJac(), InitialAssRes(), Output(), Restart(), and SetValue().
|
private |
Definition at line 75 of file planej.h.
Referenced by AfterConvergence(), AssJac(), and AssRes().
|
private |
Definition at line 76 of file planej.h.
Referenced by AfterConvergence(), AssJac(), and AssRes().
|
private |
Definition at line 56 of file planej.h.
Referenced by AfterConvergence(), AssJac(), AssRes(), dGetPrivData(), InitialAssJac(), InitialAssRes(), Output(), Restart(), and SetValue().
|
private |
Definition at line 58 of file planej.h.
Referenced by AfterConvergence(), AssJac(), AssRes(), dGetPrivData(), InitialAssJac(), InitialAssRes(), Output(), Restart(), and SetValue().
|
private |
Definition at line 73 of file planej.h.
Referenced by AssJac(), AssRes(), and ~PlaneHingeJoint().