92#include <fhsim/simobject/SimObject.h>
93#ifdef FH_VISUALIZATION
94#include "sfh/ogre/CDynamicLines.h"
98#include "subroutines/RBCEngine.h"
113#ifdef FH_VISUALIZATION
115 void RenderInit(Ogre::Root*
const ogreRoot, ISimObjectCreator*
const creator);
119 void RenderUpdate(
const double T,
const double*
const X);
125 void OdeFcn(
const double T,
const double*
const X,
126 double*
const XDot)
const;
133 const double*
const ForceA(
const double T,
const double*
const X);
134 const double*
const ForceB(
const double T,
const double*
const X);
135 const double*
const PosR(
const double T,
const double*
const X,
137 const double*
const VelR(
const double T,
const double*
const X,
142 void CalcOutput(
const double T,
const double*
const X)
const;
144 void InitialConditionSetup(
const double T,
145 const double *
const currentIC,
146 double*
const updatedIC,
147 ISimObjectCreator*
const creator);
159#ifdef FH_VISUALIZATION
160 Ogre::Entity* m_RenderSpring;
161 Ogre::SceneNode* m_RenderNode;
163 CDynamicLines* m_lines =
nullptr;
180 int m_NofBarElements;
184 bool Evaluate(
const double T,
const double*
const X)
const;
186 ICommonComputation* m_commonCalc =
nullptr;
188 mutable std::vector<double> m_nodeForces;
Class containing a Rigid Bar Cable (RBC) calculation engine.
Definition RBCEngine.h:20
Definition RigidBarCable.h:103
void CalcOutput(const double T, const double *const X) const
Common calculation of the output ports: the engine at (T, X).
void AcceptedStep(double T, const double *X) override
Advances the end control and the sum of the end error at the accepted state (MARE-0451).
void OdeFcn(const double T, const double *const X, double *const XDot) const
Calculates the time derivative of the state vector.
RigidBarCable(std::string simObjectName, ISimObjectCreator *creator)
The constructor sets the pointer to the output object and the parser object.
~RigidBarCable()
The destructor cleans up dynamically allocated memory.