Marine systems simulation
CNetWithAttractor Class Reference

Class containing a net object with functionality to be affected by attractors. More...

#include <CNetWithAttractor.h>

+ Inheritance diagram for CNetWithAttractor:
+ Collaboration diagram for CNetWithAttractor:

Public Member Functions

 CNetWithAttractor (std::string sSimObjectName, ISimObjectCreator *pCreator)
 The constructor sets the pointer to the output object and the parser object.
 
 ~CNetWithAttractor ()
 The destructor deletes dynamically allocated memory.
 
virtual void OdeFcn (const double dT, const double *const adX, double *const adXDot, const bool bIsMajorTimeStep)
 Does nothing, as the object contains no states. More...
 
virtual void FinalSetup (const double dT, const double *const adX, ISimObjectCreator *const pCreator)
 
- 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 AddNetForces (const double dT, const double *const adX)
 
void AddAttractorForces (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

std::vector< CAttractorBase * > m_VAttractors
 
std::string m_sAttractorName
 The name of the attractor.
 
double * m_padZero
 
bool * m_abIsInBin
 
- 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
 

Detailed Description

Author
Karl-Johan Reite

Member Function Documentation

◆ AddNetForces()

void CNetWithAttractor::AddNetForces ( const double  dT,
const double *const  adX 
)
protectedvirtual

Reimplemented from CNetStructure.

◆ FinalSetup()

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

Reimplemented from CNetStructure.

◆ OdeFcn()

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

Reimplemented from CNetStructure.


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