strainRateFunction Class Reference

Run-time selected strain-rate function generalized Newtonian viscosity model. More...

Inheritance diagram for strainRateFunction:
[legend]
Collaboration diagram for strainRateFunction:
[legend]

Public Member Functions

 TypeName ("strainRateFunction")
 Runtime type information. More...
 
 strainRateFunction (const dictionary &viscosityProperties)
 Construct from dictionary (components) More...
 
virtual ~strainRateFunction ()=default
 Destructor. More...
 
virtual bool read (const dictionary &viscosityProperties)
 Read transportProperties dictionary. More...
 
virtual tmp< volScalarFieldnu (const volScalarField &nu0, const volScalarField &strainRate) const
 Return the laminar viscosity. More...
 
- Public Member Functions inherited from generalizedNewtonianViscosityModel
 TypeName ("generalizedNewtonianViscosityModel")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, generalizedNewtonianViscosityModel, dictionary,(const dictionary &viscosityProperties),(viscosityProperties))
 
 generalizedNewtonianViscosityModel (const generalizedNewtonianViscosityModel &)=delete
 No copy construct. More...
 
void operator= (const generalizedNewtonianViscosityModel &)=delete
 No copy assignment. More...
 
 generalizedNewtonianViscosityModel (const dictionary &viscosityProperties)
 Construct from dictionary (components) More...
 
virtual ~generalizedNewtonianViscosityModel ()=default
 Destructor. More...
 
const dictionaryviscosityProperties () const
 Return the phase transport properties dictionary. More...
 
virtual tmp< volScalarFieldnu (const volScalarField &nu0, const volScalarField &strainRate) const =0
 Return the laminar viscosity. More...
 
virtual bool read (const dictionary &viscosityProperties)=0
 Read transportProperties dictionary. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from generalizedNewtonianViscosityModel
static autoPtr< generalizedNewtonianViscosityModelNew (const dictionary &dict)
 Select a viscosity model. More...
 
- Protected Attributes inherited from generalizedNewtonianViscosityModel
dictionary viscosityProperties_
 

Detailed Description

Run-time selected strain-rate function generalized Newtonian viscosity model.

Example linear function of strain-rate:

    generalizedNewtonianModel strainRateFunction;

    function polynomial ((0 0.1) (1 1.3));
See also
Foam::generalizedNewtonianViscosityModel Foam::Function1
Source files

Definition at line 67 of file strainRateFunction.H.

Constructor & Destructor Documentation

◆ strainRateFunction()

strainRateFunction ( const dictionary viscosityProperties)
explicit

Construct from dictionary (components)

Definition at line 56 of file strainRateFunction.C.

References Foam::New().

Here is the call graph for this function:

◆ ~strainRateFunction()

virtual ~strainRateFunction ( )
virtualdefault

Destructor.

Member Function Documentation

◆ TypeName()

TypeName ( "strainRateFunction"  )

Runtime type information.

◆ read()

bool read ( const dictionary viscosityProperties)
virtual

Read transportProperties dictionary.

Implements generalizedNewtonianViscosityModel.

Definition at line 76 of file strainRateFunction.C.

References Time::New(), dictionary::optionalSubDict(), and kEpsilonLopesdaCosta< BasicTurbulenceModel >::read().

Here is the call graph for this function:

◆ nu()

Foam::tmp< Foam::volScalarField > nu ( const volScalarField nu0,
const volScalarField strainRate 
) const
virtual

Return the laminar viscosity.

Implements generalizedNewtonianViscosityModel.

Definition at line 99 of file strainRateFunction.C.

References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), Foam::dimViscosity, forAll, IOobject::group(), IOobject::groupName(), DimensionedField< Type, GeoMesh >::mesh(), Time::New(), Foam::type(), and Foam::Zero.

Here is the call graph for this function:

The documentation for this class was generated from the following files: