FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
WaveDriftVeres.h
1#ifndef WaveDriftVeres_h__
2#define WaveDriftVeres_h__
3
4#include <complex>
5#include <string>
6#include <utility>
7#include <vector>
8
9#include "WaveDrift.h"
10#include "../../AzimuthCurve.h"
11#include <marenv/marenv.h>
12
13namespace Ship{
15 {
16 public:
17 WaveDriftForceVeres( const std::string &fname)
18 {
19 Read(fname);
21 }
22
23 void Read( const std::string &fname );
24
25 std::complex<double> GetRAOValue(int DOF, double ShipSpeed, double WaveFrequency, double WaveDirection);
26 private:
27
28 double Lpp,B;
29 double ScaleFactor;
30
31 std::vector<double> Velocities;
32 std::vector<double> Directions;
33 std::vector<double> Frequencies;
34 std::vector<std::vector< std::vector<double> > > SurgeForce;
35 std::vector<std::vector< std::vector<double> > > SwayForce;
36 std::vector<std::vector< std::vector<double> > > YawMoment;
37
38 std::vector<std::vector<std::pair<double,std::vector<AzimuthCurve<double> > > > > m_AzimuthRAO;
39 };
40}
41#endif // WaveDriftVeres_h__
Definition WaveDriftVeres.h:15
Definition WaveDrift.h:14
Simple waypoint object.
Definition CableAttach.h:58
constexpr double gravity
Gravity constant [m/s^2].
Definition marenv.h:19
constexpr double seawaterDensity
Ocean water density [kg/m^3].
Definition marenv.h:20