An abstract base class for incompressible viscosityModels. More...
#include <kineticTheoryModel/viscosityModel.H>
An abstract base class for incompressible viscosityModels.
Definition at line 62 of file viscosityModel.H.
Public Member Functions | |
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)) | |
viscosityModel (const word &name, const dictionary &viscosityProperties, const volVectorField &U, const surfaceScalarField &phi) | |
Construct from components. | |
virtual | ~viscosityModel () |
const dictionary & | viscosityProperties () const |
Return the phase transport properties dictionary. | |
tmp< volScalarField > | strainRate () const |
Return the strain rate mag(grad(U)) | |
virtual tmp< volScalarField > | nu () const =0 |
Return the laminar viscosity. | |
virtual void | correct ()=0 |
Correct the laminar viscosity. | |
virtual bool | read (const dictionary &viscosityProperties)=0 |
Read transportProperties dictionary. |
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. |
Protected Member Functions | |
viscosityModel (const viscosityModel &) | |
Disallow copy construct. | |
void | operator= (const viscosityModel &) |
Disallow default bitwise assignment. |
Protected Attributes | |
word | name_ |
dictionary | viscosityProperties_ |
const volVectorField & | U_ |
const surfaceScalarField & | phi_ |
|
protected |
Disallow copy construct.
viscosityModel | ( | const word & | name, |
const dictionary & | viscosityProperties, | ||
const volVectorField & | U, | ||
const surfaceScalarField & | phi | ||
) |
Construct from components.
|
inlinevirtual |
Definition at line 134 of file viscosityModel.H.
|
protected |
Disallow default bitwise assignment.
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.
|
inline |
Return the phase transport properties dictionary.
Definition at line 141 of file viscosityModel.H.
References viscosityModel::viscosityProperties_.
Referenced by twoPhaseMixture::read().
Foam::tmp< Foam::volScalarField > strainRate | ( | ) | const |
Return the strain rate mag(grad(U))
Definition at line 58 of file viscosityModel.C.
References Foam::fvc::grad(), Foam::mag(), Foam::sqrt(), and Foam::symm().
|
pure virtual |
Return the laminar viscosity.
Implemented in BirdCarreau, HerschelBulkley, powerLaw, CrossPowerLaw, and Newtonian.
Referenced by twoPhaseMixture::mu(), twoPhaseMixture::muf(), singlePhaseTransportModel::nu(), phase::nu(), and twoPhaseMixture::nuf().
|
pure virtual |
Correct the laminar viscosity.
Implemented in BirdCarreau, HerschelBulkley, powerLaw, CrossPowerLaw, and Newtonian.
Referenced by twoPhaseMixture::calcNu(), and singlePhaseTransportModel::correct().
|
pure virtual |
Read transportProperties dictionary.
Implemented in BirdCarreau, HerschelBulkley, powerLaw, CrossPowerLaw, and Newtonian.
Definition at line 64 of file viscosityModel.C.
Referenced by singlePhaseTransportModel::read(), CrossPowerLaw::read(), HerschelBulkley::read(), powerLaw::read(), and BirdCarreau::read().
|
protected |
Definition at line 69 of file viscosityModel.H.
|
protected |
Definition at line 70 of file viscosityModel.H.
Referenced by viscosityModel::viscosityProperties().
|
protected |
Definition at line 72 of file viscosityModel.H.
|
protected |
Definition at line 73 of file viscosityModel.H.