Marine systems simulation
CNetCableElementTestSpec Class Reference

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

#include <CNetCableElementTestSpec.h>

+ Collaboration diagram for CNetCableElementTestSpec:

Public Types

enum  NodePosition { NODE_ON_EDGE =1001 }
 

Public Member Functions

 CNetCableElementTestSpec ()
 The constructor.
 
 CNetCableElementTestSpec (const CNetCableElementTestSpec *pOld)
 The copy constructor.
 
 ~CNetCableElementTestSpec ()
 The destructor.
 
bool Divide (int aiNodes[2], int iNewNode, int iNewElementID, CNetCableElementTestSpec **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_nodeOffsetA
 The offset between the original nodes of the added node of this cable.
 
double m_nodeOffsetB
 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_iID
 The ID of the element.
 
std::string m_sCableName
 The name of the parent cable.
 
int m_conn [2]
 The node numbers that the element is connected to.
 
int m_foldingPoints
 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.
 
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_dDhyd
 The hydrodynamic diameter of the element.
 
double m_dE
 The Young modulus of the element.
 
double m_dRho
 The density of the element material.
 

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 friction coefficient of a disk.
 

Detailed Description

Author
Karl-Johan Reite

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