34 namespace laminarModels
36 namespace generalisedNewtonianViscosityModels
42 generalisedNewtonianViscosityModel,
81 strainRateFunction_.clear();
113 tnu.
ref().primitiveFieldRef() = strainRateFunction_->value(strainRate);
115 volScalarField::Boundary& nuBf = tnu.
ref().boundaryFieldRef();
116 const volScalarField::Boundary& sigmaBf = strainRate.
boundaryField();
120 nuBf[
patchi] = strainRateFunction_->value(sigmaBf[
patchi]);
const dimensionSet dimViscosity
static word group(const word &name)
Return group (extension part of name)
Run-time selectable general function of one variable.
#define forAll(list, i)
Loop across all elements in list.
strainRateFunction(const dictionary &viscosityProperties)
Construct from components.
A list of keyword definitions, which are a keyword followed by any number of values (e...
const Boundary & boundaryField() const
Return const-reference to the boundary field.
T & ref() const
Return non-const reference or generate a fatal error.
static tmp< GeometricField< scalar, fvPatchField, volMesh > > New(const word &name, const Internal &, const PtrList< fvPatchField< scalar >> &)
Return a temporary field constructed from name,.
defineTypeNameAndDebug(BirdCarreau, 0)
virtual tmp< volScalarField > nu(const volScalarField &nu0, const volScalarField &strainRate) const
Return the laminar viscosity.
Macros for easy insertion into run-time selection tables.
const dictionary & optionalSubDict(const word &) const
Find and return a sub-dictionary if found.
static word groupName(Name name, const word &group)
addToRunTimeSelectionTable(generalisedNewtonianViscosityModel, BirdCarreau, dictionary)
virtual bool read(const dictionary &viscosityProperties)
Read transportProperties dictionary.
const Mesh & mesh() const
Return mesh.
An abstract base class for generalised Newtonian viscosity models.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
A class for managing temporary objects.
virtual bool read(const dictionary &viscosityProperties)=0
Read transportProperties dictionary.
static autoPtr< Function1< Type > > New(const word &name, const dictionary &dict)
Selector.