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

#include <node.h>

Inheritance diagram for ScalarNode:
Collaboration diagram for ScalarNode:

Public Member Functions

 ScalarNode (unsigned int uL, const DofOwner *pDO, flag fOut)
 
virtual ~ScalarNode (void)
 
virtual void Output (OutputHandler &OH) const
 
virtual unsigned int iGetNumDof (void) const
 
virtual void SetX (const doublereal &d)=0
 
virtual const doublerealdGetX (void) const =0
 
virtual void SetXPrime (const doublereal &d)=0
 
virtual const doublerealdGetXPrime (void) const =0
 
virtual void AfterPredict (VectorHandler &X, VectorHandler &XP)
 
- Public Member Functions inherited from Node
 Node (unsigned int uL, const DofOwner *pDO, flag fOut)
 
virtual ~Node (void)
 
const NodeGetNode (void) const
 
virtual Node::Type GetNodeType (void) const =0
 
virtual std::ostream & Restart (std::ostream &out) const =0
 
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 integer iGetFirstRowIndex (void) const
 
virtual integer iGetFirstColIndex (void) const
 
virtual const doublerealdGetDofValue (int iDof, int iOrder=0) const =0
 
virtual const doublerealdGetDofValuePrev (int iDof, int iOrder=0) const =0
 
virtual void SetDofValue (const doublereal &dValue, unsigned int iDof, unsigned int iOrder=0)=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 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 GetDofType (unsigned int i) const =0
 
virtual DofOrder::Order GetEqType (unsigned int i) const
 
virtual void SetValue (DataManager *pDM, VectorHandler &X, VectorHandler &XP, SimulationEntity::Hints *h=0)
 
virtual HintParseHint (DataManager *pDM, const char *s) const
 
virtual void BeforePredict (VectorHandler &, VectorHandler &, VectorHandler &, VectorHandler &) const
 
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 DofOwnerOwner
 DofOwnerOwner (const DofOwner *pDO)
 
virtual ~DofOwnerOwner ()
 
virtual const DofOwnerpGetDofOwner (void) const
 
virtual integer iGetFirstIndex (void) const
 
virtual void SetInitialValue (VectorHandler &X)
 
- 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))
 

Protected Member Functions

virtual std::ostream & Output (std::ostream &out) const
 

Additional Inherited Members

- 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 }
 
- Protected Attributes inherited from WithLabel
unsigned int uLabel
 
std::string sName
 
- Protected Attributes inherited from ToBeOutput
flag fOutput
 

Detailed Description

Definition at line 213 of file node.h.

Constructor & Destructor Documentation

ScalarNode::ScalarNode ( unsigned int  uL,
const DofOwner pDO,
flag  fOut 
)

Definition at line 110 of file node.cc.

References NO_OP.

111 : Node(uL, pDO, fOut)
112 {
113  NO_OP;
114 }
#define NO_OP
Definition: myassert.h:74
Node(unsigned int uL, const DofOwner *pDO, flag fOut)
Definition: node.cc:42
ScalarNode::~ScalarNode ( void  )
virtual

Definition at line 116 of file node.cc.

References NO_OP.

117 {
118  NO_OP;
119 }
#define NO_OP
Definition: myassert.h:74

Member Function Documentation

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

Reimplemented from SimulationEntity.

Reimplemented in ParameterNode.

Definition at line 142 of file node.cc.

References SimulationEntity::Update().

143 {
144  Update(X, XP);
145 }
virtual void Update(const VectorHandler &XCurr, const VectorHandler &XPrimeCurr)
Definition: simentity.cc:98

Here is the call graph for this function:

unsigned int ScalarNode::iGetNumDof ( void  ) const
virtual

Implements SimulationEntity.

Reimplemented in Node2Scalar, and ParameterNode.

Definition at line 136 of file node.cc.

Referenced by ScalarDifferentialNode::GetDofType(), and ScalarAlgebraicNode::GetDofType().

137 {
138  return 1;
139 }
std::ostream & ScalarNode::Output ( std::ostream &  out) const
protectedvirtual

Reimplemented in ScalarAlgebraicNode, and ScalarDifferentialNode.

Definition at line 123 of file node.cc.

Referenced by Output().

124 {
125  return out;
126 }
void ScalarNode::Output ( OutputHandler OH) const
virtual

Reimplemented from ToBeOutput.

Reimplemented in ParameterNode, ElectricNode, PressureNode, and ThermalNode.

Definition at line 130 of file node.cc.

References OutputHandler::Abstract(), and Output().

131 {
132  (void)Output(OH.Abstract());
133 }
std::ostream & Abstract(void) const
Definition: output.h:429
virtual std::ostream & Output(std::ostream &out) const
Definition: node.cc:123

Here is the call graph for this function:

virtual void ScalarNode::SetX ( const doublereal d)
pure virtual
virtual void ScalarNode::SetXPrime ( const doublereal d)
pure virtual

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