MBDyn-1.7.3
|
#include <planej.h>
Public Member Functions | |
PlanePinJoint (unsigned int uL, const DofOwner *pDO, const StructNode *pN, const Vec3 &X0Tmp, const Mat3x3 &R0Tmp, const Vec3 &dTmp, const Mat3x3 &RhTmp, flag fOut, const bool _calcInitdTheta, const doublereal initDTheta) | |
~PlanePinJoint (void) | |
virtual Joint::Type | GetJointType (void) const |
virtual void | ReadInitialState (MBDynParser &HP) |
virtual std::ostream & | Restart (std::ostream &out) 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 |
DofOrder::Order | GetEqType (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) |
virtual 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) |
virtual 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 | 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)) |
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) |
Private Attributes | |
const StructNode * | pNode |
Vec3 | X0 |
Mat3x3 | R0 |
Vec3 | d |
Mat3x3 | Rh |
Vec3 | F |
Vec3 | M |
bool | calcInitdTheta |
int | NTheta |
doublereal | dTheta |
doublereal | dThetaWrapped |
PlanePinJoint::PlanePinJoint | ( | unsigned int | uL, |
const DofOwner * | pDO, | ||
const StructNode * | pN, | ||
const Vec3 & | X0Tmp, | ||
const Mat3x3 & | R0Tmp, | ||
const Vec3 & | dTmp, | ||
const Mat3x3 & | RhTmp, | ||
flag | fOut, | ||
const bool | _calcInitdTheta, | ||
const doublereal | initDTheta | ||
) |
PlanePinJoint::~PlanePinJoint | ( | void | ) |
|
virtual |
Reimplemented from SimulationEntity.
Definition at line 4305 of file planej.cc.
References dTheta, dThetaWrapped, StructNode::GetRCurr(), M_PI, Mat3x3::MulTM(), NTheta, pNode, R0, Rh, and RotManip::VecRot().
|
virtual |
Implements Elem.
Definition at line 4358 of file planej.cc.
References grad::Cross(), d, DEBUGCOUT, Vec3::dGet(), F, StructNode::GetRRef(), Mat3x3::GetVec(), DofOwnerOwner::iGetFirstIndex(), StructDispNode::iGetFirstMomentumIndex(), StructDispNode::iGetFirstPositionIndex(), M, MatCrossCross, pNode, SparseSubMatrixHandler::PutCross(), SparseSubMatrixHandler::PutItem(), SparseSubMatrixHandler::PutMat3x3(), R, R0, SparseSubMatrixHandler::ResizeReset(), Rh, and VariableSubMatrixHandler::SetSparse().
|
virtual |
Implements Elem.
Definition at line 4457 of file planej.cc.
References VectorHandler::Add(), ASSERT, Vec3::Cross(), grad::Cross(), d, DEBUGCOUT, Vec3::dGet(), F, StructNode::GetRCurr(), Mat3x3::GetVec(), StructDispNode::GetXCurr(), DofOwnerOwner::iGetFirstIndex(), StructDispNode::iGetFirstMomentumIndex(), M, pNode, VectorHandler::PutCoef(), SubVectorHandler::PutRowIndex(), R, R0, VectorHandler::ResizeReset(), Rh, VectorHandler::Sub(), WorkSpaceDim(), and X0.
|
virtual |
Reimplemented from Elem.
Definition at line 4003 of file planej.cc.
References DofOwnerOwner::iGetFirstIndex().
|
virtual |
Reimplemented from Elem.
Definition at line 4026 of file planej.cc.
References WithLabel::GetLabel(), MBDYN_EXCEPT_ARGS, and xyz.
|
virtual |
Reimplemented from Elem.
Definition at line 4111 of file planej.cc.
References DofOwnerOwner::iGetFirstIndex().
|
virtual |
Reimplemented from Elem.
Definition at line 4134 of file planej.cc.
References WithLabel::GetLabel(), MBDYN_EXCEPT_ARGS, and xyz.
|
virtual |
Reimplemented from SimulationEntity.
Definition at line 4829 of file planej.cc.
References ASSERT, dThetaWrapped, F, WithLabel::GetLabel(), StructNode::GetRCurr(), StructNode::GetWCurr(), iGetNumPrivData(), M, M_PI, MBDYN_EXCEPT_ARGS, Mat3x3::MulTM(), NTheta, pNode, R0, Rh, and RotManip::VecRot().
|
inlinevirtual |
|
inlinevirtual |
Reimplemented from Elem.
Definition at line 574 of file planej.h.
References DofOrder::ALGEBRAIC, and ASSERT.
|
virtual |
Reimplemented from SimulationEntity.
Definition at line 4297 of file planej.cc.
References DofOrder::ALGEBRAIC, ASSERTMSGBREAK, and iGetNumDof().
|
inlinevirtual |
|
inlinevirtual |
Implements SubjectToInitialAssembly.
|
inlinevirtual |
|
virtual |
Reimplemented from SimulationEntity.
Definition at line 4786 of file planej.cc.
Referenced by dGetPrivData().
|
virtual |
|
virtual |
Implements SubjectToInitialAssembly.
Definition at line 4529 of file planej.cc.
References FullSubMatrixHandler::Add(), Vec3::Cross(), d, Vec3::dGet(), F, WithLabel::GetLabel(), StructNode::GetRRef(), Mat3x3::GetVec(), StructNode::GetWRef(), DofOwnerOwner::iGetFirstIndex(), StructDispNode::iGetFirstPositionIndex(), InitialWorkSpaceDim(), M, MatCross, MatCrossCross, MBDYN_EXCEPT_ARGS, pNode, FullSubMatrixHandler::PutCoef(), FullSubMatrixHandler::PutColIndex(), FullSubMatrixHandler::PutRowIndex(), R, R0, FullSubMatrixHandler::ResizeReset(), Rh, and VariableSubMatrixHandler::SetFull().
|
virtual |
Implements SubjectToInitialAssembly.
Definition at line 4691 of file planej.cc.
References VectorHandler::Add(), Vec3::Cross(), d, DEBUGCOUT, Vec3::dGet(), F, StructNode::GetRCurr(), StructDispNode::GetVCurr(), Mat3x3::GetVec(), StructNode::GetWCurr(), StructDispNode::GetXCurr(), DofOwnerOwner::iGetFirstIndex(), StructDispNode::iGetFirstPositionIndex(), InitialWorkSpaceDim(), M, pNode, VectorHandler::PutCoef(), SubVectorHandler::PutRowIndex(), R, R0, VectorHandler::ResizeReset(), Rh, VectorHandler::Sub(), and X0.
|
inlinevirtual |
Implements SubjectToInitialAssembly.
Definition at line 613 of file planej.h.
Referenced by InitialAssJac(), and InitialAssRes().
|
virtual |
Reimplemented from ToBeOutput.
Definition at line 4513 of file planej.cc.
References ToBeOutput::bToBeOutput(), dRaDegr, F, WithLabel::GetLabel(), StructNode::GetRCurr(), StructNode::GetWCurr(), OutputHandler::Joints(), M, MatR2EulerAngles(), Mat3x3::MulTM(), Joint::Output(), pNode, R0, and Rh.
|
virtual |
Reimplemented from SimulationEntity.
Definition at line 4260 of file planej.cc.
References STRLENOF.
|
virtual |
Reimplemented from SimulationEntity.
Definition at line 4329 of file planej.cc.
References F, HighParser::GetReal(), MBDynParser::GetVec3(), and M.
|
virtual |
Implements Elem.
Definition at line 4336 of file planej.cc.
References d, Vec3::dGet(), dTheta, F, WithLabel::GetLabel(), Mat3x3::GetVec(), M, pNode, R0, Joint::Restart(), Rh, Write(), Vec3::Write(), and X0.
|
virtual |
Reimplemented from Joint.
Definition at line 4219 of file planej.cc.
References calcInitdTheta, d, dTheta, dThetaWrapped, StructNode::GetRCurr(), StructDispNode::GetXCurr(), Mat3x3::MulTM(), Mat3x3::MulTV(), pNode, R, R0, Rh, RotManip::VecRot(), and X0.
|
private |
Definition at line 530 of file planej.h.
Referenced by SetValue().
|
private |
Definition at line 526 of file planej.h.
Referenced by AssJac(), AssRes(), InitialAssJac(), InitialAssRes(), Restart(), and SetValue().
|
mutableprivate |
Definition at line 532 of file planej.h.
Referenced by AfterConvergence(), Restart(), and SetValue().
|
mutableprivate |
Definition at line 532 of file planej.h.
Referenced by AfterConvergence(), dGetPrivData(), and SetValue().
|
private |
Definition at line 528 of file planej.h.
Referenced by AssJac(), AssRes(), dGetPrivData(), InitialAssJac(), InitialAssRes(), Output(), ReadInitialState(), and Restart().
|
private |
Definition at line 529 of file planej.h.
Referenced by AssJac(), AssRes(), dGetPrivData(), InitialAssJac(), InitialAssRes(), Output(), ReadInitialState(), and Restart().
|
mutableprivate |
Definition at line 531 of file planej.h.
Referenced by AfterConvergence(), and dGetPrivData().
|
private |
Definition at line 523 of file planej.h.
Referenced by AfterConvergence(), AssJac(), AssRes(), dGetPrivData(), GetConnectedNodes(), InitialAssJac(), InitialAssRes(), Output(), Restart(), and SetValue().
|
private |
Definition at line 525 of file planej.h.
Referenced by AfterConvergence(), AssJac(), AssRes(), dGetPrivData(), InitialAssJac(), InitialAssRes(), Output(), Restart(), and SetValue().
|
private |
Definition at line 527 of file planej.h.
Referenced by AfterConvergence(), AssJac(), AssRes(), dGetPrivData(), InitialAssJac(), InitialAssRes(), Output(), Restart(), and SetValue().
|
private |
Definition at line 524 of file planej.h.
Referenced by AssRes(), InitialAssRes(), Restart(), and SetValue().