MBDyn-1.7.3
|
#include <genj.h>
Public Member Functions | |
DistanceJoint (unsigned int uL, const DofOwner *pDO, const StructDispNode *pN1, const StructDispNode *pN2, const DriveCaller *pDC, flag fOut) | |
~DistanceJoint (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 |
Public Member Functions inherited from Elem | |
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 |
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 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) |
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 | 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) |
Public Member Functions inherited from DriveOwner | |
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 StructDispNode * | pNode1 |
const StructDispNode * | pNode2 |
Vec3 | v |
doublereal | dAlpha |
DistanceJoint::DistanceJoint | ( | unsigned int | uL, |
const DofOwner * | pDO, | ||
const StructDispNode * | pN1, | ||
const StructDispNode * | pN2, | ||
const DriveCaller * | pDC, | ||
flag | fOut | ||
) |
DistanceJoint::~DistanceJoint | ( | void | ) |
|
virtual |
Implements Elem.
Definition at line 111 of file genj.cc.
References ASSERT, dAlpha, DEBUGCOUT, Vec3::dGet(), DriveCaller::dGet(), Vec3::Dot(), DofOwnerOwner::iGetFirstIndex(), StructDispNode::iGetFirstMomentumIndex(), StructDispNode::iGetFirstPositionIndex(), DriveOwner::pGetDriveCaller(), pNode1, pNode2, SparseSubMatrixHandler::PutItem(), SparseSubMatrixHandler::ResizeReset(), VariableSubMatrixHandler::SetSparse(), grad::sqrt(), and v.
|
virtual |
Implements Elem.
Definition at line 202 of file genj.cc.
References VectorHandler::Add(), ASSERT, dAlpha, DEBUGCOUT, DriveCaller::dGet(), grad::fabs(), WithLabel::GetLabel(), 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 88 of file genj.cc.
References ASSERT, DriveOwner::dGet(), and MBDYN_EXCEPT_ARGS.
|
inlinevirtual |
|
inlinevirtual |
Reimplemented from Elem.
Definition at line 70 of file genj.h.
References DofOrder::ALGEBRAIC, and ASSERT.
|
inlinevirtual |
Reimplemented from SimulationEntity.
Definition at line 76 of file genj.h.
References DofOrder::DIFFERENTIAL.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
|
virtual |
|
virtual |
Implements SubjectToInitialAssembly.
Definition at line 290 of file genj.cc.
References ASSERT, dAlpha, DEBUGCOUT, Vec3::dGet(), DriveCaller::dGet(), Vec3::Dot(), StructDispNode::GetVCurr(), DofOwnerOwner::iGetFirstIndex(), StructDispNode::iGetFirstPositionIndex(), DriveOwner::pGetDriveCaller(), pNode1, pNode2, SparseSubMatrixHandler::PutItem(), SparseSubMatrixHandler::ResizeReset(), VariableSubMatrixHandler::SetSparse(), grad::sqrt(), and v.
|
virtual |
Implements SubjectToInitialAssembly.
Definition at line 447 of file genj.cc.
References VectorHandler::Add(), ASSERT, dAlpha, DEBUGCOUT, DriveCaller::dGet(), grad::Dot(), grad::fabs(), WithLabel::GetLabel(), StructDispNode::GetVCurr(), StructDispNode::GetXCurr(), DofOwnerOwner::iGetFirstIndex(), StructDispNode::iGetFirstPositionIndex(), MBDYN_EXCEPT_ARGS, DriveOwner::pGetDriveCaller(), pNode1, pNode2, VectorHandler::PutCoef(), SubVectorHandler::PutRowIndex(), VectorHandler::ResizeReset(), grad::sqrt(), and v.
|
inlinevirtual |
Implements SubjectToInitialAssembly.
|
virtual |
Reimplemented from ToBeOutput.
Definition at line 268 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 100 of file genj.cc.
References WithLabel::GetLabel(), DriveOwner::pGetDriveCaller(), pNode1, pNode2, Joint::Restart(), and DriveCaller::Restart().
|
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 521 of file genj.cc.
References DriveCaller::dGet(), Vec3::Dot(), grad::fabs(), WithLabel::GetLabel(), StructDispNode::GetXCurr(), DofOwnerOwner::iGetFirstIndex(), MBDYN_EXCEPT_ARGS, DriveOwner::pGetDriveCaller(), pNode1, pNode2, VectorHandler::Put(), grad::sqrt(), and v.
|
virtual |
Reimplemented from Joint.
Definition at line 547 of file genj.cc.
References DriveCaller::dGet(), Vec3::Dot(), grad::fabs(), WithLabel::GetLabel(), 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 49 of file genj.h.
Referenced by AssJac(), AssRes(), InitialAssJac(), InitialAssRes(), and Output().
|
private |
Definition at line 46 of file genj.h.
Referenced by AssJac(), AssRes(), GetConnectedNodes(), InitialAssJac(), InitialAssRes(), Restart(), SetInitialValue(), and SetValue().
|
private |
Definition at line 47 of file genj.h.
Referenced by AssJac(), AssRes(), GetConnectedNodes(), InitialAssJac(), InitialAssRes(), Restart(), SetInitialValue(), and SetValue().
|
mutableprivate |
Definition at line 48 of file genj.h.
Referenced by AssJac(), AssRes(), InitialAssJac(), InitialAssRes(), Output(), SetInitialValue(), and SetValue().