|
| | BodyFlowInteraction (ISimObjectCreator *creator) |
| |
| void | FinalSetup (const std::string &objectName, double waterDensity, ISimObjectCreator *creator) |
| |
|
bool | CastsWake () const |
| | True with CastWake and an Environment, after FinalSetup.
|
| |
|
const environment::wake::LumpedWakeCaster * | WakeCaster () const |
| | The wake caster; null without CastWake or before FinalSetup.
|
| |
| void | PreOdeFcn (double T, const double *X, const double position[3], const environment::wake::WakeCastingObject &body) |
| |
| void | WaterVelocity (double T, const double position[3], double velocity[3]) const |
| |
| double | Submergence (double T, const double position[3], double halfExtent) const |
| |
| void | WaveAcceleration (double T, const double position[3], double acceleration[3]) const |
| |
|
environment::EnvironmentProvider * | Environment () const |
| | The Environment; null before FinalSetup, and after it only if it was reported missing.
|
| |
◆ BodyFlowInteraction()
| BodyFlowInteraction::BodyFlowInteraction |
( |
ISimObjectCreator * |
creator | ) |
|
|
explicit |
Reads the wake parameters.
- Parameters
-
| creator | The creator of the owning SimObject. |
◆ FinalSetup()
| void BodyFlowInteraction::FinalSetup |
( |
const std::string & |
objectName, |
|
|
double |
waterDensity, |
|
|
ISimObjectCreator * |
creator |
|
) |
| |
Finds the Environment and, with CastWake, registers the body's lumped wake in it.
- Parameters
-
| objectName | The name of the owning SimObject. |
| waterDensity | The water density the body's drag is set at [kg/m³]. |
| creator | The creator of the owning SimObject; also the log of the wake caster. |
◆ PreOdeFcn()
| void BodyFlowInteraction::PreOdeFcn |
( |
double |
T, |
|
|
const double * |
X, |
|
|
const double |
position[3], |
|
|
const environment::wake::WakeCastingObject & |
body |
|
) |
| |
Rebuilds the cast wake when due and takes the other objects' wakes at the body.
- Parameters
-
| T | Simulation time [s]. |
| X | The state vector of the body. |
| position | The body's centre in X [m], NED. |
| body | The owning body, which reads its state and load for the wake. |
◆ Submergence()
| double BodyFlowInteraction::Submergence |
( |
double |
T, |
|
|
const double |
position[3], |
|
|
double |
halfExtent |
|
) |
| const |
The submergence z + eta of a point against the wave surface, gated by MaxWaveElevation (R66).
- Parameters
-
| T | Simulation time [s]. |
| position | The body's centre [m], NED. |
| halfExtent | The body's half extent in the vertical [m]. |
- Returns
- Submergence [m].
◆ WaterVelocity()
| void BodyFlowInteraction::WaterVelocity |
( |
double |
T, |
|
|
const double |
position[3], |
|
|
double |
velocity[3] |
|
) |
| const |
The water velocity at a point, the body's own wake excluded.
- Parameters
-
| [in] | T | Simulation time [s]. |
| [in] | position | Point [m], NED. |
| [out] | velocity | Waked current plus wave particle velocity [m/s], NED. |
◆ WaveAcceleration()
| void BodyFlowInteraction::WaveAcceleration |
( |
double |
T, |
|
|
const double |
position[3], |
|
|
double |
acceleration[3] |
|
) |
| const |
The wave particle acceleration at a point; zero without waves.
- Parameters
-
| [in] | T | Simulation time [s]. |
| [in] | position | Point [m], NED. |
| [out] | acceleration | [m/s²], NED. |
The documentation for this class was generated from the following file: