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 =
130 Foam::fv::viscousDissipation::devRhoReff()
const 134 const auto* turbPtr =
142 return tmp<volSymmTensorField>(
rho()*turbPtr->devRhoReff());
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;
word dictName() const
The local dictionary name (final part of scoped name)
const Type & value() const noexcept
Return const reference to value.
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
void size(const label n)
Older name for setAddressableSize.
const Type & lookupObject(const word &name, const bool recursive=false) const
Lookup and return const reference to the object of the given Type. Fatal if not found or the wrong ty...
Abstract base-class for fluid and solid thermodynamic properties.
errorManipArg< error, int > exit(error &err, const int errNo=1)
wordList fieldNames_
Field names to apply source to - populated by derived models.
void resize(const label len)
Adjust allocated size of list.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
A list of keyword definitions, which are a keyword followed by a number of values (eg...
defineTypeNameAndDebug(atmAmbientTurbSource, 0)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const fvMesh & mesh_
Reference to the mesh database.
dimensionedSphericalTensor inv(const dimensionedSphericalTensor &dt)
bool empty() const noexcept
True if List is empty (ie, size() is zero)
ThermalDiffusivity< CompressibleTurbulenceModel< fluidThermo > > turbulenceModel
tmp< volScalarField > trho
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.
typeOfRank< typename pTraits< arg1 >::cmptType, direction(pTraits< arg1 >::rank)+direction(pTraits< arg2 >::rank) >::type type
IncompressibleTurbulenceModel< transportModel > turbulenceModel
Ignore writing from objectRegistry::writeObject()
const Time & time() const
Return the top-level database.
Macros for easy insertion into run-time selection tables.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
bool readEntry(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX, IOobjectOption::readOption readOpt=IOobjectOption::MUST_READ) const
Find entry and assign to T val. FatalIOError if it is found and the number of tokens is incorrect...
static const word propertiesName
Default name of the turbulence properties dictionary.
A class for handling words, derived from Foam::string.
static tmp< T > New(Args &&... args)
Construct tmp with forwarding arguments.
A special matrix type and solver, designed for finite volume solutions of scalar equations. Face addressing is used to make all matrix assembly and solution loops vectorise.
dimensioned< tensor > dimensionedTensor
Dimensioned tensor obtained from generic dimensioned type.
addToRunTimeSelectionTable(option, atmAmbientTurbSource, dictionary)
static word timeName(const scalar t, const int precision=precision_)
Return time name of given scalar time formatted with the given precision.
const dimensionSet dimDensity
Mesh data needed to do the Finite Volume discretisation.
void resetApplied()
Resize/reset applied flag list for all fieldNames_ entries.
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
A special matrix type and solver, designed for finite volume solutions of scalar equations.
Internal & ref(const bool updateAccessTime=true)
Same as internalFieldRef()
const dimensionedScalar & D
A class for managing temporary objects.
Defines the attributes of an object for which implicit objectRegistry management is supported...
dictionary coeffs_
Dictionary containing source coefficients.
viscousDissipation(const word &sourceName, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from explicit source name and mesh.
Base abstract class for handling finite volume options (i.e. fvOption).
static constexpr const zero Zero
Global zero (0)