Marine systems simulation
CWagProp Class Reference
+ Inheritance diagram for CWagProp:
+ Collaboration diagram for CWagProp:

Public Member Functions

 CWagProp (string simobjectname, ISimObjectCreator *creator)
 The constructor sets the pointer to the output object and the parser object.
 
virtual void OdeFcn (const double T, const double *const X, double *const XDot, const bool bIsMajorTimeStep)
 Calculates the state derivatives.
 
void FinalSetup (const double T, const double *const X, ISimObjectCreator *const creator)
 
void GetCurrent (const double T, const double *const X, const double position[3], double *currentVelocity)
 ICurrentField interface method. More...
 
const double *const outRPS (const double T, const double *const X)
 
const double *const outHydTorque (const double T, const double *const X)
 
const double *const outThrust (const double T, const double *const X)
 
const double *const outBeta (const double T, const double *const X)
 
const double *const outCt (const double T, const double *const X)
 
const double *const outUs (const double T, const double *const X)
 
const double *const outRs (const double T, const double *const X)
 

Protected Member Functions

bool ReadPropParFile (ISimObjectCreator *creator)
 Sets the parameters of the mass object.
 
void CalcOutPut (const double T, const double *const X)
 
void CalcBeta (const double T, const double *const X)
 

Protected Attributes

double m_dInertia
 Inertia of the propeller/shaft.
 
double m_dDia
 Propeller diameter.
 
double m_dRho
 Water density.
 
double m_dRudderArea
 
double m_dRudderHeigth
 
ISignalPort * m_IM
 
ISignalPort * m_IN
 
ISignalPort * m_IVa
 
ISignalPort * m_IDir
 
ISignalPort * m_IPD
 
ISignalPort * m_IPos
 
int m_ISAngVel
 The index of the angular angular velocity state.
 
std::string driving_port
 
double m_outRPS
 
double m_outQ
 
double m_outBeta
 
double m_outT [3]
 
double m_Ct
 
double m_Us
 
double m_Rs
 
double m_Pos [3]
 
propeller_table_2d m_PropData
 
CPrintDuringExec * m_Print
 
CEnvironmentm_environment
 
ICurrentFieldm_propellerJetstream
 

Member Function Documentation

◆ GetCurrent()

void CWagProp::GetCurrent ( const double  T,
const double *const  X,
const double  position[3],
double *  currentVelocity 
)
virtual

Implements ICurrentField.


The documentation for this class was generated from the following file: