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

#include <simentity.h>

Inheritance diagram for SimulationEntity:

Public Types

typedef std::vector< Hint * > Hints
 

Public Member Functions

 SimulationEntity (void)
 
virtual ~SimulationEntity (void)
 
virtual unsigned int iGetNumDof (void) const =0
 
virtual std::ostream & DescribeDof (std::ostream &out, const char *prefix="", bool bInitial=false) const =0
 
virtual void DescribeDof (std::vector< std::string > &desc, bool bInitial=false, int i=-1) const =0
 
virtual std::ostream & DescribeEq (std::ostream &out, const char *prefix="", bool bInitial=false) const =0
 
virtual void DescribeEq (std::vector< std::string > &desc, bool bInitial=false, int i=-1) const =0
 
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 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)
 

Detailed Description

Definition at line 76 of file simentity.h.

Member Typedef Documentation

Definition at line 89 of file simentity.h.

Constructor & Destructor Documentation

SimulationEntity::SimulationEntity ( void  )

Definition at line 43 of file simentity.cc.

References NO_OP.

44 {
45  NO_OP;
46 }
#define NO_OP
Definition: myassert.h:74
SimulationEntity::~SimulationEntity ( void  )
virtual

Definition at line 48 of file simentity.cc.

References NO_OP.

49 {
50  NO_OP;
51 }
#define NO_OP
Definition: myassert.h:74

Member Function Documentation

void SimulationEntity::AfterConvergence ( const VectorHandler X,
const VectorHandler XP 
)
virtual
void SimulationEntity::AfterConvergence ( const VectorHandler X,
const VectorHandler XP,
const VectorHandler XPP 
)
virtual
void SimulationEntity::BeforePredict ( VectorHandler ,
VectorHandler ,
VectorHandler ,
VectorHandler  
) const
virtual
bool SimulationEntity::bIsValidIndex ( unsigned int  i) const
virtual

Definition at line 54 of file simentity.cc.

References iGetNumDof().

55 {
56  if (i >= 1 && i <= iGetNumDof()) {
57  return true;
58  }
59  return false;
60 }
virtual unsigned int iGetNumDof(void) const =0

Here is the call graph for this function:

void SimulationEntity::DerivativesUpdate ( const VectorHandler XCurr,
const VectorHandler XPrimeCurr 
)
virtual

Reimplemented in DummyStructNode, StructNode, and StructDispNode.

Definition at line 105 of file simentity.cc.

References Update().

Referenced by DataManager::DerivativesUpdate().

107 {
108  Update(XCurr, XPrimeCurr);
109 }
virtual void Update(const VectorHandler &XCurr, const VectorHandler &XPrimeCurr)
Definition: simentity.cc:98

Here is the call graph for this function:

doublereal SimulationEntity::dGetPrivData ( unsigned int  i) const
virtual

Reimplemented in StructNode, ViscoElasticHingeJointInv, PlanePinJoint, ShockAbsorberConstitutiveLaw< doublereal, doublereal >, ViscoElasticBeam, AxialRotationJoint, ViscousHingeJointInv, TotalPinJoint, ViscoElasticBeam2, Beam, TimeStep, ModuleIMUConstraint, TotalReaction, ScalarDifferentialNode, ConstitutiveLawOwner< T, Tder >, ClampJoint, Modal, Wheel4, Beam2, Body, DiscreteControlElem, PlaneRotationJoint, ElasticHingeJointInv, DriveDisplacementPinJoint, LoadableElem, StructDispNode, AutomaticStructElem, HBeam, GenelSpringSupport, TotalJoint, TotalEquation, DistanceJointWithOffset, AngularVelocityJoint, Node, Rod, AirProperties, Inertia, PlaneHingeJoint, AngularAccelerationJoint, RodBezier, AutomaticStructDispElem, DriveHingeJoint, DriveDisplacementJoint, Brake, DeformableHingeJoint, NestedElem, DeformableJoint, DeformableDispJoint, DeformableAxialJoint, GenericAerodynamicForce, GimbalRotationJoint, InducedVelocity, DistanceJoint, ViscousBody, AircraftInstruments, VariableBody, LinearVelocityJoint, DrivenElem, ModuleFMU, Motor, LinearAccelerationJoint, Mass, asynchronous_machine, LoadIncNorm, InlineFriction, and ModuleIMU.

