/
DHC_5G_waste_heat_GHX.mot
106 lines (106 loc) · 4.33 KB
/
DHC_5G_waste_heat_GHX.mot
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
within {{ data['project_name'] }}.Districts;
model district
"Series connection with constant district water mass flow rate"
extends
PartialSeries(redeclare
Buildings.Experimental.DHC.Loads.Combined.BuildingTimeSeriesWithETS
bui[nBui](final filNam=filNam), datDes(
nBui={{ data['building_load_files'] | count }},
mPumDis_flow_nominal={{ data['max_flow_rate'] }},
mPla_flow_nominal={{ data['max_flow_rate'] }},
mSto_flow_nominal={{ data['max_flow_rate'] / 10 }},
dp_length_nominal=250,
epsPla=0.935,
{{ data['lDis'] }},
{{ data['lCon'] }}
)
);
parameter String filNam[nBui]={
{% for building in data['building_load_files'] %}
"{{ building }}"{% if not loop.last %},{% endif %}
{% endfor %}{% raw %}}
"Library paths of the files with thermal loads as time series";
Modelica.Blocks.Sources.Constant masFloMaiPum(
k=datDes.mPumDis_flow_nominal)
"Distribution pump mass flow rate"
annotation (Placement(transformation(extent={{-300,-70},{-280,-50}})));
Modelica.Blocks.Sources.Constant masFloDisPla(
k=datDes.mPla_flow_nominal)
"District water flow rate to plant"
annotation (Placement(transformation(extent={{-300,-6},{-280,14}})));
Modelica.Blocks.Sources.Constant masFloStoPum(
k=datDes.mSto_flow_nominal)
"Storage/GHX pump mass flow rate"
annotation (Placement(transformation(extent={{-300,-108},{-280,-88}})));
Buildings.Controls.OBC.CDL.Reals.Sources.Constant THotWatSupSet[nBui](
k=fill(63 + 273.15, nBui))
"Hot water supply temperature set point"
annotation (Placement(transformation(extent={{-190,170},{-170,190}})));
Buildings.Controls.OBC.CDL.Reals.Sources.Constant TColWat[nBui](
k=fill(15 + 273.15, nBui))
"Cold water temperature"
annotation (Placement(transformation(extent={{-160,150},{-140,170}})));
equation
connect(masFloMaiPum.y, pumDis.m_flow_in) annotation (Line(points={{-279,-60},
{-106,-60},{68,-60}}, color={0,0,127}));
connect(masFloStoPum.y, pumSto.m_flow_in) annotation (Line(points={{-279,-98},
{-238,-98},{-238,-66},{-180,-66}}, color={0,0,127}));
connect(masFloDisPla.y, pla.mPum_flow) annotation (Line(points={{-279,4},{
-161.333,4},{-161.333,4.66667}}, color={0,0,127}));
connect(THotWatSupSet.y, bui.THotWatSupSet) annotation (Line(points={{-168,
180},{-24,180},{-24,183},{-12,183}}, color={0,0,127}));
connect(TColWat.y, bui.TColWat) annotation (Line(points={{-138,160},{-40,160},
{-40,164},{-8,164},{-8,168}}, color={0,0,127}));
annotation (
Diagram(
coordinateSystem(preserveAspectRatio=false, extent={{-360,-260},{360,260}})),
experiment(
StopTime=31536000,
Interval=300,
Tolerance=1e-06,
__Dymola_Algorithm="Dassl"),
Documentation(info="<html>
<p>
This is a model of a so-called \"reservoir network\" (Sommer 2020), i.e., a fifth
generation district system with unidirectional mass flow rate in the
district loop, and energy transfer stations connected in series.
In this model, the temperature of the district loop is stabilized through
the operation of the plant and the borefield.
The main circulation pump has a constant mass flow rate.
Each substation takes water from the main district loop and feeds its return water back
into the main district loop downstream from the intake.
The pipes of the main loop are designed for a pressure drop of
<code>dpDis_length_nominal=250</code> Pa/m at the design flow rate.
</p>
<h4>References</h4>
<p>
Sommer T., Sulzer M., Wetter M., Sotnikov A., Mennel S., Stettler C.
<i>The reservoir network: A new network topology for district heating
and cooling.</i>
Energy, Volume 199, 15 May 2020, 117418.
</p>
</html>", revisions="<html>
<ul>
<li>
April 12, 2023, by Nicholas Long:<br/>
Templatized for direct use in GMT with n-building connectors.<br/>
Changes include: removing dymola run command tied to MBL path, adding
a constant for borehole field mass flow rate (no longer tied to main
distribution loop).
</li>
<li>
February 23, 2021, by Antoine Gautier:<br/>
Refactored with base classes from the <code>DHC</code> package.<br/>
This is for
<a href=\"https://github.com/lbl-srg/modelica-buildings/issues/1769\">
issue 1769</a>.
</li>
<li>
January 12, 2020, by Michael Wetter:<br/>
Added documentation.
</li>
</ul>
</html>"),
__Dymola_experimentSetupOutput);
end district;
{% endraw %}