50#ifndef viscosityModel_H
51#define viscosityModel_H
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A class for managing temporary objects.
An abstract base class for incompressible viscosityModels.
virtual tmp< volScalarField > nu() const =0
Return the laminar viscosity.
declareRunTimeSelectionTable(autoPtr, viscosityModel, dictionary,(const word &name, const dictionary &viscosityProperties, const volVectorField &U, const surfaceScalarField &phi),(name, viscosityProperties, U, phi))
const surfaceScalarField & phi_
virtual tmp< scalarField > nu(const label patchi) const =0
Return the laminar viscosity for patch.
const volVectorField & U_
tmp< volScalarField > strainRate() const
Return the strain rate.
viscosityModel(const viscosityModel &)=delete
No copy construct.
virtual void correct()=0
Correct the laminar viscosity.
void operator=(const viscosityModel &)=delete
No copy assignment.
virtual ~viscosityModel()=default
Destructor.
TypeName("viscosityModel")
Runtime type information.
static autoPtr< viscosityModel > New(const word &name, const dictionary &viscosityProperties, const volVectorField &U, const surfaceScalarField &phi)
Return a reference to the selected viscosity model.
const dictionary & viscosityProperties() const
Return the phase transport properties dictionary.
virtual bool read(const dictionary &viscosityProperties)=0
Read transportProperties dictionary.
dictionary viscosityProperties_
A class for handling words, derived from Foam::string.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
Macros to ease declaration of run-time selection tables.
#define declareRunTimeSelectionTable(ptrWrapper, baseType, argNames, argList, parList)
Declare a run-time selection (variables and adder classes)
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.