34 namespace laminarModels
39 template<
class BasicTurbulenceModel>
55 template<
class BasicTurbulenceModel>
64 const word& propertiesName,
86 this->coeffDict_.lookup(
"nuM")
96 this->coeffDict_.lookup(
"lambda")
105 this->runTime_.timeName(),
113 if (type == typeName)
115 this->printCoeffs(type);
122 template<
class BasicTurbulenceModel>
127 nuM_.readIfPresent(this->coeffDict());
128 lambda_.readIfPresent(this->coeffDict());
138 template<
class BasicTurbulenceModel>
145 template<
class BasicTurbulenceModel>
152 this->alpha_*this->rho_*sigma_
153 - (this->alpha_*this->rho_*this->
nu())
159 template<
class BasicTurbulenceModel>
170 this->alpha_*this->rho_*this->nuM_*
fvc::grad(U)
172 +
fvc::div(this->alpha_*this->rho_*sigma_)
179 template<
class BasicTurbulenceModel>
200 template<
class BasicTurbulenceModel>
221 this->runTime_.constant(),
239 +
fvm::Sp(alpha*rho*rLambda, sigma)
246 sigmaEqn.
ref().relax();
virtual tmp< fvVectorMatrix > divDevRhoReff(volVectorField &U) const
Return the source term for the momentum equation.
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
Templated abstract base class for laminar transport models.
void correct(GeometricField< Type, fvPatchField, volMesh > &field)
Apply correction to field.
T & ref() const
Return non-const reference or generate a fatal error.
tmp< GeometricField< Type, fvPatchField, volMesh > > div(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
const dimensionSet dimViscosity
const dimensionedScalar sigma
Stefan-Boltzmann constant: default SI units: [W/m^2/K^4].
fvMatrix< symmTensor > fvSymmTensorMatrix
tmp< fvMatrix< Type > > Sp(const volScalarField::Internal &, const GeometricField< Type, fvPatchField, volMesh > &)
dimensionedSymmTensor twoSymm(const dimensionedSymmTensor &dt)
virtual tmp< volSymmTensorField > devRhoReff() const
Return the effective stress tensor.
BasicTurbulenceModel::transportModel transportModel
static tmp< GeometricField< symmTensor, fvPatchField, volMesh > > New(const word &name, const Mesh &, const dimensionSet &, const word &patchFieldType=fvPatchField< symmTensor >::calculatedType())
Return a temporary field constructed from name, mesh, dimensionSet.
const dimensionSet dimVolume(pow3(dimLength))
BasicTurbulenceModel::rhoField rhoField
dimensionedSymmTensor dev(const dimensionedSymmTensor &dt)
BasicTurbulenceModel::alphaField alphaField
A class for handling words, derived from string.
static word groupName(Name name, const word &group)
tmp< fvMatrix< Type > > ddt(const GeometricField< Type, fvPatchField, volMesh > &vf)
Maxwell(const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &propertiesName=turbulenceModel::propertiesName, const word &type=typeName)
Construct from components.
virtual tmp< volSymmTensorField > R() const
Return the Reynolds stress tensor.
void constrain(fvMatrix< Type > &eqn)
Apply constraints to equation.
virtual tmp< fvSymmTensorMatrix > sigmaSource() const
tmp< fvMatrix< Type > > div(const surfaceScalarField &flux, const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
virtual bool read()
Read model coefficients if they have changed.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
virtual void correct()
Solve the turbulence equations and correct eddy-Viscosity and.
dimensionedSymmTensor dev2(const dimensionedSymmTensor &dt)
virtual void correct()
Correct the laminar transport.
tmp< fvMatrix< Type > > laplacian(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
SolverPerformance< Type > solve(fvMatrix< Type > &, const word &)
Solve returning the solution statistics given convergence tolerance.
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.
static options & New(const fvMesh &mesh)
Construct fvOptions and register to datbase if not present.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...