68 else if (rhoName_ !=
"none")
75 <<
"Neither rhoName nor rho are specified."
86 const word& sourceName,
87 const word& modelType,
93 UName_(coeffs_.getOrDefault<
word>(
"U",
"U")),
94 rhoName_(coeffs_.getOrDefault<
word>(
"rho",
"none")),
104 const auto* thermoPtr =
130Foam::fv::viscousDissipation::devRhoReff()
const
134 const auto* turbPtr =
148 const auto* turbPtr =
156 return tmp<volSymmTensorField>(turbPtr->devRhoReff());
161 <<
" The turbulence model is not found in the database."
178 const word gradUName(
"grad(" + UName_ +
')');
185 mesh_.time().timeName(),
195 const auto* gradUPtr = mesh_.findObject<GradFieldType>(gradUName);
199 tgradU.ref() = *gradUPtr;
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
Internal & ref(const bool updateAccessTime=true)
Return a reference to the dimensioned internal field.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Templated abstract base class for single-phase incompressible turbulence models.
void resize(const label len)
Adjust allocated size of list.
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
static word timeName(const scalar t, const int precision=precision_)
bool empty() const noexcept
True if the UList is empty (ie, size() is zero)
void size(const label n)
Older name for setAddressableSize.
Abstract base-class for fluid and solid thermodynamic properties.
static const word dictName
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
bool readEntry(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX, bool mandatory=true) const
const Type & value() const
Return const reference to value.
A special matrix type and solver, designed for finite volume solutions of scalar equations....
Mesh data needed to do the Finite Volume discretisation.
const Time & time() const
Return the top-level database.
Base abstract class for handling finite volume options (i.e. fvOption).
const fvMesh & mesh_
Reference to the mesh database.
wordList fieldNames_
Field names to apply source to - populated by derived models.
dictionary coeffs_
Dictionary containing source coefficients.
void resetApplied()
Resize/reset applied flag list for all fieldNames_ entries.
Applies a viscous dissipation energy source to the energy equation.
virtual void addSup(const volScalarField &rho, fvMatrix< scalar > &eqn, const label fieldi)
Add explicit contribution to compressible energy equation.
const Type * findObject(const word &name, const bool recursive=false) const
Return const pointer to the object of the given Type.
const Type & lookupObject(const word &name, const bool recursive=false) const
A class for managing temporary objects.
static const word propertiesName
Default name of the turbulence properties dictionary.
type
Volume classification types.
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.
A special matrix type and solver, designed for finite volume solutions of scalar equations.
ThermalDiffusivity< CompressibleTurbulenceModel< fluidThermo > > turbulenceModel
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh > > grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
static constexpr const zero Zero
Global zero (0)
dimensionedSphericalTensor inv(const dimensionedSphericalTensor &dt)
const dimensionSet dimDensity
errorManipArg< error, int > exit(error &err, const int errNo=1)
tmp< volScalarField > trho
const dimensionedScalar & D