DUNE: Uniform Navigational Environment  2020.01.0
Simulators::StreamVelocity::StreamGenerator::StreamGenerator Class Reference

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)
 

Constructor & Destructor Documentation

Simulators::StreamVelocity::StreamGenerator::StreamGenerator::StreamGenerator ( double  wx,
double  wy,
double  wz = 0.0 
)

Constructor.

Parameters
[in]wxdefault stream speed in the North direction (m/s).
[in]wydefault stream speed in the East direction (m/s).
[in]wzdefault stream speed in the Down direction (m/s).
Simulators::StreamVelocity::StreamGenerator::StreamGenerator::~StreamGenerator ( )
default

Member Function Documentation

std::array< double, 3 > Simulators::StreamVelocity::StreamGenerator::StreamGenerator::getDefaultVelocity ( ) const

Get the default stream velocity.

Returns
3-dimensional array containing the default stream velocity value in the North, East and Down directions in meters per second.

Referenced by getVelocity(), and Simulators::StreamVelocity::StreamGenerator::Gridded2DModelDataStreamGenerator::getVelocity().

std::array< double, 3 > Simulators::StreamVelocity::StreamGenerator::StreamGenerator::getVelocity ( double  lat,
double  lon,
double  depth,
double  time = 0.0 
) const
virtual

Get a stream velocity value.

Parameters
[in]latWGS84 latitude in degrees.
[in]lonWGS84 longitude in degrees.
[in]depthdepth in meters.
[in]timetime elapsed since the simulation started.
Returns
3-dimensional array containing the stream velocity in the North, East and Down directions in meters per second.

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.

Parameters
[in]wxdefault stream speed in the North direction (m/s).
[in]wydefault stream speed in the East direction (m/s).
[in]wzdefault stream speed in the Down direction (m/s).
Collaboration diagram for Simulators::StreamVelocity::StreamGenerator::StreamGenerator:
Collaboration graph