Templated abstract base class for laminar transport models. More...
Public Types | |
typedef BasicTurbulenceModel::alphaField | alphaField |
typedef BasicTurbulenceModel::rhoField | rhoField |
typedef BasicTurbulenceModel::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, const word &propertiesName),(alpha, rho, U, alphaRhoPhi, phi, transport, propertiesName)) | |
laminarModel (const word &type, const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &propertiesName) | |
Construct from components. More... | |
virtual | ~laminarModel () |
Destructor. More... | |
virtual bool | read () |
Read model coefficients if they have changed. More... | |
virtual const dictionary & | coeffDict () const |
Const access to the coefficients dictionary. 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 |
Return the effective viscosity, i.e. the laminar viscosity. More... | |
virtual tmp< scalarField > | nuEff (const label patchi) const |
Return the effective viscosity on patch. 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< volSymmTensorField > | R () const |
Return the Reynolds stress tensor, i.e. 0 for laminar flow. More... | |
virtual void | correct () |
Correct the laminar transport. 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 transportModel &transport, const word &propertiesName=turbulenceModel::propertiesName) |
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... | |
Templated abstract base class for laminar transport models.
Definition at line 49 of file laminarModel.H.
typedef BasicTurbulenceModel::alphaField alphaField |
Definition at line 87 of file laminarModel.H.
typedef BasicTurbulenceModel::rhoField rhoField |
Definition at line 88 of file laminarModel.H.
typedef BasicTurbulenceModel::transportModel transportModel |
Definition at line 89 of file laminarModel.H.
laminarModel | ( | const word & | type, |
const alphaField & | alpha, | ||
const rhoField & | rho, | ||
const volVectorField & | U, | ||
const surfaceScalarField & | alphaRhoPhi, | ||
const surfaceScalarField & | phi, | ||
const transportModel & | transport, | ||
const word & | propertiesName | ||
) |
Construct from components.
Definition at line 45 of file laminarModel.C.
References laminarModel< BasicTurbulenceModel >::New().
|
inlinevirtual |
Destructor.
Definition at line 148 of file laminarModel.H.
References laminarModel< BasicTurbulenceModel >::read().
|
protectedvirtual |
Print model coefficients.
Definition at line 32 of file laminarModel.C.
References Foam::endl(), and Foam::Info.
TypeName | ( | "laminar" | ) |
Runtime type information.
declareRunTimeSelectionTable | ( | autoPtr | , |
laminarModel< BasicTurbulenceModel > | , | ||
dictionary | , | ||
(const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &propertiesName) | , | ||
(alpha, rho, U, alphaRhoPhi, phi, transport, propertiesName) | |||
) |
|
static |
Return a reference to the selected laminar model.
Definition at line 83 of file laminarModel.C.
References Foam::constant::atomic::alpha, TimePaths::constant(), IOobject::db(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, dictionary::found(), IOobject::group(), Foam::Info, dictionary::lookup(), Foam::nl, phi, rho, dictionary::subDict(), IOobject::time(), and U.
Referenced by laminarModel< BasicTurbulenceModel >::laminarModel().
|
virtual |
Read model coefficients if they have changed.
Reimplemented in Maxwell< BasicTurbulenceModel >, Stokes< BasicTurbulenceModel >, and linearViscousStress< laminarModel< BasicTurbulenceModel > >.
Definition at line 167 of file laminarModel.C.
References Foam::blockMeshTools::read().
Referenced by laminarModel< BasicTurbulenceModel >::~laminarModel().
|
inlinevirtual |
Const access to the coefficients dictionary.
Reimplemented in Stokes< BasicTurbulenceModel >.
Definition at line 161 of file laminarModel.H.
References laminarModel< BasicTurbulenceModel >::coeffDict_, laminarModel< BasicTurbulenceModel >::correct(), laminarModel< BasicTurbulenceModel >::epsilon(), laminarModel< BasicTurbulenceModel >::k(), laminarModel< BasicTurbulenceModel >::nuEff(), laminarModel< BasicTurbulenceModel >::nut(), patchi, and laminarModel< BasicTurbulenceModel >::R().
|
virtual |
Return the turbulence viscosity, i.e. 0 for laminar flow.
Reimplemented in Stokes< BasicTurbulenceModel >.
Definition at line 186 of file laminarModel.C.
References Foam::dimViscosity.
Referenced by laminarModel< BasicTurbulenceModel >::coeffDict().
|
virtual |
Return the turbulence viscosity on patch.
Reimplemented in Stokes< BasicTurbulenceModel >.
Definition at line 211 of file laminarModel.C.
References patchi, and scalarField().
|
virtual |
Return the effective viscosity, i.e. the laminar viscosity.
Reimplemented in Stokes< BasicTurbulenceModel >.
Definition at line 224 of file laminarModel.C.
References nu.
Referenced by laminarModel< BasicTurbulenceModel >::coeffDict().
|
virtual |
Return the effective viscosity on patch.
Reimplemented in Stokes< BasicTurbulenceModel >.
Definition at line 239 of file laminarModel.C.
References nu.
|
virtual |
Return the turbulence kinetic energy, i.e. 0 for laminar flow.
Reimplemented in Stokes< BasicTurbulenceModel >.
Definition at line 249 of file laminarModel.C.
References Foam::sqr().
Referenced by laminarModel< BasicTurbulenceModel >::coeffDict().
|
virtual |
Return the turbulence kinetic energy dissipation rate,.
i.e. 0 for laminar flow
Reimplemented in Stokes< BasicTurbulenceModel >.
Definition at line 273 of file laminarModel.C.
References Foam::dimTime, and Foam::sqr().
Referenced by laminarModel< BasicTurbulenceModel >::coeffDict().
|
virtual |
Return the Reynolds stress tensor, i.e. 0 for laminar flow.
Reimplemented in Maxwell< BasicTurbulenceModel >, and Stokes< BasicTurbulenceModel >.
Definition at line 300 of file laminarModel.C.
References Foam::sqr(), and Foam::Zero.
Referenced by laminarModel< BasicTurbulenceModel >::coeffDict().
|
virtual |
Correct the laminar transport.
Reimplemented in Maxwell< BasicTurbulenceModel >, Stokes< BasicTurbulenceModel >, and linearViscousStress< laminarModel< BasicTurbulenceModel > >.
Definition at line 326 of file laminarModel.C.
References correct.
Referenced by laminarModel< BasicTurbulenceModel >::coeffDict(), Stokes< BasicTurbulenceModel >::correct(), and Maxwell< BasicTurbulenceModel >::correct().
|
protected |
laminar coefficients dictionary
Definition at line 59 of file laminarModel.H.
|
protected |
Flag to print the model coeffs at run-time.
Definition at line 62 of file laminarModel.H.
|
protected |
Model coefficients dictionary.
Definition at line 65 of file laminarModel.H.
Referenced by laminarModel< BasicTurbulenceModel >::coeffDict().