33template<
class ViscousModel>
37 const volScalarField&
field
40 return exp(-alpha_*(
field - Talpha_));
46template<
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);
76template<
class ViscousModel>
87 ArrheniusCoeffs_.
readEntry(
"alpha", alpha_);
88 ArrheniusCoeffs_.readEntry(
"Talpha", Talpha_);
virtual bool read()
Re-read model coefficients if they have changed.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const dictionary & optionalSubDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary, otherwise return this dictionary.
bool readEntry(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX, bool mandatory=true) const
void calcNu()
Calculate and return the laminar viscosity.
const Type * findObject(const word &name, const bool recursive=false) const
Return const pointer to the object of the given Type.
A class for managing temporary objects.
Arrhenius type of dependency on a given scalar field name. Most likely temperature....
A class for handling words, derived from Foam::string.
dimensionedScalar exp(const dimensionedScalar &ds)
const dimensionSet dimTemperature(0, 0, 0, 1, 0, 0, 0)
dimensionedSphericalTensor inv(const dimensionedSphericalTensor &dt)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.