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

#include <node.h>

Inheritance diagram for ScalarDof:
Collaboration diagram for ScalarDof:

Public Member Functions

 ScalarDof (void)
 
 ScalarDof (const ScalarDof &sd)
 
 ScalarDof (ScalarNode *p, int iO, int iI)
 
 ~ScalarDof (void)
 
const doublerealdGetValue (void) const
 
const doublerealdGetValuePrev (void) const
 
std::ostream & RestartScalarDofCaller (std::ostream &out) const
 

Public Attributes

ScalarNodepNode
 
int iOrder
 
int iIndex
 

Detailed Description

Definition at line 706 of file node.h.

Constructor & Destructor Documentation

ScalarDof::ScalarDof ( void  )

Definition at line 706 of file node.cc.

References NO_OP.

707 : pNode(0), iOrder(0), iIndex(0)
708 {
709  NO_OP;
710 }
ScalarNode * pNode
Definition: node.h:708
int iOrder
Definition: node.h:710
#define NO_OP
Definition: myassert.h:74
int iIndex
Definition: node.h:711
ScalarDof::ScalarDof ( const ScalarDof sd)

Definition at line 712 of file node.cc.

References NO_OP.

713 : pNode(sd.pNode), iOrder(sd.iOrder), iIndex(sd.iIndex)
714 {
715  NO_OP;
716 }
ScalarNode * pNode
Definition: node.h:708
int iOrder
Definition: node.h:710
#define NO_OP
Definition: myassert.h:74
int iIndex
Definition: node.h:711
ScalarDof::ScalarDof ( ScalarNode p,
int  iO,
int  iI 
)

Definition at line 718 of file node.cc.

References NO_OP.

719 : pNode(p), iOrder(iO), iIndex(iI)
720 {
721  NO_OP;
722 }
ScalarNode * pNode
Definition: node.h:708
int iOrder
Definition: node.h:710
#define NO_OP
Definition: myassert.h:74
int iIndex
Definition: node.h:711
ScalarDof::~ScalarDof ( void  )

Definition at line 724 of file node.cc.

References NO_OP.

725 {
726  NO_OP;
727 }
#define NO_OP
Definition: myassert.h:74

Member Function Documentation

const doublereal & ScalarDof::dGetValue ( void  ) const

Definition at line 730 of file node.cc.

References Node::dGetDofValue(), iOrder, and pNode.

Referenced by DiscreteControlElem::AfterConvergence(), ScalarDofValue::dGetValue(), and DofPlugIn::GetVal().

731 {
732  return pNode->dGetDofValue(1, iOrder);
733 }
ScalarNode * pNode
Definition: node.h:708
virtual const doublereal & dGetDofValue(int iDof, int iOrder=0) const =0
int iOrder
Definition: node.h:710

Here is the call graph for this function:

const doublereal & ScalarDof::dGetValuePrev ( void  ) const

Definition at line 736 of file node.cc.

References Node::dGetDofValuePrev(), iOrder, and pNode.

Referenced by DofPlugIn::GetVal().

737 {
738  return pNode->dGetDofValuePrev(1, iOrder);
739 }
ScalarNode * pNode
Definition: node.h:708
int iOrder
Definition: node.h:710
virtual const doublereal & dGetDofValuePrev(int iDof, int iOrder=0) const =0

Here is the call graph for this function:

std::ostream & ScalarDof::RestartScalarDofCaller ( std::ostream &  out) const

Definition at line 742 of file node.cc.

References Node::ABSTRACT, Node::ELECTRIC, WithLabel::GetLabel(), Node::GetNodeType(), Node::HYDRAULIC, iIndex, iOrder, NO_OP, Node::PARAMETER, pNode, psReadNodesNodes, Node::STRUCTURAL, and Node::THERMAL.

743 {
744  Node::Type type = pNode->GetNodeType();
745  switch (type) {
746  case Node::PARAMETER :
747  out << pNode->GetLabel() << ", "
748  << psReadNodesNodes[type];
749  break;
750 
751  case Node::STRUCTURAL :
752  out << pNode->GetLabel() << ", "
753  << psReadNodesNodes[type] << ", "
754  << iIndex << ", ";
755  if (iOrder > 0) {
756  out << "order, " << iOrder << std::endl;
757  } else {
758  out << "algebraic";
759  }
760  break;
761 
762  case Node::ABSTRACT:
763  case Node::ELECTRIC:
764  case Node::THERMAL:
765  case Node::HYDRAULIC:
766  out << "# RestartScalarDofCaller: warning, not implemented yet";
767  break;
768 
769  default :
770  NO_OP;
771  }
772  return out;
773 }
ScalarNode * pNode
Definition: node.h:708
const char * psReadNodesNodes[]
Definition: enums.cc:398
int iOrder
Definition: node.h:710
#define NO_OP
Definition: myassert.h:74
Type
Definition: node.h:71
int iIndex
Definition: node.h:711
virtual Node::Type GetNodeType(void) const =0
unsigned int GetLabel(void) const
Definition: withlab.cc:62

Here is the call graph for this function:

Member Data Documentation

int ScalarDof::iIndex

Definition at line 711 of file node.h.

Referenced by RestartScalarDofCaller().

ScalarNode* ScalarDof::pNode

Definition at line 708 of file node.h.

Referenced by GenelClamp::AssJac(), GenelStateSpaceSISO::AssJac(), BulkSpringSupport::AssJac(), GenelDistance::AssJac(), GenelStateSpaceMIMO::AssJac(), GenelSpring::AssJac(), GenelSpringSupport::AssJac(), GenelCrossSpringSupport::AssJac(), GenelCrossSpringDamperSupport::AssJac(), GenelSpringDamperSupport::AssJac(), GenelMass::AssJac(), GenelClamp::AssRes(), GenelStateSpaceSISO::AssRes(), BulkSpringSupport::AssRes(), GenelDistance::AssRes(), GenelStateSpaceMIMO::AssRes(), GenelSpring::AssRes(), GenelSpringSupport::AssRes(), GenelCrossSpringSupport::AssRes(), GenelCrossSpringDamperSupport::AssRes(), GenelSpringDamperSupport::AssRes(), GenelMass::AssRes(), DofDriveCaller::dGet(), dGetValue(), dGetValuePrev(), GenelSpringDamperSupport::GenelSpringDamperSupport(), GenelClamp::GetConnectedNodes(), GenelStateSpaceSISO::GetConnectedNodes(), BulkSpringSupport::GetConnectedNodes(), GenelDistance::GetConnectedNodes(), GenelStateSpaceMIMO::GetConnectedNodes(), GenelSpring::GetConnectedNodes(), GenelSpringSupport::GetConnectedNodes(), GenelCrossSpringSupport::GetConnectedNodes(), DiscreteControlElem::GetConnectedNodes(), GenelCrossSpringDamperSupport::GetConnectedNodes(), GenelSpringDamperSupport::GetConnectedNodes(), GenelMass::GetConnectedNodes(), DofDCR::Read(), ReadForce(), ReadGenel(), DataManager::ReadNodes(), DofDriveCaller::Restart(), RestartScalarDofCaller(), GenelClamp::SetValue(), GenelDistance::SetValue(), GenelMass::SetValue(), GenelClamp::~GenelClamp(), GenelCrossSpringDamperSupport::~GenelCrossSpringDamperSupport(), GenelCrossSpringSupport::~GenelCrossSpringSupport(), GenelDistance::~GenelDistance(), GenelMass::~GenelMass(), GenelSpring::~GenelSpring(), GenelSpringDamperSupport::~GenelSpringDamperSupport(), and GenelSpringSupport::~GenelSpringSupport().


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