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);
39 for (
int i = 0; i < 3; ++i)
48 for (
int i = 0; i < 3; ++i)
65 for (
int i = 0; i < 3; ++i)
Status
Definition marenv.h:40
@ 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:79
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:87
WakeSample current
The snapshot blended to, unweighted.
Definition WakeSampleParts.h:81
bool currentInside
The snapshot blended to has extent at the point.
Definition WakeSampleParts.h:80
double time
Duration of the blend, s.
Definition WakeSampleParts.h:84
WakeBlendSum previous
The state blended from at full weight (a single snapshot, R22); not inside without one.
Definition WakeSampleParts.h:82
double start
Start of the blend, s.
Definition WakeSampleParts.h:83
Definition WakeSampleParts.h:29
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:35
Status ToSample(const double zeroDeficitVelocity[3], WakeSample &out) const
Definition WakeSampleParts.h:58
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:44
double weightedVelocity[3]
Sum of share d u_s, m/s, NED.
Definition WakeSampleParts.h:32
Definition WakeSampleParts.h:111
bool blending
True: the field blends at or after the sample time and At(t) weighs blend at t.
Definition WakeSampleParts.h:112
Status status
Not blending: the status of WakeField::Sample() at the sample time.
Definition WakeSampleParts.h:113
double zeroDeficitVelocity[3]
Blending: the source velocity the field reports where d = 0, m/s, NED.
Definition WakeSampleParts.h:116
WakeBlendSamples blend
Blending: the samples of the blend's snapshots at the sample time.
Definition WakeSampleParts.h:115
Status At(double t, WakeSample &out) const
Definition WakeSampleParts.h:124
WakeSample sample
Not blending: WakeField::Sample() at the sample time.
Definition WakeSampleParts.h:114
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 deficit
Combined velocity deficit d in [0, 1]; the velocity ratio is r = 1 - d.
Definition WakeTypes.h:22