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
 
typedef BasicMomentumTransportModel::transportModel transportModel
 

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 transportModel &transport),(alpha, rho, U, alphaRhoPhi, phi, transport))
 
 laminarModel (const word &type, const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport)
 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 const dictionarycoeffDict () const
 Const access to the coefficients dictionary. More...
 
virtual tmp< volScalarFieldnut () const
 Return the turbulence viscosity, i.e. 0 for laminar flow. More...
 
virtual tmp< scalarFieldnut (const label patchi) const
 Return the turbulence viscosity on patch. More...
 
virtual tmp< volScalarFieldnuEff () const =0
 Return the effective viscosity, i.e. the laminar viscosity. More...
 
virtual tmp< scalarFieldnuEff (const label patchi) const =0
 Return the effective viscosity on patch. More...
 
virtual tmp< volScalarFieldk () const
 Return the turbulence kinetic energy, i.e. 0 for laminar flow. More...
 
virtual tmp< volScalarFieldepsilon () const
 Return the turbulence kinetic energy dissipation rate,. More...
 
virtual tmp< volSymmTensorFieldsigma () const
 Return the stress tensor [m^2/s^2], i.e. 0 for laminar flow. More...
 
virtual void correct ()
 Correct the laminar transport. More...
 
void operator= (const laminarModel &)=delete
 Disallow default bitwise assignment. More...
 

Static Public Member Functions

static autoPtr< laminarModelNew (const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport)
 Return a reference to the selected laminar model. More...
 

Protected Member Functions

virtual void printCoeffs (const word &type)
 Print model coefficients. More...
 

Protected Attributes

dictionary laminarDict_
 laminar coefficients dictionary More...
 
Switch printCoeffs_
 Flag to print the model coeffs at run-time. More...
 
dictionary coeffDict_
 Model 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 76 of file laminarModel.H.

◆ rhoField

typedef BasicMomentumTransportModel::rhoField rhoField

Definition at line 77 of file laminarModel.H.

◆ transportModel

typedef BasicMomentumTransportModel::transportModel transportModel

Definition at line 78 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 transportModel transport 
)

Construct from components.

Definition at line 48 of file laminarModel.C.

References laminarModel< BasicMomentumTransportModel >::New().

Referenced by laminarModel< BasicMomentumTransportModel >::printCoeffs().

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

◆ laminarModel() [2/2]

laminarModel ( const laminarModel< BasicMomentumTransportModel > &  )
delete

Disallow default bitwise copy construction.

◆ ~laminarModel()

virtual ~laminarModel ( )
inlinevirtual

Destructor.

Definition at line 137 of file laminarModel.H.

References laminarModel< BasicMomentumTransportModel >::read().

Here is the call graph for this function:

Member Function Documentation

◆ printCoeffs()

void printCoeffs ( const word type)
protectedvirtual

Print model coefficients.

Definition at line 33 of file laminarModel.C.

References Foam::endl(), Foam::Info, and laminarModel< BasicMomentumTransportModel >::laminarModel().

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 transportModel &transport)  ,
(alpha, rho, U, alphaRhoPhi, phi, transport)   
)

◆ New()

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

Return a reference to the selected laminar model.

Definition at line 84 of file laminarModel.C.

References alpha(), IOobject::db(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, dictionary::found(), IOobject::group(), Foam::Info, dictionary::lookupBackwardsCompatible(), Foam::nl, phi, rho, dictionary::subDict(), and U.

Referenced by laminarModel< BasicMomentumTransportModel >::laminarModel().

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

◆ read()

◆ coeffDict()

◆ nut() [1/2]

Foam::tmp< Foam::volScalarField > nut ( ) const
virtual

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

Definition at line 182 of file laminarModel.C.

References Foam::dimViscosity, and Foam::compressible::New().

Referenced by laminarModel< BasicMomentumTransportModel >::coeffDict().

Here is the call graph for this function:
Here is the caller 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 196 of file laminarModel.C.

References patchi, and scalarField().

Here is the call graph for this function:

◆ nuEff() [1/2]

virtual tmp<volScalarField> nuEff ( ) const
pure virtual

◆ nuEff() [2/2]

◆ k()

Foam::tmp< Foam::volScalarField > k ( ) const
virtual

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

Definition at line 209 of file laminarModel.C.

References Foam::compressible::New(), and Foam::sqr().

Referenced by laminarModel< BasicMomentumTransportModel >::coeffDict().

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

◆ epsilon()

Foam::tmp< Foam::volScalarField > epsilon ( ) const
virtual

Return the turbulence kinetic energy dissipation rate,.

i.e. 0 for laminar flow

Definition at line 222 of file laminarModel.C.

References Foam::dimTime, Foam::compressible::New(), and Foam::sqr().

Referenced by laminarModel< BasicMomentumTransportModel >::coeffDict().

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

◆ sigma()

Foam::tmp< Foam::volSymmTensorField > sigma ( ) const
virtual

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

Reimplemented in Maxwell< BasicMomentumTransportModel >.

Definition at line 235 of file laminarModel.C.

References Foam::compressible::New(), Foam::sqr(), and Foam::Zero.

Referenced by laminarModel< BasicMomentumTransportModel >::coeffDict().

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

◆ correct()

◆ operator=()

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

Disallow default bitwise assignment.

Referenced by laminarModel< BasicMomentumTransportModel >::coeffDict().

Here is the caller graph for this function:

Member Data Documentation

◆ laminarDict_

dictionary laminarDict_
protected

laminar coefficients dictionary

Definition at line 59 of file laminarModel.H.

◆ printCoeffs_

Switch printCoeffs_
protected

Flag to print the model coeffs at run-time.

Definition at line 62 of file laminarModel.H.

◆ coeffDict_

dictionary coeffDict_
protected

Model coefficients dictionary.

Definition at line 65 of file laminarModel.H.

Referenced by laminarModel< BasicMomentumTransportModel >::coeffDict().


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