Definition at line 149 of file simentity.cc.

References MBDYN_EXCEPT_ARGS.

Referenced by Wheel4::AfterConvergence(), Wheel4::AssRes(), PrivDriveCaller::dGet(), DrivenElem::dGetPrivData(), NestedElem::dGetPrivData(), Elem2Param::dGetX(), StrainGageParam::dGetX(), RotorTrim::GetData(), PrivPlugIn::GetVal(), model_elem(), and model_node().

150 {
151  silent_cerr("no private data available" << std::endl);
153 }
#define MBDYN_EXCEPT_ARGS
Definition: except.h:63
virtual DofOrder::Order SimulationEntity::GetDofType ( unsigned int  i) const
pure virtual

Implemented in Node2Scalar, PlanePinJoint, Flow_valve, ParameterNode, Pressure_valve, GenelMass, AxialRotationJoint, ScalarAlgebraicNode, Pressure_flow_control_valve, TotalPinJoint, ModuleIMUConstraint, Wheel4, ConstitutiveLawOwner< T, Tder >, Shell4EASANS, TotalReaction, ScalarDifferentialNode, DiscreteControlElem, Shell4EAS, Modal, InducedVelocityElem, Dynamic_control_valve, ClampJoint, UniversalPinJoint, PlaneRotationJoint, DiscreteCoulombFriction, DriveDisplacementPinJoint, DynamicPipe, LoadableElem, Membrane4EAS, Aerodynamic2DElem< iNN >, Aerodynamic2DElem< 1 >, Aerodynamic2DElem< 2 >, Aerodynamic2DElem< 3 >, Orifice, StructDispNode, InPlaneWithOffsetJoint, Control_valve2, AeroDynModule, RotAccel, PinJoint, ModLugreFriction, UniversalRotationJoint, Tank, DistanceJointWithOffset, ConstitutiveLaw< T, Tder >, ConstitutiveLaw< Vec6, Mat6x6 >, ConstitutiveLaw< Vec3, Mat3x3 >, ConstitutiveLaw< doublereal, doublereal >, ModuleNonsmoothNode, Dynamic_pipe, AngularVelocityJoint, InLineWithOffsetJoint, Elem, GenelStateSpaceMIMO, BeamSliderJoint, TotalJoint, AerodynamicModal, AngularAccelerationJoint, TotalEquation, DeformableJoint, ThreeWayMinorLoss, PlaneHingeJoint, DeformableDispJoint, TranslAccel, ModuleFMU, DriveHingeJoint, GenelDistance, DriveDisplacementJoint, Brake, Motor, NestedElem, Accumulator, LoadIncNorm, ViscousBody, Actuator, asynchronous_machine, ContactJoint, GimbalRotationJoint, InPlaneJoint, Control_valve, InPlaneContactJoint, SphericalHingeJoint, Pipe, UniversalHingeJoint, PrismaticJoint, GenelStateSpaceSISO, LinearVelocityJoint, MinorLoss, DistanceJoint, ModuleMDS, LinearAccelerationJoint, InLineJoint, InlineFriction, Accelerometer, and GenelClamp.

Referenced by GenelClamp::AssRes(), GenelSpringDamperSupport::GenelSpringDamperSupport(), GetDofOrder(), Brake::GetDofType(), PlaneHingeJoint::GetDofType(), AxialRotationJoint::GetDofType(), DofPlugIn::ReadDofOrder(), ReadGenel(), and ReadScalarDof().

virtual unsigned int SimulationEntity::iGetNumDof ( void  ) const
pure virtual

