Public Member Functions | Private Member Functions | Private Attributes
HerschelBulkley Class Reference

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

Inheritance diagram for HerschelBulkley:
Inheritance graph
[legend]
Collaboration diagram for HerschelBulkley:
Collaboration graph
[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...
 
 ~HerschelBulkley ()
 Destructor. More...
 
tmp< volScalarFieldnu () const
 Return the laminar viscosity. More...
 
tmp< scalarFieldnu (const label patchi) const
 Return the laminar viscosity for patch. More...
 
void correct ()
 Correct the laminar viscosity. More...
 
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 ()
 Destructor. More...
 
const dictionaryviscosityProperties () const
 Return the phase transport properties dictionary. More...
 
tmp< volScalarFieldstrainRate () const
 Return the strain rate. More...
 

Private Member Functions

tmp< volScalarFieldcalcNu () const
 Calculate and return the laminar viscosity. More...
 

Private Attributes

dictionary HerschelBulkleyCoeffs_
 
dimensionedScalar k_
 
dimensionedScalar n_
 
dimensionedScalar tau0_
 
dimensionedScalar nu0_
 
volScalarField nu_
 

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 Member Functions inherited from viscosityModel
 viscosityModel (const viscosityModel &)
 Disallow copy construct. More...
 
void operator= (const viscosityModel &)
 Disallow default bitwise assignment. More...
 
- Protected Attributes inherited from viscosityModel
word name_
 
dictionary viscosityProperties_
 
const volVectorFieldU_
 
const surfaceScalarFieldphi_
 

Detailed Description

Herschel-Bulkley non-Newtonian viscosity model.

Source files

Definition at line 52 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 73 of file HerschelBulkley.C.

◆ ~HerschelBulkley()

~HerschelBulkley ( )
inline

Destructor.

Definition at line 93 of file HerschelBulkley.H.

Member Function Documentation

◆ calcNu()

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

Calculate and return the laminar viscosity.

Definition at line 51 of file HerschelBulkley.C.

References Foam::dimless, Foam::dimTime, HerschelBulkley::k_, Foam::max(), Foam::min(), HerschelBulkley::n_, HerschelBulkley::nu0_, Foam::pow(), viscosityModel::strainRate(), and HerschelBulkley::tau0_.

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]

tmp<volScalarField> nu ( ) const
inlinevirtual

Return the laminar viscosity.

Implements viscosityModel.

Definition at line 100 of file HerschelBulkley.H.

References HerschelBulkley::nu_.

◆ nu() [2/2]

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

Return the laminar viscosity for patch.

Implements viscosityModel.

Definition at line 106 of file HerschelBulkley.H.

References GeometricField::boundaryField(), HerschelBulkley::nu_, and patchi.

Here is the call graph for this function:

◆ correct()

void correct ( )
inlinevirtual

Correct the laminar viscosity.

Implements viscosityModel.

Definition at line 112 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 104 of file HerschelBulkley.C.

References dictionary::lookup(), viscosityModel::read(), and dictionary::subDict().

Here is the call graph for this function:

Field Documentation

◆ HerschelBulkleyCoeffs_

dictionary HerschelBulkleyCoeffs_
private

Definition at line 58 of file HerschelBulkley.H.

◆ k_

dimensionedScalar k_
private

Definition at line 60 of file HerschelBulkley.H.

Referenced by HerschelBulkley::calcNu().

◆ n_

dimensionedScalar n_
private

Definition at line 61 of file HerschelBulkley.H.

Referenced by HerschelBulkley::calcNu().

◆ tau0_

dimensionedScalar tau0_
private

Definition at line 62 of file HerschelBulkley.H.

Referenced by HerschelBulkley::calcNu().

◆ nu0_

dimensionedScalar nu0_
private

Definition at line 63 of file HerschelBulkley.H.

Referenced by HerschelBulkley::calcNu().

◆ nu_

volScalarField nu_
private

Definition at line 65 of file HerschelBulkley.H.

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


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