modelPartialHexElement
Extends from Buildings.Fluid.Interfaces.FourPortHeatMassExchanger.
Information
Element of a heat exchanger with dynamics of the fluids and the solid. The hA value for both fluids is an input. The driving force for the heat transfer is the temperature difference between the fluid volumes and the solid.
The heat capacity C of the metal is assigned as follows. Suppose the metal temperature is governed by
C dT ⁄ dt = (hA)1 (T1 - T) + (hA)2 (T2 - T)
where hA are the convective heat transfer coefficients times heat transfer area that also take into account heat conduction in the heat exchanger fins and T1 and T2 are the medium temperatures. Assuming (hA)1=(hA)2, this equation can be rewritten as
C dT ⁄ dt = 2 (UA)0 ( (T1 - T) + (T2 - T) )
where (UA)0 is the UA value at nominal conditions. Hence we set the heat capacity of the metal to
C = 2 (UA)0 τm
where τm is the time constant that the metal of the heat exchanger has if the metal is approximated by a lumped thermal mass.
Note: This model is introduced to allow the instances
Buildings.Fluid.HeatExchangers.BaseClasses.HexElementLatent
and
Buildings.Fluid.HeatExchangers.BaseClasses.HexElementSensible
to redeclare the volume as final, thereby avoiding
that a GUI displays the volume as a replaceable component.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.HeatCapacity | C | 2*UA_nominal*tau_m | Heat capacity of metal (= cp*m) |
| Advanced | |||
| Boolean | initialize_p1 | not Medium1.singleState | Set to true to initialize the pressure of volume 1 |
| Boolean | initialize_p2 | not Medium2.singleState | Set to true to initialize the pressure of volume 2 |
| Nominal condition | |||
| Modelica.Units.SI.ThermalConductance | UA_nominal | Thermal conductance at nominal flow, used to compute time constant | |
| General › Nominal condition | |||
| Modelica.Units.SI.Time | tau_m | 60 | Time constant of metal at nominal UA value |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput | Gc_1 | Signal representing the convective thermal conductance medium 1 in [W/K] | |
| Modelica.Blocks.Interfaces.RealInput | Gc_2 | Signal representing the convective thermal conductance medium 2 in [W/K] | |
| Modelica.Thermal.HeatTransfer.Components.HeatCapacitor | mas | Mass of metal | |
| Modelica.Thermal.HeatTransfer.Components.Convection | con1 | Convection (and conduction) on fluid side 1 | |
| Modelica.Thermal.HeatTransfer.Components.Convection | con2 | Convection (and conduction) on fluid side 2 | |
| Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_a | heaPor1 | Heat port for heat exchange with the control volume 1 | |
| Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_a | heaPor2 | Heat port for heat exchange with the control volume 2 |
Revisions
-
October 19, 2017, by Michael Wetter:
Changed initialization of pressure from aconstantto aparameter.
This is for Buildings, issue 1013. -
July 17, 2015, by Michael Wetter:
AddedprescribedHeatFlowRate=falsefor both volumes. This is for issue 282 of the Annex 60 library. -
February 5, 2015, by Michael Wetter:
Changedinitalize_pfrom aparameterto aconstant. This is only required in finite volume models of heat exchangers (to avoid consistent but redundant initial conditions) and hence it should be set as aconstant. -
July 3, 2014, by Michael Wetter:
Added parametersinitialize_p1andinitialize_p2. This is required to enable the coil models to initialize the pressure in the first volume, but not in the downstream volumes. Otherwise, the initial equations will be overdetermined, but consistent. This change was done to avoid a long information message that appears when translating models. -
July 2, 2014, by Michael Wetter:
Conditionally removed the mass of the metallmas. -
June 26, 2014, by Michael Wetter:
Removed parametersenergyDynamics1andenergyDynamics2, and used instead of these two parametersenergyDynamics. This was done as this complexity is not required. -
September 11, 2013, by Michael Wetter:
Separated old model into one for dry and for wet heat exchangers. This was done to make the coil compatible with OpenModelica. -
May 1, 2013, by Michael Wetter:
Changed the redeclaration ofvol2to be replaceable, asvol2is replaced in some models. -
April 19, 2013, by Michael Wetter:
Made instanceMassExchangereplaceable, rather than conditionally removing the model, to avoid a warning during translation because of unused connector variables. -
July 11, 2011, by Michael Wetter:
Removed assignment of medium invol1andvol2, since this assignment is already done in the base class using thefinalmodifier. -
August 12, 2008, by Michael Wetter:
Introduced option to compute each medium using a steady state model or a dynamic model. -
March 25, 2008, by Michael Wetter:
First implementation.