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

Public Member Functions

 CCrowfoot (const std::string &simObjectName, ISimObjectCreator *const creator)
 Reads parameters, registers states, input/output ports and shared resources. More...
 
void OdeFcn (const double T, const double *const X, double *const XDot, const bool IsMajorTimeStep)
 
virtual void InitialConditionSetup (const double dT, const double *const adCurrentIC, double *const adUpdatedIC, ISimObjectCreator *const pCreator)
 
virtual const double * PositionOut (const double t, const double *const x)
 
virtual const double * VelocityOut (const double t, const double *const x)
 
virtual const double * LineForceOut (const double t, const double *const x, int lineIndex)
 
virtual const double * LineTensionOut (const double t, const double *const x, int lineIndex)
 

Protected Attributes

int m_numLines
 
std::vector< const double * > m_linesPos
 
std::vector< double * > m_linesForce
 
std::vector< double > m_linesTension
 
ISignalPort ** m_inFasteningPositions
 
ISignalPort ** m_inLengths
 
ISignalPort * m_inExternalForce
 
CCrowfootMathm_crowfoot
 
double m_velocity [3]
 
double m_instantPos [3]
 
sfh::filters::FIR m_filter
 

Constructor & Destructor Documentation

◆ CCrowfoot()

CCrowfoot::CCrowfoot ( const std::string &  simObjectName,
ISimObjectCreator *const  creator 
)

The constructor performs all initial setup for a crow foot simobject. Reading in parameters, setting up communication interface i.e. output ports, input ports, and states, plus additional 'one time only' resource setup.

Reads in "Mass2D" parameter and tests for validity. Registers communication interface; "Velocity"/"Position" output ports. Registers states; "Velocity"/"Position"

Parameters
[in]simObjectName-> The name of the simobject
[in]creator-> Retrieve parameters. Register states, ports and shared resources

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