Templated abstract base class for laminar transport models. More...
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 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< volScalarField > | omega () const |
Return the turbulence specific 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 | 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 | |
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.
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 47 of file laminarModel.C.
|
delete |
Disallow default bitwise copy construction.
|
inlinevirtual |
Destructor.
Definition at line 136 of file laminarModel.H.
|
protectedvirtual |
Print model coefficients.
Definition at line 32 of file laminarModel.C.
References Foam::endl(), and Foam::Info.
Referenced by Giesekus< BasicMomentumTransportModel >::Giesekus(), Maxwell< BasicMomentumTransportModel >::Maxwell(), and PTT< BasicMomentumTransportModel >::PTT().
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 viscosity &viscosity) | , | ||
(alpha, rho, U, alphaRhoPhi, phi, viscosity) | |||
) |
|
static |
Return a reference to the selected laminar model.
Definition at line 83 of file laminarModel.C.
References alpha(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, dictionary::found(), IOobject::group(), Foam::Info, dictionary::lookupBackwardsCompatible(), Foam::nl, momentumTransportModel::readModelDict(), rho, dictionary::subDict(), and U.
|
virtual |
Read model coefficients if they have changed.
Reimplemented in linearViscousStress< laminarModel< BasicMomentumTransportModel > >, Stokes< BasicMomentumTransportModel >, PTT< BasicMomentumTransportModel >, Maxwell< BasicMomentumTransportModel >, lambdaThixotropic< BasicMomentumTransportModel >, Giesekus< BasicMomentumTransportModel >, and generalisedNewtonian< BasicMomentumTransportModel >.
Definition at line 163 of file laminarModel.C.
References Foam::blockMeshTools::read(), and Foam::type().
|
inlinevirtual |
Const access to the coefficients dictionary.
Reimplemented in Stokes< BasicMomentumTransportModel >.
Definition at line 146 of file laminarModel.H.
References laminarModel< BasicMomentumTransportModel >::coeffDict_.
|
virtual |
Return the turbulence viscosity, i.e. 0 for laminar flow.
Definition at line 182 of file laminarModel.C.
References Foam::dimKinematicViscosity, and GeometricField< Type, PatchField, GeoMesh >::New().
|
virtual |
Return the turbulence viscosity on patch.
Definition at line 195 of file laminarModel.C.
References patchi.
|
pure virtual |
Return the effective viscosity, i.e. the laminar viscosity.
Implemented in Stokes< BasicMomentumTransportModel >, Maxwell< BasicMomentumTransportModel >, lambdaThixotropic< BasicMomentumTransportModel >, and generalisedNewtonian< BasicMomentumTransportModel >.
|
pure virtual |
Return the effective viscosity on patch.
Implemented in Stokes< BasicMomentumTransportModel >, Maxwell< BasicMomentumTransportModel >, lambdaThixotropic< BasicMomentumTransportModel >, and generalisedNewtonian< BasicMomentumTransportModel >.
|
virtual |
Return the turbulence kinetic energy, i.e. 0 for laminar flow.
Definition at line 209 of file laminarModel.C.
References Foam::dimVelocity, GeometricField< Type, PatchField, GeoMesh >::New(), and Foam::sqr().
|
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::dimVelocity, GeometricField< Type, PatchField, GeoMesh >::New(), and Foam::sqr().
|
virtual |
Return the turbulence specific dissipation rate,.
i.e. 0 for laminar flow
Definition at line 235 of file laminarModel.C.
References Foam::dimless, Foam::dimTime, and GeometricField< Type, PatchField, GeoMesh >::New().
|
virtual |
Return the stress tensor [m^2/s^2], i.e. 0 for laminar flow.
Reimplemented in Maxwell< BasicMomentumTransportModel >.
Definition at line 248 of file laminarModel.C.
References GeometricField< Type, PatchField, GeoMesh >::New(), Foam::sqr(), and Foam::Zero.
|
virtual |
Predict the laminar viscosity.
Reimplemented in Stokes< BasicMomentumTransportModel >, Maxwell< BasicMomentumTransportModel >, lambdaThixotropic< BasicMomentumTransportModel >, and generalisedNewtonian< BasicMomentumTransportModel >.
Definition at line 260 of file laminarModel.C.
Referenced by generalisedNewtonian< BasicMomentumTransportModel >::predict(), and Stokes< BasicMomentumTransportModel >::predict().
|
virtual |
Predict the laminar viscosity.
Reimplemented in linearViscousStress< laminarModel< BasicMomentumTransportModel > >, Stokes< BasicMomentumTransportModel >, Maxwell< BasicMomentumTransportModel >, lambdaThixotropic< BasicMomentumTransportModel >, and generalisedNewtonian< BasicMomentumTransportModel >.
Definition at line 267 of file laminarModel.C.
References Foam::MULES::correct().
Referenced by lambdaThixotropic< BasicMomentumTransportModel >::correct(), and Maxwell< BasicMomentumTransportModel >::correct().
|
delete |
Disallow default bitwise assignment.
|
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().