43 void Foam::LESModels::cubeRootVolDelta::calcDelta()
45 const fvMesh& mesh = turbulenceModel_.mesh();
47 label nD = mesh.nGeometricD();
51 delta_.primitiveFieldRef() = deltaCoeff_*
pow(mesh.V(), 1.0/3.0);
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];
71 delta_.primitiveFieldRef() = deltaCoeff_*
sqrt(mesh.V()/thickness);
76 <<
"Case is not 3D or 2D, LES is not applicable" 84 Foam::LESModels::cubeRootVolDelta::cubeRootVolDelta
121 if (turbulenceModel_.mesh().changing())
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
errorManipArg< error, int > exit(error &err, const int errNo=1)
addToRunTimeSelectionTable(LESfluidThermoCompressibleTurbulenceModel, SmagorinskyLESfluidThermoCompressibleTurbulenceModel, dictionary)
virtual void read(const dictionary &)
Read the LESdelta dictionary.
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Abstract base class for LES deltas.
dimensionedScalar sqrt(const dimensionedScalar &ds)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Abstract base class for turbulence models (RAS, LES and laminar).
Macros for easy insertion into run-time selection tables.
const dictionary & optionalSubDict(const word &) const
Find and return a sub-dictionary if found.
A class for handling words, derived from string.
bool readIfPresent(const word &, T &, bool recursive=false, bool patternMatch=true) const
Find an entry if present, and assign to T.
fileName::Type type(const fileName &, const bool followLink=true)
Return the file type: DIRECTORY or FILE.
defineTypeNameAndDebug(cubeRootVolDelta, 0)
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
#define WarningInFunction
Report a warning using Foam::Warning.