49 a_(
dict.lookup<scalar>(
"a")),
50 b_(
dict.lookup<scalar>(
"b")),
51 c_(
dict.lookup<scalar>(
"c")),
52 d_(
dict.lookup<scalar>(
"d")),
53 e_(
dict.lookup<scalar>(
"e"))
59 inline Foam::scalar Foam::SRIFallOffFunction::operator()
65 const scalar logPr =
log10(
max(Pr, small));
67 const scalar X = 1/(1 +
sqr(logPr));
82 const scalar logPr =
log10(
max(Pr, small));
84 const scalar X = 1/(1 +
sqr(logPr));
87 const scalar dpsidT = a_*b_/
sqr(
T)*
exp(-b_/
T) - 1/c_*
exp(-
T/c_);
89 return F*(X/
psi*dpsidT + e_/
T);
100 static const scalar logTen =
log(scalar(10));
102 const scalar logPr =
log10(
max(Pr, small));
103 const scalar dlogPrdPr = Pr >= small ? 1/(logTen*Pr) : 0;
105 const scalar X = 1/(1 +
sqr(logPr));
106 const scalar dXdPr = -
sqr(X)*2*logPr*dlogPrdPr;
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual Ostream & write(const char)=0
Write character.
The SRI fall-off function.
scalar ddT(const scalar T, const scalar Pr, const scalar F) const
void write(Ostream &os) const
Write to stream.
SRIFallOffFunction(const scalar a, const scalar b, const scalar c, const scalar d, const scalar e)
Construct from components.
scalar ddPr(const scalar T, const scalar Pr, const scalar F) const
A list of keyword definitions, which are a keyword followed by any number of values (e....
const volScalarField & psi
const dimensionedScalar e
Elementary charge.
const dimensionedScalar F
Faraday constant: default SI units: [C/kmol].
const dimensionedScalar c
Speed of light in a vacuum.
dimensionedScalar exp(const dimensionedScalar &ds)
dimensionedSymmTensor sqr(const dimensionedVector &dv)
dimensionedScalar log10(const dimensionedScalar &ds)
dimensionedScalar log(const dimensionedScalar &ds)
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)