| Modelica.SIunits.Length | htot | 1 | Total height of the tank |
| Modelica.SIunits.Length | h1 | 0.3 | Height of the bottom of the heat exchanger |
| Modelica.SIunits.Length | h2 | 0.6 | Height of the top of the heat exchanger |
| Integer | N | 15 | Total number of cells |
| Integer | N1 | integer(h1*N/htot) | Cell corresponding to the bottom of the heat exchanger |
| Integer | N2 | integer(h2*N/htot) | Cell corresponding to the top of the heat exhcanger |
| Modelica.SIunits.Area | A_amb | 2 | Total heat exchange area from the tank to the ambient |
| Modelica.SIunits.Area | A_hx | 1 | Total heat exchanger area from in the heat exchanger |
| Modelica.SIunits.Volume | V_tank | 0.3 | Total capacity of the tank |
| Modelica.SIunits.Volume | V_hx | 0.005 | Internal volume of the heat exchanger |
| Modelica.SIunits.MassFlowRate | Mdot_nom | 0.1 | Nominal mass flow rate in the heat exchanger |
| Modelica.SIunits.CoefficientOfHeatTransfer | U_amb | 1 | Heat transfer coefficient between the tank and the ambient |
| Modelica.SIunits.CoefficientOfHeatTransfer | Unom_hx | 4000 | Nominal heat transfer coefficient in the heat exchanger |
| Modelica.SIunits.Mass | M_wall_hx | 5 | Mass of the metal wall between the two fluids |
| Modelica.SIunits.SpecificHeatCapacity | c_wall_hx | 500 | Specific heat capacity of metal wall |
| Initialization |
| Modelica.SIunits.Pressure | pstart_tank | 1E5 | Tank pressure start value |
| Modelica.SIunits.Temperature | Tstart_inlet_tank | 273.15 + 10 | Tank inlet temperature start value |
| Modelica.SIunits.Temperature | Tstart_outlet_tank | 273.15 + 60 | Tank outlet temperature start value |
| Modelica.SIunits.SpecificEnthalpy[N] | hstart_tank | linspace(MainFluid.specificEnthalpy_pT(pstart_tank, Tstart_inlet_tank), MainFluid.specificEnthalpy_pT(pstart_tank, Tstart_outlet_tank), N) | Start value of enthalpy vector (initialized by default) |
| Modelica.SIunits.Pressure | pstart_hx | 1E5 | Heat exchanger pressure start value |
| Modelica.SIunits.Temperature | Tstart_inlet_hx | 273.15 + 70 | Heat exchanger inlet temperature start value |
| Modelica.SIunits.Temperature | Tstart_outlet_hx | 273.15 + 50 | Heat exchanger outlet temperature start value |
| Boolean | steadystate_tank | true | if true, sets the derivative of h (working fluids enthalpy in each cell) to zero during Initialization |
| Boolean | steadystate_hx | true | if true, sets the derivative of h (working fluids enthalpy in each cell) to zero during Initialization |