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

#include <node.h>

Inheritance diagram for ParameterNode:
Collaboration diagram for ParameterNode:

Public Member Functions

 ParameterNode (unsigned int uL, const DofOwner *pDO, doublereal dx, flag fOut)
 
virtual ~ParameterNode (void)
 
virtual Node::Type GetNodeType (void) const
 
virtual unsigned int iGetNumDof (void) const
 
virtual DofOrder::Order GetDofType (unsigned int i) const
 
virtual void Output (OutputHandler &OH) const
 
void SetValue (DataManager *pDM, VectorHandler &X, VectorHandler &XP, SimulationEntity::Hints *ph=0)
 
virtual void Update (const VectorHandler &XCurr, const VectorHandler &XPrimeCurr)
 
virtual void Update (const VectorHandler &XCurr, const int iOrder)
 
virtual void AfterPredict (VectorHandler &X, VectorHandler &XP)
 
virtual unsigned int iGetNumPrivData (void) const
 
- Public Member Functions inherited from ScalarAlgebraicNode
 ScalarAlgebraicNode (unsigned int uL, const DofOwner *pDO, doublereal dx, flag fOut)
 
virtual ~ScalarAlgebraicNode (void)
 
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 void SetX (const doublereal &d)
 
virtual const doublerealdGetX (void) const
 
virtual void SetXPrime (const doublereal &d)
 
virtual const doublerealdGetXPrime (void) const
 
virtual void Update (const class VectorHandler &, const class VectorHandler &)
 
std::ostream & Restart (std::ostream &out) const
 
virtual unsigned int iGetPrivDataIdx (const char *s) const
 
- Public Member Functions inherited from ScalarNode
 ScalarNode (unsigned int uL, const DofOwner *pDO, flag fOut)
 
virtual ~ScalarNode (void)
 
- Public Member Functions inherited from Node
 Node (unsigned int uL, const DofOwner *pDO, flag fOut)
 
virtual ~Node (void)
 
const NodeGetNode (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 integer iGetFirstRowIndex (void) const
 
virtual integer iGetFirstColIndex (void) 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 GetEqType (unsigned int i) const
 
virtual HintParseHint (DataManager *pDM, const char *s) const
 
virtual void BeforePredict (VectorHandler &, VectorHandler &, VectorHandler &, VectorHandler &) const
 
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))
 

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 Member Functions inherited from ScalarAlgebraicNode
virtual std::ostream & Output (std::ostream &out) const
 
- Protected Attributes inherited from ScalarAlgebraicNode
doublereal dX
 
doublereal dXPrev
 
- Protected Attributes inherited from WithLabel
unsigned int uLabel
 
std::string sName
 
- Protected Attributes inherited from ToBeOutput
flag fOutput
 

Detailed Description

Definition at line 516 of file node.h.

Constructor & Destructor Documentation

ParameterNode::ParameterNode ( unsigned int  uL,
const DofOwner pDO,
doublereal  dx,
flag  fOut 
)

Definition at line 496 of file node.cc.

References NO_OP.

500 : ScalarAlgebraicNode(uL, pDO, dx, fOut)
501 {
502  NO_OP;
503 }
#define NO_OP
Definition: myassert.h:74
ScalarAlgebraicNode(unsigned int uL, const DofOwner *pDO, doublereal dx, flag fOut)
Definition: node.cc:347
ParameterNode::~ParameterNode ( void  )
virtual

Definition at line 505 of file node.cc.

References NO_OP.

506 {
507  NO_OP;
508 }
#define NO_OP
Definition: myassert.h:74

Member Function Documentation

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

Reimplemented from ScalarNode.

Definition at line 567 of file node.cc.

References NO_OP.

569 {
570  NO_OP;
571 }
#define NO_OP
Definition: myassert.h:74
DofOrder::Order ParameterNode::GetDofType ( unsigned int  i) const
virtual

Reimplemented from ScalarAlgebraicNode.

Definition at line 524 of file node.cc.

References MBDYN_EXCEPT_ARGS, and DofOrder::UNKNOWN.

525 {
527  return DofOrder::UNKNOWN;
528 }
#define MBDYN_EXCEPT_ARGS
Definition: except.h:63
Node::Type ParameterNode::GetNodeType ( void  ) const
virtual

Reimplemented from ScalarAlgebraicNode.

Definition at line 512 of file node.cc.

References Node::PARAMETER.

513 {
514  return Node::PARAMETER;
515 }
unsigned int ParameterNode::iGetNumDof ( void  ) const
virtual

Reimplemented from ScalarNode.

Definition at line 518 of file node.cc.

519 {
520  return 0;
521 }
virtual unsigned int ParameterNode::iGetNumPrivData ( void  ) const
inlinevirtual

Reimplemented from Node.

Definition at line 563 of file node.h.

Referenced by StrainGageParam::Bind().

563  {
564  return 1;
565  };
void ParameterNode::Output ( OutputHandler OH) const
virtual

Reimplemented from ScalarNode.

Definition at line 532 of file node.cc.

References ToBeOutput::bToBeOutput(), ScalarAlgebraicNode::dGetX(), WithLabel::GetLabel(), and OutputHandler::Parameters().

533 {
534  if (bToBeOutput()) {
535  std::ostream& out = OH.Parameters();
536 
537  out << std::setw(8) << GetLabel()
538  << " " << dGetX() << std::endl;
539  }
540 }
virtual bool bToBeOutput(void) const
Definition: output.cc:890
virtual const doublereal & dGetX(void) const
Definition: node.h:492
std::ostream & Parameters(void) const
Definition: output.h:559
unsigned int GetLabel(void) const
Definition: withlab.cc:62

Here is the call graph for this function:

void ParameterNode::SetValue ( DataManager pDM,
VectorHandler X,
VectorHandler XP,
SimulationEntity::Hints ph = 0 
)
virtual

Reimplemented from ScalarAlgebraicNode.

Reimplemented in SampleAndHold.

Definition at line 543 of file node.cc.

References NO_OP.

546 {
547  NO_OP;
548 }
#define NO_OP
Definition: myassert.h:74
void ParameterNode::Update ( const VectorHandler XCurr,
const VectorHandler XPrimeCurr 
)
virtual

Reimplemented from SimulationEntity.

Definition at line 552 of file node.cc.

References NO_OP.

554 {
555  NO_OP;
556 }
#define NO_OP
Definition: myassert.h:74
void ParameterNode::Update ( const VectorHandler XCurr,
const int  iOrder 
)
virtual

Definition at line 560 of file node.cc.

References NO_OP.

562 {
563  NO_OP;
564 }
#define NO_OP
Definition: myassert.h:74

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