FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
NetElementDef Class Reference

Class containing the description of a net panel and methods necessary for taking this over to triangular elements suitable for simulation. More...

#include <NetElementDef.h>

+ Inheritance diagram for NetElementDef:
+ Collaboration diagram for NetElementDef:

Public Types

enum  NodePosition { NODE_ON_EDGE_AB = 100 , NODE_ON_EDGE_BC = 101 , NODE_ON_EDGE_CA = 102 , NODE_NOT_ON_EDGE = -100 }
 

Public Member Functions

 NetElementDef ()
 Constructor.
 
bool Divide (int aiNodes[2], int newNode, int newElementID, NetElementDef **ppSNewPanel)
 Divides the panel in two, if the panel has an edge between the two provided nodes.
 
bool Panel2Triangles (int newElementID, NetElementDef *sNewPanel)
 Divides the panel in two triangular ones, if the panel is quadrangular.
 
bool Check () const
 Does the initialization and checking to make sure that the panel is ready for simulation.
 
double CalcEdgeLength (int edgeIndex) const
 Calculates the length of the specified edge.
 
unsigned short FindLongestEdge () const
 Finds the longest edge of the panel.
 
double CalcLongestEdge () const
 Calculates the longest edge length of the panel.
 
double CalcLengthFactor () const
 Calculates the largest length factor of the panel.
 
bool PanelEdge2Nodes (unsigned short edge, int aiNodes[2]) const
 Finds the global nodes connected to the specified edge.
 
double FindLongestEdge (int aiNodes[2]) const
 Finds the nodes connected to the longest edge of the panel.
 
void DivideEdge (int newNode, int newElementID, NetElementDef *sNewPanel, int nodeNoOldPanel, int nodeNoNewPanel, double divideAtDistance=0.5)
 
NodePosition NodesDefineEdge (int aiNodes[2])
 
- Public Member Functions inherited from SNetSectionData
unsigned long GetNumNodes () const
 The number of nodes of the panel.
 
int AddNode (TrawlSpec::SNetNode_t SNode)
 
int AddNode (double x, double y, unsigned long conn=(unsigned long) -1)
 
int AddNode (sfh::linalg::Vec2 SPos, unsigned long conn=(unsigned long) -1)
 
int DeleteNode (int nodeIndex)
 
void DeleteAllNodes ()
 
void SetNettingData (TrawlSpec::SMeshBar SBar)
 
void SetNettingData (double D, double L, double E, double Rho)
 
std::string GetConnString ()
 
bool UpdateNode (int index, TrawlSpec::SNetNode_t SNodeData)
 
bool UpdateNode (int index, sfh::linalg::Vec2 SMeshPos, unsigned long conn)
 
bool UpdateNodeConn (int index, unsigned long conn)
 
bool UpdateNodeMeshPos (int index, sfh::linalg::Vec2 SMeshPos)
 
double CalcInertia (double rhoWater) const
 
double CalcWeight (double rhoWater) const
 
double CalcNodesInertia (double *adNodeInertias, double rhoWater) const
 
double CalcNodesWeight (double *adNodeWeights, double rhoWater) const
 
double CalcThreadCrossSectionArea () const
 
double CalcMeshDeterminant () const
 
double GetNumBars () const
 
void CalcNodeMassRatios (double *adNodeMassRatio) const
 
double CalcThreadEA () const
 
double GetNumKnots () const
 

Public Attributes

double refineFactor
 The refine factor of the panel.
 
TrawlSpec::SSectionType SType
 
- Public Attributes inherited from SNetSectionData
unsigned long iID
 The id of the panel.
 
std::string name
 The name of the panel.
 
std::vector< TrawlSpec::SNetNode_tVSNodes
 
TrawlSpec::SMeshBar SBar
 

Detailed Description

Author
Karl-Johan Reite

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