Class which represents a phase for which the temperature remains constant. Returns an empty energy equation and updates the energy corresponding to pressure changes only when correctThermo is called. More...
Public Member Functions | |
IsothermalPhaseModel (const phaseSystem &fluid, const word &phaseName, const bool referencePhase, const label index) | |
virtual | ~IsothermalPhaseModel () |
Destructor. More... | |
virtual void | correctThermo () |
Correct the thermodynamics. More... | |
virtual bool | isothermal () const |
Return whether the phase is isothermal. More... | |
virtual tmp< scalarField > | kappaEff (const label patchi) const |
Return the effective thermal conductivity on a patch. More... | |
virtual tmp< fvScalarMatrix > | heEqn () |
Return the enthalpy equation. More... | |
Class which represents a phase for which the temperature remains constant. Returns an empty energy equation and updates the energy corresponding to pressure changes only when correctThermo is called.
Definition at line 51 of file IsothermalPhaseModel.H.
IsothermalPhaseModel | ( | const phaseSystem & | fluid, |
const word & | phaseName, | ||
const bool | referencePhase, | ||
const label | index | ||
) |
Definition at line 32 of file IsothermalPhaseModel.C.
|
virtual |
Destructor.
Definition at line 47 of file IsothermalPhaseModel.C.
|
virtual |
Correct the thermodynamics.
Definition at line 54 of file IsothermalPhaseModel.C.
References basicThermo::he(), Foam::name(), GeometricField< Type, PatchField, GeoMesh >::New(), p, GeometricField< Type, PatchField, GeoMesh >::T(), Foam::T(), and thermo.
|
virtual |
Return whether the phase is isothermal.
Definition at line 75 of file IsothermalPhaseModel.C.
|
virtual |
Return the effective thermal conductivity on a patch.
Definition at line 83 of file IsothermalPhaseModel.C.
References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), basicThermo::kappa(), NotImplemented, patchi, and thermo.
|
virtual |
Return the enthalpy equation.
Definition at line 92 of file IsothermalPhaseModel.C.
References Foam::exit(), Foam::FatalError, and FatalErrorInFunction.