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 keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
const volScalarField & psi
const dimensionedScalar e
Elementary charge.
const dimensionedScalar F
Faraday constant: default SI units: [C/mol].
const dimensionedScalar c
Speed of light in a vacuum.
dimensionedScalar exp(const dimensionedScalar &ds)
void T(LagrangianPatchField< Type > &f, const LagrangianPatchField< Type > &f1)
dimensionedScalar log10(const dimensionedScalar &ds)
dimensionedScalar log(const dimensionedScalar &ds)
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
void pow(LagrangianPatchField< typename powProduct< Type, r >::type > &f, const LagrangianPatchField< Type > &f1)
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
void sqr(LagrangianPatchField< typename outerProduct< Type, Type >::type > &f, const LagrangianPatchField< Type > &f1)