Loading...
Searching...
No Matches
powerLaw Class Reference

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

#include <powerLaw.H>

Inheritance diagram for powerLaw:
Collaboration diagram for powerLaw:

Public Member Functions

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

Protected Member Functions

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

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.

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 )

◆ ~powerLaw()

virtual ~powerLaw ( )
virtualdefault

Destructor.

Member Function Documentation

◆ calcNu()

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

Calculate and return the laminar viscosity.

Definition at line 47 of file powerLaw.C.

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

Referenced by correct(), and powerLaw().

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

◆ TypeName()

TypeName ( "powerLaw" )

Runtime type information.

References Foam::name(), phi, U, and viscosityModel::viscosityProperties().

Here is the call graph for this function:

◆ nu() [1/2]

virtual tmp< volScalarField > nu ( ) const
inlinevirtual

Return the laminar viscosity.

Implements viscosityModel.

Definition at line 113 of file powerLaw.H.

References nu_.

◆ nu() [2/2]

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

Return the laminar viscosity for patch.

Implements viscosityModel.

Definition at line 121 of file powerLaw.H.

References nu_.

◆ correct()

virtual void correct ( )
inlinevirtual

Correct the laminar viscosity.

Implements viscosityModel.

Definition at line 129 of file powerLaw.H.

References calcNu(), and nu_.

Here is the call graph for this function:

◆ read()

bool read ( const dictionary & viscosityProperties)
virtual

Read transportProperties dictionary.

Implements viscosityModel.

Definition at line 102 of file powerLaw.C.

References Foam::GlobalIOList< Tuple2< scalar, vector > >::typeName, viscosityModel::read(), and viscosityModel::viscosityProperties().

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 correct(), nu(), nu(), and powerLaw().


The documentation for this class was generated from the following files:
  • src/transportModels/incompressible/viscosityModels/powerLaw/powerLaw.H
  • src/transportModels/incompressible/viscosityModels/powerLaw/powerLaw.C