43#include <ISimObjectCreator.h>
45#include <CEnvironment.h>
47#ifdef FH_VISUALIZATION
49#pragma warning( disable : 4251 )
52 #include "sfh/ogre/C3DArrow.h"
56 class Foil:
public SimObject
60 Foil(
const string simObjectName, ISimObjectCreator*
const creator);
63 void FinalSetup(
const double T,
const double *
const X, ISimObjectCreator*
const creator );
64 virtual void OdeFcn(
const double T,
const double*
const X,
double*
const XDot,
const bool bIsMajorTimeStep);
66 #ifdef FH_VISUALIZATION
67 virtual void RenderInit(Ogre::Root*
const ogreRoot, ISimObjectCreator*
const creator);
68 virtual void RenderUpdate(
const double T,
const double*
const X );
74 const double*
ForceNED(
const double T,
const double*
const X);
76 const double*
ForceBody(
const double T,
const double*
const X);
78 const double*
TorqueBody(
const double T,
const double*
const X);
80 const double*
AlfaBody(
const double T,
const double*
const X);
82 const double*
ClBody(
const double T,
const double*
const X);
84 const double*
CdBody(
const double T,
const double*
const X);
86 const double*
CpBody(
const double T,
const double*
const X);
88 const double*
InWater(
const double T,
const double*
const X);
92 void Compute(
const double T,
const double*
const X);
109 double m_AccelerateFlow;
112 ISignalPort* m_IPositionNED;
114 ISignalPort* m_IVelocityNED;
116 ISignalPort* m_IQuaternionNED;
118 double m_FluidVelcoity[3];
119 double m_ForceNED[3];
120 double m_ForceBody[3];
121 double m_ToruqeBody[3];
122 double m_CurrentAlfa;
128 ICommonComputation *m_Compute;
130 unsigned int m_DatasetSize;
134 Eigen::Vector3d dir_drag_ned;
135 Eigen::Vector3d dir_lift_ned;
136 Eigen::Vector3d dir_force_ned;
138 #ifdef FH_VISUALIZATION
139 Ogre::SceneNode* m_RenderNode;
141 C3DArrow *Arrow_norm;
142 C3DArrow *Arrow_force;
Definition: CEnvironment.h:10
const double * ClBody(const double T, const double *const X)
const double * CpBody(const double T, const double *const X)
const double * CdBody(const double T, const double *const X)
const double * InWater(const double T, const double *const X)
const double * AlfaBody(const double T, const double *const X)
const double * ForceBody(const double T, const double *const X)
const double * FluidVelocity(const double T, const double *const X)
const double * TorqueBody(const double T, const double *const X)
const double * ForceNED(const double T, const double *const X)
Simple waypoint object.
Definition: CableAttach.h:16