59#ifndef CTrawlDoorAddedFoil_H
60#define CTrawlDoorAddedFoil_H
62#include "CToTrawlDoor.h"
71 virtual void OdeFcn(
const double dT,
const double*
const adX,
double*
const adXDot,
const bool bIsMajorTimeStep);
73 void FinalSetup(
const double dT,
const double *
const adX, ISimObjectCreator*
const pCreator);
80#ifdef FH_VISUALIZATION
82 virtual void RenderInit(Ogre::Root*
const pOgreRoot, ISimObjectCreator*
const pCreator);
85 virtual void RenderUpdate(
const double dT,
const double*
const adX);
89 virtual void AddExternalForces(
double dT,
const double*
const adX);
90 void SetFoilRatio(
const double dT,
const double*
const adX);
92 ISignalPort* m_pInFoilRelAoa;
93 ISignalPort* m_pInFoilExposedAreaRatio;
94 ISignalPort* m_pInFoilRelPosition;
96 double* m_foilHydro_Aoa;
97 double* m_foilHydro_CL;
98 double* m_foilHydro_CD;
99 double m_foilEnergyConsumed;
102 int m_numFoilHydroPoints;
103 bool m_foilIsVertical;
105#ifdef FH_VISUALIZATION
106 Ogre::Vector3 ToFoilScale(
double x,
double y,
double z);
107 void SetFoilPos(
double x,
double y,
double z);
108 float m_foilRelRollAngle;
109 Ogre::ManualObject* m_foilManualObject;
110 Ogre::SceneNode* m_pFoilRenderNode;
Definition: CToTrawlDoor.h:111
Definition: CTrawlDoorAddedFoil.h:65
CTrawlDoorAddedFoil(std::string sSimObjectName, ISimObjectCreator *pCreator)
The constructor sets the pointer to the output object and the parser object.
virtual void OdeFcn(const double dT, const double *const adX, double *const adXDot, const bool bIsMajorTimeStep)
Calculates the state derivatives.
const double * OutFoilEnergyConsumed(const double dT, const double *const adX)
Output port returning the foil energy consumption.