modelHotWaterStorage_L2

Stratified hot water storage without spatial discretisation (based on analytic solution for output temperature at steady state)

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

Information

Purpose of model

Hot water storage without spatial discretisation (based on analytic solution for output temperature at steady state). Thermodynamic properties are calculated in dependence on the thermodynamic state with the fluid models of the TIL media. The model can be used to determine the average temperature of the heat storage in operation. Moreover, the heat losses of the storage are calculated.

Level of detail, physical effects considered, and physical insight

Level L2 (defined in the Coding Conventions)

  • consideration of heat losses
  • two static mass balances, the circuits of the heat generation and consumption are decoupled
  • static momentum balances for both circuits
  • assumption of a constant pressure loss
  • a simple dynamic energy balanced based on the stored energy

Interfaces

GenIn: inlet from heat generator

GenOut: outlet to heat generator

ConIn: inlet from heat consumer

ConOut: outlet to heat consumer

Q_flow_gen: output for the generated heat flow [W]

T_Stor: output for temperature in heat reservoir in K [K]

Governing Equations

Mass balances:

Generator: GenIn.m_flow + GenOut.m_flow =0

Consumer: ConIn.m_flow + ConOut.m_flow =0

Heat losses to environment: Q_flow_loss=k*A*(T_stor-T_amb)

Energy balance: dE_stor/dt=-Q_flow_gen-Q_flow_loss-Q_flow_con

Impulse balances:

GenIn.p - GenOut.p = dp (constant pressure loss)

ConIn.p - ConOut.p=dp (constant pressure loss)

Remarks for Usage

The circuits for generation and consumption are decoupled. Therefore, when using the storage model a pressure should be defined by the hydraulic grids in BOTH circuits. Look at the test model for an example how to connect the fluid ports.

Validation

The model was tested in the test model:

TransiEnt.Storage.Heat.HotWaterStorage_L2.Check.Check_HotWaterStorage_L2

Version History

Created by Inken Knop (inken.knop@tuhh.de), Jun 2015

Edited by Pascal Dubucq (dubucq@tuhh.de), Aug 2015

Revised by Lisa Andresen (andresen@tuhh.de), Dec 2016

Modified by Anne Senkel (anne.senkel@tuhh.de), Dec 2017

Parameters

TypeNameDefaultDescription
TILMedia.VLEFluidTypes.BaseVLEFluidMediumsimCenter.fluid1
Modelica.Units.SI.Pressuredp0.02e5Pressure drop on generator and consumer side
Modelica.Units.SI.TemperatureT_max383.15Maximum allowed temperature in Storage
Modelica.Units.SI.TemperatureT_start273.15 + 30Initial Temperature of heat storage
Modelica.Units.SI.TemperatureT_amb273.15 + 18Assumed constant ambient temperature
Modelica.Units.SI.Heightheight1.0Heigh of heat storage
Modelica.Units.SI.Diameterd_tank0.8Diameter of heat storage
Modelica.Units.SI.Diameterd_pipe_gen0.01Diameter of pipe from the generator side
Modelica.Units.SI.Lengthl_pipe_gen9length of pipe from the generator side in the storage tank for heat transfer
Modelica.Units.SI.Diameterd_pipe_con0.01Diameter of pipe from the consumer side
Modelica.Units.SI.Lengthl_pipe_con14.2length of pipe from the consumer side in the storage tank for heat transfer
Modelica.Units.SI.SurfaceCoefficientOfHeatTransferk0.08Coefficient of heat Transfer from storage to room
Modelica.Units.SI.ThermalConductivitylambda_pipe236thermal conductivity of aluminium pipe

Connectors

TypeNameDefaultDescription
TransiEnt.Basics.Interfaces.Thermal.FluidPortInGenIninlet from heat generator
TransiEnt.Basics.Interfaces.Thermal.FluidPortOutGenOutoutlet to heat generator
TransiEnt.Basics.Interfaces.Thermal.FluidPortInConIninlet from heat consumer
TransiEnt.Basics.Interfaces.Thermal.FluidPortOutConOutoutlet to heat consumer
TransiEnt.Basics.Interfaces.Thermal.HeatFlowRateOutQ_flow_genGenerated heat flow
TransiEnt.Basics.Interfaces.General.TemperatureOutT_StorTemperature in heat reservoir in K

Components

TypeNameDefaultDescription
TransiEnt.SimCentersimCenter
Modelica.Units.SI.EnergyE_storStored Energy (with cp and density of the Storage medium
Modelica.Units.SI.HeatFlowRateQ_flow_conheat flow to heat consumer
Modelica.Units.SI.HeatFlowRateQ_flow_losssurface losses to the environment
Modelica.Units.SI.TemperatureT_storTemperature of the storage
Modelica.Units.SI.TemperatureT_genOut
Modelica.Units.SI.TemperatureT_conOut
Modelica.Units.SI.SpecificHeatCapacitycpCon
Modelica.Units.SI.SpecificHeatCapacitycpGen
RealRe_GenRe-number for tube flow
RealPr_GenPr-number
RealNu_GenNu-number Nu=0.021*Re^0.8*Pr^1/3
Modelica.Units.SI.Velocityv_Genflow velocity in the pipe
Modelica.Units.SI.DynamicViscosityeta_Gendynamic viscosity of the water
Modelica.Units.SI.CoefficientOfHeatTransferalpha_Gencoefficient of heat transfer from water to the pipe with a turbulent tube flow
RealRe_ConRe-number for tube flow
RealPr_ConPr-number
RealNu_ConNu-number Nu=0.021*Re^0.8*Pr^1/3
Modelica.Units.SI.Velocityv_Conflow velocity in the pipe
Modelica.Units.SI.DynamicViscosityeta_Condynamic viscosity of the water
Modelica.Units.SI.CoefficientOfHeatTransferalpha_Concoefficient of heat transfer from water to the pipe with a turbulent tube flow
Modelica.Units.SI.ThermalConductivityk_pipe_gen
Modelica.Units.SI.ThermalConductivityk_pipe_con
Modelica.Units.SI.MassFlowRatem_flow_con
Modelica.Units.SI.SpecificEnthalpyh_outflow_con
Modelica.Units.SI.SpecificEnthalpyh_outflow_gen
TILMedia.Internals.VLEFluidConfigurations.FullyMixtureCompatible.VLEFluid_phGenIn_State
TILMedia.Internals.VLEFluidConfigurations.FullyMixtureCompatible.VLEFluid_phGenOut_State
TILMedia.Internals.VLEFluidConfigurations.FullyMixtureCompatible.VLEFluid_pTTank_Medium
TILMedia.Internals.VLEFluidConfigurations.FullyMixtureCompatible.VLEFluid_phConIn_State
TILMedia.Internals.VLEFluidConfigurations.FullyMixtureCompatible.VLEFluid_phConOut_State

Contents

NameDescription
alpha_for_Nu_lam_dprotected
Nu_for_Re_Prprotected
Re_for_v_nu_dprotected
Pr_for_lam_eta_cpprotected