35 #ifndef laminarModel_H 36 #define laminarModel_H 49 template<
class BasicMomentumTransportModel>
52 public BasicMomentumTransportModel
77 typedef typename BasicMomentumTransportModel::alphaField
alphaField;
78 typedef typename BasicMomentumTransportModel::rhoField
rhoField;
79 typedef typename BasicMomentumTransportModel::transportModel
transportModel;
94 const alphaField&
alpha,
99 const transportModel& transport
101 (alpha, rho, U, alphaRhoPhi, phi, transport)
111 const alphaField& alpha,
116 const transportModel& transport
128 const alphaField& alpha,
133 const transportModel& transport
Templated abstract base class for laminar transport models.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual tmp< volScalarField > nuEff() const
Return the effective viscosity, i.e. the laminar viscosity.
virtual ~laminarModel()
Destructor.
A simple wrapper around bool so that it can be read as a word: true/false, on/off, yes/no, y/n, t/f, or none/any.
void operator=(const laminarModel &)=delete
Disallow default bitwise assignment.
TypeName("laminar")
Runtime type information.
BasicMomentumTransportModel::rhoField rhoField
BasicMomentumTransportModel::alphaField alphaField
BasicMomentumTransportModel::transportModel transportModel
virtual bool read()
Read model coefficients if they have changed.
dictionary laminarDict_
laminar coefficients dictionary
A class for handling words, derived from string.
virtual tmp< volScalarField > epsilon() const
Return the turbulence kinetic energy dissipation rate,.
virtual tmp< volScalarField > nut() const
Return the turbulence viscosity, i.e. 0 for laminar flow.
virtual tmp< volScalarField > k() const
Return the turbulence kinetic energy, i.e. 0 for laminar flow.
virtual void printCoeffs(const word &type)
Print model coefficients.
virtual tmp< volSymmTensorField > sigma() const
Return the stress tensor [m^2/s^2], i.e. 0 for laminar flow.
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.
virtual void correct()
Correct the laminar transport.
Switch printCoeffs_
Flag to print the model coeffs at run-time.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
dictionary coeffDict_
Model coefficients dictionary.
volScalarField alpha(IOobject("alpha", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
A class for managing temporary objects.
virtual const dictionary & coeffDict() const
Const access to the coefficients dictionary.
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.