24 { is >> rao.
ampl >> rao.
phase;
return is; }
26 { os << rao.
ampl <<
' '<< rao.
phase;
return os; }
48 {
for (
int i = 0; i <
NDOF; i++)
dof[i] = rao.
dof[i];
return *
this; }
51 {
for (
int i = 0; i < NDOF; i++) is >> rao.
dof[i];
return is; }
53 {
for (
int i = 0; i <
NDOF; i++) os <<
'\t'<< rao.
dof[i];
return os; }
69 typedef std::vector<WaveComp>
FiWave;
78 std::vector<RAOcomp>& y,
RAOdof idof)
const;
89 std::vector<int>& angles);
91 static bool applyRAO(
const std::string& RAOfile,
int direction,
92 const FiWave&
wave, std::vector<FiWave>& motion);
94 static bool applyRAO(
const std::string& RAOfile,
int direction,
95 int nRw,
int nComp,
const double* waveData,
96 std::vector<FiWave>& motion);
98 static bool applyRAO(
const std::string& RAOfile,
int direction,
99 int nRw,
int nComp,
const double* waveData,
100 double** motionData);
103 int dof,
double* motionData);
RAOTable::const_iterator RAOIter
Definition: FiRAOTable.H:57
std::map< double, RAOentry > RAOTable
Definition: FiRAOTable.H:56
std::vector< WaveComp > FiWave
Definition: FiRAOTable.H:69
RAOdof
Definition: FiRAOTable.H:16
@ ROLL
Definition: FiRAOTable.H:16
@ SWAY
Definition: FiRAOTable.H:16
@ HEAVE
Definition: FiRAOTable.H:16
@ YAW
Definition: FiRAOTable.H:16
@ NDOF
Definition: FiRAOTable.H:16
@ SURGE
Definition: FiRAOTable.H:16
@ PITCH
Definition: FiRAOTable.H:16
Definition: FiRAOTable.H:73
bool getValues(std::vector< double > &x, std::vector< RAOcomp > &y, RAOdof idof) const
Definition: FiRAOTable.C:50
bool readDirection(std::istream &is, int angle=0)
Definition: FiRAOTable.C:104
void applyToWave(FiWave &wave, RAOdof d) const
Definition: FiRAOTable.C:172
static bool applyRAO(const std::string &RAOfile, int direction, const FiWave &wave, std::vector< FiWave > &motion)
Definition: FiRAOTable.C:183
RAOTable myData
Definition: FiRAOTable.H:109
static bool getDirections(const std::string &RAOfile, std::vector< int > &angles)
Definition: FiRAOTable.C:69
RAOcomp getValue(double freq, RAOdof idof) const
Definition: FiRAOTable.C:30
friend std::istream & operator>>(std::istream &is, FiRAOTable &rao)
Definition: FiRAOTable.C:136
size_t size() const
Definition: FiRAOTable.H:75
friend std::ostream & operator<<(std::ostream &os, const FiRAOTable &rao)
Definition: FiRAOTable.C:163
static bool extractMotion(const std::vector< FiWave > &motion, int dof, double *motionData)
Definition: FiRAOTable.C:242
real(sp), dimension(:,:,:), pointer a
Definition: diffractionModule.f90:21
real(sp), dimension(:,:), allocatable wave
Definition: diffractionModule.f90:18
integer(ptr), save, private x
Definition: extCtrlSysRoutinesModule.f90:16
Definition: FiRAOTable.H:19
RAOcomp(double a=0.0, double p=0.0)
Definition: FiRAOTable.H:21
double ampl
Definition: FiRAOTable.H:20
friend std::istream & operator>>(std::istream &is, RAOcomp &rao)
Definition: FiRAOTable.H:23
double phase
Definition: FiRAOTable.H:20
friend std::ostream & operator<<(std::ostream &os, const RAOcomp &rao)
Definition: FiRAOTable.H:25
Definition: FiRAOTable.H:30
RAOcomp & Pitch
Definition: FiRAOTable.H:36
RAOcomp & Surge
Definition: FiRAOTable.H:32
RAOentry()
Definition: FiRAOTable.H:39
friend std::ostream & operator<<(std::ostream &os, const RAOentry &rao)
Definition: FiRAOTable.H:52
RAOentry & operator=(const RAOentry &rao)
Definition: FiRAOTable.H:47
RAOcomp & Sway
Definition: FiRAOTable.H:33
RAOcomp & Heave
Definition: FiRAOTable.H:34
RAOcomp & Yaw
Definition: FiRAOTable.H:37
RAOcomp & Roll
Definition: FiRAOTable.H:35
RAOcomp dof[NDOF]
Definition: FiRAOTable.H:31
const RAOcomp & operator[](int i) const
Definition: FiRAOTable.H:45
friend std::istream & operator>>(std::istream &is, RAOentry &rao)
Definition: FiRAOTable.H:50
Definition: FiRAOTable.H:61
WaveComp()
Definition: FiRAOTable.H:63
double eps
Definition: FiRAOTable.H:62
WaveComp & operator=(const WaveComp &wc)
Definition: FiRAOTable.H:65
WaveComp(double a, double o, double e)
Definition: FiRAOTable.H:64
double omega
Definition: FiRAOTable.H:62
double A
Definition: FiRAOTable.H:62