Marine systems simulation
|
Public Member Functions | |
CBottomRing (const string &simobjectname, ISimObjectCreator *const creator) | |
The constructor sets the pointer to the output object and the parser object. | |
~CBottomRing () | |
The destructor cleans up. | |
virtual void | OdeFcn (const double T, const double *const X, double *const XDot, const bool bIsMajorTimeStep) |
Calculates the state derivatives. More... | |
const double * | outCentrePos (const double T, const double *const X) |
Writes centre position to the output ports. | |
const double * | outConnectorPos (const double T, const double *const X, const int index) |
Writes connector positions to the output ports. | |
const double * | outConnectorVel (const double T, const double *const X, const int index) |
Writes connector velocities to the output ports. | |
Public Member Functions inherited from C6DBody | |
C6DBody (std::string sSimObjectName, ISimObjectCreator *pCreator) | |
virtual void | OdeFcn (const double dT, const double *const adX, double *const adXDot, const bool bIsMajorTimeStep) |
Calculates the state derivatives. More... | |
virtual void | CalcDerivatives (const double adLocalForces[3], const double adLocalMoments[3], const double adGlobalForces[3], const double adGlobalMoments[3], const double adVelLocal[3], const double adOmegaLocal[3], const double adQuater[4], double adVelLocalDot[3], double adOmegaLocalDot[3], double adQuaterDot[4], double adPosGlobalDot[3]) |
Calculates the state derivatives when the forces and moments are known. | |
Protected Member Functions | |
void | CalcConnectorPosGlobal (const double T, const double *const X, const int index) |
Calculates the global positions of the connectors. | |
Protected Member Functions inherited from C6DBody | |
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 * | Quater (const double dT, const double *const adX) |
virtual const double * | LocalVel (const double dT, const double *const adX) |
virtual const double * | AngVel (const double dT, const double *const adX) |
Protected Attributes | |
int | m_iNumConnectors |
Number of external connectors. | |
ISignalPort ** | m_aIINetForce |
Array of indices to connector forces in input vector. | |
double ** | m_OutConnectorPosGlobal |
Holds pointers to all net connection pos arrays. | |
double ** | m_OutConnectorVel |
Holds pointers to all net connection vel arrays. | |
double ** | m_aadNetConnectPos |
Local connector coordinates, array of array of double (size m_iNumConnectors x 3) | |
double ** | m_aadNetForceLocal |
Net force in local coordinats, array of array of double (size m_iNumConnectors x 3) | |
double ** | m_aadNetMomentLocal |
Net force in local coordinats, array of array of double (size m_iNumConnectors x 3) | |
double | m_CentrePos [3] |
Centre pos of bottom ring output. | |
double | m_Diameter |
Diameter of cage. | |
double | m_dI |
Moment of inertia. | |
double | m_dR |
Radius from equi. center to centerline. | |
double | m_dWt |
Wall thickness. | |
double | m_dRr |
Pipe radius. | |
double | m_dh |
Vertical offset of torus plane from local xy-plane. | |
double | m_dRho |
Density. | |
double | m_dMass |
Mass. | |
double | m_adInertiaMoment [3] |
Inertia matrix diagonal. | |
double | m_dDamping |
Simple linear damping. | |
Protected Attributes inherited from C6DBody | |
ISignalPort * | m_pInMoment |
A pointer to the input moment. | |
ISignalPort * | m_pInForce |
A pointer to the input force. | |
double | m_dMass |
The mass of the object. | |
double | m_dGravity |
The gravitational acceleration. | |
double | m_adVelGlobal [3] |
The global velocity. | |
double | m_adDiagonalMass [6] |
The diagonal of the mass matrix, assuming all cross coupling terms to be zero. | |
int | m_IStatePos |
Index of the global position in the state vector. | |
int | m_IStateQuater |
Index of the quaternions in the state vector. | |
int | m_IStateLocalVel |
Index of the local velocity in the state vector. | |
int | m_IStateOmega |
Index of the local angular velocity in the state vector. | |
double | m_adBodySize [3] |
The size of the body along x-, y- and z-axis. | |
|
virtual |
Reimplemented from C6DBody.