Marine systems simulation
barge::CBarge Class Reference
+ Inheritance diagram for barge::CBarge:
+ Collaboration diagram for barge::CBarge:

Public Member Functions

EIGEN_MAKE_ALIGNED_OPERATOR_NEW CBarge (std::string sSimObjectName, ISimObjectCreator *pCreator)
 
virtual void FinalSetup (const double dT, const double *const adX, ISimObjectCreator *const pCreator)
 
virtual void InitialConditionSetup (const double T, const double *const currentIC, double *updatedIC, ISimObjectCreator *creator)
 
virtual void OdeFcn (const double dT, const double *const adX, double *const adXDot, const bool bIsMajorTimeStep)
 Calculates the state derivatives.
 
virtual vec6 GetInternalForces (const int &pi, const vec6 &dX, const vec3 &r, const quat &ql2g, const quat &qg2l, double time, const double *const states)
 
virtual mat6 GetInertiaMatrix (const int &pi, const vec3 &r, const quat &q, const double dT, const double *const adX)
 
virtual vec13 GetSecondDerivative (const int &pi, const vec3 &r, const quat &ql2g, const quat &qg2l, const vec3 &v, const vec3 &w, const vec6 &externalForces, const double time, const double *const states)
 
virtual vec6 CalConnectForce (const vec3 &r, const vec6 &dX, const quat &ql2g, const quat &qg2l, const double dT, const double *const adX)
 
virtual vec6 CalcHydroforcesBarge (const int &pi, const vec6 &dX, const vec3 &r, const quat &ql2g, const quat &qg2l, double time, const double *const states)
 
virtual vec6 FroudeKriloffBarge (const int &pi, const vec6 &dX, const vec3 &r, const quat &ql2g, const quat &qg2l, double time, const double *const states)
 
virtual vec6 DiffractionBarge (const int &pi, const vec6 &dX, const vec3 &r, const quat &ql2g, const quat &qg2l, double time, const double *const states)
 
virtual vec6 CalWaveOverToppingBarge (const int &pi, const vec6 &dX, const vec3 &r, const quat &ql2g, const quat &qg2l, double time, const double *const states)
 

Static Public Member Functions

static vec6 GetCoriolisForce (const vec6 &dX, const mat6 &Inertia)
 

Protected Member Functions

virtual const double * BargeState (const double dT, const double *const adX)
 
virtual const double * ConnectForce (const double dT, const double *const adX)
 
virtual const double * RadiationDamping (const double dT, const double *const adX)
 
virtual const double * FirstOrderWave (const double dT, const double *const adX)
 
virtual const double * ConnectPos (const double dT, const double *const adX, int iConnect)
 List of velocities (u,v,w) of the connections.
 
virtual const double * ConnectVel (const double dT, const double *const adX, int iConnect)
 
virtual vec6 CalStateSpaceStructure (const int &pi, const double dT, const double *const adX, const vec6 &VS)
 

Protected Attributes

int m_IStatePos
 
int m_IStateRot
 Index of the global position in the state vector.
 
int m_IStateQuater
 Index of the global rotation in the state vector.
 
int m_IStateLocalVel
 Index of the quaternions in the state vector.
 
int m_IStateOmega
 Index of the local velocity in the state vector.
 
int m_numFloe
 Index of the local angular velocity in the state vector.
 
vec3 ** m_BargeV
 Number of barges -> Will always be 1, therefore remove?
 
vec3 ** m_xyzBargeV
 Local coordinates of the barge vertices.
 
mat6 * m_AddedMass
 Coordinates of the barge vertices.
 
mat6 * m_DampMatrix
 Added mass matrix.
 
Particle m_Particle [1]
 Damping matrix.
 
PolyplateSpec m_PolyPlate [1]
 Particle class for contact detection.
 
double m_BargeDensity
 Polyplate structure.
 
double m_wDragCoeff [2]
 Density of barge.
 
double m_BargeSpeed [3]
 Water drag coefficient.
 
CEnvironmentm_Environment
 Initial barge drift speed.
 
double m_BargeState [22]
 Pointer to DeepSeaGravityWaves -> CEnvironment.
 
double m_StepSize
 Barge states - Why 22?
 
double m_PrevTime
 Integration step size.
 
int m_ConnectNum
 Previous time step.
 
int m_ConnectPA
 Number of connections.
 
double * m_ConnectLoc
 Index of the object to connect.
 
double * m_ConnectPos
 List of local locations of the connections.
 
double * m_ConnectVel
 List of positions (x,y,z) of the connections.
 
ISignalPort ** m_ConnectForce
 
double m_StructConnectForce [8]
 
int m_StateSpace
 Output global connect force acting on the structure.
 
int m_IStateSSpace
 
int m_ModeNum
 Index of the additional states for state-space implementation in the state vector.
 
int m_StateNum
 
Eigen::Matrix< double, sys_size, sys_size > * m_SSpaceA
 
Eigen::Matrix< double, sys_size, 1 > * m_SSpaceB
 
Eigen::Matrix< double, 1, sys_size > * m_SSpaceC
 
Eigen::Matrix< double, 1, 1 > * m_SSpaceD
 
double * m_SSpaceSDot
 
int m_WNum
 
std::vector< double > m_WaveF
 
std::vector< double > m_WaveA
 
std::vector< double > m_WaveP
 
std::vector< double > m_WaveD
 
std::vector< double > m_WaveN
 
double * m_DiffA
 
double * m_DiffP
 
double m_BargeL
 
double m_BargeB
 Length.
 
double m_BargeD
 Beam.
 
double m_BargeH
 Draft.
 
double m_BargeCOG [3]
 Depth - Height/thickness?
 
double m_BargeZG [2]
 Centre of gravity.
 
double m_BargeRST [6]
 Bottom and top relative to COG.
 
mat6 m_BargeMass
 Restoring coefficient.
 
vec3 m_TAcc
 Mass matrix.
 
vec3 m_RAcc
 
int m_wTop
 
double m_wTopHmin
 
double m_wTopCFL
 
int m_wTopN
 
double m_wTopL
 
double m_dx
 
int m_wodwriteoutput
 
std::ofstream m_wodoutputfile1
 
std::ofstream m_wodoutputfile2
 
bool m_isMajorTimeStep
 
std::valarray< double > m_x
 
std::valarray< double > m_u
 
std::valarray< double > m_q1
 
std::valarray< double > m_q2
 
double m_radiationForce [6]
 
double m_firstOrderWave [6]
 
int m_tNum
 
int m_oNum
 
double m_test [50]
 

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