Go to the documentation of this file.
45 fixedTemperatureConstraint,
57 { temperatureMode::tmUniform,
"uniform" },
58 { temperatureMode::tmLookup,
"lookup" },
67 const word& modelType,
73 mode_(temperatureModeNames_.get(
"mode", coeffs_)),
89 TName_ = coeffs_.getOrDefault<
word>(
"T",
"T");
104 fieldNames_.resize(1,
thermo.he().name());
106 fv::option::resetApplied();
125 scalarField Tuni(cells_.size(), Tuniform_->value(t));
Enum is a wrapper around a list of names/values that represent particular enumeration (or int) values...
static const Enum< temperatureMode > temperatureModeNames_
String representation of temperatureMode enums.
A class for handling words, derived from Foam::string.
Intermediate abstract class for handling cell-set options for the derived fvOptions.
bool found(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Search for an entry (const access) with the given keyword.
const word dictName("faMeshDefinition")
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
Abstract base-class for fluid and solid thermodynamic properties.
const Type & value() const
Return const reference to value.
const Time & time() const
Return Time associated with the objectRegistry.
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
const fvMesh & mesh_
Reference to the mesh database.
A special matrix type and solver, designed for finite volume solutions of scalar equations.
dictionary coeffs_
Dictionary containing source coefficients.
virtual bool read(const dictionary &dict)
Read source dictionary.
virtual bool read(const dictionary &dict)
Read dictionary.
fixedTemperatureConstraint(const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from components.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Macros for easy insertion into run-time selection tables.
Mesh data needed to do the Finite Volume discretisation.
void setValues(const labelUList &cellLabels, const Type &value)
word TName_
Temperature field name.
autoPtr< Function1< scalar > > Tuniform_
Uniform temperature [K].
A special matrix type and solver, designed for finite volume solutions of scalar equations....
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
defineTypeNameAndDebug(atmAmbientTurbSource, 0)
addToRunTimeSelectionTable(option, atmAmbientTurbSource, dictionary)
virtual void constrain(fvMatrix< scalar > &eqn, const label fieldi)
Constrain energy equation to fix the temperature.
temperatureMode
Temperature mode.
bool readIfPresent(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX) const