Marine systems simulation
Netcage::CNetCage Class Reference
+ Inheritance diagram for Netcage::CNetCage:
+ Collaboration diagram for Netcage::CNetCage:

Public Member Functions

 CNetCage (const string &simobjectname, ISimObjectCreator *const creator)
 The constructor sets the pointer to the output object and the parser object.
 
 ~CNetCage ()
 The destructor cleans up.
 
const double * outSumHydDynForce (const double T, const double *const X)
 Calculates the state derivatives. More...
 
const double * outNodeSumForce (const double T, const double *const X)
 
const double * outNodeSumDragForceAbs (const double T, const double *const X)
 
const double * outNodeSumDragForceDirection (const double T, const double *const X)
 
const double * outNodeSumLiftForce (const double T, const double *const X)
 
const double * outBottomPosition (const double T, const double *const X)
 
const double * outSteadyStateEst_Tau (const double T, const double *const X)
 
const double * outSteadyStateEst_K (const double T, const double *const X)
 
const double * LowerMembranePosition (const double dT, const double *const adX)
 
virtual const double * InternalNodeForce (const double dT, const double *const adX, int iExtNode)
 
virtual const double * NodeForce (const double T, const double *const X, int iNode)
 
virtual void FinalSetup (const double dT, const double *const adX, ISimObjectCreator *const pCreator)
 
virtual void OdeFcn (const double dT, const double *const adX, double *const adXDot, const bool bIsMajorTimeStep)
 
void GetNodePositionIndices (std::vector< int > &NodePositions)
 
void GetNodeVelocityIndices (std::vector< int > &NodeVelocities)
 
- Public Member Functions inherited from CNetStructure
 CNetStructure (std::string sSimObjectName, ISimObjectCreator *pCreator)
 The constructor sets the pointer to the output object and the parser object.
 
virtual ~CNetStructure ()
 The destructor deletes dynamically allocated memory.
 
virtual void OdeFcn (const double dT, const double *const adX, double *const adXDot, const bool bIsMajorTimeStep)
 
virtual void InitialConditionSetup (const double dT, const double *const adCurrentIC, double *const adUpdatedIC, ISimObjectCreator *const pCreator)
 
virtual void FinalSetup (const double dT, const double *const adX, ISimObjectCreator *const pCreator)
 
const double * outExternalNodeForce (const double dT, const double *const adX, int iExtNode)
 
virtual const double * NodePos (const double dT, const double *const adX, int iExtNode)
 
virtual const double * NodeVel (const double dT, const double *const adX, int iExtNode)
 
virtual const double * BottomContact (const double dT, const double *const adX)
 
virtual const double * StrainEnergy (const double dT, const double *const adX)
 
virtual const double * VelNorm (const double dT, const double *const adX)
 
void SetAddedDragPerMPS (double AddedDragPerMPS)
 

Protected Member Functions

void DecomposeDragForcesInCurrentDirection (double *const DragForcesProjected, const double T, const double *const X)
 
void SteadyStateEstimator (const double T, const double *const X)
 
void SetExternalPos (const double dT, const double *const adX)
 
void SetExternalVel (const double dT, const double *const adX)
 
virtual void CreateDataStructures ()
 
virtual void AddInputPorts (ISimObjectCreator *pCreator)
 
virtual void CreateOutputPorts (ISimObjectCreator *pCreator)
 
virtual void CalcStateDerivatives (const double *const adX, double *const adXDot)
 
virtual double AddNodeBottomForce (const double *const adX, int iNode, double dDiam, double adForceInOut[3])
 
virtual void AddNetForces (const double dT, const double *const adX)
 
virtual void AddCableForces (const double dT, const double *const adX)
 
- Protected Member Functions inherited from CNetStructure
virtual void CalcStateDerivatives (const double *const adX, double *const adXDot)
 
virtual void AddExternalForces (const double dT, const double *const adX)
 
virtual void AddNetForces (const double dT, const double *const adX)
 
virtual void AddCableForces (const double dT, const double *const adX)
 
virtual double AddNodeBottomForce (const double *const adX, int iNode, double dDiam, double adForceInOut[3])
 
virtual void AddBottomForces (const double *const adX)
 
virtual void AddInputPorts (ISimObjectCreator *pCreator)
 
virtual void CreateNetPanels (std::vector< const CNetElementDef * > VNetElementDefs, ISimObjectCreator *pCreator)
 
virtual void CreateNetCables (std::vector< const CNetCableElementSpec * > VCableElements, ISimObjectCreator *pCreator)
 
virtual void CreateDataStructures ()
 
virtual void CreateOutputPorts (ISimObjectCreator *pCreator)
 
VSPairStrInt CreateExternalNodeMap (std::string sTag, int *piUsed, CNetStructureSpec &NetSpec, ISimObjectCreator *pCreator)
 
