47 #ifndef viscosityModel_H 48 #define viscosityModel_H 98 (name, viscosityProperties, U, phi)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A list of keyword definitions, which are a keyword followed by any number of values (e...
tmp< volScalarField > strainRate() const
Return the strain rate.
Generic GeometricField class.
const volVectorField & U_
An abstract base class for incompressible viscosityModels.
viscosityModel(const word &name, const dictionary &viscosityProperties, const volVectorField &U, const surfaceScalarField &phi)
Construct from components.
const dictionary & viscosityProperties() const
Return the phase transport properties dictionary.
virtual ~viscosityModel()
Destructor.
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 string.
word name(const complex &)
Return a string representation of a complex.
declareRunTimeSelectionTable(autoPtr, viscosityModel, dictionary,(const word &name, const dictionary &viscosityProperties, const volVectorField &U, const surfaceScalarField &phi),(name, viscosityProperties, U, phi))
static autoPtr< viscosityModel > New(const word &name, const dictionary &viscosityProperties, const volVectorField &U, const surfaceScalarField &phi)
Return a reference to the selected viscosity model.
virtual void correct()=0
Correct the laminar viscosity.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
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
Disallow default bitwise assignment.