strainRateFunction Class Reference

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

Inheritance diagram for strainRateFunction:
Collaboration diagram for strainRateFunction:

Public Member Functions

 TypeName ("strainRateFunction")
 Runtime type information. More...
 
 strainRateFunction (const word &name, const dictionary &viscosityProperties, const volVectorField &U, const surfaceScalarField &phi)
 Construct from components. More...
 
virtual ~strainRateFunction ()
 Destructor. More...
 
virtual tmp< volScalarFieldnu () const
 Return the laminar viscosity. More...
 
virtual tmp< scalarFieldnu (const label patchi) const
 Return the laminar viscosity for patch. More...
 
virtual void correct ()
 Correct the laminar viscosity. More...
 
virtual bool read (const dictionary &viscosityProperties)
 Read transportProperties dictionary. More...
 
- Public Member Functions inherited from viscosityModel
 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...
 
 viscosityModel (const viscosityModel &)
 Disallow default bitwise copy construction. More...
 
virtual ~viscosityModel ()
 Destructor. More...
 
const dictionaryviscosityProperties () const
 Return the phase transport properties dictionary. More...
 
tmp< volScalarFieldstrainRate () const
 Return the strain rate. More...
 
void operator= (const viscosityModel &)=delete
 Disallow default bitwise assignment. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from viscosityModel
static autoPtr< viscosityModelNew (const word &name, const dictionary &viscosityProperties, const volVectorField &U, const surfaceScalarField &phi)
 Return a reference to the selected viscosity model. More...
 
- Protected Attributes inherited from viscosityModel
word name_
 
dictionary viscosityProperties_
 
const volVectorFieldU_
 
const surfaceScalarFieldphi_
 

Detailed Description

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

Example linear function of strain-rate:

    transportModel  strainRateFunction;

    strainRateFunctionCoeffs
    {
        function polynomial ((0 0.1) (1 1.3));
    }
See also
Foam::viscosityModel Foam::Function1
Source files

Definition at line 66 of file strainRateFunction.H.

Constructor & Destructor Documentation

◆ strainRateFunction()

strainRateFunction ( const word name,
const dictionary viscosityProperties,
const volVectorField U,
const surfaceScalarField phi 
)

Construct from components.

Definition at line 51 of file strainRateFunction.C.

References correct.

◆ ~strainRateFunction()

virtual ~strainRateFunction ( )
inlinevirtual

Destructor.

Definition at line 101 of file strainRateFunction.H.

References strainRateFunction::correct(), strainRateFunction::nu(), patchi, and strainRateFunction::read().

Here is the call graph for this function:

Member Function Documentation

◆ TypeName()

TypeName ( "strainRateFunction"  )

Runtime type information.

◆ nu() [1/2]

Foam::tmp< Foam::volScalarField > nu ( ) const
virtual

Return the laminar viscosity.

Implements viscosityModel.

Definition at line 88 of file strainRateFunction.C.

Referenced by strainRateFunction::~strainRateFunction().

Here is the caller graph for this function:

◆ nu() [2/2]

Foam::tmp< Foam::scalarField > nu ( const label  patchi) const
virtual

Return the laminar viscosity for patch.

Implements viscosityModel.

Definition at line 95 of file strainRateFunction.C.

References patchi.

◆ correct()

void correct ( )
virtual

Correct the laminar viscosity.

Implements viscosityModel.

Definition at line 101 of file strainRateFunction.C.

References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), forAll, patchi, strainRateFunction::read(), and Foam::constant::physicoChemical::sigma.

Referenced by strainRateFunction::~strainRateFunction().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ read()

bool read ( const dictionary viscosityProperties)
virtual

Read transportProperties dictionary.

Implements viscosityModel.

Definition at line 119 of file strainRateFunction.C.

References dictionary::clear(), Function1< Type >::New(), dictionary::optionalSubDict(), and viscosityModel::read().

Referenced by strainRateFunction::correct(), and strainRateFunction::~strainRateFunction().

Here is the call graph for this function:
Here is the caller graph for this function:

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