42 fixedTemperatureConstraint,
48 const char* NamedEnum<fv::fixedTemperatureConstraint::temperatureMode, 2>::
62 void Foam::fv::fixedTemperatureConstraint::readCoeffs()
64 mode_ = modeNames_.read(coeffs().
lookup(
"mode"));
68 case temperatureMode::uniform:
78 TName_ = coeffs().lookupOrDefault<word>(
"T",
"T");
83 phaseName_ = coeffs().lookupOrDefault<word>(
"phase",
word::null);
86 coeffs().found(
"fraction")
88 : autoPtr<Function1<scalar>>();
97 const word& modelType,
103 set_(coeffs(), mesh),
104 mode_(temperatureMode::uniform),
130 const word& fieldName
141 const scalar t =
mesh().time().userTimeValue();
145 case temperatureMode::uniform:
150 if (fraction_.valid())
173 if (fraction_.valid())
207 set_.topoChange(map);
222 set_.distribute(map);
virtual bool movePoints()
Update for mesh motion.
virtual bool read(const dictionary &dict)
Read dictionary.
defineTypeNameAndDebug(fixedTemperatureConstraint, 0)
Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of me...
const word & name() const
Return name.
fluidReactionThermo & thermo
Base-class for fluid and solid thermodynamic properties.
A list of keyword definitions, which are a keyword followed by any number of values (e...
static const NamedEnum< temperatureMode, 2 > modeNames_
String representation of mode enums.
fixedTemperatureConstraint(const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from components.
void size(const label)
Override size to be inconsistent with allocated storage.
virtual bool constrain(fvMatrix< scalar > &eqn, const word &fieldName) const
Constrain energy equation to fix the temperature.
Initialise the NamedEnum HashTable from the static list of names.
Macros for easy insertion into run-time selection tables.
virtual volScalarField & he()=0
Enthalpy/Internal energy [J/kg].
stressControl lookup("compactNormalStress") >> compactNormalStress
virtual void distribute(const polyDistributionMap &)
Redistribute or update using the given distribution map.
A class for handling words, derived from string.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
virtual void mapMesh(const polyMeshMap &)
Update from another mesh using the given map.
static word groupName(Name name, const word &group)
List< scalar > scalarList
A List of scalars.
virtual void topoChange(const polyTopoChangeMap &)
Update topology using the given map.
static const word null
An empty word.
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.
virtual wordList constrainedFields() const
Return the list of fields constrained by the fvConstraint.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
addToRunTimeSelectionTable(fvConstraint, fixedTemperatureConstraint, dictionary)
void setValues(const labelUList &cells, const ListType< Type > &values)
Set solution in given cells to the specified values.
List< word > wordList
A List of words.
Mesh data needed to do the Finite Volume discretisation.
A special matrix type and solver, designed for finite volume solutions of scalar equations.
virtual bool read(const dictionary &dict)
Read source dictionary.
Class containing mesh-to-mesh mapping information.
Finite volume options abstract base class.
static autoPtr< Function1< scalar > > New(const word &name, const dictionary &dict)
Selector.