World Ocean Simulation System (WOSS) library
|
AltimBretschneider supports Bretschneider wave model. More...
#include <altimetry-definitions.h>
Public Member Functions | |
AltimBretschneider () | |
AltimBretschneider (AltimetryMap &map) | |
AltimBretschneider (double ch_height, double avg_per, int total_range_steps, double depth) | |
AltimBretschneider (const AltimBretschneider ©) | |
virtual AltimBretschneider * | create () const |
virtual AltimBretschneider * | create (AltimetryMap &map) const |
virtual AltimBretschneider * | create (const AltimBretschneider ©) const |
virtual AltimBretschneider * | create (const Altimetry ©) const |
virtual AltimBretschneider * | create (double ch_height, double avg_per, int total_range_steps, double depth) const |
virtual AltimBretschneider * | clone () const |
AltimBretschneider & | operator= (const AltimBretschneider ©) |
virtual bool | initialize () |
virtual bool | isValid () const |
virtual AltimBretschneider * | timeEvolve (const Time &time_value) |
virtual AltimBretschneider * | randomize (double ratio_incr_value) const |
AltimBretschneider & | setCharacteristicHeight (double h) |
AltimBretschneider & | setAveragePeriod (double p) |
double | getCharacteristicHeight () const |
double | getAveragePeriod () const |
Public Member Functions inherited from woss::Altimetry | |
Altimetry () | |
Altimetry (AltimetryMap &map) | |
Altimetry (double range, double altimetry) | |
Altimetry (const Altimetry ©) | |
Altimetry & | insertValue (double range, double altimetry) |
Altimetry & | sumValue (double range, double altimetry) |
AltCIt | findValue (double range) const |
Altimetry & | eraseValue (double range) |
virtual Altimetry * | crop (double range_start, double range_end) |
AltCIt | begin () const |
AltCIt | end () const |
AltCIt | at (const int i) const |
int | size () const |
bool | empty () const |
void | clear () |
Altimetry & | setEvolutionTimeQuantum (double quantum) |
Altimetry & | setTotalRangeSteps (int r_s) |
Altimetry & | setRange (double r) |
Altimetry & | setDepth (double d) |
double | getMaxRangeValue () const |
double | getMinRangeValue () const |
double | getMaxAltimetryValue () const |
double | getMinAltimetryValue () const |
long double | getRangePrecision () const |
double | getEvolutionTimeQuantum () const |
double | getRange () const |
int | getTotalRangeSteps () const |
double | getDepth () const |
Altimetry & | operator= (const Altimetry ©) |
Protected Member Functions | |
virtual AltimBretschneider & | createWaveSpectrum () |
Protected Member Functions inherited from woss::Altimetry | |
virtual Altimetry & | updateMinMaxAltimetryValues () |
Protected Attributes | |
double | char_height |
double | average_period |
Protected Attributes inherited from woss::Altimetry | |
double | range |
int | total_range_steps |
double | min_altimetry_value |
double | max_altimetry_value |
long double | range_precision |
Time | last_evolution_time |
double | evolution_time_quantum |
double | depth |
AltimetryMap | altimetry_map |
Additional Inherited Members | |
Static Public Member Functions inherited from woss::Altimetry | |
static AltimetryMap & | createNotValid () |
static AltimetryMap & | createFlat (double altimetry=0) |
static void | setDebug (bool flag) |
static bool | getDebug (bool flag) |
Static Protected Attributes inherited from woss::Altimetry | |
static bool | debug = false |
AltimBretschneider supports Bretschneider wave model.
AltimBretschneider wave model
AltimBretschneider::AltimBretschneider | ( | ) |
AltimBretschneider::AltimBretschneider | ( | AltimetryMap & | map | ) |
AltimBretschneider constructor
map | custom time arrival map |
AltimBretschneider::AltimBretschneider | ( | double | ch_height, |
double | avg_per, | ||
int | total_range_steps, | ||
double | depth | ||
) |
AltimBretschneider constructor
ch_height | characteristic wave height [m] |
avg_per | averate period [s] |
total_range_steps | total range steps |
depth | depth [m] |
References woss::Altimetry::depth, and woss::Altimetry::total_range_steps.
AltimBretschneider::AltimBretschneider | ( | const AltimBretschneider & | copy | ) |
AltimBretschneider copy constructor
copy | AltimBretschneider to be copied |
|
inlinevirtual |
AltimBretschneider virtual factory method
Reimplemented from woss::Altimetry.
References AltimBretschneider().
Referenced by randomize(), and timeEvolve().
|
inlinevirtual |
AltimBretschneider virtual factory method
Reimplemented from woss::Altimetry.
References AltimBretschneider().
Referenced by create().
|
inlinevirtual |
AltimBretschneider virtual factory method
map | custom time arrival map |
Reimplemented from woss::Altimetry.
References AltimBretschneider().
|
inlinevirtual |
AltimBretschneider virtual factory method
copy | AltimBretschneider to be copied |
References AltimBretschneider().
|
inlinevirtual |
AltimBretschneider virtual factory method
copy | AltimBretschneider to be copied |
Reimplemented from woss::Altimetry.
References AltimBretschneider(), and create().
|
inlinevirtual |
AltimBretschneider virtual factory method
ch_height | characteristic wave height [m] |
avg_per | averate period [s] |
total_range_steps | total range steps |
depth | depth [m] |
References AltimBretschneider(), woss::Altimetry::depth, and woss::Altimetry::total_range_steps.
|
inline |
|
inline |
Gets H - the characteristic height of the wave [m]
References char_height.
|
virtual |
Initializes the altimetry vector. used if there is a matematical function that generates the whole vector.
Reimplemented from woss::Altimetry.
References isValid(), woss::Altimetry::range, woss::Altimetry::range_precision, and woss::Altimetry::total_range_steps.
|
virtual |
Checks the validity of AltimBretschneider
Reimplemented from woss::Altimetry.
References average_period, char_height, woss::Altimetry::debug, and woss::Altimetry::total_range_steps.
Referenced by initialize().
AltimBretschneider & AltimBretschneider::operator= | ( | const AltimBretschneider & | copy | ) |
Assignment operator
copy | const reference to a AltimBretschneider object to be copied |
References average_period, char_height, and woss::Altimetry::operator=().
|
virtual |
Performs a random perturbation of altimetry values with given ratio
ratio_incr_value | perturbation ratio |
Reimplemented from woss::Altimetry.
References clone(), and woss::Altimetry::debug.
|
inline |
Configures T - the wave average period [s]
h | average period [s] |
References average_period.
|
inline |
Configures H - the characteristic height of the wave [m]
h | characteristic height [m] |
References char_height.
|
virtual |
Performs a time evoulion
time_value | const reference to a valid Time object |
Reimplemented from woss::Altimetry.
References clone(), woss::Altimetry::debug, woss::Altimetry::evolution_time_quantum, woss::Time::isValid(), and woss::Altimetry::last_evolution_time.
|
protected |
T - Model's average wave period [s] Refer to: G. J. Komen et al., Dynamics and modeling of ocean waves. Cambridge University Press, 1994.
Referenced by getAveragePeriod(), isValid(), operator=(), and setAveragePeriod().
|
protected |
H - Model's characteristic height [m] Refer to: G. J. Komen et al., Dynamics and modeling of ocean waves. Cambridge University Press, 1994.
Referenced by getCharacteristicHeight(), isValid(), operator=(), and setCharacteristicHeight().