43 void Foam::LESModels::cubeRootVolDelta::calcDelta()
45 const fvMesh& mesh = momentumTransportModel_.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" 121 if (momentumTransportModel_.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)
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.
addToRunTimeSelectionTable(LESdelta, cubeRootVolDelta, dictionary)
dimensionedScalar sqrt(const dimensionedScalar &ds)
Ostream & endl(Ostream &os)
Add newline and flush stream.
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.
defineTypeNameAndDebug(cubeRootVolDelta, 0)
Abstract base class for turbulence models (RAS, LES and laminar).
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.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
cubeRootVolDelta(const word &name, const momentumTransportModel &turbulence, const dictionary &)
Construct from name, momentumTransportModel and dictionary.