52 U19_5_(spectrum.U19_5_),
53 alpha_(spectrum.alpha_),
65 U19_5_(
dict.lookup<scalar>(
"U19_5")),
66 alpha_(
dict.lookupOrDefault<scalar>(
"alpha", 8.1e-3)),
67 beta_(
dict.lookupOrDefault<scalar>(
"beta", 0.74))
85 const scalar
w0 = g()/U19_5_;
96 const scalar
w0 = g()/U19_5_;
98 return integralSInf*
exp(- beta_*
pow4(
w0/w));
104 const scalar fraction
107 const scalar
w0 = g()/U19_5_;
117 writeEntryIfDifferent<scalar>(os,
"alpha", 8.1e-3, alpha_);
118 writeEntryIfDifferent<scalar>(os,
"beta", 0.74, beta_);
Macros for easy insertion into run-time selection tables.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keyword definitions, which are a keyword followed by any number of values (e....
A class for managing temporary objects.
virtual ~PiersonMoskowitz()
Destructor.
PiersonMoskowitz(const PiersonMoskowitz &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 > integralS(const scalarField &f) const
Evaluate the integral of the wave spectral density at the given.
virtual tmp< scalarField > S(const scalarField &f) const
Evaluate the wave spectral density at the given frequencies [m^2/Hz].
Base class for wave spectra.
virtual void write(Ostream &os) const
Write.
const scalar twoPi(2 *pi)
dimensionedScalar pow5(const dimensionedScalar &ds)
dimensionedScalar exp(const dimensionedScalar &ds)
addToRunTimeSelectionTable(polyPatch, mergedCyclicPolyPatch, word)
dimensionedSymmTensor sqr(const dimensionedVector &dv)
dimensionedScalar log(const dimensionedScalar &ds)
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
defineTypeNameAndDebug(combustionModel, 0)
dimensionedScalar pow4(const dimensionedScalar &ds)
dimensionedScalar pow025(const dimensionedScalar &ds)