FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
ToVessel Class Reference
+ Inheritance diagram for ToVessel:
+ Collaboration diagram for ToVessel:

Public Member Functions

 ToVessel (std::string simObjectName, ISimObjectCreator *creator)
 
double DesiredSpeed (const double dT, const double *const adX) const override
 The commanded speed: the Vel input at (dT, adX).
 
double DesiredHeading (const double dT, const double *const adX) const override
 The commanded heading: the Heading input at (dT, adX).
 
- Public Member Functions inherited from TrawlVessel
 TrawlVessel (std::string simObjectName, ISimObjectCreator *creator)
 
virtual void OdeFcn (const double dT, const double *const adX, double *const adXDot) const
 
bool HasJacobians () const override
 
void OdeJacobian (double T, const double *X, double *J, int nStates) override
 
int GetJacobianSparsity (int nStates, int *rowPtr, int *colIdx) override
 

Protected Attributes

ISignalPort * m_inHeading
 The cable length input port.
 
ISignalPort * m_inVel
 The cable length input port.
 
- Protected Attributes inherited from TrawlVessel
double m_apSpeed
 The speed of the autopilot.
 
double m_out_Pos [3]
 
double m_out_Vel [3]
 
double * m_out_WarpPos
 
double * m_out_WarpVel
 
ICommonComputation * m_commonCalc
 Calculations necessary for more than one output port.
 
int m_IStatePos
 
int m_IStateHeading
 
double m_Breadth
 
double m_Draught
 
double m_Length
 
double m_WarpPosPrt [3]
 
double m_WarpPosStb [3]
 
double m_pitch
 
std::vector< std::array< double, 3 > > m_warpPos
 The warp fastenings in the body frame, port to starboard.
 
int m_numWarps
 
double m_initialSpeed
 InitialSpeed: the speed command of a vessel without a Vel input.
 
double m_initialHeading
 InitialHeading: the heading command of a vessel without a Heading input.
 

Additional Inherited Members

- Protected Member Functions inherited from TrawlVessel
const double * OutHeading (const double dT, const double *const adX)
 Output ports.
 
const double * OutPos (const double dT, const double *const adX)
 
const double * OutVel (const double dT, const double *const adX)
 
const double * OutWarpPos (const double dT, const double *const adX, int warp)
 
const double * OutWarpVel (const double dT, const double *const adX, int warp)
 
void CalcOutput (const double dT, const double *const adX)
 
void CalcOutputCommon (const double dT, const double *const adX) const
 
virtual void DoDerivedOutputUpdate (const double dT, const double *const adX)
 

Member Function Documentation

◆ DesiredHeading()

double ToVessel::DesiredHeading ( const double  dT,
const double *const  adX 
) const
overridevirtual

Reimplemented from TrawlVessel.

◆ DesiredSpeed()

double ToVessel::DesiredSpeed ( const double  dT,
const double *const  adX 
) const
overridevirtual

Reimplemented from TrawlVessel.


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