Marine systems simulation
Loading...
Searching...
No Matches
marenv::seafloor::BathymetryWavesSpec Struct Reference

#include <BathymetryWavesSpec.h>

Public Member Functions

std::vector< float > GetData ()
 
void AddWave (double angleRad, double amplitude, double waveLength)
 
 BathymetryWavesSpec (double averageDepth, int numComponents, double sumAmplitudes, double minWavelength, double maxWavelength, uint32_t seed)
 

Public Attributes

float averageDepth
 Average water depth [m].
 
float sumAmplitudes
 Total sum of amplitudes across all components.
 
std::vector< BathymetryWavewaves
 Collection of bathymetry wave components.
 

Detailed Description

Specification of a set of bathymetry waves.

Contains average depth and a collection of bathymetry wave components. Provides methods to generate wave data and add new waves.

Constructor & Destructor Documentation

◆ BathymetryWavesSpec()

marenv::seafloor::BathymetryWavesSpec::BathymetryWavesSpec ( double  averageDepth,
int  numComponents,
double  sumAmplitudes,
double  minWavelength,
double  maxWavelength,
uint32_t  seed 
)

Constructs a bathymetry wave specification with randomized components.

Parameters
[in]averageDepthAverage water depth [m].
[in]numComponentsNumber of wave components to generate.
[in]sumAmplitudesTotal sum of amplitudes across all components.
[in]minWavelengthMinimum wavelength [m].
[in]maxWavelengthMaximum wavelength [m].
[in]seedRandom seed for reproducibility.

Member Function Documentation

◆ AddWave()

void marenv::seafloor::BathymetryWavesSpec::AddWave ( double  angleRad,
double  amplitude,
double  waveLength 
)

Adds a new bathymetry wave to the specification.

Parameters
[in]angleRadWave propagation angle in radians.
[in]amplitudeWave amplitude [m].
[in]waveLengthWavelength [m].

◆ GetData()

std::vector< float > marenv::seafloor::BathymetryWavesSpec::GetData ( )

Retrieves wave data as a flat vector.

Returns
Vector of floats containing wave data (implementation-defined format).

The documentation for this struct was generated from the following file: