Marine systems simulation
CScreenStructureSpec Class Reference

Class containing the specification for a net object. More...

#include <CScreenStructureSpec.h>

+ Inheritance diagram for CScreenStructureSpec:
+ Collaboration diagram for CScreenStructureSpec:

Public Member Functions

 CScreenStructureSpec (ISimObjectLogger *pLogger)
 The constructor sets the pointer to the output object and the parser object.
 
virtual ~CScreenStructureSpec ()
 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 CScreenElementDef * > GetNetPanels ()
 
std::vector< const CScreenElementDef * > GetNetScreens ()
 
std::vector< const CNetCableElementSpec * > GetCableElements ()
 
SAdaptationSpec_t GetAdaptationSpec ()
 
bool GetCatsRefinementMode ()
 
void PrintInfo ()
 
- Public Member Functions inherited from CNetStructureSpec
 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 Member Functions inherited from CNetStructureSpec
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 CScreenElementDef * > m_VSScreenData
 A vector of structs containing the net screen 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
 
- Protected Attributes inherited from CNetStructureSpec
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
 
- Static Protected Attributes inherited from CNetStructureSpec
static int s_iID
 

Detailed Description

Author
Karl-Johan Reite A struct containing adaptations for faster integration of the net structure

Member Function Documentation

◆ FromFile()

virtual void CScreenStructureSpec::FromFile ( std::string  sFileName,
std::string  sFilePath 
)
virtual

Reimplemented from CNetStructureSpec.

◆ ReadBinaryInputFile()

virtual void CScreenStructureSpec::ReadBinaryInputFile ( std::string  sFileName,
std::string  sFilePath,
ISimObjectLogger *  pLogger 
)
protectedvirtual

Reimplemented from CNetStructureSpec.

◆ ReadInputFile()

virtual void CScreenStructureSpec::ReadInputFile ( std::string  sFileName,
std::string  sFilePath,
ISimObjectLogger *  pLogger 
)
protectedvirtual

Reimplemented from CNetStructureSpec.


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