FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
HollenbachCurve.h
1#ifndef _CHOLLENBACH_CURVE_H_
2#define _CHOLLENBACH_CURVE_H_
3
4#include <array>
5#include "ResistanceCurve.h"
6
7namespace Ship{
9 {
10 public:
11 enum PredictionType
12 {
13 PREDICITON_SINGLE_DESIGN=0,
14 PREDICTION_SINGLE_BALLAST,
15 PREDICTION_TWIN_DESIGN,
16 PREDICTION_SINGLE_DESIGN_MIN,
17 PREDICTIOON_TWIN_DESIGN_MINIMUM,
18 NUM_PREDICTION
19 };
20
21 HollenbachCurve(double _Cb, double S,PredictionType _Pred);
23
24 void SetBredth( float _B );
25 void SetDimPropeller( float _Dp );
26 void SetLength(double _Lpp, float _Los, float _Lwl );
27 void SetDraught( double _Tm, float _Ta, float _Tf);
28
29
30 void SetNumAppendages( unsigned short _Nrud, unsigned short _Nbrac, unsigned short _Nboss, unsigned short _Nthr);
31
32 bool Initialized();
33
34 virtual double GetValue( double _xval );
35 void SetWetSurface( float _S );
36 private:
37
38 float Factor;
39
40 PredictionType m_Pred;
41
42 // Hollenbachs coefficients
43 std::array<float,10> a{};
44 std::array<std::array<float,3>,3> b{};
45 std::array<float,1> c{};
46 std::array<float,3> d{};
47 std::array<float,2> e{};
48 std::array<float,3> f{};
49 std::array<float,3> g{};
50 std::array<float,1> h{};
51
52 float m_Fnmin; // Minimum froude number
53 float m_Fnmax; // Maximum froude number
54 float m_kl;
55 float m_Fnkrit;
56
57 unsigned short m_Nrud; // Number of rudders
58 unsigned short m_Nbrac; // Number of brackets
59 unsigned short m_Nboss; // Number of boss
60 unsigned short m_Nthr; // Number of thrusters
61
62 float m_Cb; // Block coefficient
63
64 float m_Dp; // Diameter propeller
65
66 float m_Lpp; // Length between parpendicular
67 float m_Los; // Overall length og ship
68 float m_Lwl; // Length of waterline
69
70 float m_T; // Draught midship
71 float m_Ta; // Draught aft perpendicular
72 float m_Tf; // Draught fore perpendicular
73 float m_B; // Bredth
74 float m_S;
75
76 };
77}
78
79#endif
Definition HollenbachCurve.h:9
Definition ResistanceCurve.h:6
Simple waypoint object.
Definition CableAttach.h:58