|
FhSim
3.1.0
Marine systems simulation
|
#include <SpectralTail.h>
Public Member Functions | |
| TailCascade (int n, double patchSize, double kMin, double kMax, const TailSpectrum &spectrum, std::uint32_t seed) | |
| TailFields | Evaluate (double time, double choppiness, bool jacobian=true) const |
| double | MeanSquareSlope () const |
| std::array< double, 3 > | SlopeCovariance () const |
| double | HeightVariance () const |
| int | Size () const |
| double | PatchSize () const |
One cascade: a periodic patch of size L with the wave numbers in [kMin, kMax).
Built once from the spectrum and a seed; Evaluate(t) gives the fields at time t.
| visual::tail::TailCascade::TailCascade | ( | int | n, |
| double | patchSize, | ||
| double | kMin, | ||
| double | kMax, | ||
| const TailSpectrum & | spectrum, | ||
| std::uint32_t | seed | ||
| ) |
Sample the spectrum.
| [in] | n | Grid size N, a power of two. |
| [in] | patchSize | L [m]. |
| [in] | kMin | Lowest wave number kept [rad/m]. |
| [in] | kMax | Highest wave number kept [rad/m] (at most pi N / L). |
| [in] | spectrum | The spectrum. |
| [in] | seed | Seed of the random amplitudes and phases. |
| TailFields visual::tail::TailCascade::Evaluate | ( | double | time, |
| double | choppiness, | ||
| bool | jacobian = true |
||
| ) | const |
The fields at time t.
| [in] | time | Time [s]. |
| [in] | choppiness | Scale of the horizontal displacement in the Jacobian (0: no folding). |
| [in] | jacobian | Whether to compute the Jacobian (two of the five transforms); if not, it is 1 everywhere. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |