Public Member Functions | |
TypeName ("GodaJONSWAP") | |
Runtime type information. More... | |
GodaJONSWAP (const GodaJONSWAP &spectrum) | |
Construct a copy. More... | |
GodaJONSWAP (const dictionary &dict, const scalar g) | |
Construct from a dictionary and gravity. More... | |
virtual autoPtr< waveSpectrum > | clone () const |
Construct a clone. More... | |
virtual | ~GodaJONSWAP () |
Destructor. More... | |
virtual tmp< scalarField > | S (const scalarField &f) const |
Evaluate the wave spectral density at the given frequencies [m^2/Hz]. More... | |
virtual scalar | fFraction (const scalar fraction) const |
Return the frequency below which a given fraction of the spectrum's. More... | |
virtual void | write (Ostream &os) const |
Write. More... | |
Public Member Functions inherited from waveSpectrum | |
TypeName ("waveSpectrum") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, waveSpectrum, dictionary,(const dictionary &dict, const scalar g),(dict, g)) | |
waveSpectrum (const waveSpectrum &spectrum) | |
Construct a copy. More... | |
waveSpectrum (const dictionary &dict, const scalar g) | |
Construct from a dictionary and gravity. More... | |
virtual | ~waveSpectrum () |
Destructor. More... | |
scalar | g () const |
Access the gravitation acceleration [m/s^2]. More... | |
virtual tmp< scalarField > | integralS (const scalarField &f) const |
Evaluate the integral of the wave spectral density at the given. More... | |
virtual tmp< scalarField > | integralFS (const scalarField &f) const |
Evaluate the integral of the wave spectral density multiplied by. More... | |
void | operator= (const waveSpectrum &)=delete |
Disallow default bitwise assignment. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from waveSpectrum | |
static autoPtr< waveSpectrum > | New (const dictionary &dict, const scalar g) |
Select given a dictionary and gravity. More... | |
Protected Member Functions inherited from waveSpectrum | |
scalar | fFraction (const scalar fraction, const scalar f1) const |
Return the frequency below which a given fraction of the spectrum's. More... | |
Definition at line 110 of file GodaJONSWAP.H.
GodaJONSWAP | ( | const GodaJONSWAP & | spectrum | ) |
Construct a copy.
Definition at line 46 of file GodaJONSWAP.C.
Referenced by GodaJONSWAP::clone().
GodaJONSWAP | ( | const dictionary & | dict, |
const scalar | g | ||
) |
Construct from a dictionary and gravity.
Definition at line 58 of file GodaJONSWAP.C.
|
virtual |
Destructor.
Definition at line 73 of file GodaJONSWAP.C.
TypeName | ( | "GodaJONSWAP" | ) |
Runtime type information.
|
inlinevirtual |
Construct a clone.
Implements waveSpectrum.
Definition at line 141 of file GodaJONSWAP.H.
References GodaJONSWAP::GodaJONSWAP().
|
virtual |
Evaluate the wave spectral density at the given frequencies [m^2/Hz].
Implements waveSpectrum.
Definition at line 79 of file GodaJONSWAP.C.
References Foam::exp(), f(), Foam::log(), Foam::pos(), Foam::pow(), Foam::pow4(), Foam::constant::physicoChemical::sigma, and Foam::sqr().
|
virtual |
Return the frequency below which a given fraction of the spectrum's.
total energy falls []
Implements waveSpectrum.
Definition at line 95 of file GodaJONSWAP.C.
References waveSpectrum::fFraction(), Foam::pow(), and Foam::pow025().
|
virtual |
Write.
Reimplemented from waveSpectrum.
Definition at line 106 of file GodaJONSWAP.C.
References waveSpectrum::write(), Foam::writeEntry(), and Foam::writeEntryIfDifferent().