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... | |
| virtual | ~viscosityModel ()=default |
| 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... | |
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 Member Functions | |
| viscosityModel (const viscosityModel &)=delete | |
| No copy construct. More... | |
| void | operator= (const viscosityModel &)=delete |
| No copy assignment. 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.
|
protecteddelete |
No copy construct.
| viscosityModel | ( | const word & | name, |
| const dictionary & | viscosityProperties, | ||
| const volVectorField & | U, | ||
| const surfaceScalarField & | phi | ||
| ) |
Construct from components.
|
virtualdefault |
Destructor.
|
protecteddelete |
No copy 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 155 of file viscosityModel.H.
References viscosityModel::viscosityProperties_.
| Foam::tmp< Foam::volScalarField > strainRate | ( | ) | const |
Return the strain rate.
Definition at line 53 of file viscosityModel.C.
References Foam::fvc::grad(), Foam::mag(), Foam::sqrt(), and Foam::symm().
Referenced by powerLaw::calcNu(), CrossPowerLaw::calcNu(), HerschelBulkley::calcNu(), BirdCarreau::calcNu(), strainRateFunction::calcNu(), and Casson::calcNu().


|
pure virtual |
Return the laminar viscosity.
Implemented in Casson, strainRateFunction, BirdCarreau, Newtonian, CrossPowerLaw, HerschelBulkley, and powerLaw.
|
pure virtual |
Return the laminar viscosity for patch.
Implemented in Casson, strainRateFunction, BirdCarreau, Newtonian, CrossPowerLaw, HerschelBulkley, and powerLaw.
|
pure virtual |
Correct the laminar viscosity.
Implemented in Casson, strainRateFunction, BirdCarreau, Newtonian, CrossPowerLaw, HerschelBulkley, and powerLaw.
|
pure virtual |
Read transportProperties dictionary.
Implemented in Casson, strainRateFunction, BirdCarreau, CrossPowerLaw, HerschelBulkley, Newtonian, and powerLaw.
Definition at line 59 of file viscosityModel.C.
Referenced by powerLaw::read(), CrossPowerLaw::read(), HerschelBulkley::read(), Newtonian::read(), BirdCarreau::read(), strainRateFunction::read(), and Casson::read().

|
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.
Referenced by Newtonian::calcNu(), and strainRateFunction::calcNu().
|
protected |
Definition at line 75 of file viscosityModel.H.