Go to the documentation of this file.
50 label nD =
mesh.nGeometricD();
59 <<
"Case is 2D, LES is not strictly applicable\n"
64 scalar thickness = 0.0;
69 thickness =
mesh.bounds().span()[dir];
81 <<
"Case is not 3D or 2D, LES is not applicable"
93 Foam::LESModels::cubeRootVolDelta::cubeRootVolDelta
103 dict.optionalSubDict(
type() +
"Coeffs").getOrDefault<scalar>
118 dict.optionalSubDict(
type() +
"Coeffs").readIfPresent<scalar>
130 if (turbulenceModel_.mesh().changing())
int debug
Static debugging option.
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))
Ostream & endl(Ostream &os)
Add newline and flush stream.
Set of directions for each cell in the mesh. Either uniform and size=1 or one set of directions per c...
Simple cube-root of cell volume delta used in LES models.
const turbulenceModel & turbulenceModel_
word name(const complex &c)
Return string representation of complex.
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.
Mesh data needed to do the Finite Volume discretisation.
virtual void read(const dictionary &)
Read the LESdelta dictionary.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Internal::FieldType & primitiveFieldRef(const bool updateAccessTime=true)
Return a reference to the internal field.
void correctBoundaryConditions()
Correct boundary field.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Abstract base class for LES deltas.
defineTypeNameAndDebug(cubeRootVolDelta, 0)
void calcDelta()
Calculate the delta values.
dimensionedScalar sqrt(const dimensionedScalar &ds)
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)
dimensionedScalar cbrt(const dimensionedScalar &ds)
#define WarningInFunction
Report a warning using Foam::Warning.