MBDyn-1.7.3
|
#include <drvhinge.h>
Public Member Functions | |
DriveHingeJoint (unsigned int uL, const DofOwner *pDO, const TplDriveCaller< Vec3 > *pDC, const StructNode *pN1, const StructNode *pN2, const Mat3x3 &R1, const Mat3x3 &R2, flag fOut) | |
virtual | ~DriveHingeJoint (void) |
virtual Joint::Type | GetJointType (void) const |
virtual std::ostream & | Restart (std::ostream &out) const |
virtual void | Output (OutputHandler &OH) const |
void | SetValue (DataManager *pDM, VectorHandler &X, VectorHandler &XP, SimulationEntity::Hints *ph=0) |
virtual Hint * | ParseHint (DataManager *pDM, const char *s) 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 |
virtual DofOrder::Order | GetDofType (unsigned int i) const |
virtual void | WorkSpaceDim (integer *piNumRows, integer *piNumCols) const |
virtual VariableSubMatrixHandler & | AssJac (VariableSubMatrixHandler &WorkMat, doublereal dCoef, const VectorHandler &XCurr, const VectorHandler &XPrimeCurr) |
virtual SubVectorHandler & | AssRes (SubVectorHandler &WorkVec, doublereal dCoef, const VectorHandler &XCurr, const VectorHandler &XPrimeCurr) |
virtual void | AfterPredict (VectorHandler &X, VectorHandler &XP) |
virtual unsigned int | iGetInitialNumDof (void) const |
virtual void | InitialWorkSpaceDim (integer *piNumRows, integer *piNumCols) const |
virtual VariableSubMatrixHandler & | InitialAssJac (VariableSubMatrixHandler &WorkMat, const VectorHandler &XCurr) |
virtual SubVectorHandler & | InitialAssRes (SubVectorHandler &WorkVec, const VectorHandler &XCurr) |
virtual unsigned int | iGetNumPrivData (void) const |
unsigned int | iGetPrivDataIdx (const char *s) const |
virtual doublereal | dGetPrivData (unsigned int i=0) const |
virtual void | GetConnectedNodes (std::vector< const Node * > &connectedNodes) const |
![]() | |
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 |
![]() | |
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 |
![]() | |
SimulationEntity (void) | |
virtual | ~SimulationEntity (void) |
virtual bool | bIsValidIndex (unsigned int i) const |
virtual DofOrder::Order | GetEqType (unsigned int i) const |
virtual void | BeforePredict (VectorHandler &, VectorHandler &, VectorHandler &, VectorHandler &) const |
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) |
virtual void | AfterConvergence (const VectorHandler &X, const VectorHandler &XP, const VectorHandler &XPP) |
virtual std::ostream & | OutputAppend (std::ostream &out) const |
virtual void | ReadInitialState (MBDynParser &HP) |
![]() | |
ToBeOutput (flag fOut=fDefaultOut) | |
virtual | ~ToBeOutput (void) |
virtual void | OutputPrepare (OutputHandler &OH) |
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)) |
![]() | |
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 |
![]() | |
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 |
![]() | |
GravityOwner (void) | |
virtual | ~GravityOwner (void) |
void | PutGravity (const Gravity *pG) |
virtual bool | bGetGravity (const Vec3 &X, Vec3 &Acc) const |
![]() | |
ElemWithDofs (unsigned int uL, const DofOwner *pDO, flag fOut) | |
virtual | ~ElemWithDofs (void) |
![]() | |
DofOwnerOwner (const DofOwner *pDO) | |
virtual | ~DofOwnerOwner () |
virtual const DofOwner * | pGetDofOwner (void) const |
virtual integer | iGetFirstIndex (void) const |
![]() | |
InitialAssemblyElem (unsigned int uL, flag fOut) | |
virtual | ~InitialAssemblyElem (void) |
![]() | |
SubjectToInitialAssembly (void) | |
virtual | ~SubjectToInitialAssembly (void) |
![]() | |
TplDriveOwner (const TplDriveCaller< Vec3 > *pDC=0) | |
virtual | ~TplDriveOwner (void) |
void | Set (const TplDriveCaller< Vec3 > *pDC) |
TplDriveCaller< Vec3 > * | pGetDriveCaller (void) const |
Vec3 | Get (const doublereal &dVar) const |
Vec3 | Get (void) const |
virtual bool | bIsDifferentiable (void) const |
virtual Vec3 | GetP (void) const |
Protected Member Functions | |
void | AssMat (FullSubMatrixHandler &WM, doublereal dCoef) |
void | AssVec (SubVectorHandler &WorkVec, doublereal dCoef) |
![]() | |
virtual void | OutputPrepare_int (const std::string &type, OutputHandler &OH, std::string &name) |
![]() | |
virtual Vec3 | GetS_int (void) const |
virtual Mat3x3 | GetJ_int (void) const |
virtual Vec3 | GetB_int (void) const |
virtual Vec3 | GetG_int (void) const |
Protected Attributes | |
const StructNode * | pNode1 |
const StructNode * | pNode2 |
const Mat3x3 | R1h |
const Mat3x3 | R2h |
Mat3x3 | R1Ref |
Mat3x3 | RRef |
Vec3 | ThetaRef |
Vec3 | ThetaCurr |
Vec3 | M |
bool | bFirstRes |
![]() | |
unsigned int | uLabel |
std::string | sName |
![]() | |
flag | fOutput |
![]() | |
Gravity * | pGravity |
![]() | |
TplDriveCaller< Vec3 > * | pTplDriveCaller |
Definition at line 44 of file drvhinge.h.
DriveHingeJoint::DriveHingeJoint | ( | unsigned int | uL, |
const DofOwner * | pDO, | ||
const TplDriveCaller< Vec3 > * | pDC, | ||
const StructNode * | pN1, | ||
const StructNode * | pN2, | ||
const Mat3x3 & | R1, | ||
const Mat3x3 & | R2, | ||
flag | fOut | ||
) |
Definition at line 44 of file drvhinge.cc.
References ASSERT, StructDispNode::GetNodeType(), pNode1, pNode2, and Node::STRUCTURAL.
|
virtual |
Definition at line 71 of file drvhinge.cc.
References NO_OP.
|
virtual |
Reimplemented from SimulationEntity.
Definition at line 391 of file drvhinge.cc.
References bFirstRes, RotManip::DRot_I(), StructNode::GetRRef(), pNode1, pNode2, R1h, R1Ref, R2h, RRef, ThetaCurr, ThetaRef, Mat3x3::Transpose(), and RotManip::VecRot().
|
virtual |
Implements Elem.
Definition at line 352 of file drvhinge.cc.
References AssMat(), DEBUGCOUT, DofOwnerOwner::iGetFirstIndex(), StructDispNode::iGetFirstMomentumIndex(), StructDispNode::iGetFirstPositionIndex(), pNode1, pNode2, FullSubMatrixHandler::PutColIndex(), FullSubMatrixHandler::PutRowIndex(), FullSubMatrixHandler::ResizeReset(), VariableSubMatrixHandler::SetFull(), and WorkSpaceDim().
|
protected |
Definition at line 414 of file drvhinge.cc.
References FullSubMatrixHandler::Add(), M, MatCross, R1Ref, RRef, and FullSubMatrixHandler::Sub().
Referenced by AssJac().
|
virtual |
Implements Elem.
Definition at line 431 of file drvhinge.cc.
References AssVec(), DEBUGCOUT, DofOwnerOwner::iGetFirstIndex(), StructDispNode::iGetFirstMomentumIndex(), M, pNode1, pNode2, SubVectorHandler::PutRowIndex(), VectorHandler::ResizeReset(), and WorkSpaceDim().
|
protected |
Definition at line 465 of file drvhinge.cc.
References VectorHandler::Add(), ASSERT, bFirstRes, TplDriveOwner< Vec3 >::Get(), StructNode::GetRCurr(), M, pNode1, pNode2, R1h, R2h, VectorHandler::Sub(), ThetaCurr, and RotManip::VecRot().
Referenced by AssRes().
|
virtual |
Reimplemented from Elem.
Definition at line 174 of file drvhinge.cc.
References DofOwnerOwner::iGetFirstIndex().
|
virtual |
Reimplemented from Elem.
Definition at line 198 of file drvhinge.cc.
References dof, WithLabel::GetLabel(), and xyz.
|
virtual |
Reimplemented from Elem.
Definition at line 232 of file drvhinge.cc.
References DofOwnerOwner::iGetFirstIndex().
|
virtual |
Reimplemented from Elem.
Definition at line 253 of file drvhinge.cc.
References eq, WithLabel::GetLabel(), and xyz.
|
virtual |
Reimplemented from SimulationEntity.
Definition at line 329 of file drvhinge.cc.
References ASSERT, Vec3::dGet(), TplDriveOwner< Vec3 >::Get(), M, and MBDYN_EXCEPT_ARGS.
|
inlinevirtual |
|
inlinevirtual |
Reimplemented from Elem.
Definition at line 122 of file drvhinge.h.
References DofOrder::ALGEBRAIC, and ASSERT.
|
inlinevirtual |
|
inlinevirtual |
Implements SubjectToInitialAssembly.
Definition at line 150 of file drvhinge.h.
|
inlinevirtual |
|
virtual |
Reimplemented from SimulationEntity.
Definition at line 288 of file drvhinge.cc.
|
virtual |
|
virtual |
Implements SubjectToInitialAssembly.
Definition at line 490 of file drvhinge.cc.
References FullSubMatrixHandler::Add(), DEBUGCOUT, StructNode::GetRRef(), StructNode::GetWRef(), DofOwnerOwner::iGetFirstIndex(), StructDispNode::iGetFirstPositionIndex(), InitialWorkSpaceDim(), M, MatCross, pNode1, pNode2, FullSubMatrixHandler::PutColIndex(), FullSubMatrixHandler::PutRowIndex(), R1h, FullSubMatrixHandler::ResizeReset(), VariableSubMatrixHandler::SetFull(), and FullSubMatrixHandler::Sub().
|
virtual |
Implements SubjectToInitialAssembly.
Definition at line 565 of file drvhinge.cc.
References VectorHandler::Add(), TplDriveOwner< Vec3 >::bIsDifferentiable(), DEBUGCOUT, TplDriveOwner< Vec3 >::Get(), TplDriveOwner< Vec3 >::GetP(), StructNode::GetRCurr(), StructNode::GetWCurr(), DofOwnerOwner::iGetFirstIndex(), StructDispNode::iGetFirstPositionIndex(), InitialWorkSpaceDim(), M, pNode1, pNode2, SubVectorHandler::PutRowIndex(), R1h, R2h, VectorHandler::ResizeReset(), VectorHandler::Sub(), ThetaCurr, and RotManip::VecRot().
|
inlinevirtual |
Implements SubjectToInitialAssembly.
Definition at line 154 of file drvhinge.h.
Referenced by InitialAssJac(), and InitialAssRes().
|
virtual |
Reimplemented from ToBeOutput.
Definition at line 94 of file drvhinge.cc.
References ToBeOutput::bToBeOutput(), dRaDegr, WithLabel::GetLabel(), StructNode::GetRCurr(), OutputHandler::Joints(), M, MatR2EulerAngles(), Joint::Output(), pNode1, pNode2, R1h, R2h, ThetaCurr, and Zero3.
|
virtual |
Reimplemented from SimulationEntity.
Definition at line 150 of file drvhinge.cc.
References SimulationEntity::ParseHint(), and STRLENOF.
|
virtual |
Implements Elem.
Definition at line 79 of file drvhinge.cc.
References WithLabel::GetLabel(), Mat3x3::GetVec(), TplDriveOwner< Vec3 >::pGetDriveCaller(), pNode1, pNode2, R1h, R2h, TplDriveCaller< T >::Restart(), Joint::Restart(), and Write().
|
virtual |
Reimplemented from Joint.
Definition at line 107 of file drvhinge.cc.
References StructNode::GetRCurr(), MBDYN_EXCEPT_ARGS, TplDriveHint< T >::pCreateDrive(), pNode1, pNode2, R1h, R2h, TplDriveOwner< T >::Set(), Mat3x3::Transpose(), and WithLabel::uLabel.
|
inlinevirtual |
Implements Elem.
Definition at line 127 of file drvhinge.h.
|
protected |
Definition at line 62 of file drvhinge.h.
Referenced by AfterPredict(), and AssVec().
|
protected |
Definition at line 60 of file drvhinge.h.
Referenced by AssMat(), AssRes(), AssVec(), dGetPrivData(), InitialAssJac(), InitialAssRes(), and Output().
|
protected |
Definition at line 49 of file drvhinge.h.
Referenced by AfterPredict(), AssJac(), AssRes(), AssVec(), DriveHingeJoint(), GetConnectedNodes(), InitialAssJac(), InitialAssRes(), Output(), Restart(), and SetValue().
|
protected |
Definition at line 50 of file drvhinge.h.
Referenced by AfterPredict(), AssJac(), AssRes(), AssVec(), DriveHingeJoint(), GetConnectedNodes(), InitialAssJac(), InitialAssRes(), Output(), Restart(), and SetValue().
|
protected |
Definition at line 51 of file drvhinge.h.
Referenced by AfterPredict(), AssVec(), InitialAssJac(), InitialAssRes(), Output(), Restart(), and SetValue().
|
protected |
Definition at line 54 of file drvhinge.h.
Referenced by AfterPredict(), and AssMat().
|
protected |
Definition at line 52 of file drvhinge.h.
Referenced by AfterPredict(), AssVec(), InitialAssRes(), Output(), Restart(), and SetValue().
|
protected |
Definition at line 55 of file drvhinge.h.
Referenced by AfterPredict(), and AssMat().
|
protected |
Definition at line 58 of file drvhinge.h.
Referenced by AfterPredict(), AssVec(), InitialAssRes(), and Output().
|
protected |
Definition at line 57 of file drvhinge.h.
Referenced by AfterPredict().