5#include <marenv/wake/WakeConstants.h>
6#include <marenv/wake/WakeTypes.h>
double ShadingWeightOf(double shading)
LumpedLineSourceResult MakeLumpedLineSource(const LumpedLineSourceInput &input)
double InflowRatio(const LumpedSourceInput &input)
LumpedSourceResult MakeLumpedSource(const LumpedSourceInput &input)
KernelParams LumpedKernel(const KernelParams &user)
void SetRelativeFlowFromSamples(const std::vector< FlowSample > &samples, LumpedSourceInput &input)
LumpedSourceResult RelaxLumpedSource(const LumpedSourceInput &input, const LumpedSourceResult &fresh, double previousMomentum, double alpha)
double ReferenceSpeedSquared(const LumpedSourceInput &input)
Definition WakeTypes.h:38
Definition LumpedSource.h:30
double weight
Weight of the sample, such as its panel area; >= 0.
Definition LumpedSource.h:32
double relativeFlow[3]
Relative flow U_p = free stream - point velocity at the sample, m/s, NED.
Definition LumpedSource.h:31
double ambientRelativeFlow[3]
Ambient relative flow U_amb - point velocity at the sample, U_amb the current without any wake (R87),...
Definition LumpedSource.h:33
Definition WakeTypes.h:104
Definition WakeTypes.h:57
Definition LumpedSource.h:178
double inflowRatio
As LumpedSourceResult::inflowRatio: published with the line or point source (SourceSet::inflowRatio,...
Definition LumpedSource.h:182
LineSource source
The line source {rearCentre, e_U, axis, length, width, M}; value-initialised unless casts and not poi...
Definition LumpedSource.h:179
bool casts
False when the object casts no wake (|U_ref| < 1e-3 m/s, M = 0, a zero or non-finite axis,...
Definition LumpedSource.h:180
bool pointFallback
True when the body is nearly along the flow: the caller publishes point instead of source (MENV-0048)...
Definition LumpedSource.h:183
ElementarySource point
The point source of MakeLumpedSource() with the same M, flow direction and centre and the frontal are...
Definition LumpedSource.h:184
bool widened
True when the frontal area was widened to keep the momentum (the width to M / (0.96 L),...
Definition LumpedSource.h:181
Definition LumpedSource.h:86
bool casts
False when the object casts no wake (|U_ref| < 1e-3 m/s, M = 0, or a non-finite input or M).
Definition LumpedSource.h:88
bool widened
True when the area was widened to M / 0.96 to keep the momentum; the caller logs it.
Definition LumpedSource.h:89
double inflowRatio
Inflow ratio m of the input, InflowRatio(); 1 when casts is false. The caller publishes it with the s...
Definition LumpedSource.h:90
ElementarySource source
The source {rearCentre, e_U, A_f, M}, solidity 0; value-initialised when casts is false.
Definition LumpedSource.h:87