MBDyn-1.7.3
|
#include <totalequation.h>
Public Member Functions | |
TotalReaction (unsigned int uL, const DofOwner *pDO, bool bPos[3], bool bRot[3], const StructNode *pN1, const Vec3 &f1Tmp, const Mat3x3 &R1hTmp, const Mat3x3 &R1hrTmp, const StructNode *pN2, const Vec3 &f2Tmp, const Mat3x3 &R2hTmp, const Mat3x3 &R2hrTmp, TotalEquation *t_elm, flag fOut) | |
~TotalReaction (void) | |
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 |
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) |
virtual void | AfterConvergence (const VectorHandler &X, const VectorHandler &XP, const VectorHandler &XPP) |
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 | 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 |
![]() | |
Elem (unsigned int uL, flag fOut) | |
virtual | ~Elem (void) |
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 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 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 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) |
Private Attributes | |
const StructNode * | pNode1 |
const StructNode * | pNode2 |
Vec3 | f1 |
Mat3x3 | R1h |
Mat3x3 | R1hr |
Vec3 | f2 |
Mat3x3 | R2h |
Mat3x3 | R2hr |
bool | bPosActive [3] |
bool | bRotActive [3] |
unsigned int | nConstraints |
unsigned int | nPosConstraints |
unsigned int | nRotConstraints |
unsigned int | iPosIncid [3] |
unsigned int | iRotIncid [3] |
Vec3 | tilde_f1 |
Vec3 | M |
Vec3 | F |
Vec3 | ThetaDelta |
Vec3 | ThetaDeltaPrev |
TotalEquation * | total_equation_element |
Definition at line 249 of file totalequation.h.
TotalReaction::TotalReaction | ( | unsigned int | uL, |
const DofOwner * | pDO, | ||
bool | bPos[3], | ||
bool | bRot[3], | ||
const StructNode * | pN1, | ||
const Vec3 & | f1Tmp, | ||
const Mat3x3 & | R1hTmp, | ||
const Mat3x3 & | R1hrTmp, | ||
const StructNode * | pN2, | ||
const Vec3 & | f2Tmp, | ||
const Mat3x3 & | R2hTmp, | ||
const Mat3x3 & | R2hrTmp, | ||
TotalEquation * | t_elm, | ||
flag | fOut | ||
) |
Definition at line 1232 of file totalequation.cc.
References bPosActive, bRotActive, WithLabel::GetLabel(), iPosIncid, iRotIncid, MBDYN_EXCEPT_ARGS, TotalEquation::nConstraints, nConstraints, nPosConstraints, nRotConstraints, and total_equation_element.
TotalReaction::~TotalReaction | ( | void | ) |
Definition at line 1278 of file totalequation.cc.
References NO_OP.
|
virtual |
Reimplemented from SimulationEntity.
Definition at line 1553 of file totalequation.cc.
References ThetaDelta, ThetaDeltaPrev, and Unwrap().
|
virtual |
Reimplemented from SimulationEntity.
Definition at line 1560 of file totalequation.cc.
References ThetaDelta, ThetaDeltaPrev, and Unwrap().
|
virtual |
Implements Elem.
Definition at line 1625 of file totalequation.cc.
References FullSubMatrixHandler::Add(), DEBUGCOUT, F, f2, StructNode::GetRCurr(), StructNode::GetRRef(), StructDispNode::GetXCurr(), DofOwnerOwner::iGetFirstIndex(), StructDispNode::iGetFirstMomentumIndex(), StructDispNode::iGetFirstPositionIndex(), iPosIncid, iRotIncid, M, MatCross, MatCrossCross, nConstraints, nPosConstraints, nRotConstraints, pNode1, pNode2, FullSubMatrixHandler::PutColIndex(), FullSubMatrixHandler::PutRowIndex(), R1h, R1hr, FullSubMatrixHandler::ResizeReset(), VariableSubMatrixHandler::SetFull(), FullSubMatrixHandler::Sub(), total_equation_element, and WorkSpaceDim().
|
virtual |
Implements Elem.
Definition at line 1780 of file totalequation.cc.
References VectorHandler::Add(), Vec3::Cross(), DEBUGCOUT, F, f2, StructNode::GetRCurr(), StructDispNode::GetXCurr(), DofOwnerOwner::iGetFirstIndex(), StructDispNode::iGetFirstMomentumIndex(), iPosIncid, iRotIncid, M, nPosConstraints, nRotConstraints, pNode1, pNode2, SubVectorHandler::PutRowIndex(), R1h, R1hr, R2hr, VectorHandler::ResizeReset(), VectorHandler::Sub(), total_equation_element, and WorkSpaceDim().
|
virtual |
Reimplemented from Elem.
Definition at line 1284 of file totalequation.cc.
References bPosActive, bRotActive, idx2xyz, DofOwnerOwner::iGetFirstIndex(), nConstraints, nPosConstraints, nRotConstraints, and total_equation_element.
|
virtual |
Reimplemented from Elem.
Definition at line 1376 of file totalequation.cc.
|
virtual |
Reimplemented from SimulationEntity.
Definition at line 2267 of file totalequation.cc.
References ASSERT, bPosActive, bRotActive, Vec3::Cross(), F, f1, f2, StructNode::GetRCurr(), StructDispNode::GetVCurr(), Mat3x3::GetVec(), StructNode::GetWCurr(), StructDispNode::GetXCurr(), M, Mat3x3::MulTV(), pNode1, pNode2, R1h, ThetaDelta, ThetaDeltaPrev, and Unwrap().
|
inlinevirtual |
Reimplemented from Elem.
Definition at line 405 of file totalequation.h.
References pNode1, and pNode2.
|
inlinevirtual |
Reimplemented from Elem.
Definition at line 331 of file totalequation.h.
References DofOrder::ALGEBRAIC, ASSERT, and nConstraints.
|
virtual |
Reimplemented from SimulationEntity.
Definition at line 1837 of file totalequation.cc.
References DofOrder::ALGEBRAIC, ASSERTMSGBREAK, and iGetNumDof().
|
inlinevirtual |
|
inlinevirtual |
Implements SubjectToInitialAssembly.
Definition at line 377 of file totalequation.h.
References nConstraints.
|
inlinevirtual |
|
virtual |
Reimplemented from SimulationEntity.
Definition at line 2201 of file totalequation.cc.
|
virtual |
Reimplemented from SimulationEntity.
Definition at line 2207 of file totalequation.cc.
References ASSERT.
|
virtual |
Implements SubjectToInitialAssembly.
Definition at line 1880 of file totalequation.cc.
References FullSubMatrixHandler::Add(), FullSubMatrixHandler::AddT(), Vec3::Cross(), F, f2, StructNode::GetRCurr(), StructNode::GetRRef(), StructDispNode::GetVCurr(), StructNode::GetWCurr(), StructDispNode::GetXCurr(), DofOwnerOwner::iGetFirstIndex(), StructDispNode::iGetFirstPositionIndex(), InitialWorkSpaceDim(), iPosIncid, iRotIncid, M, MatCross, MatCrossCross, nConstraints, nPosConstraints, nRotConstraints, pNode1, pNode2, FullSubMatrixHandler::PutColIndex(), FullSubMatrixHandler::PutRowIndex(), R1h, R1hr, FullSubMatrixHandler::ResizeReset(), VariableSubMatrixHandler::SetFull(), FullSubMatrixHandler::Sub(), FullSubMatrixHandler::SubT(), total_equation_element, and Zero3.
|
virtual |
Implements SubjectToInitialAssembly.
Definition at line 2114 of file totalequation.cc.
References VectorHandler::Add(), Vec3::Cross(), DEBUGCOUT, F, f2, StructNode::GetRCurr(), StructNode::GetRRef(), StructDispNode::GetVCurr(), StructNode::GetWCurr(), StructDispNode::GetXCurr(), DofOwnerOwner::iGetFirstIndex(), StructDispNode::iGetFirstPositionIndex(), InitialWorkSpaceDim(), iPosIncid, iRotIncid, M, nConstraints, nPosConstraints, nRotConstraints, pNode1, pNode2, SubVectorHandler::PutRowIndex(), R1h, R1hr, R2hr, VectorHandler::ResizeReset(), VectorHandler::Sub(), total_equation_element, and Zero3.
|
inlinevirtual |
Implements SubjectToInitialAssembly.
Definition at line 381 of file totalequation.h.
References nConstraints.
Referenced by InitialAssJac(), and InitialAssRes().
|
virtual |
Reimplemented from ToBeOutput.
Definition at line 1847 of file totalequation.cc.
References ToBeOutput::bToBeOutput(), F, f2, WithLabel::GetLabel(), StructNode::GetRCurr(), StructDispNode::GetVCurr(), StructNode::GetWCurr(), StructDispNode::GetXCurr(), OutputHandler::Joints(), M, Mat3x3::MulTM(), Mat3x3::MulTV(), Joint::Output(), pNode1, pNode2, R1h, R1hr, R2hr, tilde_f1, V1, V2, and RotManip::VecRot().
|
virtual |
Reimplemented from SimulationEntity.
Definition at line 1476 of file totalequation.cc.
References STRLENOF.
|
virtual |
Implements Elem.
Definition at line 1568 of file totalequation.cc.
References bPosActive, bRotActive, f1, f2, WithLabel::GetLabel(), Mat3x3::GetVec(), pNode1, pNode2, R1h, R1hr, R2h, R2hr, Joint::Restart(), and Vec3::Write().
|
virtual |
Reimplemented from Joint.
Definition at line 1383 of file totalequation.cc.
References f1, f2, StructNode::GetRCurr(), StructDispNode::GetXCurr(), MBDYN_EXCEPT_ARGS, Mat3x3::MulTM(), Mat3x3::MulTV(), pNode1, pNode2, Joint::JointDriveHint< T >::pTDH, R1h, R1hr, R2h, R2hr, tilde_f1, and WithLabel::uLabel.
Implements Elem.
Definition at line 353 of file totalequation.h.
References nConstraints.
Referenced by AssJac(), and AssRes().
|
private |
Definition at line 260 of file totalequation.h.
Referenced by DescribeDof(), dGetPrivData(), Restart(), and TotalReaction().
|
private |
Definition at line 261 of file totalequation.h.
Referenced by DescribeDof(), dGetPrivData(), Restart(), and TotalReaction().
|
mutableprivate |
Definition at line 273 of file totalequation.h.
Referenced by AssJac(), AssRes(), dGetPrivData(), InitialAssJac(), InitialAssRes(), and Output().
|
private |
Definition at line 254 of file totalequation.h.
Referenced by dGetPrivData(), Restart(), and SetValue().
|
private |
Definition at line 257 of file totalequation.h.
Referenced by AssJac(), AssRes(), dGetPrivData(), InitialAssJac(), InitialAssRes(), Output(), Restart(), and SetValue().
|
private |
Definition at line 267 of file totalequation.h.
Referenced by AssJac(), AssRes(), InitialAssJac(), InitialAssRes(), and TotalReaction().
|
private |
Definition at line 268 of file totalequation.h.
Referenced by AssJac(), AssRes(), InitialAssJac(), InitialAssRes(), and TotalReaction().
|
mutableprivate |
Definition at line 272 of file totalequation.h.
Referenced by AssJac(), AssRes(), dGetPrivData(), InitialAssJac(), InitialAssRes(), and Output().
|
private |
Definition at line 263 of file totalequation.h.
Referenced by AssJac(), DescribeDof(), GetDofType(), iGetInitialNumDof(), InitialAssJac(), InitialAssRes(), InitialWorkSpaceDim(), TotalReaction(), and WorkSpaceDim().
|
private |
Definition at line 264 of file totalequation.h.
Referenced by AssJac(), AssRes(), DescribeDof(), InitialAssJac(), InitialAssRes(), and TotalReaction().
|
private |
Definition at line 265 of file totalequation.h.
Referenced by AssJac(), AssRes(), DescribeDof(), InitialAssJac(), InitialAssRes(), and TotalReaction().
|
private |
Definition at line 252 of file totalequation.h.
Referenced by AssJac(), AssRes(), dGetPrivData(), GetConnectedNodes(), InitialAssJac(), InitialAssRes(), Output(), Restart(), and SetValue().
|
private |
Definition at line 253 of file totalequation.h.
Referenced by AssJac(), AssRes(), dGetPrivData(), GetConnectedNodes(), InitialAssJac(), InitialAssRes(), Output(), Restart(), and SetValue().
|
private |
Definition at line 255 of file totalequation.h.
Referenced by AssJac(), AssRes(), dGetPrivData(), InitialAssJac(), InitialAssRes(), Output(), Restart(), and SetValue().
|
private |
Definition at line 256 of file totalequation.h.
Referenced by AssJac(), AssRes(), InitialAssJac(), InitialAssRes(), Output(), Restart(), and SetValue().
|
private |
Definition at line 258 of file totalequation.h.
Referenced by Restart(), and SetValue().
|
private |
Definition at line 259 of file totalequation.h.
Referenced by AssRes(), InitialAssRes(), Output(), Restart(), and SetValue().
|
mutableprivate |
Definition at line 274 of file totalequation.h.
Referenced by AfterConvergence(), and dGetPrivData().
|
mutableprivate |
Definition at line 275 of file totalequation.h.
Referenced by AfterConvergence(), and dGetPrivData().
|
private |
Definition at line 270 of file totalequation.h.
Referenced by Output(), and SetValue().
|
private |
Definition at line 277 of file totalequation.h.
Referenced by AssJac(), AssRes(), DescribeDof(), InitialAssJac(), InitialAssRes(), and TotalReaction().