Marine systems simulation
CCouplingPlate.h
1
10
11#ifndef C_CCOUPLING_PLATE_H
12#define C_CCOUPLING_PLATE_H
13
14#include <string>
15#include "SimObject.h"
16
22namespace System {
23
24class CouplingPlate : public SimObject
25{
26public:
28 CouplingPlate(std::string sSimObjectName, ISimObjectCreator* pCreator);
29
30#ifdef FH_VISUALIZATION
32 virtual void RenderInit(Ogre::Root* const ogreRoot, ISimObjectCreator* const creator);
33
35 virtual void RenderUpdate(const double T, const double* const X);
36#endif
37
39 virtual void OdeFcn(const double dT, const double* const adX,
40 double* const adXDot, const bool bIsMajorTimeStep);
41
42protected:
43 virtual const double* Position(const double dT, const double* const adX);
44 virtual const double* Velocity(const double dT, const double* const adX);
45
46 double m_dMass;
47 double m_dGravity;
48 double m_addMass, m_damp;
49 ISignalPort* m_pInForce;
52
53 double m_Tau;
54
55#ifdef FH_VISUALIZATION
56 std::string m_sMaterial;
57 std::string m_sMeshName;
58 double m_dScale;
59 Ogre::Entity* m_pRenderEntity;
60 Ogre::SceneNode* m_pRenderNode;
61 Ogre::SceneManager* m_pSceneMgr;
62#endif
63};
64
65}
66#endif
Definition: CCouplingPlate.h:25
double m_dGravity
Accelleration of gravity.
Definition: CCouplingPlate.h:47
int m_IStateVel
The index of the velocity state.
Definition: CCouplingPlate.h:51
CouplingPlate(std::string sSimObjectName, ISimObjectCreator *pCreator)
The constructor sets the pointer to the output object and the parser object.
double m_damp
Added mass and damping (linear) used in equation of motion (ODE).
Definition: CCouplingPlate.h:48
virtual void OdeFcn(const double dT, const double *const adX, double *const adXDot, const bool bIsMajorTimeStep)
Calculates the state derivatives.
double m_dMass
The mass of the object.
Definition: CCouplingPlate.h:46
int m_IStatePos
The index of the position state.
Definition: CCouplingPlate.h:50
ISignalPort * m_pInForce
A pointer to the input force.
Definition: CCouplingPlate.h:49
Class modelling a flexible bottom ring, inheriting from CRing in RMCable lib.
Definition: CCable.h:142