44 void Foam::LESModels::IDDESDelta::calcDelta()
47 const fvMesh& mesh = turbulenceModel_.
mesh();
52 tmp<volScalarField> tfaceToFacenMax
59 mesh.time().timeName(),
69 scalarField& faceToFacenMax = tfaceToFacenMax.ref().primitiveFieldRef();
71 const cellList& cells = mesh.cells();
72 const vectorField& faceCentres = mesh.faceCentres();
76 scalar maxDelta = 0.0;
78 const vector nci = n[celli];
82 label facei = cFaces[cFacei];
83 const point& fci = faceCentres[facei];
87 label facej = cFaces[cFacej];
88 const point& fcj = faceCentres[facej];
89 scalar ndfc = nci & (fcj - fci);
98 faceToFacenMax[celli] = maxDelta;
102 label nD = mesh.nGeometricD();
107 <<
"Case is 2D, LES is not strictly applicable" <<
nl 116 delta_.primitiveFieldRef() =
135 Foam::LESModels::IDDESDelta::IDDESDelta
176 if (turbulenceModel_.mesh().changing())
static word group(const word &name)
Return group (extension part of name)
#define forAll(list, i)
Loop across all elements in list.
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)
const volVectorField & n() const
Return reference to cached normal-to-wall field.
const volVectorField & U() const
Access function to velocity field.
A list of keyword definitions, which are a keyword followed by any number of values (e...
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Abstract base class for LES deltas.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Vector< scalar > vector
A scalar version of the templated Vector.
void read(const dictionary &)
Read the LESdelta dictionary.
GeometricField< vector, fvPatchField, volMesh > volVectorField
Abstract base class for turbulence models (RAS, LES and laminar).
Macros for easy insertion into run-time selection tables.
static const wallDist & New(const fvMesh &mesh)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
const dictionary & optionalSubDict(const word &) const
Find and return a sub-dictionary if found.
A class for handling words, derived from string.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
static word groupName(Name name, const word &group)
bool readIfPresent(const word &, T &, bool recursive=false, bool patternMatch=true) const
Find an entry if present, and assign to T.
List< label > labelList
A List of labels.
const Mesh & mesh() const
Return mesh.
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
fileName::Type type(const fileName &, const bool followLink=true)
Return the file type: DIRECTORY or FILE.
defineTypeNameAndDebug(cubeRootVolDelta, 0)
vector point
Point is a vector.
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.
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
Field< vector > vectorField
Specialisation of Field<T> for vector.
List< cell > cellList
list of cells