Loading...
Searching...
No Matches
generalizedNewtonianViscosityModel Class Referenceabstract

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

#include <generalizedNewtonianViscosityModel.H>

Inheritance diagram for generalizedNewtonianViscosityModel:
Collaboration diagram for generalizedNewtonianViscosityModel:

Public Member Functions

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

Static Public Member Functions

static autoPtr< generalizedNewtonianViscosityModelNew (const dictionary &dict)
 Select a viscosity model.

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 generalizedNewtonianViscosityModel & )
delete

◆ generalizedNewtonianViscosityModel() [2/2]

generalizedNewtonianViscosityModel ( const dictionary & viscosityProperties)
explicit

Construct from dictionary (components).

Definition at line 37 of file generalizedNewtonianViscosityModel.C.

References viscosityProperties(), and viscosityProperties_.

Here is the call graph for this function:

◆ ~generalizedNewtonianViscosityModel()

virtual ~generalizedNewtonianViscosityModel ( )
virtualdefault

Destructor.

Member Function Documentation

◆ TypeName()

TypeName ( "generalizedNewtonianViscosityModel" )

Runtime type information.

◆ declareRunTimeSelectionTable()

References generalizedNewtonianViscosityModel(), and viscosityProperties().

Here is the call graph for this function:

◆ operator=()

void operator= ( const generalizedNewtonianViscosityModel & )
delete

No copy assignment.

References dict, generalizedNewtonianViscosityModel(), and viscosityProperties().

Here is the call graph for this function:

◆ New()

Select a viscosity model.

Definition at line 27 of file generalizedNewtonianViscosityModelNew.C.

References dict, Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInLookup, and Foam::Info.

Referenced by strainRateFunction::strainRateFunction().

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

◆ viscosityProperties()

◆ nu()

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

Return the laminar viscosity.

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

References viscosityProperties().

Here is the call graph for this function:

◆ read()

bool read ( const dictionary & viscosityProperties)
pure virtual

Read transportProperties dictionary.

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

Definition at line 49 of file generalizedNewtonianViscosityModel.C.

References viscosityProperties(), and viscosityProperties_.

Referenced by BirdCarreau::read(), Casson::read(), CrossPowerLaw::read(), HerschelBulkley::read(), powerLaw::read(), and strainRateFunction::read().

Here is the call graph for this function:
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: