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

#include <force.h>

Inheritance diagram for Force:
Collaboration diagram for Force:

Public Types

enum  Type {
  UNKNOWN = -1, ABSTRACTFORCE = 0, ABSTRACTINTERNALFORCE, ABSOLUTEDISPFORCE,
  ABSOLUTEINTERNALDISPFORCE, ABSOLUTEFORCE, FOLLOWERFORCE, ABSOLUTECOUPLE,
  FOLLOWERCOUPLE, ABSOLUTEINTERNALFORCE, FOLLOWERINTERNALFORCE, ABSOLUTEINTERNALCOUPLE,
  FOLLOWERINTERNALCOUPLE, TOTALFORCE, TOTALINTERNALFORCE, EXTERNALSTRUCTURAL,
  MODALFORCE, EXTERNALMODAL, LASTFORCETYPE
}
 
- Public Types inherited from Elem
enum  Type {
  UNKNOWN = -1, AIRPROPERTIES = 0, INDUCEDVELOCITY, AUTOMATICSTRUCTURAL,
  GRAVITY, BODY, JOINT, JOINT_REGULARIZATION,
  BEAM, PLATE, FORCE, INERTIA,
  ELECTRICBULK, ELECTRIC, THERMAL, HYDRAULIC,
  BULK, LOADABLE, DRIVEN, EXTERNAL,
  AEROMODAL, AERODYNAMIC, GENEL, SOCKETSTREAM_OUTPUT,
  RTAI_OUTPUT = SOCKETSTREAM_OUTPUT, LASTELEMTYPE
}
 
- 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 Member Functions

 Force (unsigned int uL, flag fOut)
 
virtual ~Force (void)
 
virtual Elem::Type GetElemType (void) const
 
virtual Force::Type GetForceType (void) const =0
 
virtual VariableSubMatrixHandlerAssJac (VariableSubMatrixHandler &WorkMat, doublereal, const VectorHandler &, const VectorHandler &)
 
virtual std::ostream & Restart (std::ostream &out) const
 
virtual unsigned int iGetInitialNumDof (void) const
 
virtual VariableSubMatrixHandlerInitialAssJac (VariableSubMatrixHandler &WorkMat, const VectorHandler &)
 
- Public Member Functions inherited from Elem
 Elem (unsigned int uL, flag fOut)
 
virtual ~Elem (void)
 
