50 label nD =
mesh.nGeometricD();
59 <<
"Case is 2D, LES is not strictly applicable\n"
62 const Vector<label>& directions =
mesh.geometricD();
64 scalar thickness = 0.0;
65 for (
direction dir=0; dir<directions.nComponents; dir++)
67 if (directions[dir] == -1)
69 thickness =
mesh.bounds().span()[dir];
81 <<
"Case is not 3D or 2D, LES is not applicable"
87 delta_.correctBoundaryConditions();
93Foam::LESModels::cubeRootVolDelta::cubeRootVolDelta
103 dict.optionalSubDict(
type() +
"Coeffs").getOrDefault<scalar>
118 dict.optionalSubDict(
type() +
"Coeffs").readIfPresent<scalar>
130 if (turbulenceModel_.mesh().changing())
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
Internal::FieldType & primitiveFieldRef(const bool updateAccessTime=true)
Return a reference to the internal field values.
void calcDelta()
Calculate the delta values.
virtual void read(const dictionary &)
Read the LESdelta dictionary.
Abstract base class for LES deltas.
LESdelta(const LESdelta &)=delete
No copy construct.
const turbulenceModel & turbulence() const
Return turbulenceModel reference.
const turbulenceModel & turbulenceModel_
Templated 3D Vector derived from VectorSpace adding construction from 3 components,...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Set of directions for each cell in the mesh. Either uniform and size=1 or one set of directions per c...
Mesh data needed to do the Finite Volume discretisation.
Abstract base class for turbulence models (RAS, LES and laminar).
const fvMesh & mesh() const
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
#define WarningInFunction
Report a warning using Foam::Warning.
Namespace for LES SGS models.
Namespace for handling debugging switches.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
Ostream & endl(Ostream &os)
Add newline and flush stream.
dimensionedScalar sqrt(const dimensionedScalar &ds)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
dimensionedScalar cbrt(const dimensionedScalar &ds)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
errorManipArg< error, int > exit(error &err, const int errNo=1)