109#include <Eigen/Eigen>
111#include <fhsim/PrintDuringExec.h>
112#include <fhsim/simobject/SimObject.h>
113#include <fhsim_environment/EnvironmentProvider.h>
114#include <fhsim_environment/ElementFlowInteraction.h>
116#include "cable/GaussPointDrag.h"
118#ifdef FH_VISUALIZATION
119# include "sfh/ogre/C3DLine.h"
127 Cable6Dof(
const std::string& simObjectName, ISimObjectCreator*
const creator);
129 void OdeFcn(
const double T,
const double*
const X,
double*
const XDot)
const;
130 void InitialConditionSetup(
const double T,
const double*
const currentIC,
double*
const updatedIC, ISimObjectCreator*
const creator);
131 void FinalSetup(
const double T,
const double*
const X, ISimObjectCreator*
const creator)
override;
132 void PreOdeFcn(
const double T,
const double*
const X)
override;
134 const double* forceA(
const double T,
const double*
const X);
135 const double* forceB(
const double T,
const double*
const X);
139 void calculations(
const double T,
const double*
const X);
143 void calculationsCommon(
const double T,
const double*
const X)
const;
145#ifdef FH_VISUALIZATION
146 void RenderInit(Ogre::Root*
const ogreRoot, ISimObjectCreator*
const creator);
147 void RenderUpdate(
const double T,
const double*
const X);
148 Ogre::ColourValue tensionColor(
double N);
152 typedef Eigen::Matrix<double, 3, 3> mat3;
153 typedef Eigen::Matrix<double, 3, 1> vec3;
158 double m_totalLength;
167 environment::wake::ElementFlowInteraction
m_flow;
198 ICommonComputation* m_calcDynamics;
199 Eigen::Matrix<double, Eigen::Dynamic, 1> m_lambda;
200 Eigen::Matrix<double, Eigen::Dynamic, 1> m_F;
206#ifdef FH_VISUALIZATION
207 Ogre::ManualObject* m_ManualObject;
210 Ogre::SceneNode* m_ManualObjectNode;
Definition Cable6Dof.h:125
environment::wake::ElementFlowInteraction m_flow
The flow at the element centres, the other objects' wakes taken per step (MARE-0223); the Environment...
Definition Cable6Dof.h:167
void FinalSetup(const double T, const double *const X, ISimObjectCreator *const creator) override
Takes the Environment (MARE-0315).
wet_cylinder_water::ElementGaussPoints m_gaussPoints
The Gauss points of the elements of the chain, and the water at them; buffers kept from call to call.
Definition Cable6Dof.h:169
PrintDuringExec * m_print
The shared printer for run errors; null if the creator has none, as in a unit test.
Definition Cable6Dof.h:166
void PreOdeFcn(const double T, const double *const X) override
Takes the other objects' wakes at the element centres, or with the Gauss-point drag at the Gauss poin...
void BuildGaussPoints(const double *const X)
Finds the Gauss points of the chain of elements from the state; the axis of an element is its quatern...
bool m_gaussPointDrag
Gauss-point drag with the water at the Gauss points (MARE-0396).
Definition Cable6Dof.h:168
Cable6Dof(const std::string &simObjectName, ISimObjectCreator *const creator)
reads parameters, registers states, output and intput ports.
Definition GaussPointDrag.h:56
Definition Cable6Dof.h:180
mat3 MiT
The inverse of the translational inertia with the added mass normal to the axis, global frame (MARE-0...
Definition Cable6Dof.h:184