4#include <marenv/current/CurrentField.h>
28 using Jet = std::function<
marenv::Status(
const State& state,
double time,
const double position[3],
double currentVelocity[3])>;
33 void Update(
const State& state) { m_state = state; }
37 return m_jet(m_state, time, position, currentVelocity);
Definition PropulsorWakeField.h:25
void Update(const State &state)
Replaces the state copy; call it only between steps (AcceptedStep).
Definition PropulsorWakeField.h:33
marenv::Status GetCurrent(double time, const double position[3], double currentVelocity[3]) override
Definition PropulsorWakeField.h:35
std::function< marenv::Status(const State &state, double time, const double position[3], double currentVelocity[3])> Jet
The jet formula: the current at position and time from the copied state.
Definition PropulsorWakeField.h:28
Defines the interface for an relaying information about ocean currents.
Definition CurrentField.h:13
Status
Definition marenv.h:44
Simple waypoint object.
Definition CableAttach.h:58