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