Go to the documentation of this file.
48 void Foam::LESModels::vanDriestDelta::calcDelta()
62 mesh.time().constant(),
70 volScalarField::Boundary& ystarBf = ystar.boundaryFieldRef();
74 if (isA<wallFvPatch>(
patches[patchi]))
78 const scalarField& nuSgsw = nuSgs().boundaryField()[patchi];
81 nuw/
sqrt((nuw + nuSgsw)*
mag(Uw.snGrad()) + VSMALL);
87 wallDistData<wallPointYPlus>
y(
mesh, ystar);
93 (kappa_/Cdelta_)*((scalar(1) + SMALL) -
exp(-
y/ystar/Aplus_))*
y
100 Foam::LESModels::vanDriestDelta::vanDriestDelta
120 kappa_(
dict.getOrDefault<scalar>(
"kappa", 0.41)),
123 dict.optionalSubDict(
type() +
"Coeffs").getOrDefault<scalar>
131 dict.optionalSubDict(
type() +
"Coeffs").getOrDefault<scalar>
139 dict.optionalSubDict(
type() +
"Coeffs").getOrDefault<label>
146 delta_ = geometricDelta_();
156 geometricDelta_().read(coeffsDict);
157 dict.readIfPresent<scalar>(
"kappa", kappa_);
158 coeffsDict.readIfPresent<scalar>(
"Aplus", Aplus_);
159 coeffsDict.readIfPresent<scalar>(
"Cdelta", Cdelta_);
160 coeffsDict.readIfPresent<label>(
"calcInterval", calcInterval_);
168 if (turbulenceModel_.mesh().time().timeIndex() % calcInterval_ == 0)
170 geometricDelta_().correct();
static autoPtr< LESdelta > New(const word &name, const turbulenceModel &turbulence, const dictionary &dict, const word &lookupName="delta")
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
virtual tmp< volScalarField > nu() const =0
static scalar yPlusCutOff
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 dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
virtual tmp< volScalarField > nut() const =0
dimensionedScalar exp(const dimensionedScalar &ds)
label min(const labelHashSet &set, label minValue=labelMax)
PtrList< fvPatch > fvPatchList
container classes for fvPatch
const turbulenceModel & turbulenceModel_
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Abstract base class for turbulence models (RAS, LES and laminar).
virtual void read(const dictionary &)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Simple cube-root of cell volume delta used in incompressible LES models.
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)
GeometricField< vector, fvPatchField, volMesh > volVectorField
fvPatchField< vector > fvPatchVectorField
Abstract base class for LES deltas.
defineTypeNameAndDebug(cubeRootVolDelta, 0)
dimensionedScalar sqrt(const dimensionedScalar &ds)
const fvMesh & mesh() const
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
fileName::Type type(const fileName &name, const bool followLink=true)
const polyBoundaryMesh & patches
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
const volVectorField & U() const