laminarModel< BasicMomentumTransportModel > Class Template Referenceabstract

Templated abstract base class for laminar transport models. More...

Inheritance diagram for laminarModel< BasicMomentumTransportModel >:
Collaboration diagram for laminarModel< BasicMomentumTransportModel >:

Public Types

typedef BasicMomentumTransportModel::alphaField alphaField
 
typedef BasicMomentumTransportModel::rhoField rhoField
 

Public Member Functions

 TypeName ("laminar")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, laminarModel, dictionary,(const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const viscosity &viscosity),(alpha, rho, U, alphaRhoPhi, phi, viscosity))
 
 laminarModel (const word &type, const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const viscosity &viscosity)
 Construct from components. More...
 
 laminarModel (const laminarModel &)=delete
 Disallow default bitwise copy construction. More...
 
virtual ~laminarModel ()
 Destructor. More...
 
virtual bool read ()
 Read model coefficients if they have changed. More...
 
virtual tmp< volScalarField > nut () const
 Return the turbulence viscosity, i.e. 0 for laminar flow. More...
 
virtual tmp< scalarField > nut (const label patchi) const
 Return the turbulence viscosity on patch. More...
 
virtual tmp< volScalarField > nuEff () const =0
 Return the effective viscosity, i.e. the laminar viscosity. More...
 
virtual tmp< scalarField > nuEff (const label patchi) const =0
 Return the effective viscosity on patch. More...
 
virtual tmp< volSymmTensorField > R () const
 Return the Reynolds stress tensor [m^2/s^2], i.e. 0 for laminar flow. More...
 
virtual tmp< volScalarField > k () const
 Return the turbulence kinetic energy, i.e. 0 for laminar flow. More...
 
virtual tmp< volScalarField > epsilon () const
 Return the turbulence kinetic energy dissipation rate,. More...
 
virtual tmp< volScalarField > omega () const
 Return the turbulence specific dissipation rate,. More...
 
virtual void predict ()
 Predict the laminar viscosity. More...
 
virtual void correct ()
 Predict the laminar viscosity. More...
 
void operator= (const laminarModel &)=delete
 Disallow default bitwise assignment. More...
 

Static Public Member Functions

static autoPtr< laminarModel > New (const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const viscosity &viscosity)
 Return a reference to the selected laminar model. More...
 

Protected Member Functions

const dictionary & laminarDict () const
 Const access to the laminar dictionary. More...
 
const dictionary & typeDict () const
 Const access to the coefficients dictionary. More...
 
const dictionary & typeDict (const word &) const
 Const access to the coefficients dictionary. More...
 

Detailed Description

template<class BasicMomentumTransportModel>
class Foam::laminarModel< BasicMomentumTransportModel >

Templated abstract base class for laminar transport models.

Source files

Definition at line 49 of file laminarModel.H.

Member Typedef Documentation

◆ alphaField

typedef BasicMomentumTransportModel::alphaField alphaField

Definition at line 70 of file laminarModel.H.

◆ rhoField

typedef BasicMomentumTransportModel::rhoField rhoField

Definition at line 71 of file laminarModel.H.

Constructor & Destructor Documentation

◆ laminarModel() [1/2]

laminarModel ( const word &  type,
const alphaField &  alpha,
const rhoField &  rho,
const volVectorField &  U,
const surfaceScalarField &  alphaRhoPhi,
const surfaceScalarField &  phi,
const viscosity &  viscosity 
)

Construct from components.

Definition at line 32 of file laminarModel.C.

◆ laminarModel() [2/2]

laminarModel ( const laminarModel< BasicMomentumTransportModel > &  )
delete

Disallow default bitwise copy construction.

◆ ~laminarModel()

virtual ~laminarModel ( )
inlinevirtual

Destructor.

Definition at line 130 of file laminarModel.H.

Member Function Documentation

◆ laminarDict()

const Foam::dictionary & laminarDict
protected

Const access to the laminar dictionary.

Definition at line 149 of file laminarModel.C.

◆ typeDict() [1/2]

const Foam::dictionary & typeDict
protected

Const access to the coefficients dictionary.

Definition at line 157 of file laminarModel.C.

References Foam::type().

Here is the call graph for this function:

◆ typeDict() [2/2]

const Foam::dictionary & typeDict ( const word &  type) const
protected

Const access to the coefficients dictionary.

Definition at line 165 of file laminarModel.C.

References dictionary::optionalTypeDict(), and Foam::type().

Here is the call graph for this function:

◆ TypeName()

TypeName ( "laminar"  )

Runtime type information.

◆ declareRunTimeSelectionTable()

declareRunTimeSelectionTable ( autoPtr  ,
laminarModel< BasicMomentumTransportModel >  ,
dictionary  ,
(const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const viscosity &viscosity)  ,
(alpha, rho, U, alphaRhoPhi, phi, viscosity)   
)

◆ New()

Foam::autoPtr< Foam::laminarModel< BasicMomentumTransportModel > > New ( const alphaField &  alpha,
const rhoField &  rho,
const volVectorField &  U,
const surfaceScalarField &  alphaRhoPhi,
const surfaceScalarField &  phi,
const viscosity &  viscosity 
)
static

◆ read()

◆ nut() [1/2]

Return the turbulence viscosity, i.e. 0 for laminar flow.

Definition at line 190 of file laminarModel.C.

References Foam::dimKinematicViscosity, and GeometricField< Type, GeoMesh, PrimitiveField >::New().

Here is the call graph for this function:

◆ nut() [2/2]

Foam::tmp< Foam::scalarField > nut ( const label  patchi) const
virtual

Return the turbulence viscosity on patch.

Definition at line 203 of file laminarModel.C.

References patchi.

◆ nuEff() [1/2]

◆ nuEff() [2/2]

◆ R()

Return the Reynolds stress tensor [m^2/s^2], i.e. 0 for laminar flow.

Definition at line 256 of file laminarModel.C.

References GeometricField< Type, GeoMesh, PrimitiveField >::New(), Foam::sqr(), and Foam::Zero.

Here is the call graph for this function:

◆ k()

Return the turbulence kinetic energy, i.e. 0 for laminar flow.

Definition at line 217 of file laminarModel.C.

References GeometricField< Type, GeoMesh, PrimitiveField >::New(), and Foam::dimensions::turbulentKineticEnergy.

Here is the call graph for this function:

◆ epsilon()

Foam::tmp< Foam::volScalarField > epsilon
virtual

Return the turbulence kinetic energy dissipation rate,.

i.e. 0 for laminar flow

Definition at line 230 of file laminarModel.C.

References GeometricField< Type, GeoMesh, PrimitiveField >::New(), and Foam::dimensions::turbulentEpsilon.

Here is the call graph for this function:

◆ omega()

Return the turbulence specific dissipation rate,.

i.e. 0 for laminar flow

Definition at line 243 of file laminarModel.C.

References GeometricField< Type, GeoMesh, PrimitiveField >::New(), and Foam::dimensions::turbulentOmega.

Here is the call graph for this function:

◆ predict()

◆ correct()

◆ operator=()

void operator= ( const laminarModel< BasicMomentumTransportModel > &  )
delete

Disallow default bitwise assignment.


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