6#include "sfh/constants.h"
91 HydroCable(
const std::string& simObjectName, ISimObjectCreator*
const creator);
92 void OdeFcn(
const double T,
const double*
const X,
double*
const XDot,
const bool IsMajorTimeStep);
93 void InitialConditionSetup(
const double T,
const double*
const currentIC,
double*
const updatedIC, ISimObjectCreator*
const creator);
95#ifdef FH_VISUALIZATION
96 void RenderInit(Ogre::Root*
const ogreRoot, ISimObjectCreator*
const creator);
97 void RenderUpdate(
const double T,
const double*
const X);
101 void SetOutputPortValues(
const double T,
const double*
const X);
102 Eigen::Vector3d Drag(
int k,
int l,
const double T,
const double*
const X);
103 Eigen::Vector3d Spring(
int k,
int l,
const double T,
const double*
const X);
104 Eigen::Vector3d Damp(
int k,
int l,
const double T,
const double*
const X);
105 const double* ForceA(
const double T,
const double*
const X);
106 const double* ForceB(
const double T,
const double*
const X);
107 const double* PosA(
const double T,
const double*
const X);
108 const double* PosB(
const double T,
const double*
const X);
110 ICommonComputation* m_SetOutputPortValues;
111 ISignalPort* m_PositionA;
112 ISignalPort* m_PositionB;
113 ISignalPort* m_VelocityA;
114 ISignalPort* m_VelocityB;
115 ISignalPort* m_Current;
117 std::vector<int> m_PositionIndex, m_VelocityIndex;
127 double m_ElementMass, m_ElementLength0;
128 double m_SpringCoef, m_DamperCoef, m_GravYancy;
129 double m_CrossDragCoef, m_AlongDragCoef, m_RhoWater;
130 double m_Mass, m_Length, m_Diameter, m_RhoCable, m_Modulus;
132#ifdef FH_VISUALIZATION
133 Ogre::ManualObject* m_Line;
Definition: HydroCable.h:89