|
| | PorousDiscWakeSource (std::string SimObjectName, ISimObjectCreator *Creator) |
| |
| void | FinalSetup (double T, const double *X, ISimObjectCreator *Creator) override |
| |
| void | PreOdeFcn (double T, const double *X, IStateUpdater *updater) override |
| |
|
void | OdeFcn (double T, const double *X, double *XDot) const override |
| | No state: nothing to integrate.
|
| |
◆ PorousDiscWakeSource()
| environmentmodels::PorousDiscWakeSource::PorousDiscWakeSource |
( |
std::string |
SimObjectName, |
|
|
ISimObjectCreator * |
Creator |
|
) |
| |
Reads and checks the parameters; widens the area above C_T = 0.96, logged (R125).
- Parameters
-
| [in] | SimObjectName | Unique name; the wake field is registered under it. |
| [in] | Creator | Supplies the parameters. |
- Exceptions
-
| std::runtime_error | on an invalid or missing parameter, after reporting it. |
◆ FinalSetup()
| void environmentmodels::PorousDiscWakeSource::FinalSetup |
( |
double |
T, |
|
|
const double * |
X, |
|
|
ISimObjectCreator * |
Creator |
|
) |
| |
|
override |
Registers the wake field with the Environment under the SimObject name.
With a fixed FlowDirection the source is published here; a followed direction is published in PreOdeFcn, since no velocity may be queried in FinalSetup.
- Parameters
-
| [in] | T | Simulation time [s]: the time at which the source is at Position. |
| [in] | X | Simulation state; not used. |
| [in] | Creator | Supplies the shared Environment resource. |
- Exceptions
-
| std::runtime_error | if the shared Environment resource is missing. |
◆ PreOdeFcn()
| void environmentmodels::PorousDiscWakeSource::PreOdeFcn |
( |
double |
T, |
|
|
const double * |
X, |
|
|
IStateUpdater * |
updater |
|
) |
| |
|
override |
Publishes a followed wake axis from the ambient current at the source.
Called once before every major time step. For a fixed FlowDirection the first call re-reads the seabed-image depth below the source and publishes the wake again, logged, when a bathymetry set after FinalSetup changed it (ENV-0056); later calls do nothing.
- Parameters
-
| [in] | T | Simulation time [s]. |
| [in] | X | Simulation state; not used. |
| [in] | updater | State updater; not used. |
The documentation for this class was generated from the following file: