MBDyn-1.7.3
|
#include <accelerometer.h>
Public Member Functions | |
Accelerometer (unsigned int uL, const DofOwner *pD, const StructNode *pS, const ScalarDifferentialNode *pA, const Vec3 &TmpDir, doublereal dO, doublereal dT, doublereal dC, doublereal dK, flag fOut) | |
~Accelerometer (void) | |
virtual Electric::Type | GetElectricType (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 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 | SetInitialValue (VectorHandler &) |
virtual void | SetValue (DataManager *pDM, VectorHandler &X, VectorHandler &, SimulationEntity::Hints *ph=0) |
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 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 unsigned int | iGetNumPrivData (void) const |
virtual unsigned int | iGetPrivDataIdx (const char *s) const |
virtual doublereal | dGetPrivData (unsigned int i) const |
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 |
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 Electric | |
Electric (unsigned int uL, const DofOwner *pDO, flag fOut) | |
virtual | ~Electric (void) |
virtual Elem::Type | GetElemType (void) 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 |
Private Attributes | |
const StructNode * | pStrNode |
const ScalarDifferentialNode * | pAbsNode |
Vec3 | Dir |
doublereal | dOmega |
doublereal | dTau |
doublereal | dCsi |
doublereal | dKappa |
Additional Inherited Members | |
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 Types inherited from Electric | |
enum | Type { UNKNOWN = -1, ACCELEROMETER = 0, DISPLACEMENT, DISCRETECONTROL, MOTOR, LASTELECTRICTYPE } |
Protected Attributes inherited from WithLabel | |
unsigned int | uLabel |
std::string | sName |
Protected Attributes inherited from ToBeOutput | |
flag | fOutput |
Definition at line 39 of file accelerometer.h.
Accelerometer::Accelerometer | ( | unsigned int | uL, |
const DofOwner * | pD, | ||
const StructNode * | pS, | ||
const ScalarDifferentialNode * | pA, | ||
const Vec3 & | TmpDir, | ||
doublereal | dO, | ||
doublereal | dT, | ||
doublereal | dC, | ||
doublereal | dK, | ||
flag | fOut | ||
) |
Accelerometer::~Accelerometer | ( | void | ) |
Definition at line 59 of file accelerometer.cc.
References NO_OP.
|
virtual |
Implements Elem.
Definition at line 83 of file accelerometer.cc.
References Vec3::Cross(), dCsi, DEBUGCOUT, Vec3::dGet(), Dir, dKappa, dOmega, dTau, StructNode::GetRRef(), StructDispNode::GetVCurr(), DofOwnerOwner::iGetFirstIndex(), StructDispNode::iGetFirstPositionIndex(), pAbsNode, pStrNode, SparseSubMatrixHandler::PutItem(), SparseSubMatrixHandler::ResizeReset(), and VariableSubMatrixHandler::SetSparse().
|
virtual |
Implements Elem.
Definition at line 166 of file accelerometer.cc.
References dCsi, DEBUGCOUT, Dir, dKappa, dOmega, grad::Dot(), dTau, StructNode::GetRCurr(), StructDispNode::GetVCurr(), DofOwnerOwner::iGetFirstIndex(), pAbsNode, pStrNode, VectorHandler::PutCoef(), SubVectorHandler::PutRowIndex(), R, VectorHandler::ResizeReset(), and WorkSpaceDim().
|
inlinevirtual |
Reimplemented from Elem.
Definition at line 91 of file accelerometer.h.
References pAbsNode, and pStrNode.
|
virtual |
Reimplemented from Elem.
Definition at line 225 of file accelerometer.cc.
References ASSERT, and DofOrder::DIFFERENTIAL.
|
inlinevirtual |
Implements Electric.
Definition at line 59 of file accelerometer.h.
References Electric::ACCELEROMETER.
|
virtual |
|
virtual |
Implements Elem.
Definition at line 66 of file accelerometer.cc.
References dCsi, Dir, dKappa, dOmega, dTau, WithLabel::GetLabel(), pAbsNode, pStrNode, Electric::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 DofOwnerOwner.
Definition at line 239 of file accelerometer.cc.
References NO_OP.
|
virtual |
Reimplemented from SimulationEntity.
Definition at line 245 of file accelerometer.cc.
References Dir, grad::Dot(), StructNode::GetRCurr(), StructDispNode::GetVCurr(), DofOwnerOwner::iGetFirstIndex(), pStrNode, and VectorHandler::PutCoef().
|
private |
Definition at line 46 of file accelerometer.h.
|
private |
Definition at line 43 of file accelerometer.h.
Referenced by AssJac(), AssRes(), Restart(), and SetValue().
|
private |
Definition at line 47 of file accelerometer.h.
|
private |
Definition at line 44 of file accelerometer.h.
|
private |
Definition at line 45 of file accelerometer.h.
|
private |
Definition at line 42 of file accelerometer.h.
Referenced by AssJac(), AssRes(), GetConnectedNodes(), and Restart().
|
private |
Definition at line 41 of file accelerometer.h.
Referenced by AssJac(), AssRes(), GetConnectedNodes(), Restart(), and SetValue().