83#include "ToTrawlDoor.h"
84#include "subroutines/FoilPolar.h"
98#ifdef FH_VISUALIZATION
100 virtual void RenderInit(Ogre::Root*
const ogreRoot, ISimObjectCreator*
const creator);
103 virtual void RenderUpdate(
const double dT,
const double*
const adX);
120 void SetFoilRatio(
const double dT,
const double*
const adX);
125 ISignalPort* m_inFoilRelAoa;
126 ISignalPort* m_inFoilRelAoaRate;
127 ISignalPort* m_inFoilExposedAreaRatio;
128 ISignalPort* m_inFoilRelPosition;
135 bool m_foilIsVertical;
137#ifdef FH_VISUALIZATION
138 Ogre::Vector3 ToFoilScale(
double x,
double y,
double z);
139 void SetFoilPos(
double x,
double y,
double z);
140 float m_foilRelRollAngle;
141 Ogre::ManualObject* m_foilManualObject =
nullptr;
142 Ogre::SceneNode* m_foilRenderNode =
nullptr;
Definition FoilPolar.h:18
Definition ToTrawlDoor.h:125
Definition TrawlDoorAddedFoil.h:88
const double * OutFoilEnergyConsumed(const double dT, const double *const adX)
Output port returning the foil energy consumption.
void AddOwnDerivatives(double T, const double *X, const plate_door::Inflow &inflow, double *XDot) const override
The derivative of the foil energy: the power the actuator delivers against the foil's hinge moment.
double m_foilHingeOffset
Hinge to pressure centre along the chord.
Definition TrawlDoorAddedFoil.h:133
static FoilPolar ReadFoilPolar(ISimObjectCreator *creator)
Reads the FoilHydro_* polar, reporting a parameter error when it is malformed.
FoilLoad Foil(double T, const double *X, const plate_door::Inflow &inflow) const
The foil's load at time T and global state X, at the plate-door inflow of that state.
void AddInflowDependentForces(double T, const double *X, const plate_door::Inflow &inflow, hydro_body::Wrench &wrench) const override
Adds the foil's wrench (Foil()).
TrawlDoorAddedFoil(std::string simObjectName, ISimObjectCreator *creator)
The constructor sets the pointer to the output object and the parser object.
The foil's load at the plate-door inflow of a state: its wrench in the door frame and its chord-norma...
Definition TrawlDoorAddedFoil.h:109
double wrench[6]
Door frame [N, Nm].
Definition TrawlDoorAddedFoil.h:110
double normalForce
N = L cos(a) + D sin(a), towards the lift side, mirrored frame [N].
Definition TrawlDoorAddedFoil.h:111
The sum of the loads on a body: the force [0..2] and the moment about the origin [3....
Definition HydroBody.h:57
The door's inflow angles, in the starboard convention, and speed.
Definition PlateDoorLaw.h:60