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 token &)
Write token.
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.
const unitSet & lookup(const word &unitName)
Lookup and return the named unit from the table.
dimensionedScalar exp(const dimensionedScalar &ds)
dimensionedScalar log10(const dimensionedScalar &ds)
dimensionedScalar log(const dimensionedScalar &ds)
tmp< DimensionedField< typename outerProduct< Type, Type >::type, GeoMesh, Field >> sqr(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
tmp< DimensionedField< typename powProduct< Type, r >::type, GeoMesh, Field > > pow(const DimensionedField< Type, GeoMesh, PrimitiveField > &df, typename powProduct< Type, r >::type)
void T(GeometricField< Type, GeoMesh, PrimitiveField1 > &gf, const GeometricField< Type, GeoMesh, PrimitiveField2 > &gf1)
void writeEntry(Ostream &os, const word &key, const DimensionedFieldFunction< DimensionedFieldType > &f)
dimensioned< Type > max(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)