void PRINTALLNODEFORCES (std::string spec, double dT)
 

Protected Attributes

ISignalPort ** m_InExternalPos
 
ISignalPort ** m_InExternalVel
 
ISignalPort * m_MembraneDepth
 
double * m_NodeExternalPos
 
double * m_NodeExternalVel
 
double m_adNodeSumForce [3]
 
double m_adSumHydDynForce [3]
 
double m_dNodeSumDragForceAbs
 
double m_dNodeSumDragDirection
 
double m_dNodeSumLiftForce
 
double * m_adNodeHydDynForce
 
double * m_NodeInternalForces
 
int(* m_hasPosAndVelStates )[2]
 
int m_NumNodesInputPosAndVel
 
int m_NumNodesOutputForce
 
VSPairStrInt m_VsNodesInputPosAndVel
 
VSPairStrInt m_VsNodesOutputForce
 
Eigen::MatrixXd m_SSPhi
 
Eigen::MatrixXd m_SSY
 
double m_SS_Tau
 
double m_SS_K
 
double m_SSPrevT
 
int m_IsMembrane
 
int m_MembraneIsInSystem
 
double m_LowerMembraneDepth
 
std::string m_simobjectname
 
- Protected Attributes inherited from CNetStructure
double m_StrainEnergy
 
ISignalPort ** m_apInExternalForces
 Interface member variables.
 
int * m_aIStatePos
 
int * m_aIStateVel
 
int m_iNumNodesInputForce
 Node counts.
 
int m_iNumNodesOutputPosAndVel
 
int m_iNumPanelsCalc
 
int m_iNumCablesCalc
 
int m_iNumNodesOriginal
 
int m_iNumNodesCalc
 
int m_iNumNodeOutputs
 
CNetBottomContactFilter m_BottomContactFilter
 Environment.
 
double m_adBottomContact [6]
 
IBasicBottom ** m_ppBottom
 
ICurrentVel ** m_ppCurrentVel
 
CEnvironmentm_pEnvironment
 
std::vector< CNetCableElement * > m_VpCableElements
 Element properties.
 
std::vector< CNetElement3N * > m_VpNetElements
 
float * m_afInertia
 
int * m_aiNetConn
 
int ** m_aaiCableConn
 
SAdaptationSpec_t m_SAdaptations
 
bool m_bFoldingPointRefinementUsed
 
VSPairStrInt m_VsNodesOutputPosAndVel
 Nodes reachable directly through input or output ports.
 
VSPairStrInt m_VsNodesInputForce
 
bool m_bUseTagForExternalNodes
 
double * m_adNodeForce
 
sfh::timers::StopWatch m_OdeTimer
 
double * m_adAccelerationNorms
 

Additional Inherited Members

- Public Attributes inherited from CNetStructure
double m_velNorm
 

Member Function Documentation

◆ AddCableForces()

virtual void Netcage::CNetCage::AddCableForces ( const double  dT,
const double *const  adX 
)
protectedvirtual

Reimplemented from CNetStructure.

◆ AddInputPorts()

virtual void Netcage::CNetCage::AddInputPorts ( ISimObjectCreator *  pCreator)
protectedvirtual

Reimplemented from CNetStructure.

◆ AddNetForces()

virtual void Netcage::CNetCage::AddNetForces ( const double  dT,
const double *const  adX 
)
protectedvirtual

Reimplemented from CNetStructure.

◆ AddNodeBottomForce()

virtual double Netcage::CNetCage::AddNodeBottomForce ( const double *const  adX,
int  iNode,
double  dDiam,
double  adForceInOut[3] 
)
protectedvirtual

Reimplemented from CNetStructure.

◆ CalcStateDerivatives()

virtual void Netcage::CNetCage::CalcStateDerivatives ( const double *const  adX,
double *const  adXDot 
)
protectedvirtual

Reimplemented from CNetStructure.

◆ CreateDataStructures()

virtual void Netcage::CNetCage::CreateDataStructures ( )
protectedvirtual

Reimplemented from CNetStructure.

◆ CreateOutputPorts()

virtual void Netcage::CNetCage::CreateOutputPorts ( ISimObjectCreator *  pCreator)
protectedvirtual

Reimplemented from CNetStructure.

◆ FinalSetup()

virtual void Netcage::CNetCage::FinalSetup ( const double  dT,
const double *const  adX,
ISimObjectCreator *const  pCreator 
)
virtual

Reimplemented from CNetStructure.

◆ OdeFcn()

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

Reimplemented from CNetStructure.

◆ outSumHydDynForce()

const double * Netcage::CNetCage::outSumHydDynForce ( const double  T,
const double *const  X 
)

Output functions


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