DUNE: Uniform Navigational Environment
2020.01.0
|
Public Member Functions | |
StreamGenerator (double wx, double wy, double wz=0.0) | |
~StreamGenerator ()=default | |
virtual std::array< double, 3 > | getVelocity (double lat, double lon, double depth, double time=0.0) const |
std::array< double, 3 > | getDefaultVelocity () const |
void | setVelocity (double wx, double wy, double wz=0.0) |
Simulators::StreamVelocity::StreamGenerator::StreamGenerator::StreamGenerator | ( | double | wx, |
double | wy, | ||
double | wz = 0.0 |
||
) |
Constructor.
[in] | wx | default stream speed in the North direction (m/s). |
[in] | wy | default stream speed in the East direction (m/s). |
[in] | wz | default stream speed in the Down direction (m/s). |
|
default |
std::array< double, 3 > Simulators::StreamVelocity::StreamGenerator::StreamGenerator::getDefaultVelocity | ( | ) | const |
Get the default stream velocity.
Referenced by getVelocity(), and Simulators::StreamVelocity::StreamGenerator::Gridded2DModelDataStreamGenerator::getVelocity().
|
virtual |
Get a stream velocity value.
[in] | lat | WGS84 latitude in degrees. |
[in] | lon | WGS84 longitude in degrees. |
[in] | depth | depth in meters. |
[in] | time | time elapsed since the simulation started. |
Reimplemented in Simulators::StreamVelocity::StreamGenerator::Gridded2DModelDataStreamGenerator.
References getDefaultVelocity().
void Simulators::StreamVelocity::StreamGenerator::StreamGenerator::setVelocity | ( | double | wx, |
double | wy, | ||
double | wz = 0.0 |
||
) |
Set the default stream velocity.
[in] | wx | default stream speed in the North direction (m/s). |
[in] | wy | default stream speed in the East direction (m/s). |
[in] | wz | default stream speed in the Down direction (m/s). |