Templated abstract base class for laminar transport models. More...
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 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 =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< 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 > | sigma () 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< laminarModel > | New (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... | |
Templated abstract base class for laminar transport models.
Definition at line 49 of file laminarModel.H.
typedef BasicMomentumTransportModel::alphaField alphaField |
Definition at line 76 of file laminarModel.H.
typedef BasicMomentumTransportModel::rhoField rhoField |
Definition at line 77 of file laminarModel.H.
typedef BasicMomentumTransportModel::transportModel transportModel |
Definition at line 78 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 | ||
) |
Construct from components.
Definition at line 48 of file laminarModel.C.
References laminarModel< BasicMomentumTransportModel >::New().
Referenced by laminarModel< BasicMomentumTransportModel >::printCoeffs().
|
delete |
Disallow default bitwise copy construction.
|
inlinevirtual |
Destructor.
Definition at line 137 of file laminarModel.H.
References laminarModel< BasicMomentumTransportModel >::read().
|
protectedvirtual |
Print model coefficients.
Definition at line 33 of file laminarModel.C.
References Foam::endl(), Foam::Info, and laminarModel< BasicMomentumTransportModel >::laminarModel().
TypeName | ( | "laminar" | ) |
Runtime type information.
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) | |||
) |
|
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().
|
virtual |
Read model coefficients if they have changed.
Reimplemented in lambdaThixotropic< BasicMomentumTransportModel >, Maxwell< BasicMomentumTransportModel >, Giesekus< BasicMomentumTransportModel >, PTT< BasicMomentumTransportModel >, generalisedNewtonian< BasicMomentumTransportModel >, Stokes< BasicMomentumTransportModel >, and linearViscousStress< laminarModel< BasicMomentumTransportModel > >.
Definition at line 163 of file laminarModel.C.
References Foam::blockMeshTools::read(), and Foam::type().
Referenced by laminarModel< BasicMomentumTransportModel >::~laminarModel().
|
inlinevirtual |
Const access to the coefficients dictionary.
Reimplemented in Stokes< BasicMomentumTransportModel >.
Definition at line 147 of file laminarModel.H.
References laminarModel< BasicMomentumTransportModel >::coeffDict_, laminarModel< BasicMomentumTransportModel >::correct(), laminarModel< BasicMomentumTransportModel >::epsilon(), laminarModel< BasicMomentumTransportModel >::k(), laminarModel< BasicMomentumTransportModel >::nuEff(), laminarModel< BasicMomentumTransportModel >::nut(), laminarModel< BasicMomentumTransportModel >::operator=(), patchi, and laminarModel< BasicMomentumTransportModel >::sigma().
|
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().
|
virtual |
Return the turbulence viscosity on patch.
Definition at line 196 of file laminarModel.C.
References patchi, and scalarField().
|
pure virtual |
Return the effective viscosity, i.e. the laminar viscosity.
Implemented in lambdaThixotropic< BasicMomentumTransportModel >, Maxwell< BasicMomentumTransportModel >, generalisedNewtonian< BasicMomentumTransportModel >, and Stokes< BasicMomentumTransportModel >.
Referenced by laminarModel< BasicMomentumTransportModel >::coeffDict().
|
pure virtual |
Return the effective viscosity on patch.
Implemented in lambdaThixotropic< BasicMomentumTransportModel >, Maxwell< BasicMomentumTransportModel >, generalisedNewtonian< BasicMomentumTransportModel >, and Stokes< BasicMomentumTransportModel >.
|
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().
|
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().
|
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().
|
virtual |
Correct the laminar transport.
Reimplemented in lambdaThixotropic< BasicMomentumTransportModel >, Maxwell< BasicMomentumTransportModel >, generalisedNewtonian< BasicMomentumTransportModel >, Stokes< BasicMomentumTransportModel >, and linearViscousStress< laminarModel< BasicMomentumTransportModel > >.
Definition at line 247 of file laminarModel.C.
References correct.
Referenced by laminarModel< BasicMomentumTransportModel >::coeffDict(), Stokes< BasicMomentumTransportModel >::correct(), generalisedNewtonian< BasicMomentumTransportModel >::correct(), Maxwell< BasicMomentumTransportModel >::correct(), and lambdaThixotropic< BasicMomentumTransportModel >::correct().
|
delete |
Disallow default bitwise assignment.
Referenced by laminarModel< BasicMomentumTransportModel >::coeffDict().
|
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< BasicMomentumTransportModel >::coeffDict().