FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
LinearWaveTheory.h
1#pragma once
3
4#include <marenv/wave/WaveComponents.h>
5
6#include <memory>
7#include <string>
8
9namespace marenv::wave
10{
11
19{
20public:
28 LinearWaveTheory(std::shared_ptr<WaveComponents> waveComponents,
29 std::string waveTheoryName);
31
32 [[nodiscard]] WaveField::InsecureDatapointers GetWaveComponents() const override;
34
35 [[nodiscard]] std::string SpectrumName() const override;
37
38 [[nodiscard]] std::string WaveTheoryName() const override;
40
41 [[nodiscard]] WaveComponentData GetWaveComponentsCopy() const override;
42
44 [[nodiscard]] double MaxWaveElevation() const override;
45
46protected:
52 [[nodiscard]] const WaveComponents& Components() const
53 {
54 return *m_waveComponents;
55 }
56
57 std::string m_spectrumName;
58 std::string m_waveTheoryName;
59
60private:
61 const std::shared_ptr<const WaveComponents> m_waveComponents;
62 const double m_maxWaveElevation;
63};
64} // namespace marenv::wave
Definition LinearWaveTheory.h:19
std::string m_waveTheoryName
The name of the wave theory.
Definition LinearWaveTheory.h:58
WaveField::InsecureDatapointers GetWaveComponents() const override
WaveComponentData GetWaveComponentsCopy() const override
std::string SpectrumName() const override
double MaxWaveElevation() const override
Sum of |zeta_A| over the published components, times 1 + 1e-10 (see WaveField::MaxWaveElevation).
std::string WaveTheoryName() const override
const WaveComponents & Components() const
Definition LinearWaveTheory.h:52
std::string m_spectrumName
The name of the wave spectrum.
Definition LinearWaveTheory.h:57
LinearWaveTheory(std::shared_ptr< WaveComponents > waveComponents, std::string waveTheoryName)
Definition WaveComponents.h:33
Definition WaveField.h:41
Details of a wave component.
Definition WaveField.h:23
Pointers to wave component details.
Definition WaveField.h:46