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

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

#include <NetCableElementTest.h>

+ Collaboration diagram for NetCableElementTest:

Public Member Functions

 NetCableElementTest ()
 The constructor.
 
 NetCableElementTest (const NetCableElementTest *old)
 The copy constructor.
 
 NetCableElementTest (const NetCableElementTestSpec *spec)
 
 ~NetCableElementTest ()
 The destructor.
 
void AddEndForces (const double rhoWater, const sfh::linalg::sse_vec3f &posa, const sfh::linalg::sse_vec3f &posb, const sfh::linalg::sse_vec3f &vela, const sfh::linalg::sse_vec3f &velb, const sfh::linalg::sse_vec3f &velf, sfh::linalg::sse_vec3f &forceA, sfh::linalg::sse_vec3f &forceB, double angle)
 Calculates the end forces on the cable element.
 
void SetConstants ()
 Calculates parameters and sets physical constants.
 
void CalcMassAndWeight ()
 Calculates the mass and weight of the element in water.
 
bool Divide (int aiNodes[2], int newNode, int newElementID, NetCableElementTest **sNewCable)
 Divides the element in two.
 
bool CheckAndInitialize ()
 Does the initialization and checking to make sure that the element is ready for simulation.
 
void DeleteSpheresAndDisks ()
 
void AddSpheres (float *adD, float *adMass, float *adPos, std::vector< std::string > VsSphereMaterial, int num)
 
void AddDisks (float *adD, float *adThickness, float *adMass, float *adPos, std::vector< std::string > VsDiskMaterial, int num)
 
void AddHydroForcesAppendices (double adForceA[3], double adForceB[3])
 Calculates the hydrodynamic forces on spheres and disks attached to the cable.
 

Static Public Member Functions

static void * operator new (size_t size)
 
static void operator delete (void *p)
 

Public Attributes

int m_conn [2]
 The node numbers that the element is connected to.
 
int m_numSpheres
 The number of spheres connected.
 
float * m_sphereD
 The diameter of the connected spheres.
 
float * m_sphereMass
 The mass of the connected spheres.
 
float * m_spherePos
 The position of the connected spheres.
 
int m_numDisks
 The number of disks connected.
 
float * m_diskD
 The diameter of the connected disks.
 
float * m_diskThickness
 The thickness of the connected disks.
 
float * m_diskMass
 The mass of the connected disks.
 
float * m_diskPos
 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.
 
std::string m_cableName
 
sfh::linalg::sse_vec3f n
 
sfh::linalg::sse_vec3f n2 [2]
 
sfh::linalg::sse_vec3f vel
 
sfh::linalg::sse_vec3f vel_t
 
sfh::linalg::sse_vec3f vel_n
 
sfh::linalg::sse_vec3f vel_n_a
 
sfh::linalg::sse_vec3f vel_n_b
 
sfh::linalg::sse_vec3f f_struct
 
sfh::linalg::sse_vec3f f_drag_a
 
sfh::linalg::sse_vec3f f_drag_b
 
sfh::linalg::sse_vec3f force_sphere_a
 
sfh::linalg::sse_vec3f force_sphere_b
 
sfh::linalg::sse_vec3f force_disk_a
 
sfh::linalg::sse_vec3f force_disk_b
 
int m_iD
 
float m_dL0
 
float m_dD
 
float m_dhyd
 
float m_dE
 
float m_rho
 
float m_normalDragCoeff
 
float m_dampingRatio
 
float m_massInWater [2]
 
float m_weightInWater [2]
 
float m_dL0Inv
 
float lengthArray [3]
 
float compressionvelArray [3]
 
float m_length
 
float m_compressionSpeed
 
float velArray [3]
 
float structForceArray [3]
 
float ma_dDampingCoeff
 
float m_eA
 
float ma_dNormalDragFactor
 
float ma_dTangentialDragFactor
 
float m_dA
 
float m_dragReduction
 
float m_projectedArea
 
float m_normalVelocity
 

Static Public Attributes

static float m_rhoWater
 
static float m_dragCoeffSphere
 The drag coefficient of a sphere.
 
static float m_normalDragCoeffDisk
 The normal drag coefficient of a disk.
 
static float m_tangentialFrictionCoeffDisk
 The normal friction coefficient of a disk.
 
static float m_tangentialDragCoeffDisk
 
static float m_tangentialFrictionCoeff
 

Detailed Description

Author
Karl-Johan Reite

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