Fixed temperature equation constraint. More...


Public Types | |
| enum | temperatureMode { uniform, lookup } |
| Temperature mode. More... | |
Public Member Functions | |
| TypeName ("fixedTemperatureConstraint") | |
| Runtime type information. More... | |
| fixedTemperatureConstraint (const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh) | |
| Construct from components. More... | |
| fixedTemperatureConstraint (const fixedTemperatureConstraint &)=delete | |
| Disallow default bitwise copy construction. More... | |
| virtual | ~fixedTemperatureConstraint () |
| Destructor. More... | |
| virtual wordList | constrainedFields () const |
| Return the list of fields constrained by the fvConstraint. More... | |
| virtual bool | constrain (fvMatrix< scalar > &eqn, const word &fieldName) const |
| Constrain energy equation to fix the temperature. More... | |
| virtual void | updateMesh (const mapPolyMesh &) |
| Update for mesh changes. More... | |
| virtual bool | read (const dictionary &dict) |
| Read dictionary. More... | |
| void | operator= (const fixedTemperatureConstraint &)=delete |
| Disallow default bitwise assignment. More... | |
Public Member Functions inherited from fvConstraint | |
| TypeName ("fvConstraint") | |
| Runtime type information. More... | |
| declareRunTimeSelectionTable (autoPtr, fvConstraint, dictionary,(const word &name, const word &constraintType, const dictionary &dict, const fvMesh &mesh),(name, constraintType, dict, mesh)) | |
| fvConstraint (const word &name, const word &constraintType, const dictionary &dict, const fvMesh &mesh) | |
| Construct from components. More... | |
| autoPtr< fvConstraint > | clone () const |
| Return clone. More... | |
| virtual | ~fvConstraint () |
| Destructor. More... | |
| const word & | name () const |
| Return const access to the source name. More... | |
| const fvMesh & | mesh () const |
| Return const access to the mesh database. More... | |
| const dictionary & | coeffs () const |
| Return dictionary. More... | |
| virtual bool | constrainsField (const word &fieldName) const |
| Return true if the given field is constrained. More... | |
| FOR_ALL_FIELD_TYPES (DEFINE_FV_CONSTRAINT_CONSTRAIN) | |
| Apply a constraint to an equation. More... | |
| FOR_ALL_FIELD_TYPES (DEFINE_FV_CONSTRAINT_CONSTRAIN_FIELD) | |
| Apply contraint to a field. More... | |
| virtual bool | movePoints () |
| Update for mesh motion. More... | |
Static Public Attributes | |
| static const NamedEnum< temperatureMode, 2 > | modeNames_ |
| String representation of mode enums. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from fvConstraint | |
| static autoPtr< fvConstraint > | New (const word &name, const dictionary &dict, const fvMesh &mesh) |
| Return a reference to the selected fvConstraint. More... | |
Fixed temperature equation constraint.
fixedTemperature
{
type fixedTemperatureConstraint;
selectionMode all;
phase gas; // Optional phase name
// Uniform temperature constraint
mode uniform;
temperature constant 500; // Uniform temperature
// // Looked-up field temperature constraint
// T T; // Temperature field name
}
Definition at line 76 of file fixedTemperatureConstraint.H.
|
strong |
Temperature mode.
| Enumerator | |
|---|---|
| uniform | |
| lookup | |
Definition at line 83 of file fixedTemperatureConstraint.H.
| fixedTemperatureConstraint | ( | const word & | name, |
| const word & | modelType, | ||
| const dictionary & | dict, | ||
| const fvMesh & | mesh | ||
| ) |
Construct from components.
Definition at line 90 of file fixedTemperatureConstraint.C.
|
delete |
Disallow default bitwise copy construction.
|
inlinevirtual |
Destructor.
Definition at line 141 of file fixedTemperatureConstraint.H.
References fixedTemperatureConstraint::constrain(), fixedTemperatureConstraint::constrainedFields(), dict, fixedTemperatureConstraint::operator=(), fixedTemperatureConstraint::read(), and fixedTemperatureConstraint::updateMesh().

| TypeName | ( | "fixedTemperatureConstraint" | ) |
Runtime type information.
|
virtual |
Return the list of fields constrained by the fvConstraint.
Reimplemented from fvConstraint.
Definition at line 110 of file fixedTemperatureConstraint.C.
References fixedTemperatureConstraint::constrain(), basicThermo::dictName, IOobject::groupName(), basicThermo::he(), mesh, IOobject::name(), and thermo.
Referenced by fixedTemperatureConstraint::~fixedTemperatureConstraint().


Constrain energy equation to fix the temperature.
Definition at line 123 of file fixedTemperatureConstraint.C.
References cells, basicThermo::dictName, IOobject::groupName(), basicThermo::he(), lookup(), mesh, fvMatrix< Type >::setValues(), List< T >::size(), Foam::T(), and thermo.
Referenced by fixedTemperatureConstraint::constrainedFields(), and fixedTemperatureConstraint::~fixedTemperatureConstraint().


|
virtual |
Update for mesh changes.
Reimplemented from fvConstraint.
Definition at line 159 of file fixedTemperatureConstraint.C.
Referenced by fixedTemperatureConstraint::~fixedTemperatureConstraint().

|
virtual |
Read dictionary.
Reimplemented from fvConstraint.
Definition at line 165 of file fixedTemperatureConstraint.C.
References fvConstraint::read().
Referenced by fixedTemperatureConstraint::~fixedTemperatureConstraint().


|
delete |
Disallow default bitwise assignment.
Referenced by fixedTemperatureConstraint::~fixedTemperatureConstraint().

|
static |
String representation of mode enums.
Definition at line 90 of file fixedTemperatureConstraint.H.