Implemented in DummyStructNode, StaticStructNode, DynamicStructNode, PetersHeRotor, StaticStructDispNode, Node2Scalar, DynamicInflowRotor, Flow_valve, PlanePinJoint, ParameterNode, DynamicStructDispNode, Pressure_valve, GenelMass, AxialRotationJoint, Pressure_flow_control_valve, ModuleIMUConstraint, Wheel4, TotalPinJoint, Shell4EASANS, ConstitutiveLawOwner< T, Tder >, DiscreteControlElem, TotalReaction, Shell4EAS, Dynamic_control_valve, Modal, ClampJoint, UniversalPinJoint, DynamicPipe, PlaneRotationJoint, LoadableElem, DiscreteCoulombFriction, ScalarNode, DriveDisplacementPinJoint, Membrane4EAS, Aerodynamic2DElem< iNN >, Aerodynamic2DElem< 1 >, Aerodynamic2DElem< 2 >, Aerodynamic2DElem< 3 >, Orifice, Control_valve2, AeroDynModule, InPlaneWithOffsetJoint, RotAccel, PinJoint, UniversalRotationJoint, Tank, DistanceJointWithOffset, Dynamic_pipe, ModLugreFriction, AngularVelocityJoint, InLineWithOffsetJoint, GenelStateSpaceMIMO, InducedVelocity, Elem, ModuleNonsmoothNode, BeamSliderJoint, AngularAccelerationJoint, AerodynamicModal, DeformableJoint, DeformableHingeJoint, ConstitutiveLaw< T, Tder >, ConstitutiveLaw< Vec6, Mat6x6 >, ConstitutiveLaw< Vec3, Mat3x3 >, ConstitutiveLaw< doublereal, doublereal >, ThreeWayMinorLoss, TotalJoint, TranslAccel, ModuleFMU, DeformableDispJoint, DeformableAxialJoint, TotalEquation, GenelDistance, Motor, Brake, PlaneHingeJoint, RotorTrimBase, Accumulator, LoadIncNorm, DriveHingeJoint, Rod, ViscousBody, PointSurfaceContact, RodBezier, NestedElem, Actuator, DriveDisplacementJoint, asynchronous_machine, ContactJoint, GimbalRotationJoint, Control_valve, Pipe, InPlaneJoint, InPlaneContactJoint, SphericalHingeJoint, UniversalHingeJoint, PrismaticJoint, GenelStateSpaceSISO, MinorLoss, LinearVelocityJoint, ModuleMDS, LinearAccelerationJoint, InlineFriction, DistanceJoint, Accelerometer, InLineJoint, and GenelClamp.

Referenced by DataManager::AssConstrJac(), DataManager::AssConstrRes(), bIsValidIndex(), PlaneHingeJoint::DescribeDof(), AxialRotationJoint::DescribeDof(), PlaneHingeJoint::DescribeEq(), AxialRotationJoint::DescribeEq(), StructDispNode::GetDofType(), Brake::iGetNumDof(), PlaneHingeJoint::iGetNumDof(), AxialRotationJoint::iGetNumDof(), Node::iGetNumPrivData(), DofPlugIn::Read(), ReadScalarDof(), Brake::WorkSpaceDim(), PlaneHingeJoint::WorkSpaceDim(), and AxialRotationJoint::WorkSpaceDim().

unsigned int SimulationEntity::iGetNumPrivData ( void  ) const
virtual
unsigned int SimulationEntity::iGetPrivDataIdx ( const char *  s) const
virtual

Reimplemented in StructNode, PlanePinJoint, ShockAbsorberConstitutiveLaw< doublereal, doublereal >, AxialRotationJoint, ScalarAlgebraicNode, TotalPinJoint, Beam, TimeStep, ModuleIMUConstraint, TotalReaction, ScalarDifferentialNode, ConstitutiveLawOwner< T, Tder >, ClampJoint, Modal, Wheel4, Beam2, Body, DiscreteControlElem, PlaneRotationJoint, DriveDisplacementPinJoint, LoadableElem, AutomaticStructElem, HBeam, StructDispNode, GenelSpringSupport, TotalJoint, TotalEquation, DistanceJointWithOffset, AngularVelocityJoint, Rod, AirProperties, Node, Inertia, PlaneHingeJoint, AngularAccelerationJoint, RodBezier, AutomaticStructDispElem, DriveHingeJoint, DriveDisplacementJoint, Brake, DeformableHingeJoint, NestedElem, DeformableJoint, DeformableDispJoint, DeformableAxialJoint, GenericAerodynamicForce, GimbalRotationJoint, InducedVelocity, DistanceJoint, ViscousBody, AircraftInstruments, VariableBody, LinearVelocityJoint, ModuleFMU, Motor, LinearAccelerationJoint, Mass, asynchronous_machine, LoadIncNorm, InlineFriction, and ModuleIMU.

Definition at line 142 of file simentity.cc.

References MBDYN_EXCEPT_ARGS.

Referenced by StrainGageParam::Bind(), NestedElem::iGetPrivDataIdx(), model_elem(), model_node(), SimulationEntityDCR::Read(), DataManager::ReadElems(), PrivPlugIn::ReadIndex(), and RotorTrim::RotorTrim().

