Run-time selected strain-rate function generalised Newtonian viscosity model. More...
Public Member Functions | |
TypeName ("strainRateFunction") | |
Runtime type information. More... | |
strainRateFunction (const dictionary &viscosityProperties, const Foam::viscosity &viscosity, const volVectorField &U) | |
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 strainRateViscosityModel | |
TypeName ("strainRateViscosityModel") | |
Runtime type information. More... | |
strainRateViscosityModel (const dictionary &viscosityProperties, const viscosity &viscosity, const volVectorField &U) | |
Construct from components. More... | |
strainRateViscosityModel (const strainRateViscosityModel &)=delete | |
Disallow default bitwise copy construction. More... | |
virtual | ~strainRateViscosityModel () |
Destructor. More... | |
virtual tmp< volScalarField > | nu () const |
Return the laminar viscosity. More... | |
virtual tmp< scalarField > | nu (const label patchi) const |
Return the laminar viscosity for patch. More... | |
virtual void | correct () |
Correct the laminar viscosity. More... | |
void | operator= (const strainRateViscosityModel &)=delete |
Disallow default bitwise assignment. More... | |
Public Member Functions inherited from generalisedNewtonianViscosityModel | |
TypeName ("generalisedNewtonianViscosityModel") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, generalisedNewtonianViscosityModel, dictionary,(const dictionary &viscosityProperties, const viscosity &viscosity, const volVectorField &U),(viscosityProperties, viscosity, U)) | |
generalisedNewtonianViscosityModel (const dictionary &viscosityProperties, const viscosity &viscosity, const volVectorField &U) | |
Construct from components. More... | |
generalisedNewtonianViscosityModel (const generalisedNewtonianViscosityModel &)=delete | |
Disallow default bitwise copy construction. More... | |
virtual | ~generalisedNewtonianViscosityModel () |
Destructor. More... | |
void | operator= (const generalisedNewtonianViscosityModel &)=delete |
Disallow default bitwise assignment. More... | |
Public Member Functions inherited from viscosity | |
TypeName ("viscosity") | |
Runtime type information. More... | |
viscosity () | |
Construct. More... | |
viscosity (const viscosity &)=delete | |
Disallow default bitwise copy construction. More... | |
virtual | ~viscosity () |
Destructor. More... | |
void | operator= (const viscosity &)=delete |
Disallow default bitwise assignment. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from generalisedNewtonianViscosityModel | |
static autoPtr< generalisedNewtonianViscosityModel > | New (const dictionary &viscosityProperties, const viscosity &viscosity, const volVectorField &U) |
Return a reference to the selected viscosity model. More... | |
Protected Member Functions inherited from strainRateViscosityModel | |
virtual tmp< volScalarField > | strainRate () const |
Return the strain-rate obtained from the velocity field. More... | |
Protected Attributes inherited from generalisedNewtonianViscosityModel | |
const viscosity & | viscosity_ |
Reference to the fluid Newtonian viscosity. More... | |
const volVectorField & | U_ |
Reference to the velocity field. More... | |
Run-time selected strain-rate function generalised Newtonian viscosity model.
Example linear function of strain-rate:
strainRateModel strainRateFunction; function polynomial ((0 0.1) (1 1.3));
Definition at line 64 of file strainRateFunction.H.
strainRateFunction | ( | const dictionary & | viscosityProperties, |
const Foam::viscosity & | viscosity, | ||
const volVectorField & | U | ||
) |
Construct from components.
Definition at line 52 of file strainRateFunction.C.
References strainRateViscosityModel::correct().
|
inlinevirtual |
Destructor.
Definition at line 92 of file strainRateFunction.H.
TypeName | ( | "strainRateFunction" | ) |
Runtime type information.
|
virtual |
Read transportProperties dictionary.
Implements generalisedNewtonianViscosityModel.
Definition at line 78 of file strainRateFunction.C.
References Foam::dimKinematicViscosity, Foam::dimless, Foam::dimTime, Function1< Type >::New(), dictionary::optionalSubDict(), and generalisedNewtonianViscosityModel::read().
|
virtual |
Return the laminar viscosity.
Implements strainRateViscosityModel.
Definition at line 103 of file strainRateFunction.C.
References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), Foam::dimKinematicViscosity, forAll, IOobject::group(), IOobject::groupName(), DimensionedField< Type, GeoMesh >::mesh(), GeometricField< Type, PatchField, GeoMesh >::New(), patchi, tmp< T >::ref(), and Foam::typedName().