Run-time selected strain-rate function generalised Newtonian viscosity model. More...
Public Member Functions | |
TypeName ("strainRateFunction") | |
Runtime type information. More... | |
strainRateFunction (const dictionary &viscosityProperties) | |
Construct from components. More... | |
virtual | ~strainRateFunction () |
Destructor. More... | |
virtual bool | read (const dictionary &viscosityProperties) |
Read transportProperties dictionary. More... | |
virtual tmp< volScalarField > | nu (const volScalarField &nu0, const volScalarField &strainRate) const |
Return the laminar viscosity. More... | |
Public Member Functions inherited from generalisedNewtonianViscosityModel | |
TypeName ("generalisedNewtonianViscosityModel") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, generalisedNewtonianViscosityModel, dictionary,(const dictionary &viscosityProperties),(viscosityProperties)) | |
generalisedNewtonianViscosityModel (const dictionary &viscosityProperties) | |
Construct from components. More... | |
generalisedNewtonianViscosityModel (const generalisedNewtonianViscosityModel &) | |
Disallow default bitwise copy construction. More... | |
virtual | ~generalisedNewtonianViscosityModel () |
Destructor. More... | |
const dictionary & | viscosityProperties () const |
Return the phase transport properties dictionary. More... | |
void | operator= (const generalisedNewtonianViscosityModel &)=delete |
Disallow default bitwise assignment. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from generalisedNewtonianViscosityModel | |
static autoPtr< generalisedNewtonianViscosityModel > | New (const dictionary &viscosityProperties) |
Return a reference to the selected viscosity model. More... | |
Protected Attributes inherited from generalisedNewtonianViscosityModel | |
dictionary | viscosityProperties_ |
Run-time selected strain-rate function generalised Newtonian viscosity model.
Example linear function of strain-rate:
generalisedNewtonianModel strainRateFunction; function polynomial ((0 0.1) (1 1.3));
Definition at line 64 of file strainRateFunction.H.
strainRateFunction | ( | const dictionary & | viscosityProperties | ) |
Construct from components.
Definition at line 55 of file strainRateFunction.C.
References strainRateFunction::read().
|
inlinevirtual |
Destructor.
Definition at line 87 of file strainRateFunction.H.
References strainRateFunction::nu(), and strainRateFunction::read().
TypeName | ( | "strainRateFunction" | ) |
Runtime type information.
|
virtual |
Read transportProperties dictionary.
Implements generalisedNewtonianViscosityModel.
Definition at line 75 of file strainRateFunction.C.
References Function1< Type >::New(), strainRateFunction::nu(), dictionary::optionalSubDict(), and generalisedNewtonianViscosityModel::read().
Referenced by strainRateFunction::strainRateFunction(), and strainRateFunction::~strainRateFunction().
|
virtual |
Return the laminar viscosity.
Implements generalisedNewtonianViscosityModel.
Definition at line 98 of file strainRateFunction.C.
References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), Foam::dimViscosity, forAll, IOobject::group(), IOobject::groupName(), DimensionedField< Type, GeoMesh >::mesh(), GeometricField< scalar, fvPatchField, volMesh >::New(), patchi, tmp< T >::ref(), and Foam::type().
Referenced by strainRateFunction::read(), and strainRateFunction::~strainRateFunction().