FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
CableElDynStiff.h
1
10
11#ifndef CCableElDynStiff_H
12#define CCableElDynStiff_H
13
14// Includes
15// #include <string>
16#include "cable/subroutines/CableElBasics.h"
17
18
19// #define USE_OLD_MEAN_TENSION_CALC
20
21#ifdef FH_VISUALIZATION
22# include "Ogre.h"
23
24# include "sfh/ogre/CDynamicLines.h"
25
26#endif
27
28// Class definition
30{
31public:
34
37
39 [[nodiscard]] std::string CheckAndInitialize() override;
40
42 virtual void UpdateLength(double newLength, bool forceUpdate = false);
43
45 void UpdateMeanTension(double step);
46
58 void UpdateMeanTensionAt(const double adPosA[3], const double adPosB[3], double step);
59
61 double GetEFactor() const { return m_eFactor; }
62
65
66 double m_maxStep;
70 // protected: HACK kga
72 virtual void AddStructuralForces(double adForceA[3], double adForceB[3]);
73
74protected:
75 double ma_dEps;
76 double m_eFactor;
78 // double m_meanTensionProp; ///< The mean tension of the cable element.
79
80 double ma_adMeanTensionForceA[3];
81 double ma_dAdaptationDamping;
82};
83
84
85#endif
Class containing a fundamental cable element object.
Definition CableElBasics.h:42
double m_eA
The linear stiffness of the element.
Definition CableElBasics.h:201
double m_maxTension
The maximum tension in the element.
Definition CableElBasics.h:196
double m_dL0
The relaxed length of the element.
Definition CableElBasics.h:93
double GetDampingCoeff() const
Definition CableElBasics.h:73
Class containing a cable element object which is adapted to the required max step size.
Definition CableElDynStiff.h:30
double m_meanTensionDamp
The damping of the development of the mean tension.
Definition CableElDynStiff.h:77
double m_eAdaptationPeriod
The time constant of the adaptation of the mean tension.
Definition CableElDynStiff.h:68
double m_stepSafetyFactor
The safety factor when calculating the Young modulus of the element.
Definition CableElDynStiff.h:69
double GetEFactor() const
Returns the current stiffness reduction factor (1 = full stiffness, <1 = reduced for numerical stabil...
Definition CableElDynStiff.h:61
void UpdateMeanTensionAt(const double adPosA[3], const double adPosB[3], double step)
double ma_dEps
The stretching of the cable.
Definition CableElDynStiff.h:75
~CableElDynStiff()
The destructor.
double m_maxStep
The maximum step of the integration routine.
Definition CableElDynStiff.h:66
cable_axial_law::Element AxialElement() const
The element's properties for the axial law (CableAxialLaw.h), as they are now.
Definition CableElDynStiff.h:64
std::string CheckAndInitialize() override
Does the initialization and checking to make sure that the element is ready for simulation.
double m_eFactor
The factor multiplied by the Young modulus.
Definition CableElDynStiff.h:76
CableElDynStiff()
The constructor.
virtual void AddStructuralForces(double adForceA[3], double adForceB[3])
Adds the forces from tension and internal damping to the nodes. CalcFoundation must be run first.
void UpdateMeanTension(double step)
Updates the mean tension of the cable element.
double m_meanTension
The mean tension of the cable element.
Definition CableElDynStiff.h:67
virtual void UpdateLength(double newLength, bool forceUpdate=false)
Updates the length of the cable element, and its dependant properties; not the mean tension.
The axial properties of one element at one evaluation (CableElDynStiff::AxialElement).
Definition CableAxialLaw.h:32