Go to the documentation of this file.
47 void Foam::LESModels::PrandtlDelta::calcDelta()
59 Foam::LESModels::PrandtlDelta::PrandtlDelta
73 dict.optionalSubDict(
type() +
"Coeffs")
76 kappa_(
dict.getOrDefault<scalar>(
"kappa", 0.41)),
79 dict.optionalSubDict(
type() +
"Coeffs").getOrDefault<scalar>
96 geometricDelta_().read(coeffDict);
97 dict.readIfPresent<scalar>(
"kappa", kappa_);
98 coeffDict.readIfPresent<scalar>(
"Cdelta", Cdelta_);
105 geometricDelta_().correct();
107 if (turbulenceModel_.mesh().changing())
static autoPtr< LESdelta > New(const word &name, const turbulenceModel &turbulence, const dictionary &dict, const word &lookupName="delta")
Defines the attributes of an object for which implicit objectRegistry management is supported,...
A class for handling words, derived from Foam::string.
Info<< "Reading field U\n"<< endl;volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);volScalarField rho(IOobject("rho", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), thermo.rho());volVectorField rhoU(IOobject("rhoU", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), rho *U);volScalarField rhoE(IOobject("rhoE", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), rho *(e+0.5 *magSqr(U)));surfaceScalarField pos(IOobject("pos", runTime.timeName(), mesh), mesh, dimensionedScalar("pos", dimless, 1.0));surfaceScalarField neg(IOobject("neg", runTime.timeName(), mesh), mesh, dimensionedScalar("neg", dimless, -1.0));surfaceScalarField phi("phi", fvc::flux(rhoU));Info<< "Creating turbulence model\n"<< endl;autoPtr< compressible::turbulenceModel > turbulence(compressible::turbulenceModel::New(rho, U, phi, thermo))
constexpr const char *const group
const volScalarField & y() const
static const wallDist & New(const fvMesh &mesh, Args &&... args)
label min(const labelHashSet &set, label minValue=labelMax)
Apply Prandtl mixing-length based damping function to the specified geometric delta to improve near-w...
const turbulenceModel & turbulenceModel_
GeometricField< scalar, fvPatchField, volMesh > volScalarField
virtual void read(const dictionary &)
Abstract base class for turbulence models (RAS, LES and laminar).
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Macros for easy insertion into run-time selection tables.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Abstract base class for LES deltas.
defineTypeNameAndDebug(cubeRootVolDelta, 0)
const fvMesh & mesh() const
fileName::Type type(const fileName &name, const bool followLink=true)
addToRunTimeSelectionTable(LESfluidThermoCompressibleTurbulenceModel, SmagorinskyLESfluidThermoCompressibleTurbulenceModel, dictionary)
word name(const expressions::valueTypeCode typeCode)
static word groupName(StringType base, const word &group)
bool readIfPresent(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX) const