Marine systems simulation
CNetStructureSpec Class Reference
+ Inheritance diagram for CNetStructureSpec:
+ Collaboration diagram for CNetStructureSpec:

Public Member Functions

 CNetStructureSpec (ISimObjectLogger *pLogger)
 The constructor sets the pointer to the output object and the parser object.
 
virtual ~CNetStructureSpec ()
 The destructor deletes dynamically allocated memory.
 
virtual void FromFile (std::string sFileName, std::string sFilePath)
 
void FromBinaryFile (std::string sFileName, std::string sFilePath)
 
int CreateExternalNodeMap (std::vector< std::string > VsInputNodes, VSPairStrInt &VsNodes)
 
int GetNumNodesCalc ()
 
int GetNumNodesOriginal ()
 
std::vector< const CNetElementDef * > GetNetPanels ()
 
std::vector< const CNetCableElementSpec * > GetCableElements ()
 
SAdaptationSpec_t GetAdaptationSpec ()
 
bool GetCatsRefinementMode ()
 
void PrintInfo ()
 

Protected Member Functions

virtual void ReadInputFile (std::string sFileName, std::string sFilePath, ISimObjectLogger *pLogger)
 
virtual void ReadBinaryInputFile (std::string sFileName, std::string sFilePath, ISimObjectLogger *pLogger)
 
void FindNodesToDivide (int iNodesToDivide[2], double *dLength, double *dLengthFactor)
 
void RefineMesh ()
 
void RefineMesh2 ()
 
void CheckNodeNumber (int iNodeNumber, ISimObjectLogger *const pLogger, std::string sNodeDescription="")
 
void CheckNodes (ISimObjectLogger *pLogger)
 
unsigned short AddCalcNode (int aiNodes[2])
 
unsigned short DivideCableElement (int CableNum)
 

Protected Attributes

int m_iNumPanelsCalc
 The number of elements the net is divided into.
 
int m_iNumCablesCalc
 The number of elements the cable is divided into.
 
int m_iNumNodesOriginal
 The number of original nodes of the net.
 
int m_iNumNodesCalc
 The number of nodes of the net after refinement.
 
std::vector< const CNetElementDef * > m_VSPanelData
 A vector of structs containing the section data read from the input file.
 
std::vector< const CNetCableElementSpec * > m_VCableElements
 A vector of structs containing the cable data read from the input file.
 
int m_iFoldingPointRefinement
 refinement by folding points on each cable (Cats mode)
 
double m_dMaxSideLengthFactor
 The maximum element side length factor.
 
double m_dMinSideLength
 The side length limit for the elements to be further subdivided.
 
int m_iMaxNumNodes
 The maximum number of nodes used for net calculations.
 
int m_iMaxNumPanels
 The maximum number of net panels used for the calculations.
 
int m_iMaxNumCables
 The maximum number of cable elements used for the calculations.
 
double m_dScale
 The scale of the trawl net in relation to the specifications.
 
std::string m_sNetName
 The identification name of the net.
 
VSPairStrInt m_VsNodesAvailable
 The tag names and indices of the available external nodes.
 
SAdaptationSpec_t m_SAdaptationSpec
 A struct containing adaptations for faster integration of the net structure.
 
int m_iID
 
ISimObjectLogger * m_pLogger
 

Static Protected Attributes

static int s_iID
 

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