11#include "MooringSystemCoribo2.h"
13#include "./RingStructureGravityHydro.h"
14#include "./Cable/LineStructureGravityHydro.h"
15#include "./Cable/BridleCable.h"
16#include "./Cable/FrameCable.h"
21 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
25 virtual void OdeFcn(
const double T,
const double *
const X,
double *
const XDot,
const bool IsMajorTimeStep);
26 virtual void InitialConditionSetup(
const double,
const double *
const,
double*
const updatedIC, ISimObjectCreator*
const);
27 virtual void FinalSetup(
const double T,
const double *
const X, ISimObjectCreator*
const creator);
29 virtual void compute(
const double T,
const double *
const X);
31#ifdef FH_VISUALIZATION
32 virtual void RenderInit(Ogre::Root*
const ogreRoot, ISimObjectCreator*
const creator);
33 virtual void RenderUpdate(
const double T,
const double*
const X);
36 virtual void PreOdeFcn(
const double T,
const double *
const X, IStateUpdater* updater);
37 const double *forceFloater(
const double T,
const double *
const X,
int index);
44 for (
int i = 0; i < 12; i++) {
46 floaterPos[i] =
nullptr;
47 floaterVel[i] =
nullptr;
48 bridleconstraint[i] = -1;
50 for (
int j = 0; j < 3; j++) {
51 bufferP[i][j] = std::numeric_limits<double>::quiet_NaN();
60 void UpdateBuffersFromPorts(
const double T,
const double *
const X) {
61 for (
int i = 0; i < 12; i++) {
62 if ( bridle[i] ==
nullptr)
continue;
63 auto pos = floaterPos[i]->GetPortValue(T, X);
64 auto vel = floaterVel[i]->GetPortValue(T, X);
65 for (
int j = 0; j < 3; j++) {
66 bufferP[i][j] = pos[j];
67 bufferV[i][j] = vel[j];
74 ISignalPort* floaterPos[12];
75 ISignalPort* floaterVel[12];
76 double bufferP[12][3];
77 double bufferV[12][3];
78 double bufferO[12][3];
79 double bufferQ[12][4];
80 double bufferF[12][3];
81 int bridleconstraint[12];
83 virtual void CreateCells(ISimObjectCreator* creator);
84 std::vector<CellExternalBridle*> m_cell;
86 ICommonComputation* m_compute3;
Definition: BridleCable.h:8
Definition: MooringSystemCoribo2.h:16
Definition: MooringSystemCoribo3.h:19
Class modelling a Net cage.
Definition: CBottomRing.h:35
Definition: MooringSystemCoribo3.h:40