33 template<
class ViscousModel>
40 return exp(-alpha_*(
field - Talpha_));
46 template<
class ViscousModel>
55 ViscousModel(
name, viscosityProperties,
U,
phi),
58 viscosityProperties.optionalSubDict(typeName +
"Coeffs")
62 fieldName_(ArrheniusCoeffs_.getOrDefault<
word>(
"field",
"T")),
69 this->nu_ *= calcNu(*fldPtr);
76 template<
class ViscousModel>
87 ArrheniusCoeffs_.
readEntry(
"alpha", alpha_);
88 ArrheniusCoeffs_.readEntry(
"Talpha", Talpha_);
Arrhenius(const word &name, const dictionary &viscosityProperties, const volVectorField &U, const surfaceScalarField &phi)
Construct from components.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
dimensionedSphericalTensor inv(const dimensionedSphericalTensor &dt)
const Type * findObject(const word &name, const bool recursive=false) const
Return const pointer to the object of the given Type.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
bool readEntry(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX, IOobjectOption::readOption readOpt=IOobjectOption::MUST_READ) const
Find entry and assign to T val. FatalIOError if it is found and the number of tokens is incorrect...
const dictionary & optionalSubDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary, otherwise return this dictionary.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
dimensionedScalar exp(const dimensionedScalar &ds)
virtual bool read(const dictionary &viscosityProperties)=0
Read transportProperties dictionary.
A class for handling words, derived from Foam::string.
const dimensionSet dimTemperature(0, 0, 0, 1, 0, 0, 0)
virtual bool read(const dictionary &viscosityProperties)
Read transportProperties dictionary.
A class for managing temporary objects.
Arrhenius type of dependency on a given scalar field name. Most likely temperature. The expression is as follow: