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;
Generic GeometricField class.
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keyword definitions, which are a keyword followed by any number of values (e....
Templated abstract base class for laminar transport models.
BasicMomentumTransportModel::alphaField alphaField
virtual tmp< volScalarField > epsilon() const
Return the turbulence kinetic energy dissipation rate,.
dictionary coeffDict_
Model coefficients dictionary.
virtual void printCoeffs(const word &type)
Print model coefficients.
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.
virtual const dictionary & coeffDict() const
Const access to the coefficients dictionary.
virtual void correct()
Predict the laminar viscosity.
virtual tmp< volScalarField > k() const
Return the turbulence kinetic energy, i.e. 0 for laminar flow.
virtual void predict()
Predict 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))
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.
dictionary laminarDict_
laminar coefficients dictionary
TypeName("laminar")
Runtime type information.
virtual ~laminarModel()
Destructor.
void operator=(const laminarModel &)=delete
Disallow default bitwise assignment.
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.
virtual tmp< volScalarField > nut() const
Return the turbulence viscosity, i.e. 0 for laminar flow.
virtual tmp< volScalarField > omega() const
Return the turbulence specific dissipation rate,.
Switch printCoeffs_
Flag to print the model coeffs at run-time.
virtual bool read()
Read model coefficients if they have changed.
BasicMomentumTransportModel::rhoField rhoField
A class for managing temporary objects.
Abstract base class for all fluid physical properties.
A class for handling words, derived from string.
volScalarField alpha(IOobject("alpha", runTime.name(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.