-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closed-loop changes to existing test_single_ghe test (#597)
* Add Q_flow output * Add function for saving the used gfunction to tmp * Change length to length_of_boreholes * Add temp sensors and pump controller * Modify connections for closed loop * Change expansion vessel port number * Take out hard code * Enlarge number of boreholes * Enlarge default borehole length * Disable use_m_flow_in for GHE test * Pre-commit changes * pre-commit to run modelica-formatter --------- Co-authored-by: Nathan Moore <nathan.moore@nrel.gov>
- Loading branch information
1 parent
e90cb3e
commit e32ce97
Showing
10 changed files
with
71 additions
and
19 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
...onnectors/couplings/5G_templates/NetworkDistributionPump_Borefield/ConnectStatements.mopt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
// Borefield ambient coupling connections | ||
connect(pumDis.port_b, {{ coupling.plant.id }}.port_a) | ||
{% raw %}annotation (Line(points={{-44,-50},{-44,-10},{-20,-10}},color={0,127,255})); | ||
{% endraw %}connect({{ coupling.plant.id }}.port_b, dis.port_aDisSup) | ||
{% raw %}annotation (Line(points={{0,-10},{50,-10}},color={0,127,255})); | ||
{% endraw %}connect({{ coupling.plant.id }}.port_b, TOut.port_a) | ||
{% raw %}annotation (Line(points={{-10,10},{6,10}}, color={0,127,255})); | ||
{% endraw %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 18 additions & 6 deletions
24
...lings/5G_templates/NetworkDistributionPump_NetworkDistributionPump/ConnectStatements.mopt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,20 @@ | ||
// Connections for sub-components | ||
{% raw %}connect(masFloMaiPum.y,pumDis.m_flow_in) | ||
annotation (Line(points={{-21,-60},{-32,-60}}, color={0,0,127})); | ||
connect(pumDis.port_a, expVes.ports[1]) | ||
annotation (Line(points={{-44,-70},{-44,-80},{100,-80},{100,-64},{120,-64}}, color={0,127,255})); | ||
connect(expVes.ports[2], dis.port_bDisSup) | ||
annotation (Line(points={{120,-68},{100,-68},{100,-10},{90,-10}}, color={0,127,255})); | ||
{% raw %}connect(dis.port_bDisSup, TIn.port_a) | ||
annotation (Line(points={{90,10},{110,10},{110,-20}}, color={0,127,255})); | ||
connect(TIn.port_b, pumDis.port_a) | ||
annotation (Line(points={{110,-40},{110,-80},{-44,-80},{-44,-70}}, color={0,127,255})); | ||
connect(expVes.ports[1], pumDis.port_a) | ||
annotation (Line(points={{-20,-100},{-20,-80},{-44,-80},{-44,-70}}, color={0,127,255})); | ||
connect(conPum.y, gai.u) | ||
annotation (Line(points={{-98,-90},{-82,-90}}, color={0,0,127})); | ||
connect(gai.y, pumDis.m_flow_in) | ||
annotation (Line(points={{-58,-90},{-26,-90},{-26,-60},{-32,-60}}, color={0,0,127})); | ||
connect(dis.TOut, conPum.TMix) | ||
annotation (Line(points={{92,4},{128,4},{128,-112},{-134,-112},{-134,-84},{-122,-84}}, color={0,0,127})); | ||
connect(TIn.T, conPum.TSouIn[1]) | ||
annotation (Line(points={{121,-30},{128,-30},{128,-112},{-130,-112},{-130,-90},{-122,-90}}, color={0,0,127})); | ||
connect(TOut.port_b, dis.port_aDisSup) | ||
annotation (Line(points={{26,10},{50,10}}, color={0,127,255})); | ||
connect(TOut.T, conPum.TSouOut[1]) | ||
annotation (Line(points={{16,-1},{16,-112},{-126,-112},{-126,-96},{-122,-96}},color={0,0,127})); | ||
{% endraw %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters