MBDyn-1.7.3
|
#include <inertia.h>
Public Types | |
enum | { OUTPUT_LOG = ToBeOutput::OUTPUT_PRIVATE, OUTPUT_OUT = (ToBeOutput::OUTPUT_PRIVATE << 1), OUTPUT_ALWAYS = (ToBeOutput::OUTPUT_PRIVATE << 2) } |
Public Types inherited from Elem | |
enum | Type { UNKNOWN = -1, AIRPROPERTIES = 0, INDUCEDVELOCITY, AUTOMATICSTRUCTURAL, GRAVITY, BODY, JOINT, JOINT_REGULARIZATION, BEAM, PLATE, FORCE, INERTIA, ELECTRICBULK, ELECTRIC, THERMAL, HYDRAULIC, BULK, LOADABLE, DRIVEN, EXTERNAL, AEROMODAL, AERODYNAMIC, GENEL, SOCKETSTREAM_OUTPUT, RTAI_OUTPUT = SOCKETSTREAM_OUTPUT, LASTELEMTYPE } |
Public Types inherited from SimulationEntity | |
typedef std::vector< Hint * > | Hints |
Public Types inherited from ToBeOutput | |
enum | { OUTPUT = 0x1U, OUTPUT_MASK = 0xFU, OUTPUT_PRIVATE = 0x10U, OUTPUT_PRIVATE_MASK = ~OUTPUT_MASK } |
Public Member Functions | |
Inertia (unsigned int uL, const std::string &sN, std::set< const ElemGravityOwner * > &elements, const Vec3 &x0, const Mat3x3 &r0, std::ostream &log, flag fOut) | |
virtual | ~Inertia (void) |
doublereal | dGetM (void) const |
virtual Elem::Type | GetElemType (void) const |
virtual unsigned int | iGetInitialNumDof (void) const |
virtual std::ostream & | Restart (std::ostream &out) const |
virtual void | Output (OutputHandler &OH) const |
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 bool | bInverseDynamics (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 void | InitialWorkSpaceDim (integer *piNumRows, integer *piNumCols) const |
virtual VariableSubMatrixHandler & | InitialAssJac (VariableSubMatrixHandler &WorkMat, const VectorHandler &XCurr) |
virtual SubVectorHandler & | InitialAssRes (SubVectorHandler &WorkVec, const VectorHandler &XCurr) |
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 |
Public Member Functions inherited from Elem | |
Elem (unsigned int uL, flag fOut) | |
virtual | ~Elem (void) |
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) const |
virtual void | AssMats (VariableSubMatrixHandler &WorkMatA, VariableSubMatrixHandler &WorkMatB, const VectorHandler &XCurr, const VectorHandler &XPrimeCurr) |
void | SetInverseDynamicsFlags (unsigned uIDF) |
unsigned | GetInverseDynamicsFlags (void) const |
bool | bIsErgonomy (void) const |
bool | bIsRightHandSide (void) const |
virtual int | GetNumConnectedNodes (void) const |
virtual void | GetConnectedNodes (std::vector< const Node * > &connectedNodes) 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 DofOrder::Order | GetEqType (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 | Update (const VectorHandler &XCurr, InverseDynamics::Order iOrder) |
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 | 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 ElemGravityOwner | |
ElemGravityOwner (unsigned int uL, flag fOut) | |
virtual | ~ElemGravityOwner (void) |
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 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 CenterOfMass | |
CenterOfMass (std::set< const ElemGravityOwner * > &elements) | |
virtual | ~CenterOfMass (void) |
Protected Member Functions | |
Vec3 | GetS_int (void) const |
Mat3x3 | GetJ_int (void) const |
virtual void | Collect_int (void) |
virtual std::ostream & | Output_int (std::ostream &out) const |
void | OutputPrepare_int (OutputHandler &OH, std::string &name) |
void | OutputPrepare (OutputHandler &OH) |
Protected Member Functions inherited from ElemGravityOwner | |
virtual Vec3 | GetB_int (void) const |
virtual Vec3 | GetG_int (void) const |
Protected Attributes | |
unsigned | flags |
Vec3 | X0 |
Mat3x3 | R0 |
Mat3x3 | J0 |
Mat3x3 | R_princ |
Vec3 | J_princ |
Protected Attributes inherited from WithLabel | |
unsigned int | uLabel |
std::string | sName |
Protected Attributes inherited from ToBeOutput | |
flag | fOutput |
Protected Attributes inherited from GravityOwner | |
Gravity * | pGravity |
Protected Attributes inherited from CenterOfMass | |
std::set< const ElemGravityOwner * > | elements |
doublereal | dMass |
Vec3 | S |
Mat3x3 | J |
Vec3 | X_cm |
Vec3 | V_cm |
Vec3 | Omega_cm |
Mat3x3 | J_cm |
anonymous enum |
Enumerator | |
---|---|
OUTPUT_LOG | |
OUTPUT_OUT | |
OUTPUT_ALWAYS |
Inertia::Inertia | ( | unsigned int | uL, |
const std::string & | sN, | ||
std::set< const ElemGravityOwner * > & | elements, | ||
const Vec3 & | x0, | ||
const Mat3x3 & | r0, | ||
std::ostream & | log, | ||
flag | fOut | ||
) |
Definition at line 160 of file inertia.cc.
References Collect_int(), done, Eye3, flags, Vec3::IsNull(), Output_int(), WithLabel::PutName(), R0, and X0.
|
virtual |
Definition at line 206 of file inertia.cc.
References NO_OP.
|
virtual |
Implements Elem.
Definition at line 363 of file inertia.cc.
References VariableSubMatrixHandler::SetNullMatrix().
|
virtual |
Reimplemented from Elem.
Definition at line 408 of file inertia.cc.
References VariableSubMatrixHandler::SetNullMatrix().
|
virtual |
Implements Elem.
Definition at line 373 of file inertia.cc.
References Collect_int(), and VectorHandler::Resize().
|
virtual |
Reimplemented from Elem.
Definition at line 393 of file inertia.cc.
References Collect_int(), and VectorHandler::Resize().
|
virtual |
|
protectedvirtual |
Reimplemented from CenterOfMass.
Definition at line 233 of file inertia.cc.
References CenterOfMass::Collect_int(), CenterOfMass::dMass, Mat3x3::EigSym(), Eye3, flags, WithLabel::GetLabel(), CenterOfMass::J, J0, CenterOfMass::J_cm, J_princ, MatCrossCross, Mat3x3::MulMT(), R0, R_princ, X0, CenterOfMass::X_cm, and Zero3.
Referenced by AssRes(), Inertia(), and InitialAssRes().
|
virtual |
Reimplemented from ElemGravityOwner.
Definition at line 213 of file inertia.cc.
References CenterOfMass::dMass.
|
virtual |
Reimplemented from SimulationEntity.
Definition at line 561 of file inertia.cc.
References CenterOfMass::dMass, J0, J_princ, MBDYN_EXCEPT_ARGS, CenterOfMass::Omega_cm, CenterOfMass::V_cm, and CenterOfMass::X_cm.
|
virtual |
|
protectedvirtual |
Reimplemented from ElemGravityOwner.
Definition at line 126 of file inertia.cc.
References CenterOfMass::J.
|
protectedvirtual |
Reimplemented from ElemGravityOwner.
Definition at line 119 of file inertia.cc.
References CenterOfMass::S.
|
virtual |
Implements SubjectToInitialAssembly.
Definition at line 227 of file inertia.cc.
|
virtual |
Reimplemented from SimulationEntity.
Definition at line 457 of file inertia.cc.
|
virtual |
Reimplemented from SimulationEntity.
Definition at line 471 of file inertia.cc.
References STRLENOF.
|
virtual |
Implements SubjectToInitialAssembly.
Definition at line 429 of file inertia.cc.
References VariableSubMatrixHandler::SetNullMatrix().
|
virtual |
Implements SubjectToInitialAssembly.
Definition at line 438 of file inertia.cc.
References Collect_int(), and VectorHandler::Resize().
Implements SubjectToInitialAssembly.
Definition at line 421 of file inertia.cc.
|
virtual |
Reimplemented from ToBeOutput.
Definition at line 277 of file inertia.cc.
References CenterOfMass::dMass, ToBeOutput::fToBeOutput(), OutputHandler::GetCurrentStep(), OutputHandler::INERTIA, J_princ, Mat3x3::MulTV(), CenterOfMass::Omega_cm, OUTPUT_ALWAYS, Output_int(), Vec3::pGetVec(), R0, R_princ, OutputHandler::UseNetCDF(), OutputHandler::UseText(), CenterOfMass::V_cm, RotManip::VecRot(), X0, and CenterOfMass::X_cm.
|
protectedvirtual |
Reimplemented from CenterOfMass.
Definition at line 132 of file inertia.cc.
References CenterOfMass::dMass, WithLabel::GetLabel(), WithLabel::GetName(), CenterOfMass::J_cm, J_princ, MatCrossCross, Mat3x3::MulTM(), Mat3x3::MulTV(), CenterOfMass::Output_int(), R0, R_princ, RotManip::VecRot(), X0, and CenterOfMass::X_cm.
Referenced by Inertia(), and Output().
|
protectedvirtual |
Reimplemented from ToBeOutput.
Definition at line 323 of file inertia.cc.
References ToBeOutput::bToBeOutput(), OutputHandler::INERTIA, OutputPrepare_int(), and OutputHandler::UseNetCDF().
|
protected |
Definition at line 307 of file inertia.cc.
References ASSERT, WithLabel::GetLabel(), OutputHandler::IsOpen(), and OutputHandler::NETCDF.
Referenced by OutputPrepare().
|
virtual |
|
virtual |
Implements Elem.
Definition at line 356 of file inertia.cc.
|
protected |
Definition at line 82 of file inertia.h.
Referenced by Collect_int(), and Inertia().
|
protected |
Definition at line 85 of file inertia.h.
Referenced by Collect_int(), and dGetPrivData().
|
protected |
Definition at line 88 of file inertia.h.
Referenced by Collect_int(), dGetPrivData(), Output(), and Output_int().
|
protected |
Definition at line 84 of file inertia.h.
Referenced by Collect_int(), Inertia(), Output(), and Output_int().
|
protected |
Definition at line 87 of file inertia.h.
Referenced by Collect_int(), Output(), and Output_int().
|
protected |
Definition at line 83 of file inertia.h.
Referenced by Collect_int(), Inertia(), Output(), and Output_int().