generalizedNewtonianViscosityModel Class Referenceabstract

An abstract base class for generalized Newtonian viscosity models. More...

Inheritance diagram for generalizedNewtonianViscosityModel:
Collaboration diagram for generalizedNewtonianViscosityModel:

Public Member Functions

 TypeName ("generalizedNewtonianViscosityModel")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, generalizedNewtonianViscosityModel, dictionary,(const dictionary &viscosityProperties),(viscosityProperties))
 
 generalizedNewtonianViscosityModel (const dictionary &viscosityProperties)
 Construct from components. More...
 
 generalizedNewtonianViscosityModel (const generalizedNewtonianViscosityModel &)
 Disallow default bitwise copy construction. More...
 
virtual ~generalizedNewtonianViscosityModel ()
 Destructor. More...
 
const dictionaryviscosityProperties () const
 Return the phase transport properties dictionary. More...
 
virtual tmp< volScalarFieldnu (const volScalarField &nu0, const volScalarField &strainRate) const =0
 Return the laminar viscosity. More...
 
virtual bool read (const dictionary &viscosityProperties)=0
 Read transportProperties dictionary. More...
 
void operator= (const generalizedNewtonianViscosityModel &)=delete
 Disallow default bitwise assignment. More...
 

Static Public Member Functions

static autoPtr< generalizedNewtonianViscosityModelNew (const dictionary &viscosityProperties)
 Return a reference to the selected viscosity model. More...
 

Protected Attributes

dictionary viscosityProperties_
 

Detailed Description

An abstract base class for generalized Newtonian viscosity models.

Source files

Definition at line 60 of file generalizedNewtonianViscosityModel.H.

Constructor & Destructor Documentation

◆ generalizedNewtonianViscosityModel() [1/2]

generalizedNewtonianViscosityModel ( const dictionary viscosityProperties)

Construct from components.

Definition at line 44 of file generalizedNewtonianViscosityModel.C.

References generalizedNewtonianViscosityModel::read().

Here is the call graph for this function:

◆ generalizedNewtonianViscosityModel() [2/2]

Disallow default bitwise copy construction.

◆ ~generalizedNewtonianViscosityModel()

virtual ~generalizedNewtonianViscosityModel ( )
inlinevirtual

Destructor.

Definition at line 114 of file generalizedNewtonianViscosityModel.H.

Member Function Documentation

◆ TypeName()

TypeName ( "generalizedNewtonianViscosityModel"  )

Runtime type information.

◆ declareRunTimeSelectionTable()

declareRunTimeSelectionTable ( autoPtr  ,
generalizedNewtonianViscosityModel  ,
dictionary  ,
(const dictionary &viscosityProperties ,
(viscosityProperties  
)

◆ New()

Return a reference to the selected viscosity model.

Definition at line 32 of file generalizedNewtonianViscosityModelNew.C.

References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::Info, dictionary::lookup(), and Foam::nl.

Here is the call graph for this function:

◆ viscosityProperties()

const dictionary& viscosityProperties ( ) const
inline

◆ nu()

virtual tmp<volScalarField> nu ( const volScalarField nu0,
const volScalarField strainRate 
) const
pure virtual

Return the laminar viscosity.

Implemented in BirdCarreau, CrossPowerLaw, Casson, strainRateFunction, powerLaw, and HerschelBulkley.

Referenced by generalizedNewtonianViscosityModel::viscosityProperties().

Here is the caller graph for this function:

◆ read()

◆ operator=()

void operator= ( const generalizedNewtonianViscosityModel )
delete

Disallow default bitwise assignment.

Referenced by generalizedNewtonianViscosityModel::viscosityProperties().

Here is the caller graph for this function:

Member Data Documentation

◆ viscosityProperties_

dictionary viscosityProperties_
protected

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