140 virtual scalar
fFraction(
const scalar fraction)
const;
JONSWAP wave spectrum. This is similar to the Pierson-Moskowitz spectrum, but with an additional empi...
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.
virtual autoPtr< waveSpectrum > clone() const
Construct a clone.
TypeName("JONSWAP")
Runtime type information.
virtual ~JONSWAP()
Destructor.
JONSWAP(const JONSWAP &spectrum)
Construct a copy.
virtual scalar fFraction(const scalar fraction) const
Return the frequency below which a given fraction of the spectrum's.
virtual void write(Ostream &os) const
Write.
virtual tmp< scalarField > S(const scalarField &f) const
Evaluate the wave spectral density at the given frequencies [m^2/Hz].
scalar g() const
Access the gravitation acceleration [m/s^2].