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

Class containing a cable element object, allowing for disks and spheres to be connected. More...

#include <NetCableElementSpec.h>

+ Collaboration diagram for NetCableElementSpec:

Public Types

enum  NodePosition { NODE_ON_EDGE =1001 }
 

Public Member Functions

 NetCableElementSpec ()
 The constructor.
 
 NetCableElementSpec (const NetCableElementSpec *old)
 The copy constructor.
 
 ~NetCableElementSpec ()
 The destructor.
 
bool Divide (int aiNodes[2], int newNode, int newElementID, NetCableElementSpec **sNewCable, double distance=0.5)
 Divides the element in two.
 
void DeleteSpheresAndDisks ()
 
void AddSpheres (double *adD, double *adMass, double *adPos, std::vector< std::string > VsSphereMaterial, int num)
 
void AddDisks (double *adD, double *adThickness, double *adMass, double *adPos, std::vector< std::string > VsDiskMaterial, int num)
 
NodePosition NodesDefineEdge (int aiNodes[2])
 

Public Attributes

double m_nodeOffset
 The offset between the original nodes of the added node of this cable.
 
int m_fromNodes [2]
 The nodes which this cable is constructed by dividing.
 
int m_iD
 The ID of the element.
 
std::string m_cableName
 The name of the parent cable.
 
int m_conn [2]
 The node numbers that the element is connected to.
 
double m_refineFactor
 The factor telling how much mesh refinement is desired for this element.
 
int m_foldingPoints
 The number of knuckle points on the cable.
 
int m_numSpheres
 The number of spheres connected.
 
double * m_sphereD
 The diameter of the connected spheres.
 
double * m_sphereMass
 The mass of the connected spheres.
 
double * m_spherePos
 The position of the connected spheres.
 
int m_numDisks
 The number of disks connected.
 
double * m_diskD
 The diameter of the connected disks.
 
double * m_diskThickness
 The thickness of the connected disks.
 
double * m_diskMass
 The mass of the connected disks.
 
double * m_diskPos
 The position of the connected disks.
 
double m_addedWeightInWater
 The weight in water added to the element.
 
std::vector< std::string > m_VsDiskMeshName
 The names of the materials of the attached disks.
 
std::vector< std::string > m_VsSphereMeshName
 The names of the materials of the attached spheres.
 
double m_dL0
 The relaxed length of the element.
 
double m_dD
 The diameter of the element.
 
double m_dE
 The Young modulus of the element.
 
double m_rho
 The density of the element material.
 
double m_minLength
 The minimum length of the element.
 
double m_maxTension
 The maximum tension in the element.
 
double m_maxStep
 The maximum step of the integration routine.
 
double m_meanTension
 The mean tension of the cable element.
 
double m_eAdaptationPeriod
 The time constant of the adaptation of the mean tension.
 
double m_stepSafetyFactor
 The safety factor when calculating the Young modulus of the element.
 
double m_tangentialFrictionCoeff
 
double m_normalDragCoeff
 

Protected Attributes

double m_dragCoeffSphere
 The drag coefficient of a sphere.
 
double m_normalDragCoeffDisk
 The normal drag coefficient of a disk.
 
double m_tangentialFrictionCoeffDisk
 The normal drag coefficient of a disk.
 

Detailed Description

Author
Karl-Johan Reite

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