143 {
144  silent_cerr("no private data available" << std::endl);
146 }
#define MBDYN_EXCEPT_ARGS
Definition: except.h:63
std::ostream & SimulationEntity::OutputAppend ( std::ostream &  out) const
virtual
void SimulationEntity::ReadInitialState ( MBDynParser HP)
virtual

Reimplemented in PlanePinJoint, ClampJoint, and PlaneHingeJoint.

Definition at line 161 of file simentity.cc.

References NO_OP.

162 {
163  NO_OP;
164 }
#define NO_OP
Definition: myassert.h:74
void SimulationEntity::SetValue ( DataManager pDM,
VectorHandler X,
VectorHandler XP,
SimulationEntity::Hints h = 0 
)
virtual

Reimplemented in DummyStructNode, StructNode, PetersHeRotor, DynamicInflowRotor, LoadIncForce, Flow_valve, PlanePinJoint, ParameterNode, StaticBody, ViscoElasticBeam, Pressure_valve, ScalarAlgebraicNode, GenelMass, AxialRotationJoint, TimeStep, ViscoElasticBeam2, DynamicBody, Pressure_flow_control_valve, ModuleIMUConstraint, Shell4EASANS, TotalPinJoint, ScalarDifferentialNode, ClampJoint, Wheel4, TotalReaction, Shell4EAS, Modal, Beam, Dynamic_control_valve, LoadableElem, StaticVariableBody, AutomaticStructElem, PlaneRotationJoint, DynamicPipe, StructDispNode, ElemGravityOwner, StaticMass, Membrane4EAS, ExtForce, Beam2, InducedVelocity, DriveDisplacementPinJoint, ContactJoint, HBeam, Aerodynamic2DElem< iNN >, Aerodynamic2DElem< 1 >, Aerodynamic2DElem< 2 >, Aerodynamic2DElem< 3 >, DistanceJointWithOffset, Joint, AeroDynModule, PiezoActuatorVEBeam, Control_valve2, RotAccel, PiezoActuatorVEBeam2, ElasticConstitutiveLaw< T, Tder >, ElasticConstitutiveLaw< Vec6, Mat6x6 >, ElasticConstitutiveLaw< Vec3, Mat3x3 >, ElasticConstitutiveLaw< doublereal, doublereal >, DynamicVariableBody, Tank, GenelStateSpaceMIMO, ModuleNonsmoothNode, Inertia, DynamicMass, Dynamic_pipe, AngularAccelerationJoint, AutomaticStructDispElem, TotalJoint, TotalEquation, GenelDistance, TranslAccel, PlaneHingeJoint, DeformableJoint, Motor, DeformableHingeJoint, Accumulator, Brake, Wheel2, asynchronous_machine, ModuleFMU, DistanceJoint, DeformableDispJoint, Actuator, DeformableAxialJoint, SphericalHingeJoint, CyclocopterInflow, PrismaticJoint, GenelStateSpaceSISO, LoadIncNorm, HydrodynamicPlainBearing, PiezoActuatorBeam, PiezoActuatorBeam2, Pipe, DriveHingeJoint, ViscousBody, InlineFriction, GenelClamp, DriveDisplacementJoint, LinearAccelerationJoint, Accelerometer, DispMeasure, ConstitutiveLawArray< T, Tder >, ModuleIMU, Elem2Param, ModuleMDS, ModuleTemplate, DrivenElem, NestedElem, SampleAndHold, BufferStreamElem_base, and BasicFriction.

Definition at line 63 of file simentity.cc.

References NO_OP.

Referenced by DrivenElem::AfterPredict(), NestedElem::SetValue(), DrivenElem::SetValue(), ViscousBody::SetValue(), DeformableAxialJoint::SetValue(), DeformableDispJoint::SetValue(), DeformableHingeJoint::SetValue(), DeformableJoint::SetValue(), and DataManager::SetValue().

66 {
67 #if 0
68  if (*ppX0_Xp0 != NULL) {
69  // scrive in X e XP i dati iniziali
70  }
71 #endif
72  NO_OP;
73 }
#define NO_OP
Definition: myassert.h:74
void SimulationEntity::Update ( const VectorHandler XCurr,
InverseDynamics::Order  iOrder 
)
virtual

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