Represents a wave field.
#include <WaveEnergySpectrum.h>
|
|
using | NormalizedProbabilityDistribution = double(WaveEnergySpectrum::*)(const double) |
| | Defines the type of a normalized probability distribution function.
|
| |
|
|
void | CalcWaveDirections () |
| | Calculates wave directions according to the specified spectrum parameters.
|
| |
|
void | CalcWaveFrequencies () |
| | Calculates frequencies of each wave component.
|
| |
| double | CosPower (double theta) const |
| |
| double | SpectralEnergy (double omega) const |
| |
| double | JONSWAP (double omega) const |
| |
| double | Issc (double omega) const |
| |
◆ DirectionBinning
| Enumerator |
|---|
| Random | Random distribution according to the direction spectrum.
|
| Sequential | Higher energies in main direction.
|
◆ DirectionSpectrum
| Enumerator |
|---|
| CosineSquared | The function is of the form cos(theta)^n.
|
◆ FrequencyBinning
| Enumerator |
|---|
| EqualEnergy | Each wave component has the same energy.
|
| EqualSqrtEnergy | Each wave component has the same \( \int_{\omega_k}^{\omega_{k+1}} S(\omega)\, d\omega \).
|
◆ WaveEnergySpectrum()
| marenv::wave::WaveEnergySpectrum::WaveEnergySpectrum |
( |
const SpectrumParameters & |
spectrumParameters, |
|
|
int |
numWaves, |
|
|
uint32_t |
randomSeed |
|
) |
| |
Constructor.
- Parameters
-
| [in] | spectrumParameters | Spectrum parameters. |
| [in] | numWaves | Number of waves to construct from the spectrum. |
| [in] | randomSeed | The random seed to use. |
◆ CosPower()
| double marenv::wave::WaveEnergySpectrum::CosPower |
( |
double |
theta | ) |
const |
|
protected |
Computes \( \cos^{\text{cosinePower}}(\theta) \)
- Parameters
-
| [in] | theta | The wave direction relative to the main direction. |
- Returns
- The cosine power of theta;
◆ GetWaveComponents()
| std::shared_ptr< WaveComponents > marenv::wave::WaveEnergySpectrum::GetWaveComponents |
( |
| ) |
|
Get all wave components.
- Returns
- All wave components.
◆ Issc()
| double marenv::wave::WaveEnergySpectrum::Issc |
( |
double |
omega | ) |
const |
|
protected |
Calculates the ISSC spectrum energy for a wave frequency.
- Parameters
-
| [in] | omega | The wave frequency |
- Returns
- The ISSC spectrum energy for the given wave frequency.
◆ JONSWAP()
| double marenv::wave::WaveEnergySpectrum::JONSWAP |
( |
double |
omega | ) |
const |
|
protected |
Calculates the JONSWAP spectrum energy for a wave frequency.
- Parameters
-
| [in] | omega | The wave frequency |
- Returns
- The ISSC JONSWAP energy for the given wave frequency.
◆ SpectralEnergy()
| double marenv::wave::WaveEnergySpectrum::SpectralEnergy |
( |
double |
omega | ) |
const |
|
protected |
Calculates the spectrum energy for a wave frequency.
- Parameters
-
| [in] | omega | The wave frequency |
- Returns
- The spectrum energy for the given wave frequency.
The documentation for this class was generated from the following file: