MBDyn-1.7.3
|
#include <genj.h>
Public Member Functions | |
DistanceJointWithOffset (unsigned int uL, const DofOwner *pDO, const StructNode *pN1, const StructNode *pN2, const Vec3 &f1Tmp, const Vec3 &f2Tmp, const DriveCaller *pDC, flag fOut) | |
~DistanceJointWithOffset (void) | |
virtual Joint::Type | GetJointType (void) const |
virtual std::ostream & | Restart (std::ostream &out) const |
virtual unsigned int | iGetNumDof (void) const |
virtual DofOrder::Order | GetDofType (unsigned int i) const |
virtual DofOrder::Order | GetEqType (unsigned int i) const |
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 void | SetInitialValue (VectorHandler &X) |
virtual void | SetValue (DataManager *pDM, VectorHandler &X, VectorHandler &XP, SimulationEntity::Hints *ph=0) |
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 & | 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 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 Hint * | ParseHint (DataManager *pDM, const char *s) 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) |
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 | 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) |
![]() | |
DriveOwner (const DriveCaller *pDC=0) | |
DriveOwner (const DriveOwner &drive) | |
virtual | ~DriveOwner (void) |
void | Set (const DriveCaller *pDC) |
DriveCaller * | pGetDriveCaller (void) const |
doublereal | dGet (const doublereal &dVar) const |
doublereal | dGet (void) const |
bool | bIsDifferentiable (void) const |
doublereal | dGetP (const doublereal &dVar) const |
doublereal | dGetP (void) const |
Private Attributes | |
const StructNode * | pNode1 |
const StructNode * | pNode2 |
Vec3 | f1 |
Vec3 | f2 |
Vec3 | v |
doublereal | dAlpha |
DistanceJointWithOffset::DistanceJointWithOffset | ( | unsigned int | uL, |
const DofOwner * | pDO, | ||
const StructNode * | pN1, | ||
const StructNode * | pN2, | ||
const Vec3 & | f1Tmp, | ||
const Vec3 & | f2Tmp, | ||
const DriveCaller * | pDC, | ||
flag | fOut | ||
) |
Definition at line 608 of file genj.cc.
References ASSERT, StructDispNode::GetNodeType(), pNode1, pNode2, and Node::STRUCTURAL.
DistanceJointWithOffset::~DistanceJointWithOffset | ( | void | ) |
|
virtual |
Implements Elem.
Definition at line 684 of file genj.cc.
References ASSERT, Vec3::Cross(), dAlpha, DEBUGCOUT, Vec3::dGet(), DriveCaller::dGet(), Vec3::Dot(), f1, f2, StructNode::GetRRef(), DofOwnerOwner::iGetFirstIndex(), StructDispNode::iGetFirstMomentumIndex(), StructDispNode::iGetFirstPositionIndex(), MatCrossCross, DriveOwner::pGetDriveCaller(), pNode1, pNode2, SparseSubMatrixHandler::PutCross(), SparseSubMatrixHandler::PutItem(), SparseSubMatrixHandler::PutMat3x3(), SparseSubMatrixHandler::ResizeReset(), VariableSubMatrixHandler::SetSparse(), grad::sqrt(), and v.
|
virtual |
Implements Elem.
Definition at line 796 of file genj.cc.
References VectorHandler::Add(), ASSERT, dAlpha, DEBUGCOUT, DriveCaller::dGet(), f1, f2, grad::fabs(), WithLabel::GetLabel(), StructNode::GetRCurr(), StructDispNode::GetXCurr(), DofOwnerOwner::iGetFirstIndex(), StructDispNode::iGetFirstMomentumIndex(), MBDYN_EXCEPT_ARGS, DriveOwner::pGetDriveCaller(), pNode1, pNode2, VectorHandler::PutCoef(), SubVectorHandler::PutRowIndex(), VectorHandler::ResizeReset(), grad::sqrt(), VectorHandler::Sub(), v, and WorkSpaceDim().
|
virtual |
Reimplemented from SimulationEntity.
Definition at line 656 of file genj.cc.
References ASSERT, DriveOwner::dGet(), and MBDYN_EXCEPT_ARGS.
|
inlinevirtual |
|
inlinevirtual |
Reimplemented from Elem.
Definition at line 170 of file genj.h.
References DofOrder::ALGEBRAIC, and ASSERT.
|
inlinevirtual |
Reimplemented from SimulationEntity.
Definition at line 176 of file genj.h.
References DofOrder::DIFFERENTIAL.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
Reimplemented from SimulationEntity.
|
virtual |
|
virtual |
Implements SubjectToInitialAssembly.
Definition at line 878 of file genj.cc.
References FullSubMatrixHandler::Add(), ASSERT, Vec3::Cross(), dAlpha, DEBUGCOUT, Vec3::dGet(), DriveCaller::dGet(), Vec3::Dot(), f1, f2, StructNode::GetRRef(), StructNode::GetWRef(), DofOwnerOwner::iGetFirstIndex(), StructDispNode::iGetFirstPositionIndex(), MatCross, MatCrossCross, DriveOwner::pGetDriveCaller(), pNode1, pNode2, grad::pow(), FullSubMatrixHandler::PutCoef(), FullSubMatrixHandler::PutColIndex(), FullSubMatrixHandler::PutRowIndex(), FullSubMatrixHandler::ResizeReset(), VariableSubMatrixHandler::SetFull(), grad::sqrt(), FullSubMatrixHandler::Sub(), and v.
|
virtual |
Implements SubjectToInitialAssembly.
Definition at line 1046 of file genj.cc.
References ASSERT, Vec3::Cross(), grad::Cross(), dAlpha, DEBUGCOUT, DriveCaller::dGet(), Vec3::Dot(), f1, f2, grad::fabs(), WithLabel::GetLabel(), StructNode::GetRCurr(), StructDispNode::GetVCurr(), StructNode::GetWCurr(), StructDispNode::GetXCurr(), DofOwnerOwner::iGetFirstIndex(), StructDispNode::iGetFirstPositionIndex(), MBDYN_EXCEPT_ARGS, DriveOwner::pGetDriveCaller(), pNode1, pNode2, VectorHandler::Put(), VectorHandler::PutCoef(), SubVectorHandler::PutRowIndex(), VectorHandler::ResizeReset(), grad::sqrt(), and v.
|
inlinevirtual |
Implements SubjectToInitialAssembly.
|
virtual |
Reimplemented from ToBeOutput.
Definition at line 859 of file genj.cc.
References ToBeOutput::bToBeOutput(), dAlpha, DriveOwner::dGet(), grad::fabs(), WithLabel::GetLabel(), OutputHandler::Joints(), Joint::Output(), v, and Zero3.
|
virtual |
Implements Elem.
Definition at line 669 of file genj.cc.
References f1, f2, WithLabel::GetLabel(), DriveOwner::pGetDriveCaller(), pNode1, pNode2, Joint::Restart(), DriveCaller::Restart(), and Vec3::Write().
|
virtual |
Initialize state vector used in initial assembly. May set internal states of the element. Do not rely on being always called, because initial assembly could be implicitly or explicitly skipped
Reimplemented from Joint.
Definition at line 1116 of file genj.cc.
References DriveCaller::dGet(), Vec3::Dot(), f1, f2, grad::fabs(), WithLabel::GetLabel(), StructNode::GetRCurr(), StructDispNode::GetVCurr(), StructNode::GetWCurr(), StructDispNode::GetXCurr(), DofOwnerOwner::iGetFirstIndex(), MBDYN_EXCEPT_ARGS, DriveOwner::pGetDriveCaller(), pNode1, pNode2, VectorHandler::Put(), grad::sqrt(), and v.
|
virtual |
Reimplemented from Joint.
Definition at line 1151 of file genj.cc.
References DriveCaller::dGet(), Vec3::Dot(), f1, f2, grad::fabs(), WithLabel::GetLabel(), StructNode::GetRCurr(), StructDispNode::GetXCurr(), DofOwnerOwner::iGetFirstIndex(), MBDYN_EXCEPT_ARGS, DriveHint::pCreateDrive(), DriveOwner::pGetDriveCaller(), pNode1, pNode2, VectorHandler::Put(), DriveOwner::Set(), grad::sqrt(), WithLabel::uLabel, and v.
|
private |
Definition at line 147 of file genj.h.
Referenced by AssJac(), AssRes(), InitialAssJac(), InitialAssRes(), and Output().
|
private |
Definition at line 144 of file genj.h.
Referenced by AssJac(), AssRes(), InitialAssJac(), InitialAssRes(), Restart(), SetInitialValue(), and SetValue().
|
private |
Definition at line 145 of file genj.h.
Referenced by AssJac(), AssRes(), InitialAssJac(), InitialAssRes(), Restart(), SetInitialValue(), and SetValue().
|
private |
Definition at line 142 of file genj.h.
Referenced by AssJac(), AssRes(), DistanceJointWithOffset(), GetConnectedNodes(), InitialAssJac(), InitialAssRes(), Restart(), SetInitialValue(), and SetValue().
|
private |
Definition at line 143 of file genj.h.
Referenced by AssJac(), AssRes(), DistanceJointWithOffset(), GetConnectedNodes(), InitialAssJac(), InitialAssRes(), Restart(), SetInitialValue(), and SetValue().
|
mutableprivate |
Definition at line 146 of file genj.h.
Referenced by AssJac(), AssRes(), InitialAssJac(), InitialAssRes(), Output(), SetInitialValue(), and SetValue().