|
Marine systems simulation
|
#include <WakeField.h>
Inheritance diagram for marenv::wake::WakeField:
Collaboration diagram for marenv::wake::WakeField:Public Member Functions | |
| virtual Status | GetCurrentVelocityFactor (double time, const double pos[3], const double currentDirection[3], double &factorOut)=0 |
Models the effect of objects (ships, structures) on the surrounding flow field.
The primary function GetCurrentVelocityFactor() returns a multiplicative factor applied to the ambient current velocity. A factor of 1.0 represents undisturbed flow, while values less than 1.0 indicate flow attenuation (e.g., wake shadow behind a vessel).
When multiple wake sources are present, their effects compose multiplicatively.
Example usage:
|
pure virtual |
Returns the current velocity attenuation factor at a given position and time.
| [in] | time | Simulation time. |
| [in] | pos | Position (x,y,z) to query. |
| [in] | currentDirection | Direction of the ambient (unattenuated) current velocity (x,y,z). |
| [out] | factorOut | Attenuation factor in [0, 1]. |
A factor of 1.0 means undisturbed current, 0.0 means zero current. The current direction is provided so that directional wake effects (e.g. shadow behind a structure) can be modelled.