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 () |
| 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 &) | |
| Disallow copy construct. More... | |
| void | operator= (const viscosityModel &) |
| Disallow default bitwise 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.
|
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.
|
inlinevirtual |
Destructor.
Definition at line 135 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.
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 142 of file viscosityModel.H.
References viscosityModel::correct(), viscosityModel::nu(), 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().

|
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.
1.8.13