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")
Return a reference to the selected LES delta.
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))
static const wallDist & New(const fvMesh &mesh, Args &&... args)
Get existing or create a new MeshObject.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
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 &)
Read the LESdelta 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.
bool read(Istream &is)
Read dictionary from Istream. Discards the header.
Abstract base class for LES deltas.
defineTypeNameAndDebug(cubeRootVolDelta, 0)
const fvMesh & mesh() const
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
addToRunTimeSelectionTable(LESfluidThermoCompressibleTurbulenceModel, SmagorinskyLESfluidThermoCompressibleTurbulenceModel, dictionary)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
static word groupName(StringType base, const word &group)
Create dot-delimited name.group string.