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;
93 const alphaField&
alpha,
100 (alpha, rho, U, alphaRhoPhi, phi, viscosity)
110 const alphaField& alpha,
115 const viscosity& viscosity
127 const alphaField& alpha,
132 const viscosity& viscosity
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.
Templated abstract base class for laminar transport models.
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual ~laminarModel()
Destructor.
volScalarField alpha(IOobject("alpha", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
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.
virtual tmp< volScalarField > omega() const
Return the turbulence specific dissipation rate,.
void operator=(const laminarModel &)=delete
Disallow default bitwise assignment.
TypeName("laminar")
Runtime type information.
BasicMomentumTransportModel::rhoField rhoField
BasicMomentumTransportModel::alphaField alphaField
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.
Abstract base class for all fluid physical properties.
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.
virtual tmp< volScalarField > nuEff() const =0
Return the effective viscosity, i.e. the laminar viscosity.
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))
virtual void correct()
Correct the laminar viscosity.
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.
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.
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.
A class for managing temporary objects.
virtual const dictionary & coeffDict() const
Const access to the coefficients dictionary.