5#include <marenv/marenv.h>
6#include <marenv/wake/WakeTypes.h>
17 const double tau = (t - start) / time;
22 return tau * tau * (3.0 - 2.0 * tau);
41 for (
int i = 0; i < 3; ++i)
52 for (
int i = 0; i < 3; ++i)
71 for (
int i = 0; i < 3; ++i)
Status
Definition marenv.h:44
@ ERROR_NOT_SET
No valid data (outside a field's horizontal extent, a NaN position, no field); the value is not set (...
double BlendWeight(double t, double start, double time)
Definition WakeSampleParts.h:13
Definition WakeSampleParts.h:87
WakeBlendSum At(double t) const
The sums at t: the snapshot blended to with BlendWeight(t), the state blended from with 1 - BlendWeig...
Definition WakeSampleParts.h:95
WakeSample current
The snapshot blended to, unweighted.
Definition WakeSampleParts.h:89
bool currentInside
The snapshot blended to has extent at the point.
Definition WakeSampleParts.h:88
double time
Duration of the blend, s.
Definition WakeSampleParts.h:92
WakeBlendSum previous
The state blended from at full weight (a single snapshot, R22); not inside without one.
Definition WakeSampleParts.h:90
double start
Start of the blend, s.
Definition WakeSampleParts.h:91
Definition WakeSampleParts.h:29
double weightedRatio
Sum of share d m, m the inflow ratio of the snapshot (MENV-0097).
Definition WakeSampleParts.h:34
double deficit
Sum of share d.
Definition WakeSampleParts.h:31
void Add(double share, const WakeSample &sample)
Adds a snapshot's sample with its share of the blend.
Definition WakeSampleParts.h:37
Status ToSample(const double zeroDeficitVelocity[3], WakeSample &out) const
Definition WakeSampleParts.h:64
bool inside
True once a snapshot contributed.
Definition WakeSampleParts.h:30
void Add(double share, const WakeBlendSum &part)
Adds the sums of a state blended from with its share of the blend.
Definition WakeSampleParts.h:48
double weightedShading
Sum of share d w_e, w_e the effective shading weight of the snapshot's sample (MENV-0097).
Definition WakeSampleParts.h:33
double weightedVelocity[3]
Sum of share d u_s, m/s, NED.
Definition WakeSampleParts.h:32
Definition WakeSampleParts.h:119
bool blending
True: the field blends at or after the sample time and At(t) weighs blend at t.
Definition WakeSampleParts.h:120
Status status
Not blending: the status of WakeField::Sample() at the sample time.
Definition WakeSampleParts.h:121
double zeroDeficitVelocity[3]
Blending: the source velocity the field reports where d = 0, m/s, NED.
Definition WakeSampleParts.h:124
WakeBlendSamples blend
Blending: the samples of the blend's snapshots at the sample time.
Definition WakeSampleParts.h:123
Status At(double t, WakeSample &out) const
Definition WakeSampleParts.h:132
WakeSample sample
Not blending: WakeField::Sample() at the sample time.
Definition WakeSampleParts.h:122
Definition WakeTypes.h:21
double sourceVelocity[3]
Deficit-weighted source velocity u_s of the contributing sources, m/s, NED.
Definition WakeTypes.h:23
double shading
Effective shading weight w_e in [0, 1] at the point (MENV-0097): the weight w of the field's lumped s...
Definition WakeTypes.h:24
double inflowRatio
Ratio m in (0, 1] of the shaded to the ambient mean square inflow of the field's lumped source (MENV-...
Definition WakeTypes.h:25
double deficit
Combined velocity deficit d in [0, 1]; the velocity ratio is r = 1 - d.
Definition WakeTypes.h:22