|
Marine systems simulation
|
#include <WaveComponents.h>
Inheritance diagram for marenv::wave::WaveComponents:
Collaboration diagram for marenv::wave::WaveComponents:Public Member Functions | |
| WaveComponents (std::vector< double > amplitude, std::vector< double > phaseAngle, std::vector< double > frequency, std::vector< double > direction, SpectrumType spectrumType) | |
| ~WaveComponents ()=default | |
| Default destructor. | |
| std::shared_ptr< WaveComponents > | Blend (WaveComponentData &other, double alpha) const |
| void | Sort () |
| Sorts the wave components. | |
| std::string | GetSpectrumType () const |
| Spectrum type. | |
| WaveField::InsecureDatapointers | GetInsecureDatapointers () const |
| Gives access to temporary pointers to internal structures, for performance reasons. | |
Friends | |
| class | WaveEnergySpectrum |
Container for discrete wave component data representing a sea state.
Stores amplitudes, frequencies, directions, and phase angles for multiple wave components. Used by wave field implementations (Airy, Gerstner) to compute wave kinematics and dynamics.
| marenv::wave::WaveComponents::WaveComponents | ( | std::vector< double > | amplitude, |
| std::vector< double > | phaseAngle, | ||
| std::vector< double > | frequency, | ||
| std::vector< double > | direction, | ||
| SpectrumType | spectrumType | ||
| ) |
Constructor
| [in] | amplitude | An array of wave component amplitudes. |
| [in] | phaseAngle | An array of wave component phase angles in radians. |
| [in] | frequency | An array of wave component frequencies in rad/s. |
| [in] | direction | An array of wave component directions in radians. |
| [in] | spectrumType | The spectrum type used for the realisation. |
| std::shared_ptr< WaveComponents > marenv::wave::WaveComponents::Blend | ( | WaveComponentData & | other, |
| double | alpha | ||
| ) | const |
Returns a new WaveComponents that is this blended towards other by alpha.
| [in] | other | The target set of wave components. |
| [in] | alpha | Blend factor: 0 = keep current, 1 = use other. |
This object is not modified. Thread-safe: can be called concurrently with GetInsecureDatapointers() on the same instance.
| WaveField::InsecureDatapointers marenv::wave::WaveComponents::GetInsecureDatapointers | ( | ) | const |
| std::string marenv::wave::WaveComponents::GetSpectrumType | ( | ) | const |