43 void Foam::LESModels::cubeRootVolDelta::calcDelta()
47 label nD = mesh.nGeometricD();
56 <<
"Case is 2D, LES is not strictly applicable\n"
59 const Vector<label>& directions = mesh.geometricD();
61 scalar thickness = 0.0;
62 for (
direction dir=0; dir<directions.nComponents; dir++)
64 if (directions[dir] == -1)
66 thickness = mesh.bounds().span()[dir];
76 <<
"Case is not 3D or 2D, LES is not applicable"
94 dict.optionalSubDict(
type() +
"Coeffs").lookupOrDefault<scalar>
109 dict.optionalSubDict(
type() +
"Coeffs").readIfPresent<scalar>
121 if (momentumTransportModel_.mesh().changing())
Macros for easy insertion into run-time selection tables.
Internal::FieldType & primitiveFieldRef()
Return a reference to the primitive field.
Simple cube-root of cell volume delta used in LES SGS models.
virtual void read(const dictionary &)
Read the LESdelta dictionary.
cubeRootVolDelta(const word &name, const momentumTransportModel &turbulence, const dictionary &)
Construct from name, momentumTransportModel and dictionary.
Abstract base class for LES deltas.
const momentumTransportModel & momentumTransportModel_
A list of keyword definitions, which are a keyword followed by any number of values (e....
Abstract base class for turbulence models (RAS, LES and laminar).
const fvMesh & mesh() const
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
#define WarningInFunction
Report a warning using Foam::Warning.
defineTypeNameAndDebug(cubeRootVolDelta, 0)
addToRunTimeSelectionTable(LESdelta, cubeRootVolDelta, dictionary)
errorManipArg< error, int > exit(error &err, const int errNo=1)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const bool)
Return a word representation of a bool.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
dimensionedScalar sqrt(const dimensionedScalar &ds)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
autoPtr< incompressible::momentumTransportModel > turbulence(incompressible::momentumTransportModel::New(U, phi, viscosity))