42 fixedTemperatureConstraint,
48 const char* NamedEnum<fv::fixedTemperatureConstraint::temperatureMode, 2>::
62 Foam::fv::fixedTemperatureConstraint::fixedTemperatureConstraint
65 const word& modelType,
71 mode_(temperatureModeNames_.read(coeffs_.lookup(
"mode"))),
87 TName_ = coeffs_.lookupOrDefault<
word>(
"TName",
"T");
103 fieldNames_.setSize(1, thermo.
he().
name());
105 applied_.setSize(1,
false);
125 scalarField Tuni(cells_.size(), Tuniform_->value(t));
126 eqn.
setValues(cells_, thermo.
he(thermo.
p(), Tuni, cells_));
136 eqn.
setValues(cells_, thermo.
he(thermo.
p(), Tlkp, cells_));
152 if (coeffs_.found(Tuniform_->name()))
160 coeffs_.readIfPresent(
"TName", TName_);
defineTypeNameAndDebug(cellSetOption, 0)
Cell-set options abtract base class. Provides a base set of controls, e.g.
Mesh data needed to do the Finite Volume discretisation.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
virtual bool read(const dictionary &dict)
Read source dictionary.
Abstract base-class for fluid and solid thermodynamic properties.
A class for handling words, derived from string.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
virtual volScalarField & p()
Pressure [Pa].
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.
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual bool read(const dictionary &dict)
Read dictionary.
addToRunTimeSelectionTable(option, fixedTemperatureConstraint, dictionary)
virtual void constrain(fvMatrix< scalar > &eqn, const label fieldI)
Constrain energy equation to fix the temperature.
Macros for easy insertion into run-time selection tables.
const word & name() const
Return name.
Initialise the NamedEnum HashTable from the static list of names.
const Time & time() const
Return time.
const word dictName() const
Return the local dictionary name (final part of scoped name)
static const NamedEnum< temperatureMode, 2 > temperatureModeNames_
String representation of temperatureMode enums.
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
void setValues(const labelUList &cells, const UList< Type > &values)
Set solution in given cells to the specified values.
const Type & value() const
Return const reference to value.
A special matrix type and solver, designed for finite volume solutions of scalar equations.
virtual volScalarField & he()=0
Enthalpy/Internal energy [J/kg].