strainRateViscosityModel Class Referenceabstract

An abstract base class for strain-rate dependent generalised Newtonian viscosity models. More...

Inheritance diagram for strainRateViscosityModel:
Collaboration diagram for strainRateViscosityModel:

Public Member Functions

 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< 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...
 
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...
 
virtual bool read (const dictionary &viscosityProperties)=0
 Read transportProperties dictionary. 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...
 

Protected Member Functions

virtual tmp< volScalarFieldstrainRate () const
 Return the strain-rate obtained from the velocity field. More...
 
virtual tmp< volScalarFieldnu (const volScalarField &nu0, const volScalarField &strainRate) const =0
 Return the generalised Newtonian viscosity. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from generalisedNewtonianViscosityModel
static autoPtr< generalisedNewtonianViscosityModelNew (const dictionary &viscosityProperties, const viscosity &viscosity, const volVectorField &U)
 Return a reference to the selected viscosity model. More...
 
- Protected Attributes inherited from generalisedNewtonianViscosityModel
const viscosityviscosity_
 Reference to the fluid Newtonian viscosity. More...
 
const volVectorFieldU_
 Reference to the velocity field. More...
 

Detailed Description

An abstract base class for strain-rate dependent generalised Newtonian viscosity models.

Source files

Definition at line 54 of file strainRateViscosityModel.H.

Constructor & Destructor Documentation

◆ strainRateViscosityModel() [1/2]

strainRateViscosityModel ( const dictionary viscosityProperties,
const viscosity viscosity,
const volVectorField U 
)

Construct from components.

Definition at line 55 of file strainRateViscosityModel.C.

◆ strainRateViscosityModel() [2/2]

Disallow default bitwise copy construction.

◆ ~strainRateViscosityModel()

virtual ~strainRateViscosityModel ( )
inlinevirtual

Destructor.

Definition at line 103 of file strainRateViscosityModel.H.

Member Function Documentation

◆ strainRate()

Foam::tmp< Foam::volScalarField > strainRate ( ) const
protectedvirtual

Return the strain-rate obtained from the velocity field.

Definition at line 46 of file strainRateViscosityModel.C.

References Foam::fvc::grad(), Foam::mag(), Foam::sqrt(), and Foam::symm().

Here is the call graph for this function:

◆ nu() [1/3]

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

Return the generalised Newtonian viscosity.

Implemented in strainRateFunction, powerLaw, HerschelBulkley, CrossPowerLaw, Casson, and BirdCarreau.

◆ TypeName()

TypeName ( "strainRateViscosityModel"  )

Runtime type information.

◆ nu() [2/3]

virtual tmp<volScalarField> nu ( ) const
inlinevirtual

Return the laminar viscosity.

Implements viscosity.

Definition at line 110 of file strainRateViscosityModel.H.

◆ nu() [3/3]

virtual tmp<scalarField> nu ( const label  patchi) const
inlinevirtual

Return the laminar viscosity for patch.

Implements viscosity.

Definition at line 116 of file strainRateViscosityModel.H.

References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), and patchi.

Here is the call graph for this function:

◆ correct()

void correct ( )
virtual

◆ operator=()

void operator= ( const strainRateViscosityModel )
delete

Disallow default bitwise assignment.


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