|
Marine systems simulation
|
#include <ConstantCurrent.h>
Inheritance diagram for marenv::current::ConstantCurrent:
Collaboration diagram for marenv::current::ConstantCurrent:Public Member Functions | |
| ConstantCurrent (const double velocity[3]) | |
| ConstantCurrent (double velocity, double directionRad) | |
| Status | GetCurrent (double time, const double position[3], double currentVelocity[3]) override |
Public Member Functions inherited from marenv::current::CurrentField | |
| virtual | ~CurrentField ()=default |
| Virtual destructor. | |
An ocean current providing a time- and position independent current.
Example usage:
|
explicit |
Constructor for the ocean current
| [in] | velocity | The 3 DOF ocean current velocity [m/s] |
| marenv::current::ConstantCurrent::ConstantCurrent | ( | double | velocity, |
| double | directionRad | ||
| ) |
Constructor for the ocean current
| [in] | velocity | The ocean current velocity amplitude [m/s] |
| [in] | directionRad | The ocean current direction [rad] |
|
overridevirtual |
Return the ocean current velocity in a given position and time.
| [in] | time | Time stamp in simulation time. |
| [in] | position | The position to query for. |
| [out] | currentVelocity | The velocity of the ocean current in the given time and position. |
Implements marenv::current::CurrentField.