An abstract base class for incompressible viscosityModels. More...
Public Member Functions | |
TypeName ("viscosityModel") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, viscosityModel, dictionary,(const word &name, const dictionary &viscosityProperties, const volVectorField &U, const surfaceScalarField &phi),(name, viscosityProperties, U, phi)) | |
viscosityModel (const word &name, const dictionary &viscosityProperties, const volVectorField &U, const surfaceScalarField &phi) | |
Construct from components. More... | |
viscosityModel (const viscosityModel &) | |
Disallow default bitwise copy construction. More... | |
virtual | ~viscosityModel () |
Destructor. More... | |
const dictionary & | viscosityProperties () const |
Return the phase transport properties dictionary. More... | |
tmp< volScalarField > | strainRate () const |
Return the strain rate. More... | |
virtual tmp< volScalarField > | nu () const =0 |
Return the laminar viscosity. More... | |
virtual tmp< scalarField > | nu (const label patchi) const =0 |
Return the laminar viscosity for patch. More... | |
virtual void | correct ()=0 |
Correct the laminar viscosity. More... | |
virtual bool | read (const dictionary &viscosityProperties)=0 |
Read transportProperties dictionary. More... | |
void | operator= (const viscosityModel &)=delete |
Disallow default bitwise assignment. More... | |
Static Public Member Functions | |
static autoPtr< viscosityModel > | New (const word &name, const dictionary &viscosityProperties, const volVectorField &U, const surfaceScalarField &phi) |
Return a reference to the selected viscosity model. More... | |
Protected Attributes | |
word | name_ |
dictionary | viscosityProperties_ |
const volVectorField & | U_ |
const surfaceScalarField & | phi_ |
An abstract base class for incompressible viscosityModels.
The strain rate is defined by:
mag(symm(grad(U)))
Definition at line 64 of file viscosityModel.H.
viscosityModel | ( | const word & | name, |
const dictionary & | viscosityProperties, | ||
const volVectorField & | U, | ||
const surfaceScalarField & | phi | ||
) |
Construct from components.
Definition at line 42 of file viscosityModel.C.
viscosityModel | ( | const viscosityModel & | ) |
Disallow default bitwise copy construction.
|
inlinevirtual |
Destructor.
Definition at line 129 of file viscosityModel.H.
TypeName | ( | "viscosityModel" | ) |
Runtime type information.
declareRunTimeSelectionTable | ( | autoPtr | , |
viscosityModel | , | ||
dictionary | , | ||
(const word &name, const dictionary &viscosityProperties, const volVectorField &U, const surfaceScalarField &phi) | , | ||
(name, viscosityProperties, U, phi) | |||
) |
|
static |
Return a reference to the selected viscosity model.
Definition at line 33 of file viscosityModelNew.C.
References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::Info, dictionary::lookup(), Foam::name(), Foam::nl, phi, and U.
|
inline |
Return the phase transport properties dictionary.
Definition at line 136 of file viscosityModel.H.
References viscosityModel::correct(), viscosityModel::nu(), viscosityModel::operator=(), patchi, viscosityModel::read(), viscosityModel::strainRate(), and viscosityModel::viscosityProperties_.
Foam::tmp< Foam::volScalarField > strainRate | ( | ) | const |
Return the strain rate.
Definition at line 58 of file viscosityModel.C.
References Foam::fvc::grad(), Foam::mag(), Foam::sqrt(), and Foam::symm().
Referenced by viscosityModel::viscosityProperties().
|
pure virtual |
Return the laminar viscosity.
Implemented in Casson, strainRateFunction, BirdCarreau, HerschelBulkley, powerLaw, CrossPowerLaw, and Newtonian.
Referenced by viscosityModel::viscosityProperties().
|
pure virtual |
Return the laminar viscosity for patch.
Implemented in Casson, strainRateFunction, BirdCarreau, HerschelBulkley, powerLaw, CrossPowerLaw, and Newtonian.
|
pure virtual |
Correct the laminar viscosity.
Implemented in Casson, BirdCarreau, strainRateFunction, HerschelBulkley, powerLaw, CrossPowerLaw, and Newtonian.
Referenced by viscosityModel::viscosityProperties().
|
pure virtual |
Read transportProperties dictionary.
Implemented in Casson, BirdCarreau, HerschelBulkley, powerLaw, CrossPowerLaw, strainRateFunction, and Newtonian.
Definition at line 64 of file viscosityModel.C.
Referenced by Newtonian::read(), CrossPowerLaw::read(), strainRateFunction::read(), powerLaw::read(), HerschelBulkley::read(), BirdCarreau::read(), Casson::read(), and viscosityModel::viscosityProperties().
|
delete |
Disallow default bitwise assignment.
Referenced by viscosityModel::viscosityProperties().
|
protected |
Definition at line 71 of file viscosityModel.H.
|
protected |
Definition at line 72 of file viscosityModel.H.
Referenced by viscosityModel::viscosityProperties().
|
protected |
Definition at line 74 of file viscosityModel.H.
|
protected |
Definition at line 75 of file viscosityModel.H.