60 scalar deltaMaxTmp = 0.0;
62 const point& cc = cellC[celli];
66 label facei = cFaces[cFacei];
67 const point& fc = faceC[facei];
70 scalar
tmp =
mag(
n & (fc - cc));
71 if (
tmp > deltaMaxTmp)
77 hmax[celli] = deltaCoeff_*deltaMaxTmp;
87 <<
"Case is 2D, LES is not strictly applicable" <<
nl
95 <<
"Case is not 3D or 2D, LES is not applicable"
116 dict.optionalSubDict(
type() +
"Coeffs").getOrDefault<scalar>
141 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.
void correctBoundaryConditions()
Correct boundary field.
void calcDelta()
Calculate the delta values.
Abstract base class for LES deltas.
const turbulenceModel & turbulenceModel_
virtual bool read()
Re-read model coefficients if they have changed.
void size(const label n)
Older name for setAddressableSize.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
bool readIfPresent(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX) const
Mesh data needed to do the Finite Volume discretisation.
label nGeometricD() const
Return the number of valid geometric dimensions in the mesh.
const vectorField & faceCentres() const
const vectorField & cellCentres() const
const vectorField & faceAreas() const
const cellList & cells() const
A class for managing temporary objects.
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.
compressible::turbulenceModel & turbulence
#define WarningInFunction
Report a warning using Foam::Warning.
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.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a)
#define forAll(list, i)
Loop across all elements in list.