HerschelBulkley Class Reference

Herschel-Bulkley non-Newtonian viscosity model. More...

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

Public Member Functions

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

Protected Member Functions

tmp< volScalarFieldcalcNu () const
 Calculate and return the laminar viscosity. More...
 
- Protected Member Functions inherited from viscosityModel
 viscosityModel (const viscosityModel &)=delete
 No copy construct. More...
 
void operator= (const viscosityModel &)=delete
 No copy assignment. More...
 

Protected Attributes

volScalarField nu_
 
- Protected Attributes inherited from viscosityModel
word name_
 
dictionary viscosityProperties_
 
const volVectorFieldU_
 
const surfaceScalarFieldphi_
 

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...
 

Detailed Description

Herschel-Bulkley non-Newtonian viscosity model.

Source files

Definition at line 55 of file HerschelBulkley.H.

Constructor & Destructor Documentation

◆ HerschelBulkley()

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

Construct from components.

Definition at line 75 of file HerschelBulkley.C.

◆ ~HerschelBulkley()

virtual ~HerschelBulkley ( )
virtualdefault

Destructor.

Member Function Documentation

◆ calcNu()

Foam::tmp< Foam::volScalarField > calcNu ( ) const
protected

Calculate and return the laminar viscosity.

Definition at line 54 of file HerschelBulkley.C.

References Foam::dimless, Foam::dimTime, Foam::max(), Foam::min(), Foam::pow(), and viscosityModel::strainRate().

Referenced by HerschelBulkley::correct().

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

◆ TypeName()

TypeName ( "HerschelBulkley"  )

Runtime type information.

◆ nu() [1/2]

virtual tmp< volScalarField > nu ( ) const
inlinevirtual

Return the laminar viscosity.

Implements viscosityModel.

Definition at line 107 of file HerschelBulkley.H.

References HerschelBulkley::nu_.

◆ nu() [2/2]

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

Return the laminar viscosity for patch.

Implements viscosityModel.

Definition at line 113 of file HerschelBulkley.H.

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

Here is the call graph for this function:

◆ correct()

virtual void correct ( )
inlinevirtual

Correct the laminar viscosity.

Implements viscosityModel.

Definition at line 119 of file HerschelBulkley.H.

References HerschelBulkley::calcNu(), and HerschelBulkley::nu_.

Here is the call graph for this function:

◆ read()

bool read ( const dictionary viscosityProperties)
virtual

Read transportProperties dictionary.

Implements viscosityModel.

Definition at line 109 of file HerschelBulkley.C.

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

Here is the call graph for this function:

Member Data Documentation

◆ nu_

volScalarField nu_
protected

Definition at line 73 of file HerschelBulkley.H.

Referenced by HerschelBulkley::correct(), and HerschelBulkley::nu().


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