35 #ifndef waveSpectrum_H
36 #define waveSpectrum_H
84 scalar
fFraction(
const scalar fraction,
const scalar f1)
const;
133 inline scalar
g()
const
151 virtual scalar
fFraction(
const scalar fraction)
const = 0;
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keyword definitions, which are a keyword followed by any number of values (e....
A class for managing temporary objects.
Base class for wave spectra.
virtual autoPtr< waveSpectrum > clone() const =0
Construct a clone.
scalar g() const
Access the gravitation acceleration [m/s^2].
declareRunTimeSelectionTable(autoPtr, waveSpectrum, dictionary,(const dictionary &dict, const scalar g),(dict, g))
TypeName("waveSpectrum")
Runtime type information.
waveSpectrum(const waveSpectrum &spectrum)
Construct a copy.
virtual tmp< scalarField > S(const scalarField &f) const =0
Evaluate the wave spectral density at the given frequencies [m^2/Hz].
virtual ~waveSpectrum()
Destructor.
void operator=(const waveSpectrum &)=delete
Disallow default bitwise assignment.
static autoPtr< waveSpectrum > New(const dictionary &dict, const scalar g)
Select given a dictionary and gravity.
scalar fFraction(const scalar fraction, const scalar f1) const
Return the frequency below which a given fraction of the spectrum's.
virtual void write(Ostream &os) const
Write.
virtual tmp< scalarField > integralFS(const scalarField &f) const
Evaluate the integral of the wave spectral density multiplied by.
virtual tmp< scalarField > integralS(const scalarField &f) const
Evaluate the integral of the wave spectral density at the given.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.