|
FhSim
3.1.0
Marine systems simulation
|
Inheritance diagram for Ship::ThrusterCurrentField:
Collaboration diagram for Ship::ThrusterCurrentField:Public Member Functions | |
| void | setThruster (Thruster *thruster) |
| virtual marenv::Status | GetCurrent (double time, const double position[3], double currentVelocity[3]) |
Public Member Functions inherited from marenv::current::CurrentField | |
| virtual | ~CurrentField ()=default |
| Virtual destructor. | |
|
virtual |
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. |
Threading contract, for every implementation: GetCurrent() may be called from several threads at once (a visualiser sampling in parallel while the simulation waits), so it must not change the field's state; it is non-const for historical reasons only. A field may read state the simulation writes between steps, so it need not be safe against a writer. Registration (EnvironmentFacade::AddCurrentField()) happens during setup.
Implements marenv::current::CurrentField.