Marine systems simulation
FroudeKrylov.h
1#ifndef CFroudeKrylov_h__
2#define CFroudeKrylov_h__
3
4using std::string;
5using std::vector;
6using std::map;
7using std::complex;
8
9using Eigen::Matrix;
10
11namespace Ship{
13 {
14 public:
15
16 virtual void Read( std::string fname )=0;
17
18 virtual std::complex<double> GetRAOValue(unsigned int DOF, double ShipDirection, double ShipSpeed, double WaveFrequency ) = 0;
19 //virtual void GetRAOValues( unsigned int DOF, double ShipDirection, double ShipSpeed, Eigen::Matrix< std::complex<double>,Eigen::Dynamic,1 > &outRAO)=0;
20
21 //virtual void GetRAOValue2(unsigned int DOF, double ShipDirection, double ShipSpeed, double WaveFrequency, double &Magnitude, double &Phase ) = 0;
22 //virtual void GetRAOValues2( unsigned int DOF, double ShipDirection, double ShipSpeed, Eigen::Matrix< double,Eigen::Dynamic,1 > &outRAOmag,Eigen::Matrix< double,Eigen::Dynamic,1 > &outRAOphase)=0;
23
24
25 protected:
30
31 std::vector<double> Direction;
32 std::vector<double> Speed;
33 std::vector<double> Freq;
34 Eigen::Matrix< std::complex<double>, Eigen::Dynamic,1 > ***RAO;
35 Eigen::Matrix< double, Eigen::Dynamic,1 > ***RAOmagnitude;
36 Eigen::Matrix< double, Eigen::Dynamic,1 > ***RAOphase;
37 };
38}
39#endif // CFroudeKrylov_h__
Definition: FroudeKrylov.h:13
std::vector< double > Speed
Speeds.
Definition: FroudeKrylov.h:32
std::vector< double > Direction
Directions.
Definition: FroudeKrylov.h:31
std::vector< double > Freq
Frequencies.
Definition: FroudeKrylov.h:33
int m_NumFreq
Number of frequencies in dataset.
Definition: FroudeKrylov.h:28
int m_NumDirections
Number of wave directions relative to ship in dataset.
Definition: FroudeKrylov.h:26
Eigen::Matrix< std::complex< double >, Eigen::Dynamic, 1 > *** RAO
map which associates a direction/speed pair with an RAO on complex form
Definition: FroudeKrylov.h:34
int m_NumSpeed
Number of vessel speeds in dataset.
Definition: FroudeKrylov.h:27
int m_NumDOF
Number of degrees-of-freedom in dataset.
Definition: FroudeKrylov.h:29
Simple waypoint object.
Definition: CableAttach.h:16