modelHeatPumpGasCharline

Gas heat pump model that produces a given heat flow via fluid ports with a charline
Diagram of HeatPumpGasCharline

Extends from TransiEnt.Producer.Electrical.Base.PartialNaturalGasUnit (Adds a gas interface with a mass flow defining boundary to child components), TransiEnt.Producer.Heat.Base.PartialHeatPumpCharline (Partial heat pump model that produces a given heat flow with a charline).

Information

1. Purpose of model

Base class for simple heat pump models that produce a given heat flow via fluid ports and use a charline.

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

Changing ambient temperature can be considered as well as varying COP depending on the temperature difference between waterPortOut and source. The charline is linearly scalable with COP_n and Q_flow_n is used for the cost calculation. Different heat flow boundaries, in which the heat flow is transfered to the water, can

be chosen.

3. Limits of validity

(Purely technical component without physical modeling.)

4. Interfaces

Q_flow_set: set value for the heat flow

T_source_input_K: source temperature (ambient temperature) in K

waterPortIn: inlet port for heating water

waterPortOut: outlet port for heating water

H_flow: needed gas enthalpy flow

gasIn: gas port

5. Nomenclature

(no elements)

6. Governing Equations

Temperature difference for charline = waterPortOut temperature - source temperature

COP=COP_n*1/1.37726*(4e-5*DeltaT^2-0.0111*DeltaT+1.7) [1]

7. Remarks for Usage

(none)

8. Validation

(no validation or testing necessary)

9. References

[1] A. Palzer, Sektorübergreifende Modellierung und Optimierung eines zukünftigen deutschen Energiesystems unter Berücksichtigung von Energieeffizienzmaßnahmen im Gebäudesektor. Stuttgart: Fraunhofer Verlag, 2016.

10. Version History

Model created by Carsten Bode (c.bode@tuhh.de), Feb 2018

Model modified by Jan Westphal (j.westphal@tuhh.de), Jul 2019 (added boolean for using heat port insead of fluid ports)

Parameters

TypeNameDefaultDescription
Fundamental Definitions
TILMedia.VLEFluidTypes.BaseVLEFluidmediumGas (from PartialNaturalGasUnit)simCenter.gasModel1
Booleanuse_Q_flow_input (from PartialHeatPumpCharline)truetrue for Q_flow input, false for P_el input
Booleanuse_T_source_input_K (from PartialHeatPumpCharline)falseFalse, use outer ambient conditions
TILMedia.VLEFluidTypes.BaseVLEFluidmediumWater (from PartialHeatPumpCharline)simCenter.fluid1Medium to be used
SI.Pressurep_drop (from PartialHeatPumpCharline)heatFlowBoundary.simCenter.p_nom[2] - heatFlowBoundary.simCenter.p_nom[1]
Configuration
BooleanuseGasPort (from PartialNaturalGasUnit)trueTrue if gas port shall be used
Physical Constraints
BooleanuseSecondGasPort (from PartialNaturalGasUnit)false
Technical Specifications
SI.HeatFlowRateQ_flow_n (from PartialHeatPumpCharline)3.5e3Nominal heat flow of heat pump at nominal conditions according to EN14511
RealCOP_n (from PartialHeatPumpCharline)3.7Coefficient of performance at nominal conditions A2/W35 according to EN14511
BooleanuseFluidPorts (from PartialHeatPumpCharline)trueTrue if fluid ports shall be used

Connectors

TypeNameDefaultDescription
TransiEnt.Basics.Interfaces.Gas.RealGasPortIngasPortIn (from PartialNaturalGasUnit)
TransiEnt.Basics.Interfaces.General.MassFlowRateOutm_flow_gas (from PartialNaturalGasUnit)
TransiEnt.Basics.Interfaces.Gas.RealGasPortIngasPortIn_2 (from PartialNaturalGasUnit)
TransiEnt.Basics.Interfaces.Thermal.HeatFlowRateInQ_flow_set (from PartialHeatPumpCharline)Setpoint value of the heat flow, should be negative
TransiEnt.Basics.Interfaces.General.TemperatureInT_source_input_K (from PartialHeatPumpCharline)Input ambient temperature in Kelvin
Modelica.Blocks.Interfaces.RealOutputDeltaT (from PartialHeatPumpCharline)Temperature difference between water and air
Basics.Interfaces.Thermal.FluidPortOutwaterPortOut (from PartialHeatPumpCharline)
Basics.Interfaces.Thermal.FluidPortInwaterPortIn (from PartialHeatPumpCharline)
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_bheat (from PartialHeatPumpCharline)
TransiEnt.Basics.Interfaces.Gas.EnthalpyFlowRateInH_flow_setSetpoint value of the enthalpy flow rate, should be positive

