Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
viscosityModel Class Referenceabstract

An abstract base class for incompressible viscosityModels. More...

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

Public Member Functions

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

Static Public Member Functions

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

 viscosityModel (const viscosityModel &)
 Disallow copy construct. More...
 
void operator= (const viscosityModel &)
 Disallow default bitwise assignment. More...
 

Protected Attributes

word name_
 
dictionary viscosityProperties_
 
const volVectorFieldU_
 
const surfaceScalarFieldphi_
 

Detailed Description

An abstract base class for incompressible viscosityModels.

The strain rate is defined by:

mag(symm(grad(U)))

Source files

Source files

Source files

Definition at line 64 of file viscosityModel.H.

Constructor & Destructor Documentation

viscosityModel ( const viscosityModel )
protected

Disallow copy construct.

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

Construct from components.

virtual ~viscosityModel ( )
inlinevirtual

Destructor.

Definition at line 135 of file viscosityModel.H.

Member Function Documentation

void operator= ( const viscosityModel )
protected

Disallow default bitwise assignment.

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  
)
static autoPtr<viscosityModel> New ( const word name,
const dictionary viscosityProperties,
const volVectorField U,
const surfaceScalarField phi 
)
static

Return a reference to the selected viscosity model.

const dictionary& viscosityProperties ( ) const
inline

Return the phase transport properties dictionary.

Definition at line 142 of file viscosityModel.H.

References viscosityModel::correct(), viscosityModel::nu(), patchi, viscosityModel::read(), viscosityModel::strainRate(), and viscosityModel::viscosityProperties_.

Referenced by viscosityModel::read().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Return the strain rate.

Definition at line 58 of file viscosityModel.C.

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

Referenced by viscosityModel::viscosityProperties().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual tmp<volScalarField> nu ( ) const
pure virtual

Return the laminar viscosity.

Implemented in BirdCarreau, HerschelBulkley, powerLaw, CrossPowerLaw, and Newtonian.

Referenced by viscosityModel::viscosityProperties().

Here is the caller graph for this function:

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

Return the laminar viscosity for patch.

Implemented in BirdCarreau, HerschelBulkley, powerLaw, CrossPowerLaw, and Newtonian.

virtual void correct ( )
pure virtual

Correct the laminar viscosity.

Implemented in BirdCarreau, HerschelBulkley, powerLaw, CrossPowerLaw, and Newtonian.

Referenced by viscosityModel::viscosityProperties().

Here is the caller graph for this function:

bool read ( const dictionary viscosityProperties)
pure virtual

Read transportProperties dictionary.

Implemented in BirdCarreau, HerschelBulkley, powerLaw, CrossPowerLaw, and Newtonian.

Definition at line 64 of file viscosityModel.C.

References viscosityModel::viscosityProperties(), and viscosityModel::viscosityProperties_.

Referenced by Newtonian::read(), CrossPowerLaw::read(), HerschelBulkley::read(), powerLaw::read(), BirdCarreau::read(), and viscosityModel::viscosityProperties().

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

word name_
protected

Definition at line 71 of file viscosityModel.H.

dictionary viscosityProperties_
protected

Definition at line 72 of file viscosityModel.H.

Referenced by viscosityModel::read(), and viscosityModel::viscosityProperties().

const volVectorField& U_
protected

Definition at line 74 of file viscosityModel.H.

Referenced by viscosityModel::strainRate().

const surfaceScalarField& phi_
protected

Definition at line 75 of file viscosityModel.H.


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