47 alpha_(
dict.get<scalar>(
"alpha")),
48 Tsss_(
dict.get<scalar>(
"Tsss")),
49 Ts_(
dict.get<scalar>(
"Ts")),
50 Tss_(
dict.get<scalar>(
"Tss"))
56inline Foam::scalar Foam::TroeFallOffFunction::operator()
62 scalar logFcent =
log10
66 (1 - alpha_)*
exp(-
T/Tsss_) + alpha_*
exp(-
T/Ts_) +
exp(-Tss_/
T),
71 scalar c = -0.4 - 0.67*logFcent;
72 static const scalar d = 0.14;
73 scalar
n = 0.75 - 1.27*logFcent;
76 return pow(10.0, logFcent/(1.0 +
sqr((logPr + c)/(
n - d*(logPr + c)))));
82 os.writeEntry(
"alpha", alpha_);
83 os.writeEntry(
"Tsss", Tsss_);
84 os.writeEntry(
"Ts", Ts_);
85 os.writeEntry(
"Tss", Tss_);
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
The Troe fall-off function.
TroeFallOffFunction(const scalar alpha, const scalar Tsss, const scalar Ts, const scalar Tss)
Construct from components.
void write(Ostream &os) const
Write to stream.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
dimensionedScalar exp(const dimensionedScalar &ds)
dimensionedSymmTensor sqr(const dimensionedVector &dv)
dimensionedScalar log10(const dimensionedScalar &ds)
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
dimensionedScalar Pr("Pr", dimless, laminarTransport)