Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
powerLaw Class Reference

Standard power-law non-Newtonian viscosity model. More...

Inheritance diagram for powerLaw:
Inheritance graph
[legend]
Collaboration diagram for powerLaw:
Collaboration graph
[legend]

Public Member Functions

 TypeName ("powerLaw")
 
 powerLaw (const word &name, const dictionary &viscosityProperties, const volVectorField &U, const surfaceScalarField &phi)
 
virtual ~powerLaw ()=default
 
virtual tmp< volScalarFieldnu () const
 
virtual tmp< scalarFieldnu (const label patchi) const
 
virtual void correct ()
 
virtual bool read (const dictionary &viscosityProperties)
 
- Public Member Functions inherited from viscosityModel
 TypeName ("viscosityModel")
 
 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)
 
virtual ~viscosityModel ()=default
 
const dictionaryviscosityProperties () const
 
tmp< volScalarFieldstrainRate () const
 

Protected Member Functions

tmp< volScalarFieldcalcNu () const
 
- Protected Member Functions inherited from viscosityModel
 viscosityModel (const viscosityModel &)=delete
 
void operator= (const viscosityModel &)=delete
 

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)
 

Detailed Description

Standard power-law non-Newtonian viscosity model.

Source files

Definition at line 51 of file powerLaw.H.

Constructor & Destructor Documentation

◆ powerLaw()

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

Definition at line 72 of file powerLaw.C.

◆ ~powerLaw()

virtual ~powerLaw ( )
virtualdefault

Member Function Documentation

◆ calcNu()

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

Definition at line 47 of file powerLaw.C.

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

Referenced by powerLaw::correct().

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

◆ TypeName()

TypeName ( "powerLaw"  )

◆ nu() [1/2]

virtual tmp<volScalarField> nu ( ) const
inlinevirtual

Implements viscosityModel.

Definition at line 103 of file powerLaw.H.

References powerLaw::nu_.

◆ nu() [2/2]

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

Implements viscosityModel.

Definition at line 109 of file powerLaw.H.

References GeometricField::boundaryField(), and powerLaw::nu_.

Here is the call graph for this function:

◆ correct()

virtual void correct ( )
inlinevirtual

Implements viscosityModel.

Definition at line 115 of file powerLaw.H.

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

Here is the call graph for this function:

◆ read()

bool read ( const dictionary viscosityProperties)
virtual

Implements viscosityModel.

Definition at line 103 of file powerLaw.C.

References dictionary::optionalSubDict(), viscosityModel::read(), and dictionary::readEntry().

Here is the call graph for this function:

Member Data Documentation

◆ nu_

volScalarField nu_
protected

Definition at line 69 of file powerLaw.H.

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


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