MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
DummyStructNode Class Referenceabstract

#include <strnode.h>

Inheritance diagram for DummyStructNode:
Collaboration diagram for DummyStructNode:

Public Types

enum  Type {
  UNKNOWN = -1, OFFSET = 0, RELATIVEFRAME, PIVOTRELATIVEFRAME,
  LASTTYPE
}
 
- Public Types inherited from StructDispNode
enum  Type { UNKNOWN = -1, DYNAMIC = 0, STATIC, LASTSTRUCTDISPNODETYPE }
 
enum  Output { OUTPUT_ACCELERATIONS = (ToBeOutput::OUTPUT_PRIVATE << 0), OUTPUT_INERTIA = (ToBeOutput::OUTPUT_PRIVATE << 1) }
 
- Public Types inherited from Node
enum  Type {
  UNKNOWN = -1, ABSTRACT = 0, STRUCTURAL, ELECTRIC,
  THERMAL, PARAMETER, HYDRAULIC, LASTNODETYPE
}
 
- 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 StructNode
enum  Type {
  UNKNOWN = -1, DYNAMIC = 0, STATIC, MODAL,
  DUMMY, LASTSTRUCTNODETYPE
}
 

Public Member Functions

 DummyStructNode (unsigned int uL, const DofOwner *pDO, const StructNode *pNode, OrientationDescription ood, flag fOut)
 
virtual ~DummyStructNode (void)
 
virtual DummyStructNode::Type GetDummyType (void) const =0
 
virtual StructDispNode::Type GetStructDispNodeType (void) const
 
virtual unsigned int iGetNumDof (void) const
 
virtual const doublerealdGetDofValue (int iDof, int iOrder=0) const
 
virtual const doublerealdGetDofValuePrev (int iDof, int iOrder=0) const
 
virtual void SetDofValue (const doublereal &dValue, unsigned int iDof, unsigned int iOrder=0)
 
virtual StructNode::Type GetStructNodeType (void) const
 
virtual unsigned int iGetInitialNumDof (void) const
 
virtual integer iGetFirstPositionIndex (void) const
 
virtual integer iGetFirstMomentumIndex (void) const
 
virtual void DerivativesUpdate (const VectorHandler &X, const VectorHandler &XP)
 
virtual void InitialUpdate (const VectorHandler &X)
 
virtual void SetInitialValue (VectorHandler &X)
 
virtual void SetValue (DataManager *pDM, VectorHandler &X, VectorHandler &XP, SimulationEntity::Hints *ph=0)
 
virtual void BeforePredict (VectorHandler &X, VectorHandler &XP, VectorHandler &XPrev, VectorHandler &XPPrev) const
 
virtual void AfterPredict (VectorHandler &X, VectorHandler &XP)
 
virtual bool bComputeAccelerations (void) const
 
virtual bool ComputeAccelerations (bool b)
 
- Public Member Functions inherited from StructDispNode
 StructDispNode (unsigned int uL, const DofOwner *pDO, const Vec3 &X0, const Vec3 &V0, const StructNode *pRN, const RigidBodyKinematics *pRBK, doublereal dPosStiff, doublereal dVelStiff, OrientationDescription od, flag fOut)
 
virtual ~StructDispNode (void)
 
virtual Node::Type GetNodeType (void) const
 
const RigidBodyKinematicspGetRBK (void) const
 
const Vec3GetX (void) const
 
const Vec3GetV (void) const
 
const Vec3GetXPP (void) const
 
virtual DofOrder::Order GetDofType (unsigned int) const
 
virtual const Vec3GetXPrev (void) const
 
virtual const Vec3GetXCurr (void) const
 
virtual const Vec3GetVPrev (void) const
 
virtual const Vec3GetVCurr (void) const
 
virtual const Vec3GetXPPPrev (void) const
 
virtual const Vec3GetXPPCurr (void) const
 
virtual const doublerealdGetPositionStiffness (void) const
 
virtual const doublerealdGetVelocityStiffness (void) const
 
virtual bool bOutputAccelerations (void) const
 
virtual void OutputAccelerations (bool bOut)
 
- Public Member Functions inherited from Node
 Node (unsigned int uL, const DofOwner *pDO, flag fOut)
 
virtual ~Node (void)
 
const NodeGetNode (void) const
 
virtual integer iGetFirstRowIndex (void) const
 
