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