modelElectricWaterHeater_constProp_L4

Temperature and Heat flow rate based model of a stratified thermal storage with finite volume discretisation (1=top, n=bottom) no thermodynamic property computation

Extends from TransiEnt.Basics.Icons.Model (Icon for models), TransiEnt.Basics.Icons.ThermalStorageBasic (Icon for thermal storage model).

Information

1. Purpose of model

Hot water storage with spatial discretisation. Thermodynamic properties are not calculated in dependance of the temperature.

2. Level of detail, physical effects considered, and physical insight

(Purely technical component without physical modeling.)

3. Limits of validity

(Purely technical component without physical modeling.)

4. Interfaces

m_flow: output for mass flow rate in [kg/s]( drawn water is assumed to be replaced by cold water)

Tamb_input: input for ambient in temperature in [K]

u[N_heaters]: BooleanInput (control input for heating element 1)

epp: active power port

5. Nomenclature

(no elements)

6. Governing Equations

(no equations)

7. Remarks for Usage

(no remarks)

8. Validation

(no remarks)

9. References

(no remarks)

10. Version History

Parameters

TypeNameDefaultDescription
SI.Lengthdxh/n
Realak/(rho*c)
SI.Massm_im/n
SI.MassFlowRatem_flow_cfm_i/d*v_cf
Integeri_minturb_1min(i_heatingZone_1)
Integeri_minturb_2min(i_heatingZone_2)
Geometry
SI.AreaA_top0.3top tank area
SI.AreaA_bottomA_topbottom tank area
SI.AreaA_wall0.0097outside tank area
SI.Lengthd0.01diameter of tank
SI.Lengthh1height of tank
Heating Units
IntegerN_heaters2
SI.PowerP_04.5e3
SI.Efficiencyeta1
Integer[N_heaters]i_heater{integer(floor(0.2*n)), n - 1}Index of control volume containing heater (1=bottom, n=top)
IntegerN_mix3Number of control volumes around heater position directly affected by the heater
Integer[N_mix]i_heatingZone_1integer(linspace(i_heater[1] - N_mix/2 + 1, i_heater[1] + N_mix/2, N_mix))
Integer[N_mix]i_heatingZone_2integer(linspace(i_heater[2] - N_mix/2 + 1, i_heater[2] + N_mix/2, N_mix))
Thermodynamics
SI.Massm300mass inside tank
SI.Temperature[n]T_startlinspace(273.15 + 40, 273.15 + 60, n)Temperatures at initalization
SI.TemperatureTamb273.15 + 20Constant ambient temperature, if isTambConst=true
SI.TemperatureT_inflow273.15 + 35Temperature of water inflow
SI.TemperatureT_max273.15 + 95Maximum temperature used for computation of SOC
SI.ThermalConductivityk0.6Thermal conductivity of fluid in storage
SI.Densityrho1e3Density of fluid in storage
SI.SpecificHeatCapacityc4.185e3Heat capacity of fluid in storage
Modelica.Units.SI.CoefficientOfHeatTransferU0.5Coefficient of heat transfer to ambient (side, top and bottom walls)
SI.Velocityv_cf0.05Empiric parameter for modeling of turbulence induced by internal heaters
Numerical parameters
Integern100Number of control volumes
BooleanisTambConstfalseFalse, Ambient temperature through input connector

Connectors

TypeNameDefaultDescription
TransiEnt.Basics.Interfaces.General.MassFlowRateInm_flowDrawn water is assumed to be replaced by cold water
TransiEnt.Basics.Interfaces.General.TemperatureInTamb_inputInput for ambient temperature in [K]
Modelica.Blocks.Interfaces.BooleanInput[N_heaters]ucontrol input for heating element n
TransiEnt.Basics.Interfaces.Electrical.ActivePowerPortepp

Components

TypeNameDefaultDescription
SI.Temperature[n]T
SI.TemperatureSlope[n]dTdt_diff
SI.TemperatureSlope[n]dTdt_plug
SI.TemperatureSlope[n]dTdt_loss
SI.TemperatureSlope[n]dTdt_heater
SI.TemperatureSlope[n]dTdt_turb
SI.EnergyE_storm*c*(sum(T)/n - T_inflow)
RealSOCE_stor/(m*c*(T_max - T_inflow))
SI.TemperatureT_meansum(T)/n
SI.TemperatureT_outflowT[n]
SI.HeatFlowRateQ_flow_outm_flow*c*(T_inflow - T_outflow)
SI.HeatFlowRateQ_heater_1if u[1] then P_0*eta else 0
SI.HeatFlowRateQ_heater_2if u[2] then P_0*eta else 0
SI.PowerP_el_heater_1if u[1] then P_0 else 0
SI.PowerP_el_heater_2if u[2] then P_0 else 0
SI.HeatFlowRateQ_heaterQ_heater_1 + Q_heater_2