diff --git a/Buildings/Experimental/DHC/EnergyTransferStations/BaseClasses/PartialDirect.mo b/Buildings/Experimental/DHC/EnergyTransferStations/BaseClasses/PartialDirect.mo
index 1b1d0f068cf..a823440d3ba 100644
--- a/Buildings/Experimental/DHC/EnergyTransferStations/BaseClasses/PartialDirect.mo
+++ b/Buildings/Experimental/DHC/EnergyTransferStations/BaseClasses/PartialDirect.mo
@@ -57,7 +57,7 @@ model PartialDirect
"Bandwidth around reference signal for on/off controller"
annotation (Dialog(tab="Advanced"));
- Modelica.Blocks.Interfaces.RealInput TSetDisRet(
+ Modelica.Blocks.Interfaces.RealInput TDisRetSet(
final unit="K",
displayUnit="degC")
"Setpoint for the district return temperature (min for cooling, max for heating)"
@@ -197,7 +197,7 @@ equation
connect(senTDisSup.T,dTDis. u2)
annotation (Line(points={{-170,-269},{-172,-269},{-172,-184},{60,-184},{60,-110},
{78,-110}}, color={0,0,127}));
- connect(TSetDisRet, con.u_s)
+ connect(TDisRetSet, con.u_s)
annotation (Line(points={{-318,0},{-272,0},{-272,250},{-222,250}},
color={0,0,127}));
connect(senTBuiRet.T, con.u_m)
@@ -224,7 +224,7 @@ cooling network is at or above the minimum specified value. This configuration
naturally results in a fluctuating building supply tempearture.
-
+
Reference
diff --git a/Buildings/Experimental/DHC/EnergyTransferStations/BaseClasses/PartialIndirect.mo b/Buildings/Experimental/DHC/EnergyTransferStations/BaseClasses/PartialIndirect.mo
index 806d5d666da..63659aee641 100644
--- a/Buildings/Experimental/DHC/EnergyTransferStations/BaseClasses/PartialIndirect.mo
+++ b/Buildings/Experimental/DHC/EnergyTransferStations/BaseClasses/PartialIndirect.mo
@@ -84,7 +84,7 @@ model PartialIndirect
parameter Real yMin=0.01
"Lower limit of output"
annotation (Dialog(group="PID controller"));
- Modelica.Blocks.Interfaces.RealInput TSetBuiSup
+ Modelica.Blocks.Interfaces.RealInput TBuiSupSet
"Setpoint temperature for building supply"
annotation (Placement(transformation(extent={{-340,-20},{-300,20}})));
Modelica.Blocks.Interfaces.RealOutput Q_flow(
@@ -201,7 +201,7 @@ equation
annotation (Line(points={{-26,-193},{-26,-180},{-140,-180},{-140,-240},{-120,
-240},{-120,-232}},
color={0,0,127}));
- connect(TSetBuiSup, con.u_s)
+ connect(TBuiSupSet, con.u_s)
annotation (Line(points={{-320,0},{-240,0},{-240,-220},{-132,-220}},
color={0,0,127}));
connect(con.y, conVal.y)
diff --git a/Buildings/Experimental/DHC/EnergyTransferStations/Combined/BaseClasses/PartialHeatPumpHeatExchanger.mo b/Buildings/Experimental/DHC/EnergyTransferStations/Combined/BaseClasses/PartialHeatPumpHeatExchanger.mo
new file mode 100644
index 00000000000..f3a714a0e6a
--- /dev/null
+++ b/Buildings/Experimental/DHC/EnergyTransferStations/Combined/BaseClasses/PartialHeatPumpHeatExchanger.mo
@@ -0,0 +1,646 @@
+within Buildings.Experimental.DHC.EnergyTransferStations.Combined.BaseClasses;
+model PartialHeatPumpHeatExchanger
+ "Partial model of a substation with heat pump and compressor-less cooling"
+ extends
+ Buildings.Experimental.DHC.EnergyTransferStations.BaseClasses.PartialETS(
+ final typ=Buildings.Experimental.DHC.Types.DistrictSystemType.CombinedGeneration5,
+ final have_weaBus=false,
+ final have_chiWat=true,
+ final have_heaWat=true,
+ have_hotWat=false,
+ final have_eleHea=true,
+ final nFue=0,
+ final have_eleCoo=false,
+ final have_pum=true,
+ final have_fan=false,
+ nPorts_aHeaWat=1,
+ nPorts_aChiWat=1);
+ // SYSTEM GENERAL
+ parameter Boolean have_varFloCon = true
+ "Set to true for heat pumps with variable condenser flow"
+ annotation(Evaluate=true);
+ parameter Boolean have_varFloEva = true
+ "Set to true for heat pumps with variable evaporator flow"
+ annotation(Evaluate=true);
+ parameter Real ratFloMin(
+ final unit="1",
+ final min=0,
+ final max=1)=0.3
+ "Minimum condenser mass flow rate (ratio to nominal)"
+ annotation (Dialog(enable=have_varFloCon or have_varFloEva));
+ parameter Modelica.Units.SI.Temperature TDisWatMin
+ "District water minimum temperature" annotation (Dialog(group="DHC system"));
+ parameter Modelica.Units.SI.Temperature TDisWatMax
+ "District water maximum temperature" annotation (Dialog(group="DHC system"));
+ parameter Modelica.Units.SI.TemperatureDifference dT_nominal(min=0) = 5
+ "Water temperature drop/increase accross load and source-side HX (always positive)"
+ annotation (Dialog(group="Nominal condition"));
+ parameter Modelica.Units.SI.Temperature TChiWatSup_nominal=291.15
+ "Chilled water supply temperature"
+ annotation (Dialog(group="Nominal conditions"));
+ final parameter Modelica.Units.SI.Temperature TChiWatRet_nominal=
+ TChiWatSup_nominal + dT_nominal "Chilled water return temperature"
+ annotation (Dialog(group="Nominal condition"));
+ parameter Modelica.Units.SI.Temperature THeaWatSup_nominal=313.15
+ "Heating water supply temperature"
+ annotation (Dialog(group="Nominal condition"));
+ final parameter Modelica.Units.SI.Temperature THeaWatRet_nominal=
+ THeaWatSup_nominal - dT_nominal "Heating water return temperature"
+ annotation (Dialog(group="Nominal condition"));
+ parameter Modelica.Units.SI.Temperature THotWatSup_nominal=336.15
+ "Domestic hot water supply temperature to fixtures"
+ annotation (Dialog(group="Nominal condition", enable=have_hotWat));
+ parameter Modelica.Units.SI.Temperature TColWat_nominal=288.15
+ "Cold water temperature (for hot water production)"
+ annotation (Dialog(group="Nominal condition", enable=have_hotWat));
+ parameter Modelica.Units.SI.Pressure dp_nominal(displayUnit="Pa") = 50000
+ "Pressure difference at nominal flow rate (for each flow leg)"
+ annotation (Dialog(group="Nominal condition"));
+ final parameter Modelica.Units.SI.MassFlowRate mHeaWat_flow_nominal(min=0)=
+ abs(QHeaWat_flow_nominal/cpBui_default/(THeaWatSup_nominal - THeaWatRet_nominal))
+ "Heating water mass flow rate"
+ annotation (Dialog(group="Nominal condition"));
+ final parameter Modelica.Units.SI.MassFlowRate mChiWat_flow_nominal(min=0)=
+ abs(QChiWat_flow_nominal/cpBui_default/(TChiWatSup_nominal - TChiWatRet_nominal))
+ "Chilled water mass flow rate"
+ annotation (Dialog(group="Nominal conditions"));
+ final parameter Modelica.Units.SI.MassFlowRate mEvaHotWat_flow_nominal(min=0)=
+ QHotWat_flow_nominal*(COPHotWat_nominal - 1)/COPHotWat_nominal/cpSer_default/dT_nominal
+ "Evaporator water mass flow rate of heat pump for hot water production"
+ annotation (Dialog(group="Nominal condition", enable=have_hotWat));
+ final parameter Modelica.Units.SI.MassFlowRate mSerWat_flow_nominal(min=0)=
+ max(proHeaWat.mCon_flow_nominal + mEvaHotWat_flow_nominal, hexChi.m1_flow_nominal)
+ "Service water mass flow rate"
+ annotation (Dialog(group="Nominal condition"));
+ constant Modelica.Units.SI.SpecificHeatCapacity cpBui_default=
+ MediumBui.specificHeatCapacityCp(MediumBui.setState_pTX(
+ p=MediumBui.p_default,
+ T=MediumBui.T_default)) "Specific heat capacity of the fluid";
+ constant Modelica.Units.SI.SpecificHeatCapacity cpSer_default=
+ MediumBui.specificHeatCapacityCp(MediumSer.setState_pTX(
+ p=MediumSer.p_default,
+ T=MediumSer.T_default)) "Specific heat capacity of the fluid";
+ // Heat pump for heating water production
+ parameter Real COPHeaWat_nominal(final unit="1")
+ "COP of heat pump for heating water production"
+ annotation (Dialog(group="Nominal condition"));
+ // Heat pump for hot water production
+ parameter Real COPHotWat_nominal(final unit="1")
+ "COP of heat pump for hot water production"
+ annotation (Dialog(group="Nominal condition", enable=have_hotWat));
+ // District HX
+ final parameter Modelica.Units.SI.MassFlowRate m1HexChi_flow_nominal(min=0)=
+ abs(QChiWat_flow_nominal/cpSer_default/dT_nominal)
+ "CHW HX primary mass flow rate"
+ annotation (Dialog(group="Nominal condition"));
+ final parameter Modelica.Units.SI.MassFlowRate m2HexChi_flow_nominal(min=0)=
+ abs(QChiWat_flow_nominal/cpSer_default/(THeaWatSup_nominal -
+ THeaWatRet_nominal)) "CHW HX secondary mass flow rate"
+ annotation (Dialog(group="Nominal condition"));
+ // Dynamics
+ parameter Modelica.Fluid.Types.Dynamics mixingVolumeEnergyDynamics=
+ Modelica.Fluid.Types.Dynamics.FixedInitial
+ "Formulation of energy balance for mixing volume at inlet and outlet"
+ annotation(Dialog(tab="Dynamics"));
+ // IO CONNECTORS
+ Buildings.Controls.OBC.CDL.Interfaces.BooleanInput uCoo
+ "Cooling enable signal"
+ annotation (Placement(transformation(extent={{-340,
+ 100},{-300,140}}), iconTransformation(extent={{-380,20},{-300,100}})));
+ Buildings.Controls.OBC.CDL.Interfaces.BooleanInput uHea
+ "Heating enable signal"
+ annotation (Placement(transformation(extent={{-340,
+ 140},{-300,180}}), iconTransformation(extent={{-380,60},{-300,140}})));
+ Buildings.Controls.OBC.CDL.Interfaces.BooleanInput uSHW if have_hotWat
+ "SHW production enable signal"
+ annotation (Placement(transformation(extent=
+ {{-340,60},{-300,100}}), iconTransformation(extent={{-380,-20},{-300,
+ 60}})));
+ Buildings.Controls.OBC.CDL.Interfaces.RealInput THeaWatSupSet(
+ final unit="K",
+ displayUnit="degC")
+ "Heating water supply temperature set point"
+ annotation (Placement(
+ transformation(
+ extent={{-340,20},{-300,60}}),
+ iconTransformation(
+ extent={{-380,-60},{-300,20}})));
+ Buildings.Controls.OBC.CDL.Interfaces.RealInput THotWatSupSet(
+ final unit="K",
+ displayUnit="degC") if have_hotWat
+ "Domestic hot water temperature set point for supply to fixtures"
+ annotation (Placement(
+ transformation(
+ extent={{-20,-20},{20,20}},
+ rotation=0,
+ origin={-320,-40}),
+ iconTransformation(
+ extent={{-380,-140},{-300,-60}})));
+ Buildings.Controls.OBC.CDL.Interfaces.RealInput TColWat(
+ final unit="K",
+ displayUnit="degC") if have_hotWat
+ "Cold water temperature" annotation (
+ Placement(transformation(
+ extent={{-20,-20},{20,20}},
+ rotation=0,
+ origin={-320,-80}), iconTransformation(
+ extent={{-40,-40},{40,40}},
+ rotation=0,
+ origin={-340,-140})));
+ Buildings.Controls.OBC.CDL.Interfaces.RealInput QReqHotWat_flow(
+ final unit="W") if have_hotWat "Service hot water load"
+ annotation (
+ Placement(transformation(
+ extent={{-20,-20},{20,20}},
+ rotation=0,
+ origin={-320,-120}),iconTransformation(
+ extent={{-40,-40},{40,40}},
+ rotation=0,
+ origin={-340,-180})));
+ Buildings.Controls.OBC.CDL.Interfaces.RealInput TChiWatSupSet(final unit="K",
+ displayUnit="degC")
+ "Chilled water supply temperature set point" annotation (Placement(
+ transformation(
+ extent={{-340,-20},{-300,20}}),
+ iconTransformation(
+ extent={{-380,-100},{-300,-20}})));
+ Buildings.Controls.OBC.CDL.Interfaces.RealOutput mHea_flow(final unit="kg/s")
+ "District water mass flow rate used for heating service"
+ annotation ( Placement(transformation(extent={{300,-160},{340,-120}}),
+ iconTransformation(extent={{300,-160},{380,-80}})));
+ Buildings.Controls.OBC.CDL.Interfaces.RealOutput mCoo_flow(final unit="kg/s")
+ "District water mass flow rate used for cooling service"
+ annotation ( Placement(transformation(extent={{300,-200},{340,-160}}),
+ iconTransformation(extent={{300,-200},{380,-120}})));
+ // COMPONENTS
+ Buildings.Fluid.Delays.DelayFirstOrder volMix_a(
+ redeclare final package Medium = MediumSer,
+ final m_flow_nominal=mSerWat_flow_nominal,
+ tau=600,
+ final energyDynamics=mixingVolumeEnergyDynamics)
+ "Mixing volume to break algebraic loops and to emulate the delay of the substation"
+ annotation (Placement(transformation(extent={{-270,-360},{-250,-380}})));
+ Buildings.Fluid.Delays.DelayFirstOrder volMix_b(
+ redeclare final package Medium = MediumSer,
+ final m_flow_nominal=mSerWat_flow_nominal,
+ tau=600,
+ final energyDynamics=mixingVolumeEnergyDynamics)
+ "Mixing volume to break algebraic loops and to emulate the delay of the substation"
+ annotation (Placement(transformation(extent={{250,-360},{270,-380}})));
+ Buildings.Experimental.DHC.EnergyTransferStations.BaseClasses.Pump_m_flow pum1HexChi(
+ redeclare final package Medium = MediumSer,
+ final m_flow_nominal=m1HexChi_flow_nominal,
+ final allowFlowReversal=allowFlowReversalSer,
+ dp_nominal=dp_nominal)
+ "Chilled water HX primary pump"
+ annotation (Placement(transformation(extent={{110,-350},{90,-330}})));
+ Buildings.Fluid.HeatExchangers.DryCoilEffectivenessNTU hexChi(
+ redeclare final package Medium1 = MediumSer,
+ redeclare final package Medium2 = MediumBui,
+ final m1_flow_nominal=m1HexChi_flow_nominal,
+ final m2_flow_nominal=m2HexChi_flow_nominal,
+ final dp1_nominal=dp_nominal/2,
+ final dp2_nominal=dp_nominal/2,
+ configuration=Buildings.Fluid.Types.HeatExchangerConfiguration.CounterFlow,
+ final Q_flow_nominal=QChiWat_flow_nominal,
+ final T_a1_nominal=TDisWatMax,
+ final T_a2_nominal=TChiWatRet_nominal,
+ final allowFlowReversal1=allowFlowReversalSer,
+ final allowFlowReversal2=allowFlowReversalBui)
+ "Chilled water HX"
+ annotation (Placement(transformation(extent={{10,-324},{-10,-344}})));
+ Buildings.Fluid.Delays.DelayFirstOrder volHeaWatRet(
+ redeclare final package Medium = MediumBui,
+ final m_flow_nominal=proHeaWat.mCon_flow_nominal,
+ tau=60,
+ final energyDynamics=mixingVolumeEnergyDynamics,
+ T_start=THeaWatSup_nominal,
+ nPorts=3) "Mixing volume representing building HHW primary" annotation (
+ Placement(transformation(
+ extent={{-10,10},{10,-10}},
+ rotation=90,
+ origin={90,180})));
+ Buildings.Fluid.Sensors.MassFlowRate senMasFloHeaWat(
+ redeclare final package Medium = MediumBui,
+ final allowFlowReversal=allowFlowReversalBui)
+ "Heating water mass flow rate"
+ annotation (Placement(transformation(extent={{-250,250},{-230,270}})));
+ Buildings.Fluid.Delays.DelayFirstOrder volChiWat(
+ redeclare final package Medium = MediumBui,
+ final m_flow_nominal=m1HexChi_flow_nominal,
+ tau=60,
+ final energyDynamics=mixingVolumeEnergyDynamics,
+ T_start=TChiWatSup_nominal,
+ nPorts=3) "Mixing volume representing building CHW primary"
+ annotation (Placement(transformation(extent={{-110,-280},{-90,-260}})));
+ Buildings.Fluid.Sensors.MassFlowRate senMasFloChiWat(
+ redeclare final package Medium = MediumBui,
+ final allowFlowReversal=allowFlowReversalBui)
+ "Chilled water mass flow rate"
+ annotation (Placement(transformation(extent={{-250,-130},{-230,-110}})));
+ Buildings.Controls.OBC.CDL.Reals.MultiplyByParameter gai2(final k=
+ m1HexChi_flow_nominal)
+ annotation (Placement(transformation(extent={{-108,-210},{-88,-190}})));
+ Buildings.Experimental.DHC.EnergyTransferStations.Combined.Controls.PIDWithEnable conTChiWat(
+ k=0.05,
+ Ti=120,
+ yMax=1,
+ controllerType=Buildings.Controls.OBC.CDL.Types.SimpleController.PI,
+ reverseActing=false,
+ yMin=0) "PI controller for district HX primary side"
+ annotation (Placement(transformation(extent={{-150,-210},{-130,-190}})));
+ Buildings.Controls.OBC.CDL.Reals.MultiSum PPumHeaTot(nin=2)
+ "Total pump power for heating applications"
+ annotation (Placement(transformation(extent={{190,410},{210,430}})));
+ Buildings.Fluid.Sources.Boundary_pT bouHeaWat(
+ redeclare final package Medium = MediumBui,
+ nPorts=1)
+ "Pressure boundary condition representing the expansion vessel"
+ annotation (Placement(transformation(extent={{10,-10},{-10,10}},
+ rotation=-90,
+ origin={60,150})));
+ Buildings.Fluid.Sources.Boundary_pT bouChiWat(
+ redeclare final package Medium = MediumBui,
+ nPorts=1)
+ "Pressure boundary condition representing the expansion vessel"
+ annotation (Placement(transformation(extent={{-162,-290},{-142,-270}})));
+ Buildings.Controls.OBC.CDL.Reals.MultiSum PPumCooTot(nin=1)
+ "Total pump power for space cooling"
+ annotation (Placement(transformation(extent={{190,370},{210,390}})));
+ Buildings.Controls.OBC.CDL.Reals.MultiSum PPumTot(nin=2)
+ "Total pump power"
+ annotation (Placement(transformation(extent={{220,390},{240,410}})));
+ Buildings.Fluid.Sensors.TemperatureTwoPort senTHeaWatSup(
+ redeclare final package Medium=MediumBui,
+ final allowFlowReversal=allowFlowReversalBui,
+ final m_flow_nominal=mHeaWat_flow_nominal)
+ "Heating water supply temperature"
+ annotation (Placement(
+ transformation(
+ extent={{-10,-10},{10,10}},
+ rotation=0,
+ origin={140,260})));
+ Buildings.Fluid.Sensors.TemperatureTwoPort senTChiWatSup(
+ redeclare final package Medium=MediumBui,
+ final allowFlowReversal=allowFlowReversalBui,
+ final m_flow_nominal=mChiWat_flow_nominal)
+ "Chilled water supply temperature"
+ annotation (Placement(
+ transformation(
+ extent={{-10,-10},{10,10}},
+ rotation=0,
+ origin={140,-280})));
+ Buildings.Experimental.DHC.EnergyTransferStations.Combined.Subsystems.SwitchBox
+ swiFlo(
+ redeclare final package Medium = MediumSer,
+ final m_flow_nominal=mSerWat_flow_nominal) "Flow switch box"
+ annotation (Placement(transformation(extent={{-10,-390},{10,-370}})));
+ Buildings.Experimental.DHC.EnergyTransferStations.BaseClasses.Junction bypHeaWatSup(
+ redeclare final package Medium = MediumBui, final m_flow_nominal=proHeaWat.mCon_flow_nominal
+ *{1,-1,-1}) "Bypass heating water (supply)" annotation (Placement(
+ transformation(
+ extent={{-10,-10},{10,10}},
+ rotation=0,
+ origin={100,260})));
+ Buildings.Experimental.DHC.EnergyTransferStations.BaseClasses.Junction bypHeaWatRet(
+ redeclare final package Medium = MediumBui, final m_flow_nominal=proHeaWat.mCon_flow_nominal
+ *{1,-1,1})
+ "Bypass heating water (return)"
+ annotation (Placement(
+ transformation(
+ extent={{10,10},{-10,-10}},
+ rotation=0,
+ origin={100,240})));
+ Buildings.Controls.OBC.CDL.Logical.TrueFalseHold enaHea(
+ trueHoldDuration=15*60) "Enable heating"
+ annotation (Placement(transformation(extent={{-140,150},{-120,170}})));
+ Buildings.Experimental.DHC.EnergyTransferStations.Combined.Subsystems.HeatPump proHeaWat(
+ redeclare final package Medium1 = MediumBui,
+ redeclare final package Medium2 = MediumSer,
+ dT_nominal=dT_nominal,
+ final have_varFloCon=have_varFloCon,
+ final COP_nominal=COPHeaWat_nominal,
+ final TCon_nominal=THeaWatSup_nominal,
+ final TEva_nominal=TDisWatMin - dT_nominal,
+ final Q1_flow_nominal=QHeaWat_flow_nominal,
+ final allowFlowReversal1=allowFlowReversalBui,
+ final allowFlowReversal2=allowFlowReversalSer,
+ final dp1_nominal=dp_nominal,
+ final dp2_nominal=dp_nominal) "Subsystem for heating water production"
+ annotation (Placement(transformation(extent={{-10,204},{10,224}})));
+ Buildings.Controls.OBC.CDL.Reals.MultiSum masFloHeaTot(nin=2)
+ "Compute district water mass flow rate used for heating service"
+ annotation (Placement(transformation(extent={{270,-150},{290,-130}})));
+ Modelica.Blocks.Sources.Constant zer(final k=0) if not have_hotWat
+ "Replacement variable"
+ annotation (Placement(transformation(extent={{140,350},{160,370}})));
+ Buildings.Fluid.Sensors.TemperatureTwoPort senTHeaWatRet(
+ redeclare final package Medium = MediumBui,
+ final allowFlowReversal=allowFlowReversalBui,
+ final m_flow_nominal=mHeaWat_flow_nominal)
+ "Heating water return temperature" annotation (Placement(transformation(
+ extent={{-10,-10},{10,10}},
+ rotation=0,
+ origin={20,300})));
+ Buildings.Fluid.Sensors.TemperatureTwoPort senTChiWatRet(
+ redeclare final package Medium = MediumBui,
+ final allowFlowReversal=allowFlowReversalBui,
+ final m_flow_nominal=mChiWat_flow_nominal)
+ "Chilled water return temperature" annotation (Placement(transformation(
+ extent={{-10,-10},{10,10}},
+ rotation=0,
+ origin={40,-120})));
+ Buildings.Fluid.Sensors.MassFlowRate senMasFloHeaWatPri(redeclare final
+ package Medium =
+ MediumBui, final allowFlowReversal=allowFlowReversalBui)
+ "Primary heating water mass flow rate"
+ annotation (Placement(transformation(extent={{30,270},{50,250}})));
+ Buildings.Controls.OBC.CDL.Logical.TrueFalseHold enaSHW(
+ trueHoldDuration=15*60) if have_hotWat "Enable SHW production"
+ annotation (Placement(transformation(extent={{-140,70},{-120,90}})));
+ Modelica.Blocks.Sources.Constant zer1(k=0) if not have_hotWat
+ "Replacement variable"
+ annotation (Placement(transformation(extent={{-40,-250},{-20,-230}})));
+ Buildings.Controls.OBC.CDL.Reals.Add masFloHea
+ "Service water mass flow rate for heating applications"
+ annotation (
+ Placement(transformation(
+ extent={{-10,-10},{10,10}},
+ rotation=-90,
+ origin={0,-264})));
+ Buildings.Controls.OBC.CDL.Reals.MultiSum PHeaTot(nin=2)
+ "Total power used for heating and hot water production"
+ annotation (Placement(transformation(extent={{270,70},{290,90}})));
+ Buildings.Controls.OBC.CDL.Reals.Subtract dTHHW
+ "Heating hot water DeltaT"
+ annotation (Placement(transformation(extent={{0,310},{-20,330}})));
+ Buildings.Controls.OBC.CDL.Reals.MultiplyByParameter capFloHHW(
+ final k=cpBui_default) if have_varFloEva or have_varFloCon "Capacity flow rate"
+ annotation (Placement(transformation(extent={{-220,310},{-200,330}})));
+ Buildings.Experimental.DHC.EnergyTransferStations.Combined.Controls.PrimaryVariableFlow conFloConHHW(
+ final Q_flow_nominal=QHeaWat_flow_nominal,
+ final dT_nominal=dT_nominal,
+ final ratFloMin=ratFloMin,
+ final cp=cpBui_default) if have_varFloCon
+ "Mass flow rate control"
+ annotation (Placement(transformation(extent={{-100,270},{-80,290}})));
+ Buildings.Controls.OBC.CDL.Reals.Max priOve if have_varFloCon
+ "Ensure primary overflow"
+ annotation (Placement(transformation(extent={{-60,270},{-40,290}})));
+ Buildings.Controls.OBC.CDL.Reals.Multiply loaHHW
+ if have_varFloEva or have_varFloCon "Heating load"
+ annotation (Placement(transformation(extent={{-140,270},{-120,290}})));
+
+equation
+ connect(TChiWatSupSet, conTChiWat.u_s) annotation (Line(points={{-320,0},{-200,
+ 0},{-200,-200},{-152,-200}}, color={0,0,127}));
+ connect(pum1HexChi.P, PPumCooTot.u[1]) annotation (Line(points={{89,-331},{84,
+ -331},{84,-322},{180,-322},{180,380},{188,380}}, color={0,0,127}));
+ connect(PPumHeaTot.y, PPumTot.u[1]) annotation (Line(points={{212,420},{216,420},
+ {216,399.5},{218,399.5}},
+ color={0,0,127}));
+ connect(PPumCooTot.y, PPumTot.u[2]) annotation (Line(points={{212,380},{216,380},
+ {216,400.5},{218,400.5}},
+ color={0,0,127}));
+ connect(pum1HexChi.port_b, hexChi.port_a1) annotation (Line(points={{90,-340},
+ {10,-340}}, color={0,127,255}));
+ connect(pum1HexChi.m_flow_actual, mCoo_flow) annotation (Line(points={{89,-335},
+ {82,-335},{82,-320},{276,-320},{276,-180},{320,-180}}, color={0,0,127}));
+ connect(volMix_a.ports[1], swiFlo.port_bSup) annotation (Line(points={{-260,-360},
+ {-6,-360},{-6,-370}}, color={0,127,255}));
+ connect(swiFlo.port_aRet, volMix_b.ports[1]) annotation (Line(points={{6,-370},
+ {6,-360},{260,-360}}, color={0,127,255}));
+ connect(volMix_b.ports[2], pum1HexChi.port_a) annotation (Line(points={{260,-360},
+ {258,-360},{258,-340},{110,-340}}, color={0,127,255}));
+ connect(hexChi.port_b1, volMix_a.ports[2]) annotation (Line(points={{-10,-340},
+ {-256,-340},{-256,-360},{-260,-360}}, color={0,127,255}));
+ connect(pum1HexChi.m_flow_actual, swiFlo.mRev_flow) annotation (Line(points={
+ {89,-335},{80,-335},{80,-356},{-20,-356},{-20,-384},{-12,-384}},
+ color={0,0,127}));
+ connect(gai2.y, pum1HexChi.m_flow_in)
+ annotation (Line(points={{-86,-200},{100,-200},{100,-328}},
+ color={0,0,127}));
+ connect(PPumTot.y, PPum) annotation (Line(points={{242,400},{244,400},{244,-40},
+ {320,-40}}, color={0,0,127}));
+ connect(ports_aHeaWat[1], senMasFloHeaWat.port_a) annotation (Line(points={{-300,
+ 260},{-250,260}}, color={0,127,255}));
+ connect(bypHeaWatSup.port_2, senTHeaWatSup.port_a)
+ annotation (Line(points={{110,260},{130,260}}, color={0,127,255}));
+ connect(senTHeaWatSup.port_b, ports_bHeaWat[1])
+ annotation (Line(points={{150,260},{300,260}}, color={0,127,255}));
+ connect(bypHeaWatRet.port_2, volHeaWatRet.ports[1]) annotation (Line(points={{90,240},
+ {80,240},{80,178.667}}, color={0,127,255}));
+ connect(bouHeaWat.ports[1], volHeaWatRet.ports[2]) annotation (Line(points={{60,160},
+ {60,180},{80,180}}, color={0,127,255}));
+ connect(ports_aChiWat[1], senMasFloChiWat.port_a) annotation (Line(points={{-300,
+ 200},{-280,200},{-280,-120},{-250,-120}}, color={0,127,255}));
+ connect(senTChiWatSup.port_b, ports_bChiWat[1]) annotation (Line(points={{150,
+ -280},{200,-280},{200,200},{300,200}}, color={0,127,255}));
+ connect(bypHeaWatRet.port_3, bypHeaWatSup.port_3)
+ annotation (Line(points={{100,250},{100,250}}, color={0,127,255}));
+ connect(volHeaWatRet.ports[3], proHeaWat.port_a1) annotation (Line(points={{80,
+ 181.333},{80,180},{-20,180},{-20,220},{-9.8,220}},color={0,127,255}));
+ connect(proHeaWat.port_b2, volMix_b.ports[3]) annotation (Line(points={{-10,208},
+ {-14,208},{-14,202},{262,202},{262,-360},{260,-360}},
+ color={0,127,255}));
+ connect(volMix_a.ports[3], proHeaWat.port_a2) annotation (Line(points={{-260,
+ -360},{-260,192},{14,192},{14,208},{10,208}}, color={0,127,255}));
+ connect(enaHea.y, proHeaWat.uEna) annotation (Line(points={{-118,160},{-48,160},
+ {-48,223},{-12,223}}, color={255,0,255}));
+ connect(THeaWatSupSet, proHeaWat.TSupSet) annotation (Line(points={{-320,40},{
+ -200,40},{-200,217},{-12,217}},
+ color={0,0,127}));
+ connect(proHeaWat.PPum, PPumHeaTot.u[1]) annotation (Line(points={{12,214},{172,
+ 214},{172,419.5},{188,419.5}},
+ color={0,0,127}));
+ connect(masFloHeaTot.y, mHea_flow)
+ annotation (Line(points={{292,-140},{320,-140}}, color={0,0,127}));
+ connect(zer.y, masFloHeaTot.u[2]) annotation (Line(points={{161,360},{216,360},
+ {216,-144},{268,-144},{268,-139.5}},
+ color={0,0,127}));
+ connect(proHeaWat.mEva_flow, masFloHeaTot.u[1]) annotation (Line(points={{12,211},
+ {220,211},{220,-140.5},{268,-140.5}},
+ color={0,0,127}));
+ connect(zer.y, PPumHeaTot.u[2]) annotation (Line(points={{161,360},{174,360},{
+ 174,418},{188,418},{188,420.5}},
+ color={0,0,127}));
+ connect(senMasFloHeaWat.port_b, senTHeaWatRet.port_a) annotation (Line(points={{-230,
+ 260},{-220,260},{-220,300},{10,300}}, color={0,127,255}));
+ connect(senTHeaWatRet.port_b, bypHeaWatRet.port_1) annotation (Line(points={{30,300},
+ {120,300},{120,240},{110,240}}, color={0,127,255}));
+ connect(senMasFloChiWat.port_b, senTChiWatRet.port_a)
+ annotation (Line(points={{-230,-120},{30,-120}}, color={0,127,255}));
+ connect(proHeaWat.port_b1, senMasFloHeaWatPri.port_a) annotation (Line(points={{10,220},
+ {14,220},{14,260},{30,260}}, color={0,127,255}));
+ connect(senMasFloHeaWatPri.port_b, bypHeaWatSup.port_1)
+ annotation (Line(points={{50,260},{90,260}}, color={0,127,255}));
+ connect(port_aSerAmb, swiFlo.port_aSup) annotation (Line(points={{-300,-200},{
+ -272,-200},{-272,-344},{-280,-344},{-280,-400},{-6,-400},{-6,-390}},
+ color={0,127,255}));
+ connect(swiFlo.port_bRet, port_bSerAmb) annotation (Line(points={{6,-390},{6,
+ -400},{280,-400},{280,-200},{300,-200}},
+ color={0,127,255}));
+ connect(uHea, enaHea.u) annotation (Line(points={{-320,160},{-142,160}},
+ color={255,0,255}));
+ connect(conTChiWat.y, gai2.u)
+ annotation (Line(points={{-128,-200},{-110,-200}}, color={0,0,127}));
+ connect(uCoo, conTChiWat.uEna) annotation (Line(points={{-320,120},{-180,120},
+ {-180,-220},{-144,-220},{-144,-212}}, color={255,0,255}));
+ connect(uSHW, enaSHW.u)
+ annotation (Line(points={{-320,80},{-142,80}}, color={255,0,255}));
+ connect(senTChiWatRet.port_b, volChiWat.ports[1]) annotation (Line(points={{50,-120},
+ {60,-120},{60,-280},{-101.333,-280}}, color={0,127,255}));
+ connect(volChiWat.ports[2], hexChi.port_a2) annotation (Line(points={{-100,
+ -280},{-120,-280},{-120,-320},{-20,-320},{-20,-328},{-10,-328}},
+ color={0,127,255}));
+ connect(hexChi.port_b2, senTChiWatSup.port_a) annotation (Line(points={{10,
+ -328},{20,-328},{20,-320},{80,-320},{80,-280},{130,-280}}, color={0,
+ 127,255}));
+ connect(bouChiWat.ports[1], volChiWat.ports[3])
+ annotation (Line(points={{-142,-280},{-98.6667,-280}}, color={0,127,255}));
+ connect(senTChiWatSup.T, conTChiWat.u_m) annotation (Line(points={{140,-269},
+ {140,-220},{-140,-220},{-140,-212}}, color={0,0,127}));
+ connect(zer1.y, masFloHea.u2) annotation (Line(points={{-19,-240},{-8,-240},{
+ -8,-252},{-6,-252}}, color={0,0,127}));
+ connect(proHeaWat.mEva_flow, masFloHea.u1) annotation (Line(points={{12,211},{
+ 20,211},{20,-246},{6,-246},{6,-252}}, color={0,0,127}));
+ connect(masFloHea.y, swiFlo.mPos_flow) annotation (Line(points={{0,-276},{0,
+ -320},{-16,-320},{-16,-376},{-12,-376}}, color={0,0,127}));
+ connect(proHeaWat.PHea, PHeaTot.u[1]) annotation (Line(points={{12,217},{240,217},
+ {240,79.5},{268,79.5}}, color={0,0,127}));
+ connect(zer.y, PHeaTot.u[2]) annotation (Line(points={{161,360},{242,360},{242,
+ 78},{268,78},{268,80.5}}, color={0,0,127}));
+ connect(PHeaTot.y, PHea)
+ annotation (Line(points={{292,80},{320,80}}, color={0,0,127}));
+ connect(senTHeaWatRet.T, dTHHW.u2)
+ annotation (Line(points={{20,311},{20,314},{2,314}}, color={0,0,127}));
+ connect(senTHeaWatSup.T, dTHHW.u1)
+ annotation (Line(points={{140,271},{140,326},{2,326}}, color={0,0,127}));
+ connect(senMasFloHeaWat.m_flow, capFloHHW.u) annotation (Line(points={{-240,271},
+ {-240,320},{-222,320}}, color={0,0,127}));
+ connect(senMasFloHeaWat.m_flow, priOve.u1) annotation (Line(points={{-240,271},
+ {-240,296},{-70,296},{-70,286},{-62,286}}, color={0,0,127}));
+ connect(conFloConHHW.m_flow, priOve.u2) annotation (Line(points={{-78,280},{-70,
+ 280},{-70,274},{-62,274}}, color={0,0,127}));
+ connect(priOve.y, proHeaWat.m1_flow) annotation (Line(points={{-38,280},{-24,280},
+ {-24,214},{-12,214}}, color={0,0,127}));
+ connect(capFloHHW.y, loaHHW.u2) annotation (Line(points={{-198,320},{-180,320},
+ {-180,274},{-142,274}}, color={0,0,127}));
+ connect(dTHHW.y, loaHHW.u1) annotation (Line(points={{-22,320},{-160,320},{
+ -160,286},{-142,286}}, color={0,0,127}));
+ connect(loaHHW.y, conFloConHHW.loa)
+ annotation (Line(points={{-118,280},{-102,280}}, color={0,0,127}));
+ annotation (
+ defaultComponentName="ets",
+ Documentation(info="
+
+This model represents an energy transfer station based on that described in Sommer (2020),
+with some additioinal details:
+
+
+The cooling function is provided in a compressor-less mode by a heat exchanger
+connected to the district supply line.
+
+
+-
+The cooling heat exchanger primary pump is modulated based on a PI control
+loop tracking the chilled water supply temperature at the outlet of the heat exchanger
+secondary side.
+
+-
+The chilled water is typically produced at high temperature and distributed
+to radiant cooling systems, for instance at 19°C.
+
+
+
+The space heating heating function is provided by a water-to-water heat pump
+
+Buildings.Experimental.DHC.EnergyTransferStations.Combined.Subsystems.HeatPump.
+
+
+Space Heating and Cooling Enable/Disable
+
+Heating (resp. cooling) is enabled based on the input signal uHea
+(resp. uCoo
) which is held for 15 minutes, meaning that,
+when enabled, the mode remains active for at least 15 minutes and,
+when disabled, the mode cannot be enabled again for at least 15 minutes.
+The heating and cooling enable signals should be computed externally based
+on a schedule (to lock out the system during off-hours), ideally in conjunction
+with the number of requests yielded by the terminal unit controllers, or any
+other signal representative of the load.
+
+Modeling considerations
+
+There is a control volume at each of the two fluid ports that serve as inlet and outlet
+of the heating and cooling systems. These approximate the dynamics
+of the substation, and they also generally avoid nonlinear systems
+of equations if multiple substations are connected to each other.
+
+References
+
+Sommer T., Sulzer M., Wetter M., Sotnikov A., Mennel S., Stettler C.
+The reservoir network: A new network topology for district heating
+and cooling.
+Energy, Volume 199, 15 May 2020, 117418.
+
+",
+ revisions="
+
+-
+October 2, 2023, by Michael Wetter:
+Renamed input loaSHW
to QReqHotWat_flow
.
+
+-
+May 17, 2023, by David Blum:
+Assigned dp_nominal to pum1HexChi
.
+Corrected calculation of heat pump evaporator mass flow control.
+This is for
+
+issue 3379.
+
+-
+February 23, 2021, by Antoine Gautier:
+Refactored with subsystem models and partial ETS base class.
+This is for
+
+issue 1769.
+
+-
+December 12, 2017, by Michael Wetter:
+Removed call to Modelica.Utilities.Files.loadResource
.
+This is for
+issue 1097.
+
+
+"),
+ Diagram(coordinateSystem(extent={{-300,-420},{300,440}})),
+ Icon(coordinateSystem(preserveAspectRatio=false, extent={{-300,-300},{300,300}})));
+end PartialHeatPumpHeatExchanger;
diff --git a/Buildings/Experimental/DHC/EnergyTransferStations/Combined/BaseClasses/PartialParallel.mo b/Buildings/Experimental/DHC/EnergyTransferStations/Combined/BaseClasses/PartialParallel.mo
index b03419cf79b..268f48a7e35 100644
--- a/Buildings/Experimental/DHC/EnergyTransferStations/Combined/BaseClasses/PartialParallel.mo
+++ b/Buildings/Experimental/DHC/EnergyTransferStations/Combined/BaseClasses/PartialParallel.mo
@@ -223,9 +223,11 @@ equation
annotation (Line(points={{282,-60},{290,-60},{290,-40},{320,-40}},
color={0,0,127}));
connect(hex.yValIso_actual[1],valIsoCon.y_actual)
- annotation (Line(points={{-12,-251},{-40,-251},{-40,-113},{-55,-113}},color={0,0,127}));
+ annotation (Line(points={{-12,-251.5},{-40,-251.5},{-40,-113},{-55,-113}},
+ color={0,0,127}));
connect(hex.yValIso_actual[2],valIsoEva.y_actual)
- annotation (Line(points={{-12,-253},{-16,-253},{-16,-240},{40,-240},{40,-113},{55,-113}},color={0,0,127}));
+ annotation (Line(points={{-12,-252.5},{-16,-252.5},{-16,-240},{40,-240},{40,
+ -113},{55,-113}}, color={0,0,127}));
connect(valIsoEva.port_b,colAmbWat.port_bDisSup)
annotation (Line(points={{50,-120},{30,-120},{30,-106},{20,-106}},color={0,127,255}));
connect(valIsoCon.port_b,colAmbWat.port_aDisSup)
diff --git a/Buildings/Experimental/DHC/EnergyTransferStations/Combined/BaseClasses/package.order b/Buildings/Experimental/DHC/EnergyTransferStations/Combined/BaseClasses/package.order
index f9d24c4a9ab..559a232983f 100644
--- a/Buildings/Experimental/DHC/EnergyTransferStations/Combined/BaseClasses/package.order
+++ b/Buildings/Experimental/DHC/EnergyTransferStations/Combined/BaseClasses/package.order
@@ -1 +1,2 @@
+PartialHeatPumpHeatExchanger
PartialParallel
diff --git a/Buildings/Experimental/DHC/EnergyTransferStations/Combined/ChillerBorefield.mo b/Buildings/Experimental/DHC/EnergyTransferStations/Combined/ChillerBorefield.mo
index 982f61d0bd7..930ec69aa3a 100644
--- a/Buildings/Experimental/DHC/EnergyTransferStations/Combined/ChillerBorefield.mo
+++ b/Buildings/Experimental/DHC/EnergyTransferStations/Combined/ChillerBorefield.mo
@@ -266,9 +266,11 @@ equation
connect(conSup.yAmb[1],borFie.u)
annotation (Line(points={{-238,25},{-200,25},{-200,-212},{-82,-212}},color={0,0,127}));
connect(valIsoCon.y_actual,borFie.yValIso_actual[1])
- annotation (Line(points={{-55,-113},{-40,-113},{-40,-198},{-90,-198},{-90,-217},{-82,-217}},color={0,0,127}));
+ annotation (Line(points={{-55,-113},{-40,-113},{-40,-198},{-90,-198},{-90,
+ -216.5},{-82,-216.5}}, color={0,0,127}));
connect(valIsoEva.y_actual,borFie.yValIso_actual[2])
- annotation (Line(points={{55,-113},{40,-113},{40,-200},{-88,-200},{-88,-215},{-82,-215}},color={0,0,127}));
+ annotation (Line(points={{55,-113},{40,-113},{40,-200},{-88,-200},{-88,
+ -215.5},{-82,-215.5}}, color={0,0,127}));
connect(borFie.PPum,totPPum.u[3])
annotation (Line(points={{-58,-216},{250,-216},{250,-62},{258,-62},{258,-60}},color={0,0,127}));
connect(zerPPum.y,totPPum.u[3])
diff --git a/Buildings/Experimental/DHC/EnergyTransferStations/Combined/HeatPumpHeatExchanger.mo b/Buildings/Experimental/DHC/EnergyTransferStations/Combined/HeatPumpHeatExchanger.mo
index 2683a019d29..f67c44d755a 100644
--- a/Buildings/Experimental/DHC/EnergyTransferStations/Combined/HeatPumpHeatExchanger.mo
+++ b/Buildings/Experimental/DHC/EnergyTransferStations/Combined/HeatPumpHeatExchanger.mo
@@ -1,753 +1,143 @@
within Buildings.Experimental.DHC.EnergyTransferStations.Combined;
-model HeatPumpHeatExchanger "Model of a substation with heat pump and compressor-less cooling"
- extends Buildings.Experimental.DHC.EnergyTransferStations.BaseClasses.PartialETS(
- final typ=Buildings.Experimental.DHC.Types.DistrictSystemType.CombinedGeneration5,
- final have_weaBus=false,
- final have_chiWat=true,
- final have_heaWat=true,
- have_hotWat=false,
- final have_eleHea=true,
- final nFue=0,
- final have_eleCoo=false,
- final have_pum=true,
- final have_fan=false,
- nPorts_aHeaWat=1,
- nPorts_aChiWat=1);
- // SYSTEM GENERAL
- parameter Boolean have_varFloCon = true
- "Set to true for heat pumps with variable condenser flow"
- annotation(Evaluate=true);
- parameter Boolean have_varFloEva = true
- "Set to true for heat pumps with variable evaporator flow"
- annotation(Evaluate=true);
- parameter Real ratFloMin(
- final unit="1",
- final min=0,
- final max=1)=0.3
- "Minimum condenser or evaporator mass flow rate (ratio to nominal)"
- annotation (Dialog(enable=have_varFloCon or have_varFloEva));
- parameter Modelica.Units.SI.Temperature TDisWatMin
- "District water minimum temperature" annotation (Dialog(group="DHC system"));
- parameter Modelica.Units.SI.Temperature TDisWatMax
- "District water maximum temperature" annotation (Dialog(group="DHC system"));
- parameter Modelica.Units.SI.TemperatureDifference dT_nominal(min=0) = 5
- "Water temperature drop/increase accross load and source-side HX (always positive)"
- annotation (Dialog(group="Nominal condition"));
- parameter Modelica.Units.SI.Temperature TChiWatSup_nominal=291.15
- "Chilled water supply temperature"
- annotation (Dialog(group="Nominal conditions"));
- final parameter Modelica.Units.SI.Temperature TChiWatRet_nominal=
- TChiWatSup_nominal + dT_nominal "Chilled water return temperature"
- annotation (Dialog(group="Nominal condition"));
- parameter Modelica.Units.SI.Temperature THeaWatSup_nominal=313.15
- "Heating water supply temperature"
- annotation (Dialog(group="Nominal condition"));
- final parameter Modelica.Units.SI.Temperature THeaWatRet_nominal=
- THeaWatSup_nominal - dT_nominal "Heating water return temperature"
- annotation (Dialog(group="Nominal condition"));
- parameter Modelica.Units.SI.Temperature THotWatSup_nominal=336.15
- "Hot water supply temperature"
- annotation (Dialog(group="Nominal condition", enable=have_hotWat));
- parameter Modelica.Units.SI.Temperature TColWat_nominal=288.15
- "Cold water temperature (for hot water production)"
- annotation (Dialog(group="Nominal condition", enable=have_hotWat));
- parameter Modelica.Units.SI.Pressure dp_nominal(displayUnit="Pa") = 50000
- "Pressure difference at nominal flow rate (for each flow leg)"
- annotation (Dialog(group="Nominal condition"));
- final parameter Modelica.Units.SI.MassFlowRate mHeaWat_flow_nominal(min=0)=
- abs(QHeaWat_flow_nominal/cpBui_default/(THeaWatSup_nominal - THeaWatRet_nominal))
- "Heating water mass flow rate"
- annotation (Dialog(group="Nominal condition"));
- final parameter Modelica.Units.SI.MassFlowRate mChiWat_flow_nominal(min=0)=
- abs(QChiWat_flow_nominal/cpBui_default/(TChiWatSup_nominal - TChiWatRet_nominal))
- "Chilled water mass flow rate"
- annotation (Dialog(group="Nominal conditions"));
- final parameter Modelica.Units.SI.MassFlowRate mEvaHotWat_flow_nominal(min=0)=
- QHotWat_flow_nominal*(COPHotWat_nominal - 1)/COPHotWat_nominal/cpSer_default/dT_nominal
- "Evaporator water mass flow rate of heat pump for hot water production"
- annotation (Dialog(group="Nominal condition", enable=have_hotWat));
- final parameter Modelica.Units.SI.MassFlowRate mSerWat_flow_nominal(min=0)=
- max(proHeaWat.m2_flow_nominal + mEvaHotWat_flow_nominal, hexChi.m1_flow_nominal)
- "Service water mass flow rate"
- annotation (Dialog(group="Nominal condition"));
- constant Modelica.Units.SI.SpecificHeatCapacity cpBui_default=
- MediumBui.specificHeatCapacityCp(MediumBui.setState_pTX(
- p=MediumBui.p_default,
- T=MediumBui.T_default)) "Specific heat capacity of the fluid";
- constant Modelica.Units.SI.SpecificHeatCapacity cpSer_default=
- MediumBui.specificHeatCapacityCp(MediumSer.setState_pTX(
- p=MediumSer.p_default,
- T=MediumSer.T_default)) "Specific heat capacity of the fluid";
- // Heat pump for heating water production
- parameter Real COPHeaWat_nominal(final unit="1")
- "COP of heat pump for heating water production"
- annotation (Dialog(group="Nominal condition"));
- // Heat pump for hot water production
- parameter Real COPHotWat_nominal(final unit="1")
- "COP of heat pump for hot water production"
- annotation (Dialog(group="Nominal condition", enable=have_hotWat));
- // District HX
- final parameter Modelica.Units.SI.MassFlowRate m1HexChi_flow_nominal(min=0)=
- abs(QChiWat_flow_nominal/cpSer_default/dT_nominal)
- "CHW HX primary mass flow rate"
- annotation (Dialog(group="Nominal condition"));
- final parameter Modelica.Units.SI.MassFlowRate m2HexChi_flow_nominal(min=0)=
- abs(QChiWat_flow_nominal/cpSer_default/(THeaWatSup_nominal -
- THeaWatRet_nominal)) "CHW HX secondary mass flow rate"
- annotation (Dialog(group="Nominal condition"));
- // Dynamics
- parameter Modelica.Fluid.Types.Dynamics mixingVolumeEnergyDynamics=
- Modelica.Fluid.Types.Dynamics.FixedInitial
- "Formulation of energy balance for mixing volume at inlet and outlet"
- annotation(Dialog(tab="Dynamics"));
- // IO CONNECTORS
- Buildings.Controls.OBC.CDL.Interfaces.BooleanInput uCoo
- "Cooling enable signal"
- annotation (Placement(transformation(extent={{-340,
- 100},{-300,140}}), iconTransformation(extent={{-380,20},{-300,100}})));
- Buildings.Controls.OBC.CDL.Interfaces.BooleanInput uHea
- "Heating enable signal"
- annotation (Placement(transformation(extent={{-340,
- 140},{-300,180}}), iconTransformation(extent={{-380,60},{-300,140}})));
- Buildings.Controls.OBC.CDL.Interfaces.BooleanInput uSHW if have_hotWat
- "SHW production enable signal"
- annotation (Placement(transformation(extent=
- {{-340,60},{-300,100}}), iconTransformation(extent={{-380,-20},{-300,
- 60}})));
- Buildings.Controls.OBC.CDL.Interfaces.RealInput THeaWatSupSet(
- final unit="K",
- displayUnit="degC")
- "Heating water supply temperature set point"
- annotation (Placement(
- transformation(
- extent={{-340,20},{-300,60}}),
- iconTransformation(
- extent={{-380,-60},{-300,20}})));
- Buildings.Controls.OBC.CDL.Interfaces.RealInput THotWatSupSet(
- final unit="K",
- displayUnit="degC") if have_hotWat
- "Service hot water supply temperature set point"
- annotation (Placement(
- transformation(
- extent={{-20,-20},{20,20}},
- rotation=0,
- origin={-320,-40}),
- iconTransformation(
- extent={{-380,-140},{-300,-60}})));
- Buildings.Controls.OBC.CDL.Interfaces.RealInput TColWat(
- final unit="K",
- displayUnit="degC") if have_hotWat
- "Cold water temperature" annotation (
- Placement(transformation(
- extent={{-20,-20},{20,20}},
- rotation=0,
- origin={-320,-80}), iconTransformation(
- extent={{-40,-40},{40,40}},
- rotation=0,
- origin={-340,-140})));
- Buildings.Controls.OBC.CDL.Interfaces.RealInput loaSHW(
- final unit="W") if have_hotWat "Service hot water load"
- annotation (
- Placement(transformation(
- extent={{-20,-20},{20,20}},
- rotation=0,
- origin={-320,-120}),iconTransformation(
- extent={{-40,-40},{40,40}},
- rotation=0,
- origin={-340,-180})));
- Buildings.Controls.OBC.CDL.Interfaces.RealInput TChiWatSupSet(final unit="K",
- displayUnit="degC")
- "Chilled water supply temperature set point" annotation (Placement(
- transformation(
- extent={{-340,-20},{-300,20}}),
- iconTransformation(
- extent={{-380,-100},{-300,-20}})));
- Buildings.Controls.OBC.CDL.Interfaces.RealOutput mHea_flow(final unit="kg/s")
- "District water mass flow rate used for heating service"
- annotation ( Placement(transformation(extent={{300,-160},{340,-120}}),
- iconTransformation(extent={{300,-160},{380,-80}})));
- Buildings.Controls.OBC.CDL.Interfaces.RealOutput mCoo_flow(final unit="kg/s")
- "District water mass flow rate used for cooling service"
- annotation ( Placement(transformation(extent={{300,-200},{340,-160}}),
- iconTransformation(extent={{300,-200},{380,-120}})));
- // COMPONENTS
- Buildings.Fluid.Delays.DelayFirstOrder volMix_a(
- redeclare final package Medium = MediumSer,
- final nPorts=if have_hotWat then 4 else 3,
- final m_flow_nominal=mSerWat_flow_nominal,
- tau=600,
- final energyDynamics=mixingVolumeEnergyDynamics)
- "Mixing volume to break algebraic loops and to emulate the delay of the substation"
- annotation (Placement(transformation(extent={{-270,-360},{-250,-380}})));
- Buildings.Fluid.Delays.DelayFirstOrder volMix_b(
- redeclare final package Medium = MediumSer,
- final nPorts=if have_hotWat then 4 else 3,
- final m_flow_nominal=mSerWat_flow_nominal,
- tau=600,
- final energyDynamics=mixingVolumeEnergyDynamics)
- "Mixing volume to break algebraic loops and to emulate the delay of the substation"
- annotation (Placement(transformation(extent={{250,-360},{270,-380}})));
- Buildings.Experimental.DHC.EnergyTransferStations.BaseClasses.Pump_m_flow pum1HexChi(
- redeclare final package Medium = MediumSer,
- final m_flow_nominal=m1HexChi_flow_nominal,
- final allowFlowReversal=allowFlowReversalSer,
- dp_nominal=dp_nominal)
- "Chilled water HX primary pump"
- annotation (Placement(transformation(extent={{110,-350},{90,-330}})));
- Buildings.Fluid.HeatExchangers.DryCoilEffectivenessNTU hexChi(
- redeclare final package Medium1 = MediumSer,
- redeclare final package Medium2 = MediumBui,
- final m1_flow_nominal=m1HexChi_flow_nominal,
- final m2_flow_nominal=m2HexChi_flow_nominal,
- final dp1_nominal=dp_nominal/2,
- final dp2_nominal=dp_nominal/2,
- configuration=Buildings.Fluid.Types.HeatExchangerConfiguration.CounterFlow,
- final Q_flow_nominal=QChiWat_flow_nominal,
- final T_a1_nominal=TDisWatMax,
- final T_a2_nominal=TChiWatRet_nominal,
- final allowFlowReversal1=allowFlowReversalSer,
- final allowFlowReversal2=allowFlowReversalBui)
- "Chilled water HX"
- annotation (Placement(transformation(extent={{10,-324},{-10,-344}})));
- Buildings.Fluid.Delays.DelayFirstOrder volHeaWatRet(
- redeclare final package Medium = MediumBui,
- final m_flow_nominal=proHeaWat.m1_flow_nominal,
- tau=60,
- final energyDynamics=mixingVolumeEnergyDynamics,
- T_start=THeaWatSup_nominal,
- nPorts=3) "Mixing volume representing building HHW primary" annotation (
- Placement(transformation(
- extent={{-10,10},{10,-10}},
- rotation=90,
- origin={90,180})));
- Buildings.Fluid.Sensors.MassFlowRate senMasFloHeaWat(
- redeclare final package Medium = MediumBui,
- final allowFlowReversal=allowFlowReversalBui)
- "Heating water mass flow rate"
- annotation (Placement(transformation(extent={{-250,250},{-230,270}})));
- Buildings.Fluid.Delays.DelayFirstOrder volChiWat(
- redeclare final package Medium = MediumBui,
- final m_flow_nominal=m1HexChi_flow_nominal,
- tau=60,
- final energyDynamics=mixingVolumeEnergyDynamics,
- T_start=TChiWatSup_nominal,
- nPorts=3) "Mixing volume representing building CHW primary"
- annotation (Placement(transformation(extent={{-110,-280},{-90,-260}})));
- Buildings.Fluid.Sensors.MassFlowRate senMasFloChiWat(
- redeclare final package Medium = MediumBui,
- final allowFlowReversal=allowFlowReversalBui)
- "Chilled water mass flow rate"
- annotation (Placement(transformation(extent={{-250,-130},{-230,-110}})));
- Buildings.Controls.OBC.CDL.Reals.MultiplyByParameter gai2(final k=
- m1HexChi_flow_nominal)
- annotation (Placement(transformation(extent={{-108,-210},{-88,-190}})));
- Buildings.Experimental.DHC.EnergyTransferStations.Combined.Controls.PIDWithEnable conTChiWat(
- k=0.05,
- Ti=120,
- yMax=1,
- controllerType=Buildings.Controls.OBC.CDL.Types.SimpleController.PI,
- reverseActing=false,
- yMin=0) "PI controller for district HX primary side"
- annotation (Placement(transformation(extent={{-150,-210},{-130,-190}})));
- Buildings.Controls.OBC.CDL.Reals.MultiSum PPumHeaTot(final nin=2)
- "Total pump power for heating applications"
- annotation (Placement(transformation(extent={{190,410},{210,430}})));
- Buildings.Fluid.Sources.Boundary_pT bouHeaWat(
- redeclare final package Medium = MediumBui,
- nPorts=1)
- "Pressure boundary condition representing the expansion vessel"
- annotation (Placement(transformation(extent={{10,-10},{-10,10}},
- rotation=-90,
- origin={60,150})));
- Buildings.Fluid.Sources.Boundary_pT bouChiWat(
- redeclare final package Medium = MediumBui,
- nPorts=1)
- "Pressure boundary condition representing the expansion vessel"
- annotation (Placement(transformation(extent={{-162,-290},{-142,-270}})));
- Buildings.Controls.OBC.CDL.Reals.MultiSum PPumCooTot(nin=1)
- "Total pump power for space cooling"
- annotation (Placement(transformation(extent={{190,370},{210,390}})));
- Buildings.Controls.OBC.CDL.Reals.MultiSum PPumTot(nin=2)
- "Total pump power"
- annotation (Placement(transformation(extent={{220,390},{240,410}})));
- Buildings.Fluid.Sensors.TemperatureTwoPort senTHeaWatSup(
- redeclare final package Medium=MediumBui,
- final allowFlowReversal=allowFlowReversalBui,
- final m_flow_nominal=mHeaWat_flow_nominal)
- "Heating water supply temperature"
- annotation (Placement(
- transformation(
- extent={{-10,-10},{10,10}},
- rotation=0,
- origin={140,260})));
- Buildings.Fluid.Sensors.TemperatureTwoPort senTChiWatSup(
- redeclare final package Medium=MediumBui,
- final allowFlowReversal=allowFlowReversalBui,
- final m_flow_nominal=mChiWat_flow_nominal)
- "Chilled water supply temperature"
- annotation (Placement(
- transformation(
- extent={{-10,-10},{10,10}},
- rotation=0,
- origin={140,-280})));
- Buildings.Experimental.DHC.EnergyTransferStations.Combined.Subsystems.SwitchBox
- swiFlo(
- redeclare final package Medium = MediumSer,
- final m_flow_nominal=mSerWat_flow_nominal) "Flow switch box"
- annotation (Placement(transformation(extent={{-10,-390},{10,-370}})));
- Buildings.Experimental.DHC.EnergyTransferStations.BaseClasses.Junction bypHeaWatSup(
- redeclare final package Medium = MediumBui,
- final m_flow_nominal=proHeaWat.m1_flow_nominal
- *{1,-1,-1}) "Bypass heating water (supply)" annotation (Placement(
- transformation(
- extent={{-10,-10},{10,10}},
- rotation=0,
- origin={100,260})));
- Buildings.Experimental.DHC.EnergyTransferStations.BaseClasses.Junction bypHeaWatRet(
- redeclare final package Medium = MediumBui,
- final m_flow_nominal=proHeaWat.m1_flow_nominal*{1,-1,1})
- "Bypass heating water (return)"
- annotation (Placement(
- transformation(
- extent={{10,10},{-10,-10}},
- rotation=0,
- origin={100,240})));
- Buildings.Controls.OBC.CDL.Logical.TrueFalseHold enaHea(
- trueHoldDuration=15*60) "Enable heating"
- annotation (Placement(transformation(extent={{-140,150},{-120,170}})));
- Buildings.Experimental.DHC.EnergyTransferStations.Combined.Subsystems.HeatPump proHeaWat(
- redeclare final package Medium1 = MediumBui,
- redeclare final package Medium2 = MediumSer,
- final have_varFloCon=have_varFloCon,
- final have_varFloEva=have_varFloEva,
- final COP_nominal=COPHeaWat_nominal,
- final TCon_nominal=THeaWatSup_nominal,
- final TEva_nominal=TDisWatMin-dT_nominal,
- final Q1_flow_nominal=QHeaWat_flow_nominal,
- final allowFlowReversal1=allowFlowReversalBui,
- final allowFlowReversal2=allowFlowReversalSer,
- final dT1_nominal=dT_nominal,
- final dT2_nominal=-dT_nominal,
- final dp1_nominal=dp_nominal,
- final dp2_nominal=dp_nominal) "Subsystem for heating water production"
- annotation (Placement(transformation(extent={{-10,204},{10,224}})));
+model HeatPumpHeatExchanger
+ "Model of a substation with heat pump for heating, heat pump for domestic hot water, and compressor-less cooling"
+ extends
+ Buildings.Experimental.DHC.EnergyTransferStations.Combined.BaseClasses.PartialHeatPumpHeatExchanger(
+ volMix_a(nPorts=4),
+ volMix_b(nPorts=4));
Buildings.Experimental.DHC.EnergyTransferStations.Combined.Subsystems.HeatPump proHotWat(
redeclare final package Medium1 = MediumBui,
redeclare final package Medium2 = MediumSer,
- final have_pumCon=false,
- final have_varFloEva=have_varFloEva,
final COP_nominal=COPHotWat_nominal,
final TCon_nominal=THotWatSup_nominal,
- final TEva_nominal=TDisWatMin-dT_nominal,
+ final TEva_nominal=TDisWatMin - dT_nominal,
+ dT_nominal=dT_nominal,
final Q1_flow_nominal=QHotWat_flow_nominal,
final allowFlowReversal1=allowFlowReversalBui,
final allowFlowReversal2=allowFlowReversalSer,
- final dT1_nominal=THotWatSup_nominal - TColWat_nominal,
- final dT2_nominal=-dT_nominal,
final dp1_nominal=dp_nominal,
final dp2_nominal=dp_nominal) if have_hotWat
"Subsystem for hot water production"
annotation (Placement(transformation(extent={{-10,24},{10,44}})));
- Fluid.Sources.Boundary_pT sinSHW(
+ Buildings.Fluid.Sources.Boundary_pT souColWat(
redeclare final package Medium = MediumBui,
- nPorts=1) if have_hotWat
+ use_T_in=true,
+ nPorts=1) if have_hotWat
+ "Source for cold water"
+ annotation (Placement(transformation(extent={{-48,-50},{-28,-30}})));
+ Buildings.Fluid.Sources.Boundary_pT sinSHW(redeclare final package Medium = MediumBui,
+ nPorts=1)
+ if have_hotWat
"Sink for service hot water" annotation (Placement(
transformation(
extent={{10,-10},{-10,10}},
rotation=180,
origin={-60,60})));
- Fluid.Sources.MassFlowSource_T souColWat(
- redeclare final package Medium = MediumBui,
- use_m_flow_in=true,
- use_T_in=true,
- nPorts=1) if have_hotWat
- "Source for cold water"
- annotation (Placement(transformation(extent={{-48,-50},{-28,-30}})));
Buildings.Controls.OBC.CDL.Reals.Divide div1 if have_hotWat
"Compute mass flow rate from load"
- annotation (Placement(transformation(extent={{-100,-50},{-80,-30}})));
+ annotation (Placement(transformation(extent={{-100,-60},{-80,-40}})));
Buildings.Controls.OBC.CDL.Reals.MultiplyByParameter gai(final k=
cpBui_default) if have_hotWat "Times Cp"
- annotation (Placement(transformation(extent={{-120,-10},{-100,10}})));
- Buildings.Controls.OBC.CDL.Reals.MultiSum masFloHeaTot(final nin=2)
- "Compute district water mass flow rate used for heating service"
- annotation (Placement(transformation(extent={{270,-150},{290,-130}})));
- Modelica.Blocks.Sources.Constant zer(final k=0) if not have_hotWat
- "Replacement variable"
- annotation (Placement(transformation(extent={{140,350},{160,370}})));
- Fluid.Sensors.TemperatureTwoPort senTHeaWatRet(
- redeclare final package Medium = MediumBui,
- final allowFlowReversal=allowFlowReversalBui,
- final m_flow_nominal=mHeaWat_flow_nominal)
- "Heating water return temperature" annotation (Placement(transformation(
- extent={{-10,-10},{10,10}},
- rotation=0,
- origin={20,300})));
- Fluid.Sensors.TemperatureTwoPort senTChiWatRet(
- redeclare final package Medium = MediumBui,
- final allowFlowReversal=allowFlowReversalBui,
- final m_flow_nominal=mChiWat_flow_nominal)
- "Chilled water return temperature" annotation (Placement(transformation(
- extent={{-10,-10},{10,10}},
- rotation=0,
- origin={40,-120})));
+ annotation (Placement(transformation(extent={{-120,-20},{-100,0}})));
Buildings.Controls.OBC.CDL.Reals.Subtract delT if have_hotWat
"Compute DeltaT needed on condenser side"
- annotation (Placement(transformation(extent={{-150,-10},{-130,10}})));
- Fluid.Sensors.MassFlowRate senMasFloHeaWatPri(redeclare final package Medium =
- MediumBui, final allowFlowReversal=allowFlowReversalBui)
- "Primary heating water mass flow rate"
- annotation (Placement(transformation(extent={{30,270},{50,250}})));
- Buildings.Controls.OBC.CDL.Logical.TrueFalseHold enaSHW(
- trueHoldDuration=15*60) if have_hotWat "Enable SHW production"
- annotation (Placement(transformation(extent={{-140,70},{-120,90}})));
- Modelica.Blocks.Sources.Constant zer1(k=0) if not have_hotWat
- "Replacement variable"
- annotation (Placement(transformation(extent={{-40,-250},{-20,-230}})));
- Buildings.Controls.OBC.CDL.Reals.Add masFloHea
- "Service water mass flow rate for heating applications"
- annotation (
- Placement(transformation(
- extent={{-10,-10},{10,10}},
- rotation=-90,
- origin={0,-264})));
- Buildings.Controls.OBC.CDL.Reals.MultiSum PHeaTot(final nin=2)
- "Total power used for heating and hot water production"
- annotation (Placement(transformation(extent={{270,70},{290,90}})));
- Buildings.Controls.OBC.CDL.Reals.Add heaFloEvaSHW if have_hotWat and have_varFloEva
- "Heat flow rate at evaporator"
- annotation (Placement(transformation(extent={{-100,90},{-80,110}})));
- Buildings.Controls.OBC.CDL.Reals.Subtract dTHHW
- "Heating hot water DeltaT"
- annotation (Placement(transformation(extent={{0,310},{-20,330}})));
- Buildings.Controls.OBC.CDL.Reals.MultiplyByParameter capFloHHW(
- final k=cpBui_default) if have_varFloEva or have_varFloCon "Capacity flow rate"
- annotation (Placement(transformation(extent={{-220,310},{-200,330}})));
- Buildings.Controls.OBC.CDL.Reals.Add heaFloEvaHHW if have_varFloEva
- "Heat flow rate at evaporator"
- annotation (Placement(transformation(extent={{-100,230},{-80,250}})));
- Buildings.Experimental.DHC.EnergyTransferStations.Combined.Controls.PrimaryVariableFlow conFloEvaSHW(
- final Q_flow_nominal=-QHotWat_flow_nominal*(1 - 1/COPHotWat_nominal),
- final dT_nominal=-dT_nominal,
- final ratFloMin=ratFloMin,
- final cp=cpSer_default) if have_hotWat and have_varFloEva
- "Mass flow rate control"
- annotation (Placement(transformation(extent={{-60,90},{-40,110}})));
- Buildings.Experimental.DHC.EnergyTransferStations.Combined.Controls.PrimaryVariableFlow conFloConHHW(
- final Q_flow_nominal=QHeaWat_flow_nominal,
- final dT_nominal=dT_nominal,
- final ratFloMin=ratFloMin,
- final cp=cpBui_default) if have_varFloCon
- "Mass flow rate control"
- annotation (Placement(transformation(extent={{-100,270},{-80,290}})));
- Buildings.Experimental.DHC.EnergyTransferStations.Combined.Controls.PrimaryVariableFlow conFloEvaHHW(
- final Q_flow_nominal=-QHeaWat_flow_nominal*(1 - 1/COPHeaWat_nominal),
- final dT_nominal=-dT_nominal,
- final ratFloMin=ratFloMin,
- final cp=cpSer_default) if have_varFloEva
- "Mass flow rate control"
- annotation (Placement(transformation(extent={{-60,230},{-40,250}})));
- Buildings.Controls.OBC.CDL.Reals.Max priOve if have_varFloCon
- "Ensure primary overflow"
- annotation (Placement(transformation(extent={{-60,270},{-40,290}})));
- Buildings.Controls.OBC.CDL.Reals.Multiply loaHHW
- if have_varFloEva or have_varFloCon "Heating load"
- annotation (Placement(transformation(extent={{-140,270},{-120,290}})));
-
- Buildings.Controls.OBC.CDL.Reals.MultiplyByParameter toSub(final k=-1)
- if have_hotWat "Convert to subtraction"
- annotation (Placement(transformation(extent={{-80,70},{-100,90}})));
- Buildings.Controls.OBC.CDL.Reals.MultiplyByParameter toSub1(final k=-1)
- if have_hotWat "Convert to subtraction"
- annotation (Placement(transformation(extent={{-80,216},{-100,236}})));
+ annotation (Placement(transformation(extent={{-150,-20},{-130,0}})));
equation
- connect(TChiWatSupSet, conTChiWat.u_s) annotation (Line(points={{-320,0},{-200,
- 0},{-200,-200},{-152,-200}}, color={0,0,127}));
- connect(pum1HexChi.P, PPumCooTot.u[1]) annotation (Line(points={{89,-331},{84,
- -331},{84,-322},{180,-322},{180,380},{188,380}}, color={0,0,127}));
- connect(PPumHeaTot.y, PPumTot.u[1]) annotation (Line(points={{212,420},{216,420},
- {216,399.5},{218,399.5}},
- color={0,0,127}));
- connect(PPumCooTot.y, PPumTot.u[2]) annotation (Line(points={{212,380},{216,380},
- {216,400.5},{218,400.5}},
- color={0,0,127}));
- connect(pum1HexChi.port_b, hexChi.port_a1) annotation (Line(points={{90,-340},
- {10,-340}}, color={0,127,255}));
- connect(pum1HexChi.m_flow_actual, mCoo_flow) annotation (Line(points={{89,-335},
- {82,-335},{82,-320},{276,-320},{276,-180},{320,-180}}, color={0,0,127}));
- connect(volMix_a.ports[1], swiFlo.port_bSup) annotation (Line(points={{-260,-360},
- {-6,-360},{-6,-370}}, color={0,127,255}));
- connect(swiFlo.port_aRet, volMix_b.ports[1]) annotation (Line(points={{6,-370},
- {6,-360},{260,-360}}, color={0,127,255}));
- connect(volMix_b.ports[2], pum1HexChi.port_a) annotation (Line(points={{260,-360},
- {258,-360},{258,-340},{110,-340}}, color={0,127,255}));
- connect(hexChi.port_b1, volMix_a.ports[2]) annotation (Line(points={{-10,-340},
- {-256,-340},{-256,-360},{-260,-360}}, color={0,127,255}));
- connect(pum1HexChi.m_flow_actual, swiFlo.mRev_flow) annotation (Line(points={
- {89,-335},{80,-335},{80,-356},{-20,-356},{-20,-384},{-12,-384}},
- color={0,0,127}));
- connect(gai2.y, pum1HexChi.m_flow_in)
- annotation (Line(points={{-86,-200},{100,-200},{100,-328}},
- color={0,0,127}));
- connect(PPumTot.y, PPum) annotation (Line(points={{242,400},{244,400},{244,-40},
- {320,-40}}, color={0,0,127}));
- connect(ports_aHeaWat[1], senMasFloHeaWat.port_a) annotation (Line(points={{-300,
- 260},{-250,260}}, color={0,127,255}));
- connect(bypHeaWatSup.port_2, senTHeaWatSup.port_a)
- annotation (Line(points={{110,260},{130,260}}, color={0,127,255}));
- connect(senTHeaWatSup.port_b, ports_bHeaWat[1])
- annotation (Line(points={{150,260},{300,260}}, color={0,127,255}));
- connect(bypHeaWatRet.port_2, volHeaWatRet.ports[1]) annotation (Line(points={{90,240},
- {80,240},{80,178.667}}, color={0,127,255}));
- connect(bouHeaWat.ports[1], volHeaWatRet.ports[2]) annotation (Line(points={{60,160},
- {60,180},{80,180}}, color={0,127,255}));
- connect(ports_aChiWat[1], senMasFloChiWat.port_a) annotation (Line(points={{-300,
- 200},{-280,200},{-280,-120},{-250,-120}}, color={0,127,255}));
- connect(senTChiWatSup.port_b, ports_bChiWat[1]) annotation (Line(points={{150,
- -280},{200,-280},{200,200},{300,200}}, color={0,127,255}));
- connect(bypHeaWatRet.port_3, bypHeaWatSup.port_3)
- annotation (Line(points={{100,250},{100,250}}, color={0,127,255}));
- connect(volHeaWatRet.ports[3], proHeaWat.port_a1) annotation (Line(points={{80,
- 181.333},{80,180},{-20,180},{-20,208},{-10,208}}, color={0,127,255}));
- connect(proHeaWat.port_b2, volMix_b.ports[3]) annotation (Line(points={{10,
- 220},{262,220},{262,-360},{260,-360}}, color={0,127,255}));
- connect(volMix_a.ports[3], proHeaWat.port_a2) annotation (Line(points={{-260,
- -360},{-260,200},{14,200},{14,208},{10,208}}, color={0,127,255}));
- connect(enaHea.y, proHeaWat.uEna) annotation (Line(points={{-118,160},{-48,160},
- {-48,223},{-12,223}}, color={255,0,255}));
- connect(THeaWatSupSet, proHeaWat.TSupSet) annotation (Line(points={{-320,40},{
- -200,40},{-200,217},{-12,217}},
- color={0,0,127}));
- connect(proHeaWat.PPum, PPumHeaTot.u[1]) annotation (Line(points={{12,214},{172,
- 214},{172,419.5},{188,419.5}},
- color={0,0,127}));
- connect(volMix_a.ports[4], proHotWat.port_a2) annotation (Line(points={{-260,
- -360},{-258,-360},{-258,20},{14,20},{14,28},{10,28}}, color={0,127,
- 255}));
- connect(proHotWat.port_b2, volMix_b.ports[4])
- annotation (Line(points={{10,40},{260,40},{260,-360}}, color={0,127,255}));
- connect(THotWatSupSet, proHotWat.TSupSet) annotation (Line(points={{-320,-40},
- {-160,-40},{-160,37},{-12,37}}, color={0,0,127}));
+ connect(souColWat.ports[1], proHotWat.port_a1) annotation (Line(points={{-28,-40},
+ {-20,-40},{-20,40},{-9.8,40}},color={0,127,255}));
connect(sinSHW.ports[1], proHotWat.port_b1) annotation (Line(points={{-50,60},
- {-20,60},{-20,40},{-10,40}}, color={0,127,255}));
- connect(TColWat, souColWat.T_in) annotation (Line(points={{-320,-80},{-60,-80},
- {-60,-36},{-50,-36}}, color={0,0,127}));
- connect(gai.y, div1.u2) annotation (Line(points={{-98,0},{-80,0},{-80,-20},{-120,
- -20},{-120,-46},{-102,-46}}, color={0,0,127}));
- connect(loaSHW, div1.u1) annotation (Line(points={{-320,-120},{-290,-120},{-290,
- -34},{-102,-34}}, color={0,0,127}));
- connect(masFloHeaTot.y, mHea_flow)
- annotation (Line(points={{292,-140},{320,-140}}, color={0,0,127}));
- connect(proHotWat.mEva_flow, masFloHeaTot.u[2]) annotation (Line(points={{12,31},
- {218,31},{218,-139.5},{268,-139.5}},
- color={0,0,127}));
- connect(zer.y, masFloHeaTot.u[2]) annotation (Line(points={{161,360},{216,360},
- {216,-144},{268,-144},{268,-139.5}},
- color={0,0,127}));
+ {14,60},{14,40},{10,40}}, color={0,127,255}));
+ connect(THotWatSupSet, proHotWat.TSupSet) annotation (Line(points={{-320,-40},
+ {-160,-40},{-160,36},{-86,36},{-86,37},{-12,37}},
+ color={0,0,127}));
+ connect(enaSHW.y, proHotWat.uEna) annotation (Line(points={{-118,80},{-114,80},
+ {-114,43},{-12,43}}, color={255,0,255}));
connect(proHotWat.PPum, PPumHeaTot.u[2]) annotation (Line(points={{12,34},{176,
34},{176,420},{188,420},{188,420.5}},
color={0,0,127}));
- connect(proHeaWat.mEva_flow, masFloHeaTot.u[1]) annotation (Line(points={{12,211},
- {220,211},{220,-140.5},{268,-140.5}},
- color={0,0,127}));
- connect(zer.y, PPumHeaTot.u[2]) annotation (Line(points={{161,360},{174,360},{
- 174,418},{188,418},{188,420.5}},
- color={0,0,127}));
- connect(senMasFloHeaWat.port_b, senTHeaWatRet.port_a) annotation (Line(points={{-230,
- 260},{-220,260},{-220,300},{10,300}}, color={0,127,255}));
- connect(senTHeaWatRet.port_b, bypHeaWatRet.port_1) annotation (Line(points={{30,300},
- {120,300},{120,240},{110,240}}, color={0,127,255}));
- connect(senMasFloChiWat.port_b, senTChiWatRet.port_a)
- annotation (Line(points={{-230,-120},{30,-120}}, color={0,127,255}));
- connect(souColWat.ports[1], proHotWat.port_a1) annotation (Line(points={{-28,-40},
- {-20,-40},{-20,28},{-10,28}}, color={0,127,255}));
- connect(delT.y, gai.u)
- annotation (Line(points={{-128,0},{-122,0}}, color={0,0,127}));
- connect(TColWat, delT.u2) annotation (Line(points={{-320,-80},{-156,-80},{-156,
- -6},{-152,-6}}, color={0,0,127}));
- connect(THotWatSupSet, delT.u1) annotation (Line(points={{-320,-40},{-160,-40},
- {-160,6},{-152,6}},
- color={0,0,127}));
- connect(proHeaWat.port_b1, senMasFloHeaWatPri.port_a) annotation (Line(points=
- {{-10,220},{-20,220},{-20,260},{30,260}}, color={0,127,255}));
- connect(senMasFloHeaWatPri.port_b, bypHeaWatSup.port_1)
- annotation (Line(points={{50,260},{90,260}}, color={0,127,255}));
- connect(port_aSerAmb, swiFlo.port_aSup) annotation (Line(points={{-300,-200},{
- -272,-200},{-272,-344},{-280,-344},{-280,-400},{-6,-400},{-6,-390}},
- color={0,127,255}));
- connect(swiFlo.port_bRet, port_bSerAmb) annotation (Line(points={{6,-390},{6,
- -400},{280,-400},{280,-200},{300,-200}},
- color={0,127,255}));
- connect(uHea, enaHea.u) annotation (Line(points={{-320,160},{-142,160}},
- color={255,0,255}));
- connect(conTChiWat.y, gai2.u)
- annotation (Line(points={{-128,-200},{-110,-200}}, color={0,0,127}));
- connect(uCoo, conTChiWat.uEna) annotation (Line(points={{-320,120},{-180,120},
- {-180,-220},{-144,-220},{-144,-212}}, color={255,0,255}));
- connect(uSHW, enaSHW.u)
- annotation (Line(points={{-320,80},{-142,80}}, color={255,0,255}));
- connect(enaSHW.y, proHotWat.uEna) annotation (Line(points={{-118,80},{-114,80},
- {-114,43},{-12,43}},color={255,0,255}));
- connect(div1.y, souColWat.m_flow_in) annotation (Line(points={{-78,-40},{-68,-40},
- {-68,-32},{-50,-32}}, color={0,0,127}));
- connect(senTChiWatRet.port_b, volChiWat.ports[1]) annotation (Line(points={{50,-120},
- {60,-120},{60,-280},{-101.333,-280}}, color={0,127,255}));
- connect(volChiWat.ports[2], hexChi.port_a2) annotation (Line(points={{-100,
- -280},{-120,-280},{-120,-320},{-20,-320},{-20,-328},{-10,-328}},
- color={0,127,255}));
- connect(hexChi.port_b2, senTChiWatSup.port_a) annotation (Line(points={{10,
- -328},{20,-328},{20,-320},{80,-320},{80,-280},{130,-280}}, color={0,
- 127,255}));
- connect(bouChiWat.ports[1], volChiWat.ports[3])
- annotation (Line(points={{-142,-280},{-98.6667,-280}}, color={0,127,255}));
- connect(senTChiWatSup.T, conTChiWat.u_m) annotation (Line(points={{140,-269},
- {140,-220},{-140,-220},{-140,-212}}, color={0,0,127}));
- connect(zer1.y, masFloHea.u2) annotation (Line(points={{-19,-240},{-8,-240},{
- -8,-252},{-6,-252}}, color={0,0,127}));
+ connect(proHotWat.mEva_flow, masFloHeaTot.u[2]) annotation (Line(points={{12,31},
+ {218,31},{218,-139.5},{268,-139.5}},
+ color={0,0,127}));
connect(proHotWat.mEva_flow, masFloHea.u2) annotation (Line(points={{12,31},{18,
31},{18,-240},{-6,-240},{-6,-252}}, color={0,0,127}));
- connect(proHeaWat.mEva_flow, masFloHea.u1) annotation (Line(points={{12,211},{
- 20,211},{20,-246},{6,-246},{6,-252}}, color={0,0,127}));
- connect(masFloHea.y, swiFlo.mPos_flow) annotation (Line(points={{0,-276},{0,
- -320},{-16,-320},{-16,-376},{-12,-376}}, color={0,0,127}));
- connect(proHeaWat.PHea, PHeaTot.u[1]) annotation (Line(points={{12,217},{240,217},
- {240,79.5},{268,79.5}}, color={0,0,127}));
- connect(proHotWat.PHea, PHeaTot.u[2]) annotation (Line(points={{12,37},{240,37},
- {240,80.5},{268,80.5}},
+ connect(proHotWat.PHea, PHeaTot.u[2]) annotation (Line(points={{12,37},{240,
+ 37},{240,80},{256,80},{256,80.5},{268,80.5}},
color={0,0,127}));
- connect(zer.y, PHeaTot.u[2]) annotation (Line(points={{161,360},{242,360},{242,
- 78},{268,78},{268,80.5}}, color={0,0,127}));
- connect(PHeaTot.y, PHea)
- annotation (Line(points={{292,80},{320,80}}, color={0,0,127}));
- connect(loaSHW, heaFloEvaSHW.u1) annotation (Line(points={{-320,-120},{-288,
- -120},{-288,-36},{-164,-36},{-164,106},{-102,106}},
- color={0,0,127}));
- connect(senTHeaWatRet.T, dTHHW.u2)
- annotation (Line(points={{20,311},{20,314},{2,314}}, color={0,0,127}));
- connect(senTHeaWatSup.T, dTHHW.u1)
- annotation (Line(points={{140,271},{140,326},{2,326}}, color={0,0,127}));
- connect(senMasFloHeaWat.m_flow, capFloHHW.u) annotation (Line(points={{-240,271},
- {-240,320},{-222,320}}, color={0,0,127}));
- connect(conFloEvaSHW.m_flow, proHotWat.m2_flow) annotation (Line(points={{-38,100},
- {-16,100},{-16,31},{-12,31}}, color={0,0,127}));
- connect(conFloEvaHHW.m_flow, proHeaWat.m2_flow) annotation (Line(points={{-38,240},
- {-28,240},{-28,211},{-12,211}}, color={0,0,127}));
- connect(senMasFloHeaWat.m_flow, priOve.u1) annotation (Line(points={{-240,271},
- {-240,296},{-70,296},{-70,286},{-62,286}}, color={0,0,127}));
- connect(conFloConHHW.m_flow, priOve.u2) annotation (Line(points={{-78,280},{-70,
- 280},{-70,274},{-62,274}}, color={0,0,127}));
- connect(priOve.y, proHeaWat.m1_flow) annotation (Line(points={{-38,280},{-24,280},
- {-24,214},{-12,214}}, color={0,0,127}));
- connect(heaFloEvaSHW.y, conFloEvaSHW.loa)
- annotation (Line(points={{-78,100},{-62,100}}, color={0,0,127}));
- connect(heaFloEvaHHW.y, conFloEvaHHW.loa)
- annotation (Line(points={{-78,240},{-62,240}}, color={0,0,127}));
- connect(capFloHHW.y, loaHHW.u2) annotation (Line(points={{-198,320},{-180,320},
- {-180,274},{-142,274}}, color={0,0,127}));
- connect(dTHHW.y, loaHHW.u1) annotation (Line(points={{-22,320},{-160,320},{
- -160,286},{-142,286}}, color={0,0,127}));
- connect(loaHHW.y, conFloConHHW.loa)
- annotation (Line(points={{-118,280},{-102,280}}, color={0,0,127}));
- connect(loaHHW.y, heaFloEvaHHW.u1) annotation (Line(points={{-118,280},{-110,
- 280},{-110,246},{-102,246}}, color={0,0,127}));
- connect(proHotWat.PHea, toSub.u) annotation (Line(points={{12,37},{18,37},{18,
- 80},{-78,80}}, color={0,0,127}));
- connect(toSub.y, heaFloEvaSHW.u2) annotation (Line(points={{-102,80},{-108,80},
- {-108,94},{-102,94}}, color={0,0,127}));
- connect(proHeaWat.PHea, toSub1.u) annotation (Line(points={{12,217},{20,217},
- {20,226},{-78,226}}, color={0,0,127}));
- connect(toSub1.y, heaFloEvaHHW.u2) annotation (Line(points={{-102,226},{-110,
- 226},{-110,234},{-102,234}}, color={0,0,127}));
+ connect(TColWat, souColWat.T_in) annotation (Line(points={{-320,-80},{-60,-80},
+ {-60,-36},{-50,-36}}, color={0,0,127}));
+ connect(proHotWat.port_a2, volMix_a.ports[4]) annotation (Line(points={{10,28},
+ {14,28},{14,20},{-260,20},{-260,-360}}, color={0,127,255}));
+ connect(proHotWat.port_b2, volMix_b.ports[4])
+ annotation (Line(points={{-10,28},{-14,28},{-14,0},{260,0},{260,-360}},
+ color={0,127,255}));
+ connect(gai.y,div1. u2) annotation (Line(points={{-98,-10},{-80,-10},{-80,-30},
+ {-120,-30},{-120,-56},{-102,-56}}, color={0,0,127}));
+ connect(QReqHotWat_flow,div1. u1) annotation (Line(points={{-320,-120},{-290,-120},{
+ -290,-44},{-102,-44}},
+ color={0,0,127}));
+ connect(delT.y,gai. u)
+ annotation (Line(points={{-128,-10},{-122,-10}}, color={0,0,127}));
+ connect(TColWat,delT. u2) annotation (Line(points={{-320,-80},{-156,-80},{
+ -156,-16},{-152,-16}},
+ color={0,0,127}));
+ connect(THotWatSupSet,delT. u1) annotation (Line(points={{-320,-40},{-160,-40},
+ {-160,-4},{-152,-4}},
+ color={0,0,127}));
+ connect(div1.y, proHotWat.m1_flow) annotation (Line(points={{-78,-50},{-70,
+ -50},{-70,34},{-12,34}}, color={0,0,127}));
annotation (
- defaultComponentName="ets",
Documentation(info="
-This model represents an energy transfer station as described in Sommer (2020).
+This model uses the base energy transfer station defined in
+
+Buildings.Experimental.DHC.EnergyTransferStations.Combined.BaseClasses.PartialHeatPumpHeatExchanger.
+
+Domestic Hot Water
+
+Domestic hot water is produced using a dedicated water-to-water heat pump
+on-demand with no storage.
-
--
-The cooling function is provided in a compressor-less mode by a heat exchanger
-connected to the service line.
-The chilled water is typically produced at high temperature and distributed
-to radiant cooling systems, for instance at 19°C.
-
--
-The heating functions are provided by water-to-water heat pumps.
-
--
-By default the condenser and evaporator loops are operated
-with variable mass flow rate, with a lower limit specified by the ratio
-
ratFloMin
.
-The model can also represent constant flow condenser and evaporator loops
-by setting have_varFloCon
and have_varFloEva
-to false
.
-
--
-The evaporator water is supplied by mixing the flow rate from the direct connection
-to the service line to the flow rate from the primary side of the cooling
-heat exchanger.
-The hydronic arrangement modeled in
-
-Buildings.Experimental.DHC.EnergyTransferStations.Combined.Subsystems.SwitchBox
-ensures that the resulting fluid stream in the service line always flows
-in the same direction.
-
--
-The heating hot water is typically produced at low temperature,
-for instance 40°C.
-
-
-
-
-Controls
-Heating (resp. cooling) is enabled based on the input signal uHea
-(resp. uCoo
) which is held for 15 minutes, meaning that,
+Heating is enabled based on the input signal uSHW
+which is held for 15 minutes, meaning that,
when enabled, the mode remains active for at least 15 minutes and,
when disabled, the mode cannot be enabled again for at least 15 minutes.
-The heating and cooling enable signals should be computed externally based
+The enable signal should be computed externally based
on a schedule (to lock out the system during off-hours), ideally in conjunction
-with the number of requests yielded by the terminal unit controllers, or any
-other signal representative of the load.
+with the number of requests or any other signal representative of the load.
When enabled,
-Modeling considerations
-
-There is a control volume at each of the two fluid ports that serve as inlet and outlet
-of the heating and cooling systems. These approximate the dynamics
-of the substation, and they also generally avoid nonlinear systems
-of equations if multiple substations are connected to each other.
-
-References
-
-Sommer T., Sulzer M., Wetter M., Sotnikov A., Mennel S., Stettler C.
-The reservoir network: A new network topology for district heating
-and cooling.
-Energy, Volume 199, 15 May 2020, 117418.
-
",
revisions="
-
+September 13, 2023, by David Blum:
+Extended from partial base class.
+This is for
+
+issue 3063.
+
+-
May 17, 2023, by David Blum:
Assigned dp_nominal to pum1HexChi
.
Corrected calculation of heat pump evaporator mass flow control.
@@ -769,7 +159,5 @@ This is for
issue 1097.
-"),
- Diagram(coordinateSystem(extent={{-300,-420},{300,440}})),
- Icon(coordinateSystem(preserveAspectRatio=false, extent={{-300,-300},{300,300}})));
+