An abstract base class for incompressible viscosityModels. More...
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_ |
viscosityModel | ( | const viscosityModel & | ) | [protected]
|
Disallow copy construct.
viscosityModel | ( | const word & | name, |
const dictionary & | viscosityProperties, | ||
const volVectorField & | U, | ||
const surfaceScalarField & | phi | ||
) |
Construct from components.
Definition at line 42 of file viscosityModel.C.
virtual ~viscosityModel | ( | ) | [inline, virtual]
|
Definition at line 134 of file viscosityModel.H.
void operator= | ( | const viscosityModel & | ) | [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) | |||
) |
autoPtr< viscosityModel > New | ( | const word & | name, |
const dictionary & | viscosityProperties, | ||
const volVectorField & | U, | ||
const surfaceScalarField & | phi | ||
) | [static]
|
Return a reference to the selected viscosity model.
Definition at line 38 of file newViscosityModel.C.
References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorIn, Foam::Info, dictionary::lookup(), Foam::name(), phi, and U.
const dictionary& viscosityProperties | ( | ) | const [inline]
|
Return the phase transport properties dictionary.
Definition at line 141 of file viscosityModel.H.
References viscosityModel::viscosityProperties_.
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(), Foam::symm(), and viscosityModel::U_.
virtual tmp<volScalarField> nu | ( | ) | const [pure virtual]
|
Return the laminar viscosity.
Implemented in BirdCarreau, CrossPowerLaw, HerschelBulkley, Newtonian, and powerLaw.
virtual void correct | ( | ) | [pure virtual]
|
Correct the laminar viscosity.
Implemented in BirdCarreau, CrossPowerLaw, HerschelBulkley, Newtonian, and powerLaw.
bool read | ( | const dictionary & | viscosityProperties ) | [pure virtual]
|
Read transportProperties dictionary.
Implemented in BirdCarreau, CrossPowerLaw, HerschelBulkley, Newtonian, and powerLaw.
Definition at line 64 of file viscosityModel.C.
Referenced by powerLaw::read(), HerschelBulkley::read(), CrossPowerLaw::read(), and BirdCarreau::read().
Definition at line 69 of file viscosityModel.H.
dictionary viscosityProperties_ [protected]
|
Definition at line 70 of file viscosityModel.H.
Referenced by viscosityModel::viscosityProperties().
const volVectorField& U_ [protected]
|
Definition at line 72 of file viscosityModel.H.
Referenced by viscosityModel::strainRate().
const surfaceScalarField& phi_ [protected]
|
Definition at line 73 of file viscosityModel.H.