52template<
class BasicTurbulenceModel>
55 public BasicTurbulenceModel
86 typedef typename BasicTurbulenceModel::alphaField
alphaField;
87 typedef typename BasicTurbulenceModel::rhoField
rhoField;
88 typedef typename BasicTurbulenceModel::transportModel
transportModel;
109 const word& propertiesName
111 (
alpha,
rho,
U, alphaRhoPhi,
phi, transport, propertiesName)
127 const word& propertiesName
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Templated abstract base class for laminar transport models.
virtual tmp< volScalarField > epsilon() const
Return the turbulence kinetic energy dissipation rate,.
BasicTurbulenceModel::alphaField alphaField
dictionary coeffDict_
Model coefficients dictionary.
virtual tmp< volSymmTensorField > R() const
Return the Reynolds stress tensor, i.e. 0 for laminar flow.
virtual void printCoeffs(const word &type)
Print model coefficients.
BasicTurbulenceModel::rhoField rhoField
virtual void correct()
Correct the laminar transport.
virtual tmp< volScalarField > k() const
Return the turbulence kinetic energy, 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, const word &propertiesName),(alpha, rho, U, alphaRhoPhi, phi, transport, propertiesName))
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, const word &propertiesName=turbulenceModel::propertiesName)
Return a reference to the selected laminar model.
virtual ~laminarModel()=default
Destructor.
dictionary laminarDict_
laminar coefficients dictionary
TypeName("laminar")
Runtime type information.
virtual tmp< volScalarField > nuEff() const
Return the effective viscosity, i.e. the laminar viscosity.
void operator=(const laminarModel &)=delete
No copy assignment.
laminarModel(const laminarModel &)=delete
No copy construct.
BasicTurbulenceModel::transportModel transportModel
virtual tmp< volScalarField > nut() const
Return the turbulence viscosity, i.e. 0 for laminar flow.
virtual tmp< volScalarField > omega() const
Return the specific dissipation rate, i.e. 0 for laminar flow.
Switch printCoeffs_
Flag to print the model coeffs at run-time.
virtual bool read()
Read model coefficients if they have changed.
A class for managing temporary objects.
static const word propertiesName
Default name of the turbulence properties dictionary.
A class for handling words, derived from Foam::string.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
#define declareRunTimeSelectionTable(ptrWrapper, baseType, argNames, argList, parList)
Declare a run-time selection (variables and adder classes)
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.