Components

TypeNameDefaultDescription
SimCentersimCenter (from PartialNaturalGasUnit)
TransiEnt.Components.Boundaries.Gas.BoundaryRealGas_hxim_flowmassFlowSink (from PartialNaturalGasUnit)
TransiEnt.Components.Sensors.RealGas.NCVSensorvleNCVSensor (from PartialNaturalGasUnit)
TransiEnt.Components.Boundaries.Gas.BoundaryRealGas_pTxmassFlowSink_2 (from PartialNaturalGasUnit)
TransiEnt.Components.Sensors.RealGas.NCVSensorvleNCVSensor_2 (from PartialNaturalGasUnit)
Modelica.Blocks.Sources.RealExpressionm_flow_gas_2_var (from PartialNaturalGasUnit)
Modelica.Blocks.Math.ProductH_flow_secondGasPort (from PartialNaturalGasUnit)
Modelica.Blocks.Sources.RealExpressionm_flow_gas_2_const (from PartialNaturalGasUnit)
Modelica.Blocks.Routing.RealPassThroughm_flow_gas_2 (from PartialNaturalGasUnit)
Modelica.Blocks.Sources.RealExpressionNCV_2_const (from PartialNaturalGasUnit)
Modelica.Blocks.Routing.RealPassThroughNCV_2 (from PartialNaturalGasUnit)
TransiEnt.ModelStatisticsmodelStatistics (from PartialHeatPumpCharline)
SI.HeatFlowRateQ_flow (from PartialHeatPumpCharline)
RealCOP (from PartialHeatPumpCharline)
TransiEnt.Components.Statistics.Collectors.LocalCollectors.HeatingPlantCostcollectCosts_HeatProducer (from PartialHeatPumpCharline)
TransiEnt.Components.Statistics.Collectors.LocalCollectors.CollectHeatingPowercollectHeatingPower (from PartialHeatPumpCharline)
Modelica.Blocks.Math.GainQ_flow_set_ (from PartialHeatPumpCharline)
Modelica.Blocks.Sources.Constantconst (from PartialHeatPumpCharline)
Components.Sensors.TemperatureSensorT_in_sensor (from PartialHeatPumpCharline)
Components.Boundaries.Heat.Heatflow_L1heatFlowBoundary (from PartialHeatPumpCharline)
Modelica.Blocks.Sources.RealExpressionPrescribedHeatFlow (from PartialHeatPumpCharline)
Modelica.Blocks.Math.Gaingain (from PartialHeatPumpCharline)
Modelica.Blocks.Sources.RealExpressionT_source (from PartialHeatPumpCharline)
Modelica.Blocks.Math.Sumsum1 (from PartialHeatPumpCharline)
Modelica.Blocks.Sources.RealExpressionTemperature (from PartialHeatPumpCharline)
Components.Sensors.TemperatureSensorT_out_sensor (from PartialHeatPumpCharline)
Modelica.Thermal.HeatTransfer.Sources.PrescribedHeatFlowheatFlowBoundary1 (from PartialHeatPumpCharline)
Modelica.Blocks.Math.Sumsum2 (from PartialHeatPumpCharline)
Modelica.Blocks.Math.GainH_flow_set_
Modelica.Blocks.Sources.Constantconst1
Modelica.Units.SI.MassFlowRatem_flow_cde_total
SI.EnthalpyFlowRateH_flow
Components.Statistics.Collectors.LocalCollectors.CollectGwpEmissionsElectriccollectGwpEmissions
Modelica.Blocks.Sources.RealExpressionrealExpression1
Modelica.Blocks.Math.Divisiondivision