virtual unsigned int iGetNumDof (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 DofOrder::Order GetDofType (unsigned int) const
 
virtual void WorkSpaceDim (integer *piNumRows, integer *piNumCols) const =0
 
virtual void AssMats (VariableSubMatrixHandler &WorkMatA, VariableSubMatrixHandler &WorkMatB, const VectorHandler &XCurr, const VectorHandler &XPrimeCurr)
 
virtual SubVectorHandlerAssRes (SubVectorHandler &WorkVec, doublereal dCoef, const VectorHandler &XCurr, const VectorHandler &XPrimeCurr)=0
 
virtual bool bInverseDynamics (void) const
 
void SetInverseDynamicsFlags (unsigned uIDF)
 
unsigned GetInverseDynamicsFlags (void) const
 
bool bIsErgonomy (void) const
 
bool bIsRightHandSide (void) const
 
virtual VariableSubMatrixHandlerAssJac (VariableSubMatrixHandler &WorkMat, const VectorHandler &XCurr)
 
virtual SubVectorHandlerAssRes (SubVectorHandler &WorkVec, const VectorHandler &XCurr, const VectorHandler &XPrimeCurr, const VectorHandler &XPrimePrimeCurr, InverseDynamics::Order iOrder=InverseDynamics::INVERSE_DYNAMICS)
 
virtual int GetNumConnectedNodes (void) const
 
virtual void GetConnectedNodes (std::vector< const Node * > &connectedNodes) 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 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 AfterPredict (VectorHandler &X, VectorHandler &XP)
 
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 unsigned int iGetNumPrivData (void) const
 
virtual unsigned int iGetPrivDataIdx (const char *s) const
 
virtual doublereal dGetPrivData (unsigned int i) const
 
virtual std::ostream & OutputAppend (std::ostream &out) const
 
virtual void ReadInitialState (MBDynParser &HP)
 
- Public Member Functions inherited from ToBeOutput
 ToBeOutput (flag fOut=fDefaultOut)
 
virtual ~ToBeOutput (void)
 
virtual void OutputPrepare (OutputHandler &OH)
 
virtual void Output (OutputHandler &OH) const
 
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 InitialAssemblyElem
 InitialAssemblyElem (unsigned int uL, flag fOut)
 
virtual ~InitialAssemblyElem (void)
 
- Public Member Functions inherited from SubjectToInitialAssembly
 SubjectToInitialAssembly (void)
 
virtual ~SubjectToInitialAssembly (void)
 
virtual void InitialWorkSpaceDim (integer *piNumRows, integer *piNumCols) const =0
 
virtual SubVectorHandlerInitialAssRes (SubVectorHandler &WorkVec, const VectorHandler &XCurr)=0
 

Additional Inherited Members

- Protected Attributes inherited from WithLabel
unsigned int uLabel
 
std::string sName
 
- Protected Attributes inherited from ToBeOutput
flag fOutput
 

Detailed Description

Definition at line 46 of file force.h.

Member Enumeration Documentation

Enumerator
UNKNOWN 
ABSTRACTFORCE 
ABSTRACTINTERNALFORCE 
ABSOLUTEDISPFORCE 
ABSOLUTEINTERNALDISPFORCE 
ABSOLUTEFORCE 
FOLLOWERFORCE 
ABSOLUTECOUPLE 
FOLLOWERCOUPLE 
ABSOLUTEINTERNALFORCE 
FOLLOWERINTERNALFORCE 
ABSOLUTEINTERNALCOUPLE 
FOLLOWERINTERNALCOUPLE 
TOTALFORCE 
TOTALINTERNALFORCE 
EXTERNALSTRUCTURAL 
MODALFORCE 
EXTERNALMODAL 
LASTFORCETYPE 

Definition at line 50 of file force.h.

50  {
51  UNKNOWN = -1,
52  ABSTRACTFORCE = 0,
54 
55  // in mbdyn/struct/strforce[_impl].{h,cc}
58 
63 
68 
69  // in mbdyn/struct/totalj.{h,cc}
70  TOTALFORCE,
72 
73  // in mbdyn/struct/strext.{h,cc}
75 
76  // in mbdyn/struct/modalforce.{h,cc}
77  MODALFORCE,
78 
79  // in mbdyn/struct/modalext.{h,cc}
81 
83  };

Constructor & Destructor Documentation

Force::Force ( unsigned int  uL,
flag  fOut 
)
inline

Definition at line 87 of file force.h.

References NO_OP.

88  : Elem(uL, fOut),
89  InitialAssemblyElem(uL, fOut)
90  {
91  NO_OP;
92  };
#define NO_OP
Definition: myassert.h:74
InitialAssemblyElem(unsigned int uL, flag fOut)
Definition: elem.cc:233
Elem(unsigned int uL, flag fOut)
Definition: elem.cc:41
virtual Force::~Force ( void  )
inlinevirtual

Definition at line 94 of file force.h.

References NO_OP.

94  {
95  NO_OP;
96  };
#define NO_OP
Definition: myassert.h:74

Member Function Documentation

virtual VariableSubMatrixHandler& Force::AssJac ( VariableSubMatrixHandler WorkMat,
doublereal  ,
const VectorHandler ,
const VectorHandler  
)
inlinevirtual

Implements Elem.

Reimplemented in FollowerInternalCouple, FollowerInternalForce, TotalForce, AbsoluteInternalForce, FollowerCouple, FollowerForce, and AbsoluteForce.

Definition at line 107 of file force.h.

References DEBUGCOUT, and VariableSubMatrixHandler::SetNullMatrix().

111  {
112  DEBUGCOUT("Entering Force::AssJac()" << std::endl);
113 
114  WorkMat.SetNullMatrix();
115  return WorkMat;
116  };
void SetNullMatrix(void)
Definition: submat.h:1159
#define DEBUGCOUT(msg)
Definition: myassert.h:232

Here is the call graph for this function:

virtual Elem::Type Force::GetElemType ( void  ) const
inlinevirtual

Implements Elem.

Definition at line 99 of file force.h.

References Elem::FORCE.

99  {
100  return Elem::FORCE;
101  };
virtual unsigned int Force::iGetInitialNumDof ( void  ) const
inlinevirtual

Implements SubjectToInitialAssembly.

Definition at line 120 of file force.h.

120  {
121  return 0;
122  };
virtual VariableSubMatrixHandler& Force::InitialAssJac ( VariableSubMatrixHandler WorkMat,
const VectorHandler  
)
inlinevirtual

Implements SubjectToInitialAssembly.

Reimplemented in FollowerInternalCouple, FollowerInternalForce, TotalForce, AbsoluteInternalForce, FollowerCouple, FollowerForce, AbsoluteForce, ExtForce, and ModalForce.

Definition at line 126 of file force.h.

References VariableSubMatrixHandler::SetNullMatrix().

128  {
129  WorkMat.SetNullMatrix();
130  return WorkMat;
131  };
void SetNullMatrix(void)
Definition: submat.h:1159

Here is the call graph for this function:


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