Marine systems simulation
CMass Class Reference

Class containing a 3dof mass simObjec without gravity. More...

#include <CMass.h>

+ Inheritance diagram for CMass:
+ Collaboration diagram for CMass:

Public Member Functions

 CMass (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. More...
 
 CMass (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. More...
 

Protected Member Functions

virtual const double * Position (const double dT, const double *const adX)
 
virtual const double * Velocity (const double dT, const double *const adX)
 
virtual const double * Position (const double dT, const double *const adX)
 
virtual const double * Velocity (const double dT, const double *const adX)
 

Protected Attributes

double m_dMass
 The mass of the object.
 
double m_dg
 The acceleration of gravity.
 
ISignalPort * m_pInForce
 A pointer to the input force.
 
int m_IStatePos
 The index of the position state.
 
int m_IStateVel
 The index of the velocity state.
 

Detailed Description

Author
Karl-Johan Reite
Examples
CMass.h.

Member Function Documentation

◆ OdeFcn() [1/2]

virtual void CMass::OdeFcn ( const double  dT,
const double *const  adX,
double *const  adXDot,
const bool  bIsMajorTimeStep 
)
virtual

Reimplemented in C3DBody.

Examples
CMass.cpp, and CMass.h.

◆ OdeFcn() [2/2]

virtual void CMass::OdeFcn ( const double  dT,
const double *const  adX,
double *const  adXDot,
const bool  bIsMajorTimeStep 
)
virtual

Reimplemented in C3DBody.


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