generalisedNewtonianViscosityModel Class Referenceabstract

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

Inheritance diagram for generalisedNewtonianViscosityModel:
Collaboration diagram for generalisedNewtonianViscosityModel:

Public Member Functions

 TypeName ("generalisedNewtonianViscosityModel")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, generalisedNewtonianViscosityModel, dictionary,(const dictionary &viscosityProperties, const viscosity &viscosity, const volVectorField &U),(viscosityProperties, viscosity, U))
 
 generalisedNewtonianViscosityModel (const dictionary &viscosityProperties, const viscosity &viscosity, const volVectorField &U)
 Construct from components. More...
 
 generalisedNewtonianViscosityModel (const generalisedNewtonianViscosityModel &)=delete
 Disallow default bitwise copy construction. More...
 
virtual ~generalisedNewtonianViscosityModel ()
 Destructor. More...
 
virtual bool read (const dictionary &viscosityProperties)=0
 Read transportProperties dictionary. More...
 
virtual void correct ()=0
 Correct the laminar viscosity. More...
 
void operator= (const generalisedNewtonianViscosityModel &)=delete
 Disallow default bitwise assignment. More...
 
- Public Member Functions inherited from viscosity
 TypeName ("viscosity")
 Runtime type information. More...
 
 viscosity ()
 Construct. More...
 
 viscosity (const viscosity &)=delete
 Disallow default bitwise copy construction. More...
 
virtual ~viscosity ()
 Destructor. 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...
 
void operator= (const viscosity &)=delete
 Disallow default bitwise assignment. More...
 

Static Public Member Functions

static autoPtr< generalisedNewtonianViscosityModelNew (const dictionary &viscosityProperties, const viscosity &viscosity, const volVectorField &U)
 Return a reference to the selected viscosity model. More...
 

Protected Attributes

const viscosityviscosity_
 Reference to the fluid Newtonian viscosity. More...
 
const volVectorFieldU_
 Reference to the velocity field. More...
 

Detailed Description

An abstract base class for generalised Newtonian viscosity models.

Source files

Definition at line 58 of file generalisedNewtonianViscosityModel.H.

Constructor & Destructor Documentation

◆ generalisedNewtonianViscosityModel() [1/2]

generalisedNewtonianViscosityModel ( const dictionary viscosityProperties,
const viscosity viscosity,
const volVectorField U 
)

Construct from components.

Definition at line 42 of file generalisedNewtonianViscosityModel.C.

◆ generalisedNewtonianViscosityModel() [2/2]

Disallow default bitwise copy construction.

◆ ~generalisedNewtonianViscosityModel()

virtual ~generalisedNewtonianViscosityModel ( )
inlinevirtual

Destructor.

Definition at line 122 of file generalisedNewtonianViscosityModel.H.

Member Function Documentation

◆ TypeName()

TypeName ( "generalisedNewtonianViscosityModel"  )

Runtime type information.

◆ declareRunTimeSelectionTable()

declareRunTimeSelectionTable ( autoPtr  ,
generalisedNewtonianViscosityModel  ,
dictionary  ,
(const dictionary &viscosityProperties, const viscosity &viscosity, const volVectorField &U ,
(viscosityProperties, viscosity, U  
)

◆ New()

Foam::autoPtr< Foam::laminarModels::generalisedNewtonianViscosityModel > New ( const dictionary viscosityProperties,
const viscosity viscosity,
const volVectorField U 
)
static

Return a reference to the selected viscosity model.

Definition at line 32 of file generalisedNewtonianViscosityModelNew.C.

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

Here is the call graph for this function:

◆ read()

bool read ( const dictionary viscosityProperties)
pure virtual

Read transportProperties dictionary.

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

Definition at line 57 of file generalisedNewtonianViscosityModel.C.

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

Here is the caller graph for this function:

◆ correct()

virtual void correct ( )
pure virtual

Correct the laminar viscosity.

Implemented in strainRateViscosityModel, and Newtonian.

◆ operator=()

void operator= ( const generalisedNewtonianViscosityModel )
delete

Disallow default bitwise assignment.

Member Data Documentation

◆ viscosity_

const viscosity& viscosity_
protected

Reference to the fluid Newtonian viscosity.

Definition at line 65 of file generalisedNewtonianViscosityModel.H.

Referenced by Newtonian::nu().

◆ U_

const volVectorField& U_
protected

Reference to the velocity field.

Definition at line 68 of file generalisedNewtonianViscosityModel.H.


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