Marine systems simulation
CNetCableElementSpec Class Reference

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

#include <CNetCableElementSpec.h>

+ Collaboration diagram for CNetCableElementSpec:

Public Types

enum  NodePosition { NODE_ON_EDGE =1001 }
 

Public Member Functions

 CNetCableElementSpec ()
 The constructor.
 
 CNetCableElementSpec (const CNetCableElementSpec *pOld)
 The copy constructor.
 
 ~CNetCableElementSpec ()
 The destructor.
 
bool Divide (int aiNodes[2], int iNewNode, int iNewElementID, CNetCableElementSpec **pSNewCable, double dDistance=0.5)
 Divides the element in two.
 
void DeleteSpheresAndDisks ()
 
void AddSpheres (double *adD, double *adMass, double *adPos, std::vector< std::string > VsSphereMaterial, int iNum)
 
void AddDisks (double *adD, double *adThickness, double *adMass, double *adPos, std::vector< std::string > VsDiskMaterial, int iNum)
 
NodePosition NodesDefineEdge (int aiNodes[2])
 

Public Attributes

double m_dNodeOffset
 The offset between the original nodes of the added node of this cable.
 
int m_iFromNodes [2]
 The nodes which this cable is constructed by dividing.
 
int m_iID
 The ID of the element.
 
std::string m_sCableName
 The name of the parent cable.
 
int m_aiConn [2]
 The node numbers that the element is connected to.
 
double m_dRefineFactor
 The factor telling how much mesh refinement is desired for this element.
 
int m_iFoldingPoints
 The number of knuckle points on the cable.
 
int m_iNumSpheres
 The number of spheres connected.
 
double * m_adSphereD
 The diameter of the connected spheres.
 
double * m_adSphereMass
 The mass of the connected spheres.
 
double * m_adSpherePos
 The position of the connected spheres.
 
int m_iNumDisks
 The number of disks connected.
 
double * m_adDiskD
 The diameter of the connected disks.
 
double * m_adDiskThickness
 The thickness of the connected disks.
 
double * m_adDiskMass
 The mass of the connected disks.
 
double * m_adDiskPos
 The position of the connected disks.
 
double m_dAddedWeightInWater
 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_dRho
 The density of the element material.
 
double m_dMinLength
 The minimum length of the element.
 
double m_dMaxTension
 The maximum tension in the element.
 
double m_dMaxStep
 The maximum step of the integration routine.
 
double m_dMeanTension
 The mean tension of the cable element.
 
double m_dEAdaptationPeriod
 The time constant of the adaptation of the mean tension.
 
double m_dStepSafetyFactor
 The safety factor when calculating the Young modulus of the element.
 
double m_dTangentialFrictionCoeff
 
double m_dNormalDragCoeff
 

Protected Attributes

double m_dDragCoeffSphere
 The drag coefficient of a sphere.
 
double m_dNormalDragCoeffDisk
 The normal drag coefficient of a disk.
 
double m_dTangentialFrictionCoeffDisk
 The normal drag coefficient of a disk.
 

Detailed Description

Author
Karl-Johan Reite

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