Standard power-law non-Newtonian viscosity model. More...
#include <powerLaw.H>


Public Member Functions | |
| TypeName ("powerLaw") | |
| Runtime type information. | |
| powerLaw (const word &name, const dictionary &viscosityProperties, const volVectorField &U, const surfaceScalarField &phi) | |
| Construct from components. | |
| virtual | ~powerLaw ()=default |
| Destructor. | |
| virtual tmp< volScalarField > | nu () const |
| Return the laminar viscosity. | |
| virtual tmp< scalarField > | nu (const label patchi) const |
| Return the laminar viscosity for patch. | |
| virtual void | correct () |
| Correct the laminar viscosity. | |
| virtual bool | read (const dictionary &viscosityProperties) |
| Read transportProperties dictionary. | |
| Public Member Functions inherited from viscosityModel | |
| 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 ()=default |
| Destructor. | |
| const dictionary & | viscosityProperties () const |
| Return the phase transport properties dictionary. | |
| tmp< volScalarField > | strainRate () const |
| Return the strain rate. | |
Protected Member Functions | |
| tmp< volScalarField > | calcNu () const |
| Calculate and return the laminar viscosity. | |
| Protected Member Functions inherited from viscosityModel | |
| viscosityModel (const viscosityModel &)=delete | |
| No copy construct. | |
| void | operator= (const viscosityModel &)=delete |
| No copy assignment. | |
Protected Attributes | |
| volScalarField | nu_ |
| Protected Attributes inherited from viscosityModel | |
| word | name_ |
| dictionary | viscosityProperties_ |
| const volVectorField & | U_ |
| const surfaceScalarField & | phi_ |
Additional Inherited Members | |
| Static Public Member Functions inherited from viscosityModel | |
| static autoPtr< viscosityModel > | New (const word &name, const dictionary &viscosityProperties, const volVectorField &U, const surfaceScalarField &phi) |
| Return a reference to the selected viscosity model. | |
Standard power-law non-Newtonian viscosity model.
Definition at line 51 of file powerLaw.H.
| powerLaw | ( | const word & | name, |
| const dictionary & | viscosityProperties, | ||
| const volVectorField & | U, | ||
| const surfaceScalarField & | phi ) |
Construct from components.
Definition at line 71 of file powerLaw.C.
References calcNu(), Foam::dimless, Foam::dimViscosity, Foam::GlobalIOList< Tuple2< scalar, vector > >::typeName, Foam::name(), nu_, phi, timeName, U, viscosityModel::U_, viscosityModel::viscosityModel(), and viscosityModel::viscosityProperties().

|
virtualdefault |
Destructor.
|
protected |
Calculate and return the laminar viscosity.
Definition at line 47 of file powerLaw.C.
References Foam::dimless, Foam::dimTime, Foam::max(), Foam::min(), Foam::pow(), and viscosityModel::strainRate().
Referenced by correct(), and powerLaw().


| TypeName | ( | "powerLaw" | ) |
Runtime type information.
References Foam::name(), phi, U, and viscosityModel::viscosityProperties().

|
inlinevirtual |
Return the laminar viscosity.
Implements viscosityModel.
Definition at line 113 of file powerLaw.H.
References nu_.
|
inlinevirtual |
Return the laminar viscosity for patch.
Implements viscosityModel.
Definition at line 121 of file powerLaw.H.
References nu_.
|
inlinevirtual |
Correct the laminar viscosity.
Implements viscosityModel.
Definition at line 129 of file powerLaw.H.

|
virtual |
Read transportProperties dictionary.
Implements viscosityModel.
Definition at line 102 of file powerLaw.C.
References Foam::GlobalIOList< Tuple2< scalar, vector > >::typeName, viscosityModel::read(), and viscosityModel::viscosityProperties().

|
protected |
Definition at line 69 of file powerLaw.H.
Referenced by correct(), nu(), nu(), and powerLaw().