43 void Foam::LESModels::cubeRootVolDelta::calcDelta()
56 <<
"Case is 2D, LES is not strictly applicable\n"
61 scalar thickness = 0.0;
62 for (
direction dir=0; dir<directions.nComponents; dir++)
64 if (directions[dir] == -1)
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_
vector span() const
The bounding box span (from minimum to maximum)
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
const DimensionedField< scalar, volMesh > & V() const
Return cell volumes.
Abstract base class for turbulence models (RAS, LES and laminar).
const fvMesh & mesh() const
label nGeometricD() const
Return the number of valid geometric dimensions in the mesh.
const boundBox & bounds() const
Return mesh bounding box.
const Vector< label > & geometricD() const
Return the vector of geometric directions in mesh.
A class for handling words, derived from string.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
#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.
void pow(LagrangianPatchField< typename powProduct< Type, r >::type > &f, const LagrangianPatchField< Type > &f1)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
void sqrt(LagrangianPatchField< scalar > &f, const LagrangianPatchField< scalar > &f1)
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))