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 ()=default |
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< volScalarField > | omega () const |
Return the specific dissipation rate, i.e. 0 for laminar flow. 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... | |
laminarModel (const laminarModel &)=delete | |
No copy construct. More... | |
void | operator= (const laminarModel &)=delete |
No copy assignment. 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 52 of file laminarModel.H.
typedef BasicTurbulenceModel::alphaField alphaField |
Definition at line 85 of file laminarModel.H.
typedef BasicTurbulenceModel::rhoField rhoField |
Definition at line 86 of file laminarModel.H.
typedef BasicTurbulenceModel::transportModel transportModel |
Definition at line 87 of file laminarModel.H.
|
protecteddelete |
No copy construct.
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 48 of file laminarModel.C.
|
virtualdefault |
Destructor.
|
protectedvirtual |
Print model coefficients.
Definition at line 35 of file laminarModel.C.
|
protecteddelete |
No copy assignment.
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 86 of file laminarModel.C.
|
virtual |
Read model coefficients if they have changed.
Reimplemented in linearViscousStress< laminarModel< BasicTurbulenceModel > >, linearViscousStress< laminarModel< BasicMomentumTransportModel > >, Maxwell< BasicTurbulenceModel >, generalizedNewtonian< BasicMomentumTransportModel >, and Stokes< BasicTurbulenceModel >.
Definition at line 173 of file laminarModel.C.
|
inlinevirtual |
Const access to the coefficients dictionary.
Reimplemented in Stokes< BasicTurbulenceModel >.
Definition at line 158 of file laminarModel.H.
|
virtual |
Return the turbulence viscosity, i.e. 0 for laminar flow.
Reimplemented in generalizedNewtonian< BasicMomentumTransportModel >, and Stokes< BasicTurbulenceModel >.
Definition at line 190 of file laminarModel.C.
|
virtual |
Return the turbulence viscosity on patch.
Reimplemented in generalizedNewtonian< BasicMomentumTransportModel >, and Stokes< BasicTurbulenceModel >.
Definition at line 212 of file laminarModel.C.
|
virtual |
Return the effective viscosity, i.e. the laminar viscosity.
Reimplemented in generalizedNewtonian< BasicMomentumTransportModel >, and Stokes< BasicTurbulenceModel >.
Definition at line 225 of file laminarModel.C.
|
virtual |
Return the effective viscosity on patch.
Reimplemented in generalizedNewtonian< BasicMomentumTransportModel >, and Stokes< BasicTurbulenceModel >.
Definition at line 240 of file laminarModel.C.
|
virtual |
Return the turbulence kinetic energy, i.e. 0 for laminar flow.
Definition at line 250 of file laminarModel.C.
|
virtual |
Return the turbulence kinetic energy dissipation rate,.
i.e. 0 for laminar flow
Definition at line 271 of file laminarModel.C.
|
virtual |
Return the specific dissipation rate, i.e. 0 for laminar flow.
Definition at line 292 of file laminarModel.C.
|
virtual |
Return the Reynolds stress tensor, i.e. 0 for laminar flow.
Reimplemented in Maxwell< BasicTurbulenceModel >.
Definition at line 313 of file laminarModel.C.
|
virtual |
Correct the laminar transport.
Reimplemented in linearViscousStress< laminarModel< BasicTurbulenceModel > >, linearViscousStress< laminarModel< BasicMomentumTransportModel > >, Maxwell< BasicTurbulenceModel >, generalizedNewtonian< BasicMomentumTransportModel >, and Stokes< BasicTurbulenceModel >.
Definition at line 333 of file laminarModel.C.
Referenced by Stokes< BasicTurbulenceModel >::correct(), generalizedNewtonian< BasicMomentumTransportModel >::correct(), and Maxwell< BasicTurbulenceModel >::correct().
|
protected |
laminar coefficients dictionary
Definition at line 62 of file laminarModel.H.
|
protected |
Flag to print the model coeffs at run-time.
Definition at line 65 of file laminarModel.H.
|
protected |
Model coefficients dictionary.
Definition at line 68 of file laminarModel.H.
Referenced by laminarModel< BasicMomentumTransportModel >::coeffDict().