47 alpha_(
dict.
get<scalar>(
"alpha")),
48 Tsss_(
dict.
get<scalar>(
"Tsss")),
56 inline 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_);
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
dimensionedScalar Pr("Pr", dimless, laminarTransport)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
The Troe fall-off function.
void write(Ostream &os) const
Write to stream.
dimensionedScalar exp(const dimensionedScalar &ds)
virtual bool write(const token &tok)=0
Write token to stream or otherwise handle it.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
TroeFallOffFunction(const scalar alpha, const scalar Tsss, const scalar Ts, const scalar Tss)
Construct from components.
OBJstream os(runTime.globalPath()/outputName)
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
const dimensionedScalar c
Speed of light in a vacuum.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
dimensionedScalar log10(const dimensionedScalar &ds)