Standard power-law non-Newtonian viscosity model. More...
Public Member Functions | |
TypeName ("powerLaw") | |
Runtime type information. More... | |
powerLaw (const word &name, const dictionary &viscosityProperties, const volVectorField &U, const surfaceScalarField &phi) | |
Construct from components. More... | |
~powerLaw () | |
Destructor. More... | |
tmp< volScalarField > | nu () const |
Return the laminar viscosity. More... | |
tmp< scalarField > | nu (const label patchi) const |
Return the laminar viscosity for patch. More... | |
void | correct () |
Correct the laminar viscosity. More... | |
bool | read (const dictionary &viscosityProperties) |
Read transportProperties dictionary. More... | |
![]() | |
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... | |
Private Member Functions | |
tmp< volScalarField > | calcNu () const |
Calculate and return the laminar viscosity. More... | |
Private Attributes | |
dictionary | powerLawCoeffs_ |
dimensionedScalar | k_ |
dimensionedScalar | n_ |
dimensionedScalar | nuMin_ |
dimensionedScalar | nuMax_ |
volScalarField | nu_ |
Additional Inherited Members | |
![]() | |
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... | |
![]() | |
viscosityModel (const viscosityModel &) | |
Disallow copy construct. More... | |
void | operator= (const viscosityModel &) |
Disallow default bitwise assignment. More... | |
![]() | |
word | name_ |
dictionary | viscosityProperties_ |
const volVectorField & | U_ |
const surfaceScalarField & | phi_ |
Standard power-law non-Newtonian viscosity model.
Definition at line 52 of file powerLaw.H.
powerLaw | ( | const word & | name, |
const dictionary & | viscosityProperties, | ||
const volVectorField & | U, | ||
const surfaceScalarField & | phi | ||
) |
Construct from components.
Definition at line 76 of file powerLaw.C.
|
inline |
Destructor.
Definition at line 93 of file powerLaw.H.
|
private |
Calculate and return the laminar viscosity.
Definition at line 51 of file powerLaw.C.
References Foam::dimless, Foam::dimTime, powerLaw::k_, Foam::max(), Foam::min(), powerLaw::n_, powerLaw::nuMax_, powerLaw::nuMin_, Foam::pow(), viscosityModel::strainRate(), and dimensioned::value().
Referenced by powerLaw::correct().
TypeName | ( | "powerLaw" | ) |
Runtime type information.
|
inlinevirtual |
Return the laminar viscosity.
Implements viscosityModel.
Definition at line 100 of file powerLaw.H.
References powerLaw::nu_.
|
inlinevirtual |
Return the laminar viscosity for patch.
Implements viscosityModel.
Definition at line 106 of file powerLaw.H.
References GeometricField::boundaryField(), powerLaw::nu_, and patchi.
|
inlinevirtual |
Correct the laminar viscosity.
Implements viscosityModel.
Definition at line 112 of file powerLaw.H.
References powerLaw::calcNu(), and powerLaw::nu_.
|
virtual |
Read transportProperties dictionary.
Implements viscosityModel.
Definition at line 107 of file powerLaw.C.
References dictionary::lookup(), viscosityModel::read(), and dictionary::subDict().
|
private |
Definition at line 58 of file powerLaw.H.
|
private |
Definition at line 60 of file powerLaw.H.
Referenced by powerLaw::calcNu().
|
private |
Definition at line 61 of file powerLaw.H.
Referenced by powerLaw::calcNu().
|
private |
Definition at line 62 of file powerLaw.H.
Referenced by powerLaw::calcNu().
|
private |
Definition at line 63 of file powerLaw.H.
Referenced by powerLaw::calcNu().
|
private |
Definition at line 65 of file powerLaw.H.
Referenced by powerLaw::correct(), and powerLaw::nu().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.