virtual integer iGetFirstColIndex (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 HintParseHint (DataManager *pDM, const char *s) const
 
virtual void AfterConvergence (const VectorHandler &X, const VectorHandler &XP)
 
virtual std::ostream & OutputAppend (std::ostream &out) const
 
virtual void ReadInitialState (MBDynParser &HP)
 
- Public Member Functions inherited from DofOwnerOwner
 DofOwnerOwner (const DofOwner *pDO)
 
virtual ~DofOwnerOwner ()
 
virtual const DofOwnerpGetDofOwner (void) const
 
virtual integer iGetFirstIndex (void) const
 
- 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 RigidBodyKinematics
virtual ~RigidBodyKinematics (void)
 
virtual void Update (void)
 
- Public Member Functions inherited from StructNode
 StructNode (unsigned int uL, const DofOwner *pDO, const Vec3 &X0, const Mat3x3 &R0, const Vec3 &V0, const Vec3 &W0, const StructNode *pRN, const RigidBodyKinematics *pRBK, doublereal dPosStiff, doublereal dVelStiff, bool bOmRot, OrientationDescription ood, flag fOut)
 
virtual ~StructNode (void)
 
const Mat3x3GetR (void) const
 
const Vec3GetW (void) const
 
const Vec3GetWP (void) const
 
virtual std::ostream & Restart (std::ostream &out) 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 const Vec3GetgRef (void) const
 
virtual const Vec3GetgCurr (void) const
 
virtual const Vec3GetgPRef (void) const
 
virtual const Vec3GetgPCurr (void) const
 
virtual const Mat3x3GetRPrev (void) const
 
virtual const Mat3x3GetRRef (void) const
 
virtual const Mat3x3GetRCurr (void) const
 
virtual const Vec3GetWPrev (void) const
 
virtual const Vec3GetWRef (void) const
 
virtual const Vec3GetWCurr (void) const
 
virtual const Vec3GetWPCurr (void) const
 
virtual const Vec3GetWPPrev (void) const
 
virtual bool bOmegaRotates (void) const
 
virtual void OutputPrepare (OutputHandler &OH)
 
virtual void Output (OutputHandler &OH) const
 
virtual void Update (const VectorHandler &X, const VectorHandler &XP)
 
void Update (const VectorHandler &X, InverseDynamics::Order iOrder)
 
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
 

Protected Member Functions

virtual void Update_int (void)=0
 

Protected Attributes

const StructNodepNode
 
- Protected Attributes inherited from StructDispNode
Vec3 XPrev
 
Vec3 XCurr
 
Vec3 VPrev
 
Vec3 VCurr
 
Vec3 XPPCurr
 
Vec3 XPPPrev
 
const StructNodepRefNode
 
OrientationDescription od
 
doublereal dPositionStiffness
 
doublereal dVelocityStiffness
 
const RigidBodyKinematicspRefRBK
 
bool bOutputAccels
 
- Protected Attributes inherited from WithLabel
unsigned int uLabel
 
std::string sName
 
- Protected Attributes inherited from ToBeOutput
flag fOutput
 
- Protected Attributes inherited from StructNode
Mat3x3 RPrev
 
Mat3x3 RRef
 
Mat3x3 RCurr
 
Vec3 gRef
 
Vec3 gCurr
 
Vec3 gPRef
 
Vec3 gPCurr
 
Vec3 WPrev
 
Vec3 WRef
 
Vec3 WCurr
 
Vec3 WPCurr
 
Vec3 WPPrev
 
bool bOmegaRot
 

Detailed Description

Definition at line 1647 of file strnode.h.

Member Enumeration Documentation

Enumerator
UNKNOWN 
OFFSET 
RELATIVEFRAME 
PIVOTRELATIVEFRAME 
LASTTYPE 

Definition at line 1649 of file strnode.h.

Constructor & Destructor Documentation

DummyStructNode::DummyStructNode ( unsigned int  uL,
const DofOwner pDO,
const StructNode pNode,
OrientationDescription  ood,
flag  fOut 
)

Definition at line 3516 of file strnode.cc.

References ASSERT, and pNode.

3521 :
3522 StructDispNode(uL, pDO, ::Zero3, ::Zero3, 0, 0, 0., 0., ood, fOut),
3523 StructNode(uL, pDO, ::Zero3, ::Zero3x3, ::Zero3, ::Zero3, 0, 0, 0., 0., 0, ood, fOut),
3524 pNode(pN)
3525 {
3526  ASSERT(pNode != NULL);
3527 }
const Vec3 Zero3(0., 0., 0.)
const Mat3x3 Zero3x3(0., 0., 0., 0., 0., 0., 0., 0., 0.)
const StructNode * pNode
Definition: strnode.h:1660
#define ASSERT(expression)
Definition: colamd.c:977
StructNode(unsigned int uL, const DofOwner *pDO, const Vec3 &X0, const Mat3x3 &R0, const Vec3 &V0, const Vec3 &W0, const StructNode *pRN, const RigidBodyKinematics *pRBK, doublereal dPosStiff, doublereal dVelStiff, bool bOmRot, OrientationDescription ood, flag fOut)
Definition: strnode.cc:1439
StructDispNode(unsigned int uL, const DofOwner *pDO, const Vec3 &X0, const Vec3 &V0, const StructNode *pRN, const RigidBodyKinematics *pRBK, doublereal dPosStiff, doublereal dVelStiff, OrientationDescription od, flag fOut)
Definition: strnode.cc:102
DummyStructNode::~DummyStructNode ( void  )
virtual

Definition at line 3531 of file strnode.cc.

References NO_OP.

3532 {
3533  NO_OP;
3534 }
#define NO_OP
Definition: myassert.h:74

Member Function Documentation

void DummyStructNode::AfterPredict ( VectorHandler X,
VectorHandler XP 
)
virtual

Reimplemented from StructDispNode.

Definition at line 3634 of file strnode.cc.

References RigidBodyKinematics::Update().

3635 {
3636  Update(X, XP);
3637 }
virtual void Update(void)
Definition: rbk.cc:45

Here is the call graph for this function:

bool DummyStructNode::bComputeAccelerations ( void  ) const
inlinevirtual

Reimplemented from StructDispNode.

Reimplemented in PivotRelFrameDummyStructNode, and RelFrameDummyStructNode.

Definition at line 1778 of file strnode.h.

1779 {
1780  return pNode->bComputeAccelerations();
1781 }
const StructNode * pNode
Definition: strnode.h:1660
virtual bool bComputeAccelerations(void) const
Definition: strnode.h:433
void DummyStructNode::BeforePredict ( VectorHandler X,
VectorHandler XP,
VectorHandler XPrev,
VectorHandler XPPrev 
) const
virtual

Reimplemented from StructDispNode.

Definition at line 3624 of file strnode.cc.

References NO_OP.

3628 {
3629  NO_OP;
3630 }
#define NO_OP
Definition: myassert.h:74
bool DummyStructNode::ComputeAccelerations ( bool  b)
virtual

Reimplemented from StructDispNode.

Reimplemented in PivotRelFrameDummyStructNode, and RelFrameDummyStructNode.

Definition at line 3640 of file strnode.cc.

References pNode.

3641 {
3642  return const_cast<StructNode *>(pNode)->ComputeAccelerations(b);
3643 }
const StructNode * pNode
Definition: strnode.h:1660
virtual bool ComputeAccelerations(bool b)
Definition: strnode.cc:3640
void DummyStructNode::DerivativesUpdate ( const VectorHandler X,
const VectorHandler XP 
)
virtual

Reimplemented from StructDispNode.

Definition at line 3586 of file strnode.cc.

References RigidBodyKinematics::Update().

3587 {
3588  /* posso farlo perche' in genere i dummy nodes si limitano
3589  * a copiare i valori di altri nodi, quindi non alterano
3590  * le variabili cinematiche */
3591  Update(X, XP);
3592 }
virtual void Update(void)
Definition: rbk.cc:45

Here is the call graph for this function:

const doublereal & DummyStructNode::dGetDofValue ( int  iDof,
int  iOrder = 0 
) const
virtual

Reimplemented from StructDispNode.

Definition at line 3553 of file strnode.cc.

References WithLabel::GetLabel(), and MBDYN_EXCEPT_ARGS.

3554 {
3555  silent_cerr("DummyStructNode(" << GetLabel() << ") has no dofs"
3556  << std::endl);
3558 }
#define MBDYN_EXCEPT_ARGS
Definition: except.h:63
unsigned int GetLabel(void) const
Definition: withlab.cc:62

Here is the call graph for this function:

const doublereal & DummyStructNode::dGetDofValuePrev ( int  iDof,
int  iOrder = 0 
) const
virtual

Reimplemented from StructDispNode.

Definition at line 3564 of file strnode.cc.

References WithLabel::GetLabel(), and MBDYN_EXCEPT_ARGS.

3565 {
3566  silent_cerr("DummyStructNode(" << GetLabel() << ") has no dofs"
3567  << std::endl);
3569 }
#define MBDYN_EXCEPT_ARGS
Definition: except.h:63
unsigned int GetLabel(void) const
Definition: withlab.cc:62

Here is the call graph for this function:

virtual DummyStructNode::Type DummyStructNode::GetDummyType ( void  ) const
pure virtual
StructDispNode::Type DummyStructNode::GetStructDispNodeType ( void  ) const
virtual

Implements StructDispNode.

Definition at line 3545 of file strnode.cc.

References StructDispNode::UNKNOWN.

3546 {
3547  return StructDispNode::UNKNOWN;
3548 }
StructNode::Type DummyStructNode::GetStructNodeType ( void  ) const
virtual

Implements StructNode.

Definition at line 3539 of file strnode.cc.

References StructNode::DUMMY.

3540 {
3541  return StructNode::DUMMY;
3542 }
integer DummyStructNode::iGetFirstMomentumIndex ( void  ) const
inlinevirtual

Implements StructDispNode.

Definition at line 1753 of file strnode.h.

References WithLabel::GetLabel(), and MBDYN_EXCEPT_ARGS.

1754 {
1755  silent_cerr("DummyStructNode(" << GetLabel() << ") has no dofs"
1756  << std::endl);
1758 }
#define MBDYN_EXCEPT_ARGS
Definition: except.h:63
unsigned int GetLabel(void) const
Definition: withlab.cc:62

Here is the call graph for this function:

integer DummyStructNode::iGetFirstPositionIndex ( void  ) const
inlinevirtual

Reimplemented from StructDispNode.

Definition at line 1744 of file strnode.h.

References WithLabel::GetLabel(), and MBDYN_EXCEPT_ARGS.

1745 {
1746  silent_cerr("DummyStructNode(" << GetLabel() << ") has no dofs"
1747  << std::endl);
1749 }
#define MBDYN_EXCEPT_ARGS
Definition: except.h:63
unsigned int GetLabel(void) const
Definition: withlab.cc:62

Here is the call graph for this function:

unsigned int DummyStructNode::iGetInitialNumDof ( void  ) const
inlinevirtual

Reimplemented from StructDispNode.

Definition at line 1737 of file strnode.h.

1738 {
1739  return 0;
1740 }
unsigned int DummyStructNode::iGetNumDof ( void  ) const
inlinevirtual

Implements SimulationEntity.

Definition at line 1772 of file strnode.h.

1773 {
1774  return 0;
1775 }
void DummyStructNode::InitialUpdate ( const VectorHandler X)
virtual

Reimplemented from StructDispNode.

Definition at line 3597 of file strnode.cc.

References NO_OP.

3598 {
3599  NO_OP;
3600 }
#define NO_OP
Definition: myassert.h:74
void DummyStructNode::SetDofValue ( const doublereal dValue,
unsigned int  iDof,
unsigned int  iOrder = 0 
)
virtual

Reimplemented from StructDispNode.

Definition at line 3575 of file strnode.cc.

References WithLabel::GetLabel(), and MBDYN_EXCEPT_ARGS.

3577 {
3578  silent_cerr("DummyStructNode(" << GetLabel() << ") has no dofs"
3579  << std::endl);
3581 }
#define MBDYN_EXCEPT_ARGS
Definition: except.h:63
unsigned int GetLabel(void) const
Definition: withlab.cc:62

Here is the call graph for this function:

void DummyStructNode::SetInitialValue ( VectorHandler X)
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 StructDispNode.

Definition at line 3605 of file strnode.cc.

References NO_OP.

3606 {
3607  NO_OP;
3608 }
#define NO_OP
Definition: myassert.h:74
void DummyStructNode::SetValue ( DataManager pDM,
VectorHandler X,
VectorHandler XP,
SimulationEntity::Hints ph = 0 
)
virtual

Reimplemented from StructDispNode.

Definition at line 3612 of file strnode.cc.

References RigidBodyKinematics::Update().

3616 {
3617  Update(X, XP);
3618 }
virtual void Update(void)
Definition: rbk.cc:45

Here is the call graph for this function:

virtual void DummyStructNode::Update_int ( void  )
protectedpure virtual

Member Data Documentation


The documentation for this class was generated from the following files: