111 :
Node(uL, pDO, fOut)
157 :
ScalarNode(uL, pDO, fOut), dX(dx), dXP(dxp), dXPrev(dx), dXPPrev(dxp)
192 ASSERT(iOrder == 0 || iOrder == 1);
205 ASSERT(iOrder == 0 || iOrder == 1);
220 ASSERT(iOrder == 0 || iOrder == 1);
223 }
else if (iOrder == 1) {
264 dXP = XP(iFirstIndex);
289 out <<
", name, \"" <<
GetName() <<
"\"";
292 return out <<
", value, " <<
dX
293 <<
", derivative, " <<
dXP <<
";" << std::endl;
320 if (s[1] ==
'P' && s[2] ==
'\0') {
351 :
ScalarNode(uL, pDO, fOut), dX(dx), dXPrev(dx)
426 DEBUGCERR(
"Error, setting derivative from algebraic dof" << std::endl);
454 <<
" " <<
dX << std::endl;
469 out <<
", name, \"" <<
GetName() <<
"\"";
472 return out <<
", value, " <<
dX <<
";" << std::endl;
484 if (s[0] ==
'x' && s[1] ==
'\0') {
538 <<
" " <<
dGetX() << std::endl;
579 : iDofNumber(-1), pNode(0)
585 : iDofNumber(id), pNode(p)
596 :
ScalarNode(nd.pNode->GetLabel(), nd.pNode->pGetDofOwner(), 0), ND(nd)
617 out <<
"# Node2Scalar: warning, not implemented yet " << std::endl;
707 : pNode(0), iOrder(0), iIndex(0)
713 : pNode(sd.pNode), iOrder(sd.iOrder), iIndex(sd.iIndex)
719 : pNode(p), iOrder(iO), iIndex(iI)
756 out <<
"order, " <<
iOrder << std::endl;
766 out <<
"# RestartScalarDofCaller: warning, not implemented yet";
virtual void SetX(const doublereal &d)
virtual ~ParameterNode(void)
virtual const doublereal & dGetDofValue(int iDof, int iOrder=0) const =0
virtual bool bToBeOutput(void) const
virtual std::ostream & DescribeDof(std::ostream &out, const char *prefix="", bool bInitial=false) const
const char * psReadNodesNodes[]
#define MBDYN_EXCEPT_ARGS
std::ostream & RestartScalarDofCaller(std::ostream &out) const
virtual void SetValue(DataManager *pDM, VectorHandler &X, VectorHandler &XP, SimulationEntity::Hints *ph=0)
virtual std::ostream & Restart(std::ostream &out) const
virtual void Update(const class VectorHandler &, const class VectorHandler &)
virtual const doublereal & dGetDofValuePrev(int iDof, int iOrder=0) const
virtual void Update(const class VectorHandler &, const class VectorHandler &)
virtual std::ostream & DescribeEq(std::ostream &out, const char *prefix="", bool bInitial=false) const
virtual Node::Type GetNodeType(void) const
ParameterNode(unsigned int uL, const DofOwner *pDO, doublereal dx, flag fOut)
virtual unsigned int iGetPrivDataIdx(const char *s) const
ScalarDifferentialNode(unsigned int uL, const DofOwner *pDO, const doublereal &dx, const doublereal &dxp, flag fOut)
virtual ~Node2Scalar(void)
virtual void AfterPredict(VectorHandler &X, VectorHandler &XP)
virtual void SetValue(DataManager *pDM, VectorHandler &X, VectorHandler &XP, SimulationEntity::Hints *ph=0)
virtual void SetXPrime(const doublereal &d)
virtual unsigned int iGetPrivDataIdx(const char *s) const
virtual const doublereal & dGetDofValuePrev(int iDof, int iOrder=0) const =0
Node::Type str2nodetype(const char *const s)
const doublereal & dGetValuePrev(void) const
virtual void SetDofValue(const doublereal &dValue, unsigned int iDof, unsigned int iOrder=0)
virtual doublereal dGetPrivData(unsigned int i) const
Node2Scalar(const NodeDof &nd)
virtual Node::Type GetNodeType(void) const
virtual const doublereal & dGetDofValue(int iDof, int iOrder=0) const
std::vector< Hint * > Hints
virtual ~ScalarDifferentialNode(void)
virtual integer iGetFirstRowIndex(void) const
virtual std::ostream & Output(std::ostream &out) const
virtual void SetX(const doublereal &d)
std::ostream & Abstract(void) const
virtual DofOrder::Order GetDofType(unsigned int i) const
virtual const doublereal & dGetDofValue(int iDof, int iOrder=0) const
virtual void SetXPrime(const doublereal &d)
virtual void SetDofValue(const doublereal &dValue, unsigned int iDof, unsigned int iOrder=0)
ScalarNode(unsigned int uL, const DofOwner *pDO, flag fOut)
virtual const doublereal & dGetX(void) const
void SetValue(DataManager *pDM, VectorHandler &X, VectorHandler &XP, SimulationEntity::Hints *ph=0)
virtual unsigned int iGetNumDof(void) const
std::ostream & Restart(std::ostream &out) const
virtual void Update(const VectorHandler &XCurr, const VectorHandler &XPrimeCurr)
virtual DofOrder::Order GetDofType(unsigned int i) const
virtual DofOrder::Order GetDofType(unsigned int i) const
virtual void SetXPrime(const doublereal &d)
std::ostream & Parameters(void) const
virtual ~ScalarAlgebraicNode(void)
virtual integer iGetFirstRowIndex(void) const
virtual const doublereal & dGetDofValuePrev(int iDof, int iOrder=0) const
virtual const doublereal & dGetDofValue(int iDof, int iOrder=0) const
#define ASSERT(expression)
virtual const doublereal & dGetDofValuePrev(int iDof, int iOrder=0) const
virtual void PutCoef(integer iRow, const doublereal &dCoef)=0
ScalarAlgebraicNode(unsigned int uL, const DofOwner *pDO, doublereal dx, flag fOut)
virtual unsigned int iGetNumPrivData(void) const
virtual void Output(OutputHandler &OH) const
virtual unsigned int iGetNumDof(void) const
virtual void SetX(const doublereal &d)
virtual Node::Type GetNodeType(void) const =0
virtual DofOrder::Order GetDofType(unsigned int i) const
Node(unsigned int uL, const DofOwner *pDO, flag fOut)
virtual Node::Type GetNodeType(void) const
virtual integer iGetFirstIndex(void) const
virtual void AfterPredict(VectorHandler &X, VectorHandler &XP)
virtual std::ostream & Output(std::ostream &out) const
const std::string & GetName(void) const
virtual Node::Type GetNodeType(void) const
unsigned int GetLabel(void) const
virtual ~ScalarNode(void)
const doublereal & dGetValue(void) const
virtual std::ostream & Output(std::ostream &out) const
std::ostream & Restart(std::ostream &out) const
virtual unsigned int iGetNumDof(void) const
virtual void SetDofValue(const doublereal &dValue, unsigned int iDof, unsigned int iOrder=0)
virtual void Update(const VectorHandler &XCurr, const VectorHandler &XPrimeCurr)
virtual integer iGetFirstColIndex(void) const
virtual integer iGetFirstColIndex(void) const