33 namespace laminarModels
35 namespace generalisedNewtonianViscosityModels
68 viscosityProperties.optionalSubDict(typeName +
"Coeffs")
86 strainRateFunction_.clear();
120 tnu.
ref().primitiveFieldRef() = strainRateFunction_->value(strainRate);
127 nuBf[
patchi] = strainRateFunction_->value(sigmaBf[
patchi]);
#define forAll(list, i)
Loop across all elements in list.
Macros for easy insertion into run-time selection tables.
const Mesh & mesh() const
Return mesh.
Run-time selectable general function of one variable.
static autoPtr< Function1< Type > > New(const word &name, const Function1s::unitConversions &units, const dictionary &dict)
Select from dictionary.
Generic GeometricBoundaryField class.
Generic GeometricField class.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
static tmp< GeometricField< Type, PatchField, GeoMesh > > New(const word &name, const Internal &, const PtrList< PatchField< Type >> &, const HashPtrTable< Source > &=HashPtrTable< Source >())
Return a temporary field constructed from name,.
static word group(const word &name)
Return group (extension part of name)
static word groupName(Name name, const word &group)
A list of keyword definitions, which are a keyword followed by any number of values (e....
const dictionary & optionalSubDict(const word &) const
Find and return a sub-dictionary if found.
An abstract base class for generalised Newtonian viscosity models.
virtual bool read(const dictionary &viscosityProperties)=0
Read transportProperties dictionary.
Run-time selected strain-rate function generalised Newtonian viscosity model.
virtual bool read(const dictionary &viscosityProperties)
Read transportProperties dictionary.
strainRateFunction(const dictionary &viscosityProperties, const Foam::viscosity &viscosity, const volVectorField &U)
Construct from components.
An abstract base class for strain-rate dependent generalised Newtonian viscosity models.
virtual void correct()
Correct the laminar viscosity.
virtual tmp< volScalarField > nu() const
Return the laminar viscosity.
A class for managing temporary objects.
T & ref() const
Return non-const reference or generate a fatal error.
Abstract base class for all fluid physical properties.
autoPtr< CompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const viscosity &viscosity)
defineTypeNameAndDebug(Newtonian, 0)
addToRunTimeSelectionTable(generalisedNewtonianViscosityModel, Newtonian, dictionary)
const dimensionSet dimKinematicViscosity
const dimensionSet dimless
const dimensionSet dimTime
word typedName(Name name)
Return the name of the object within the given type.