Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add all-electric plant model to DHC package #3263

Merged
merged 157 commits into from
Aug 23, 2023
Merged
Show file tree
Hide file tree
Changes from 72 commits
Commits
Show all changes
157 commits
Select commit Hold shift + click to select a range
6bd1bdf
Add heat recovery option to PartialElectric
AntoineGautier Dec 20, 2022
e009311
Add package for combined plants
AntoineGautier Dec 20, 2022
b398772
Implement chiller group
AntoineGautier Dec 21, 2022
413cb83
Add optional input gain in MassFlowRateMultiplier
AntoineGautier Dec 22, 2022
5cb04a7
Add MultiplePumps model and validation
AntoineGautier Dec 22, 2022
cf81e46
Add MultipleFlowResistances model
AntoineGautier Dec 22, 2022
f19c822
Add model ChillerGroupHeatRecovery
AntoineGautier Dec 23, 2022
b27294b
Refactor PartialChillerGroup
AntoineGautier Dec 24, 2022
ef1bdf0
Fix chiller coef
AntoineGautier Dec 24, 2022
5be6d29
Merge branch 'master' of github.com:lbl-srg/modelica-buildings into i…
AntoineGautier Jan 2, 2023
78a7115
Add heat pump group
AntoineGautier Jan 2, 2023
f0ce13c
Add validation model for HP group
AntoineGautier Jan 3, 2023
da9a098
Develop whole plant model
AntoineGautier Jan 4, 2023
764ce88
Update HR chiller performance coef
AntoineGautier Jan 5, 2023
1adf7b9
Implement CW loop, remove nChiCoo
AntoineGautier Jan 6, 2023
81f0435
Add cooling tower group, update whole plant model
AntoineGautier Jan 9, 2023
db6bcec
Whole plant with HP & tank, debug open-loop model
AntoineGautier Jan 10, 2023
9268f74
Implement switchover mode, add example, fix typos
AntoineGautier Jan 11, 2023
ab9f113
Update reference results
AntoineGautier Jan 11, 2023
06225ac
Merge branch 'issue3211_switchoverHRC' into issue3188_allElectricPlant
AntoineGautier Jan 11, 2023
10b4961
Refactor after merging
AntoineGautier Jan 11, 2023
16b19b4
Add direct HR mode
AntoineGautier Jan 11, 2023
9165d23
Redesign HR chiller group component
AntoineGautier Jan 12, 2023
2f14ec0
Redesign HR chiller group component
AntoineGautier Jan 12, 2023
ba220eb
Fix structural error
AntoineGautier Jan 12, 2023
624b225
Minor
AntoineGautier Jan 12, 2023
56fb09b
Update open-loop validation
AntoineGautier Jan 13, 2023
725e8e8
Develop closed loop controller
AntoineGautier Jan 16, 2023
7fc6e97
Update and validate pump staging block
AntoineGautier Jan 17, 2023
6b7b5c3
Integrate pump controllers into main
AntoineGautier Jan 17, 2023
7de89bd
Implement chiller staging logic
AntoineGautier Jan 18, 2023
815e0d6
Implement condenser loop mode selector
AntoineGautier Jan 20, 2023
094a48e
Add valve command block & new I/O to HRC
AntoineGautier Jan 23, 2023
89fa23c
Refactor plant staging logic
AntoineGautier Jan 24, 2023
e5cc91f
Refactor HRC group with 2-way valves
AntoineGautier Jan 25, 2023
9241456
Merge branch 'master' of github.com:lbl-srg/modelica-buildings
AntoineGautier Jan 30, 2023
fbfde0e
Use detailed pump staging, update main controller
AntoineGautier Jan 30, 2023
ff97c27
Develop CT loop controller
AntoineGautier Jan 31, 2023
b9b5687
Merge branch 'master' of github.com:lbl-srg/modelica-buildings into i…
AntoineGautier Feb 1, 2023
233bbc3
Include evap. loop control, refactor HP group
AntoineGautier Feb 2, 2023
b31e4a6
Implement cond. temperature and min. flow controls
AntoineGautier Feb 3, 2023
1779720
Remove CT fan enable/disable logic
AntoineGautier Feb 4, 2023
bfd186b
Update mininum flow control and bypass valve model
AntoineGautier Feb 6, 2023
81e2d0f
Fix tank cycle index computation
AntoineGautier Feb 6, 2023
6c0ae6e
Use hysteresis to avoid chattering with OCT
AntoineGautier Feb 7, 2023
adaa7e0
Update evap. isolation valve control
AntoineGautier Feb 8, 2023
ae8d810
Doc
AntoineGautier Feb 9, 2023
030cf1c
Merge branch 'master' of github.com:lbl-srg/modelica-buildings into i…
AntoineGautier Feb 13, 2023
83e65f7
Doc
AntoineGautier Feb 13, 2023
1719e40
Fix Latch block logic, doc
AntoineGautier Feb 21, 2023
aa2d8bf
Doc
AntoineGautier Feb 24, 2023
ef07037
Add unit tests results and schematic source file
AntoineGautier Feb 24, 2023
b6bea01
Fix power computation
AntoineGautier Feb 24, 2023
f227375
Regenerate results, fix Boolean source for OCT [ci skip]
AntoineGautier Feb 27, 2023
ed45234
Exclude models from OMC tests [ci skip]
AntoineGautier Feb 27, 2023
ed9d4bf
Update doc [ci skip]
AntoineGautier Feb 27, 2023
6bc9cec
TMP! Restrict CI testing
AntoineGautier Feb 27, 2023
9cf602a
Merge branch 'master' of github.com:lbl-srg/modelica-buildings into i…
AntoineGautier Feb 27, 2023
21c9d56
TMP! Restrict CI testing
AntoineGautier Feb 27, 2023
d7f6224
Rename, fix access to variable in const. class [ci skip]
AntoineGautier Feb 27, 2023
5374330
Update results
AntoineGautier Feb 27, 2023
f783655
Restore full CI
AntoineGautier Feb 27, 2023
db5f808
Fix HRC condenser valve control
AntoineGautier Mar 3, 2023
b256990
Update schematic, dp_nominal of bypass valve, doc
AntoineGautier Mar 3, 2023
ef413e4
Update doc [ci skip]
AntoineGautier Mar 3, 2023
bdc604c
Update graphics including interface classes
AntoineGautier Mar 6, 2023
52d3b36
Add CW bypass valve and HR rate for loop mode
AntoineGautier Mar 7, 2023
439476d
Update doc and schematic
AntoineGautier Mar 7, 2023
498343d
Add icons
AntoineGautier Mar 7, 2023
1dad31b
Update results
AntoineGautier Mar 7, 2023
5c9e9b3
Remove duplicate documentation
dhblum Mar 16, 2023
4c31878
Merge branch 'master' into issue3188_allElectricPlant
dhblum Mar 16, 2023
c69a58e
Initial implementation of partial direct and indirect ETS classes
dhblum Mar 16, 2023
9ba58ad
Add direct heating ETS and example with script
dhblum Mar 16, 2023
6961d20
Add heating indirect ETS with example and correct indirect control of…
dhblum Mar 16, 2023
4f72f02
Initial imlementation of heating load with timeseries and direct ETS,…
dhblum Mar 17, 2023
de13557
Update doc, modify default pump number [ci skip]
AntoineGautier Mar 17, 2023
cac56f4
Update results
AntoineGautier Mar 17, 2023
5ecc352
Initial implementation of district validation model
dhblum Mar 28, 2023
9fb5cf8
Tune controller to improve HRC evap flow set point following
dhblum Mar 28, 2023
b0b209c
Change dT nominal evaporator to increase mass flow nominal to help pr…
dhblum Mar 28, 2023
e4b93e4
Increase check valve dp, simulates one year
dhblum Mar 28, 2023
d566469
Use distribution network models for hea and coo
dhblum Mar 30, 2023
7db7213
Add script and test one year with dis network models
dhblum Mar 30, 2023
c8129c9
Move model to new Examples package
dhblum Apr 7, 2023
a9da783
Simulate network of 2 buildings
dhblum Apr 7, 2023
8114837
Comment about dpCheVal to avoid freezing due to possible Dymola bug
dhblum Apr 7, 2023
ad44184
Add revisions doc
dhblum Apr 7, 2023
6226103
Edit docs
dhblum Apr 20, 2023
a6bfcc0
Increase dp of check valve in heating load
dhblum Apr 20, 2023
f4e1961
Update simulate and plot start and stop time
dhblum Apr 20, 2023
bcf47b8
Fix simulate and plot script for unit test
dhblum May 4, 2023
ea105c6
Merge branch 'master' into issue3188_allElectricPlant_districtValidation
dhblum May 4, 2023
155f515
Fix conf.yml format
dhblum May 4, 2023
d84b91d
Fix cooling indirect ets
dhblum May 4, 2023
560274e
Add and update reference results
dhblum May 4, 2023
3493745
Add example model to exemption list for OM and Optimica with comments
dhblum May 5, 2023
3533641
Merge branch 'issue3188_allElectricPlant_districtValidation' into iss…
dhblum May 5, 2023
1e6a2a0
Remove BOM
dhblum May 5, 2023
5a3466b
Fix package order
dhblum May 5, 2023
ee1aae5
Remove invalid string
dhblum May 5, 2023
599e1e5
Add unit test results for heating load
dhblum May 5, 2023
a6eec6d
Merge branch 'master' into issue3188_allElectricPlant
dhblum May 9, 2023
7716762
Update reference results for new direct heating ets example model
dhblum May 9, 2023
f2b1a57
Remove redefine of check valve nominal pressure drop
dhblum May 10, 2023
cb5b719
Update reference results for check valve update
dhblum May 10, 2023
9a38664
Update reference results for new heating direct ETS example for allow…
dhblum May 10, 2023
d6318e3
Apply each to displayUnit for Optimica warnings
dhblum May 10, 2023
c543de3
Merge branch 'issue3188_allElectricPlant' of github.com:lbl-srg/model…
mwetter May 11, 2023
3c2e575
Set max attribute
mwetter May 11, 2023
9301816
Set displayUnit [ci skip]
mwetter May 11, 2023
c1e8384
Set displayUnit [ci skip]
mwetter May 11, 2023
ead4faf
Reformatted text [ci skip]
mwetter May 11, 2023
b63e0f5
Merge branch 'issue3188_allElectricPlant' of github.com:lbl-srg/model…
mwetter May 11, 2023
63343d8
Formatted file [ci skip]
mwetter May 11, 2023
4ade665
Merge branch 'master' into issue3188_allElectricPlant
dhblum May 18, 2023
f437afa
Edit (each unit)
dhblum May 18, 2023
3b3c658
Set opening filter boolean to true (travis skip)
dhblum May 18, 2023
170ed5e
Change start value of par to default value
dhblum May 30, 2023
cd65a50
Add/update revision notes [ci skip]
dhblum May 30, 2023
89199ac
Update cooling indirect ets to extend partial
dhblum May 30, 2023
0c90c7c
Remove start attribute for indirect ETS parameters
dhblum May 30, 2023
e3f480e
Remove additional start values
dhblum May 30, 2023
56ea740
Remove BOM
dhblum May 30, 2023
5a57b68
Merge branch 'master' into issue3188_allElectricPlant
dhblum May 31, 2023
ecf1b1f
Reduce Example test to 5 days from 10 to avoid timeout
dhblum May 31, 2023
94e5b82
Remove BOM
dhblum May 31, 2023
4368400
Correct default stoptime in Example model .mo file
dhblum May 31, 2023
8468215
Split unit tests for Applications and Experimental packages
dhblum Jun 5, 2023
e74c85c
Merge branch 'master' into issue3188_allElectricPlant
dhblum Jun 6, 2023
2882181
Merge branch 'master' into issue3188_allElectricPlant
dhblum Jun 14, 2023
69e90b4
Update travis yml so installs Spawn before install with only Experime…
dhblum Jul 12, 2023
4e62809
Update release notes
dhblum Jul 12, 2023
77fb982
Update release notes
dhblum Jul 12, 2023
4d5fc06
Merge branch 'master' into issue3188_allElectricPlant
dhblum Jul 13, 2023
82d4137
Split Experimental.DHC testing to guard against timeout
dhblum Jul 13, 2023
9a94dce
Try splitting Examples unit tests into Cooling and Combined
dhblum Jul 17, 2023
750abf6
Try unit tests for Examples.Combined with one processor to run one at…
dhblum Jul 19, 2023
3e8cf26
Merge branch 'master' into issue3188_allElectricPlant
dhblum Jul 19, 2023
ddf793a
Spec single processor for openmodelica-Examples.Combined and combine …
dhblum Jul 20, 2023
8a6c8a1
Fix for making PartialPlant default to Water for both mediums for hea…
dhblum Jul 20, 2023
0ba5654
Update reference results
dhblum Jul 21, 2023
ff23f67
Set number of processor to system-dependent setting
mwetter Jul 24, 2023
8712fee
Updated citation
mwetter Jul 24, 2023
3a21070
Set number of processor to system-dependent setting
mwetter Jul 24, 2023
9655a7b
Reverted assignment of NPROC
mwetter Jul 25, 2023
a099f95
Add hysteresis to compare blocks in controllers
dhblum Jul 26, 2023
2fcfcc2
Remove BOM
dhblum Jul 26, 2023
e8ba5cc
Add time_out in conf.yml
dhblum Jul 27, 2023
209b467
Changed threshold to make sure switches are below 1
mwetter Jul 27, 2023
1fc7b11
Update hysteresis parameters to normalize by design flow rates or hea…
dhblum Jul 31, 2023
b6ca2ab
Update using nominal heat flow scaling for hysteresis parameters
dhblum Jul 31, 2023
7dd24ba
Remove BOM
dhblum Jul 31, 2023
e0bc4b2
Fix odd typo
dhblum Jul 31, 2023
41a7c31
Correct parameter grouping
dhblum Jul 31, 2023
6d0453d
Merge branch 'master' into issue3188_allElectricPlant
dhblum Aug 22, 2023
a044507
Remove leftover git conflict syntax
dhblum Aug 22, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ First implementation.
extent={{20,-288},{300,-272}},
lineColor={0,0,255},
pattern=LinePattern.None,
fillColor={255,0,0},
fillColor={0,0,255},
fillPattern=FillPattern.Solid,
visible=typ == TypDisSys.CombinedGeneration1 or typ == TypDisSys.CombinedGeneration2to4
or typ == TypDisSys.Cooling),
Expand Down Expand Up @@ -372,17 +372,18 @@ First implementation.
extent={{58,-248},{300,-232}},
lineColor={0,0,255},
pattern=LinePattern.None,
fillColor={0,0,255},
fillColor={255,0,0},
fillPattern=FillPattern.Solid,
visible=typ <> TypDisSys.Cooling and typ <> TypDisSys.CombinedGeneration5),
Rectangle(
extent={{-45,-9},{45,9}},
extent={{-45,-8},{45,8}},
lineColor={0,0,255},
pattern=LinePattern.None,
fillColor={0,0,255},
fillColor={255,0,0},
fillPattern=FillPattern.Solid,
visible=typ <> TypDisSys.Cooling and typ <> TypDisSys.CombinedGeneration5,
origin={67,-187},

origin={66,-187},
rotation=90),
Rectangle(
extent={{-45,-8},{45,8}},
Expand All @@ -391,17 +392,18 @@ First implementation.
fillColor={255,0,0},
fillPattern=FillPattern.Solid,
visible=typ <> TypDisSys.Cooling and typ <> TypDisSys.CombinedGeneration5,

origin={-66,-187},
rotation=90),
Rectangle(
extent={{-66,-8},{66,8}},
extent={{-65,-8},{65,8}},
lineColor={0,0,255},
pattern=LinePattern.None,
fillColor={255,0,0},
fillColor={0,0,255},
fillPattern=FillPattern.Solid,
visible=typ == TypDisSys.CombinedGeneration1 or typ == TypDisSys.CombinedGeneration2to4
or typ == TypDisSys.Cooling,
origin={28,-208},
origin={28,-207},
rotation=90),
Rectangle(
extent={{-302,-288},{-22,-272}},
Expand Down Expand Up @@ -441,9 +443,9 @@ First implementation.
rotation=0),
Rectangle(
extent={{-130,-8},{130,8}},
lineColor={0,0,255},
lineColor={255,0,0},
pattern=LinePattern.None,
fillColor={0,0,255},
fillColor={255,0,0},
fillPattern=FillPattern.Solid,
visible=have_heaWat,
origin={-170,260},
Expand All @@ -452,7 +454,7 @@ First implementation.
extent={{-102,-8},{102,8}},
lineColor={0,0,255},
pattern=LinePattern.None,
fillColor={238,46,47},
fillColor={0,0,255},
fillPattern=FillPattern.Solid,
origin={-198,160},
rotation=0,
Expand All @@ -461,7 +463,7 @@ First implementation.
extent={{-6,-8},{6,8}},
lineColor={0,0,255},
pattern=LinePattern.None,
fillColor={238,46,47},
fillColor={0,0,255},
fillPattern=FillPattern.Solid,
origin={-104,146},
rotation=90,
Expand All @@ -470,7 +472,7 @@ First implementation.
extent={{-130,-8},{130,8}},
lineColor={0,0,255},
pattern=LinePattern.None,
fillColor={238,46,47},
fillColor={255,0,0},
fillPattern=FillPattern.Solid,
origin={170,260},
rotation=0,
Expand All @@ -479,7 +481,7 @@ First implementation.
extent={{-56,-9},{56,9}},
lineColor={0,0,255},
pattern=LinePattern.None,
fillColor={238,46,47},
fillColor={255,0,0},
fillPattern=FillPattern.Solid,
origin={49,196},
rotation=90,
Expand All @@ -488,7 +490,7 @@ First implementation.
extent={{-56,-9},{56,9}},
lineColor={0,0,255},
pattern=LinePattern.None,
fillColor={0,0,255},
fillColor={255,0,0},
fillPattern=FillPattern.Solid,
origin={-49,196},
rotation=90,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ block PIDWithEnable
"Set to true for reverse acting, or false for direct acting control action";
parameter Real y_reset=yMin
"Value to which the controller output is reset if the boolean trigger has a rising edge";
parameter Real y_neutral=y_reset
"Value to which the controller output is reset when the controller is disabled";
Buildings.Controls.OBC.CDL.Interfaces.RealInput u_s
"Connector of setpoint input signal"
annotation (Placement(transformation(extent={{-140,-20},{-100,20}}),iconTransformation(extent={{-140,-20},{-100,20}})));
Expand Down Expand Up @@ -54,7 +56,7 @@ block PIDWithEnable
Buildings.Controls.OBC.CDL.Continuous.Switch swi1
annotation (Placement(transformation(extent={{72,-10},{92,10}})));
Buildings.Controls.OBC.CDL.Continuous.Sources.Constant valDis(
final k=0)
final k=y_neutral)
"Value when disabled"
annotation (Placement(transformation(extent={{30,-50},{50,-30}})));
equation
Expand Down
16 changes: 2 additions & 14 deletions Buildings/Experimental/DHC/Loads/BaseClasses/PartialBuilding.mo
Original file line number Diff line number Diff line change
Expand Up @@ -287,13 +287,7 @@ First implementation.
fillColor={255,255,255},
fillPattern=FillPattern.Solid),
Rectangle(
extent={{20,-188},{300,-172}},
lineColor={0,0,255},
pattern=LinePattern.None,
fillColor={255,0,0},
fillPattern=FillPattern.Solid),
Rectangle(
extent={{-300,-172},{-20,-188}},
extent={{-300,-172},{300,-188}},
lineColor={0,0,255},
pattern=LinePattern.None,
fillColor={0,0,255},
Expand All @@ -308,13 +302,7 @@ First implementation.
textColor={0,0,255},
textString="%name"),
Rectangle(
extent={{20,-52},{300,-68}},
lineColor={0,0,255},
pattern=LinePattern.None,
fillColor={0,0,255},
fillPattern=FillPattern.Solid),
Rectangle(
extent={{-300,-68},{-20,-52}},
extent={{-300,-68},{300,-52}},
lineColor={0,0,255},
pattern=LinePattern.None,
fillColor={255,0,0},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -514,14 +514,14 @@ equation
extent={{40,-34},{100,-46}},
lineColor={0,0,255},
pattern=LinePattern.None,
fillColor={0,0,255},
fillColor={255,0,0},
fillPattern=FillPattern.Solid,
visible=typ <> TypDisSys.Cooling and typ <> TypDisSys.CombinedGeneration5),
Rectangle(
extent={{-100,-34},{-40,-46}},
lineColor={0,0,255},
pattern=LinePattern.None,
fillColor={238,46,47},
fillColor={255,0,0},
fillPattern=FillPattern.Solid,
visible=typ <> TypDisSys.Cooling and typ <> TypDisSys.CombinedGeneration5),
Rectangle(
Expand All @@ -538,7 +538,7 @@ equation
extent={{-14,-6},{14,6}},
lineColor={0,0,255},
pattern=LinePattern.None,
fillColor={238,46,47},
fillColor={0,0,255},
fillPattern=FillPattern.Solid,
origin={28,-60},
rotation=90,
Expand All @@ -548,7 +548,7 @@ equation
extent={{22,-86},{100,-74}},
lineColor={0,0,255},
pattern=LinePattern.None,
fillColor={238,46,47},
fillColor={0,0,255},
fillPattern=FillPattern.Solid,
visible=typ == TypDisSys.CombinedGeneration1 or typ == TypDisSys.CombinedGeneration2to4
or typ == TypDisSys.Cooling)}),
Expand Down
57 changes: 22 additions & 35 deletions Buildings/Experimental/DHC/Plants/BaseClasses/PartialPlant.mo
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ partial model PartialPlant
if have_serAmb
"Fluid connector for ambient water service supply line"
annotation (
Placement(transformation(extent={{-310,30},{-290,50}}),
Placement(transformation(extent={{-390,30},{-370,50}}),
iconTransformation(extent={{-310,30},{-290,50}})));
Modelica.Fluid.Interfaces.FluidPort_b port_bSerAmb(
redeclare package Medium = Medium,
Expand All @@ -56,69 +56,70 @@ partial model PartialPlant
if have_serAmb
"Fluid connector for ambient water service return line"
annotation (
Placement(transformation(extent={{290,30},{310,50}}),
Placement(transformation(extent={{370,30},{390,50}}),
iconTransformation(extent={{290,30},{310,50}})));
Modelica.Fluid.Interfaces.FluidPort_a port_aSerHea(
redeclare package Medium = Medium,
m_flow(min=if allowFlowReversal then -Modelica.Constants.inf else 0),
h_outflow(start=Medium.h_default, nominal=Medium.h_default)) if have_hea
"Fluid connector for heating service supply line"
annotation (Placement(
transformation(extent={{-310,-10},{-290,10}}), iconTransformation(
transformation(extent={{-390,-10},{-370,10}}), iconTransformation(
extent={{-310,-10},{-290,10}})));
Modelica.Fluid.Interfaces.FluidPort_b port_bSerHea(
redeclare package Medium = MediumHea_b,
m_flow(max=if allowFlowReversal then +Modelica.Constants.inf else 0),
h_outflow(start=MediumHea_b.h_default, nominal=MediumHea_b.h_default)) if have_hea
"Fluid connector for heating service return line"
annotation (Placement(
transformation(extent={{290,-10},{310,10}}), iconTransformation(
transformation(extent={{370,-10},{390,10}}), iconTransformation(
extent={{290,-10},{310,10}})));
Modelica.Fluid.Interfaces.FluidPort_a port_aSerCoo(
redeclare package Medium = Medium,
m_flow(min=if allowFlowReversal then -Modelica.Constants.inf else 0),
h_outflow(start=Medium.h_default, nominal=Medium.h_default))
if have_coo
"Fluid connector for cooling service supply line"
annotation (Placement(transformation(extent={{-310,-50},{-290,-30}})));
annotation (Placement(transformation(extent={{-390,-50},{-370,-30}}),
iconTransformation(extent={{-310,-50},{-290,-30}})));
Modelica.Fluid.Interfaces.FluidPort_b port_bSerCoo(
redeclare package Medium = Medium,
m_flow(max=if allowFlowReversal then +Modelica.Constants.inf else 0),
h_outflow(start=Medium.h_default, nominal=Medium.h_default))
if have_coo
"Fluid connector for cooling service return line"
annotation (Placement(
transformation(extent={{290,-50},{310,-30}}), iconTransformation(
transformation(extent={{370,-50},{390,-30}}), iconTransformation(
extent={{290,-50},{310,-30}})));
Buildings.BoundaryConditions.WeatherData.Bus weaBus if have_weaBus
"Weather data bus"
annotation (Placement(transformation(extent={{-16,250},{18,282}}),
iconTransformation(extent={{-16,250},{18,282}})));
annotation (Placement(transformation(extent={{-20,360},{20,400}}),
iconTransformation(extent={{-10,290},{10,310}})));
Buildings.Controls.OBC.CDL.Interfaces.RealOutput PHea(
final unit="W") if have_eleHea
"Power drawn by heating system"
annotation (Placement(transformation(extent={{300,260},{340,300}}),
annotation (Placement(transformation(extent={{380,260},{420,300}}),
iconTransformation(extent={{300,240},{380,320}})));
Buildings.Controls.OBC.CDL.Interfaces.RealOutput PCoo(
final unit="W") if have_eleCoo
"Power drawn by cooling system"
annotation (Placement(transformation(extent={{300,220},{340,260}}),
annotation (Placement(transformation(extent={{380,220},{420,260}}),
iconTransformation(extent={{300,200},{380,280}})));
Buildings.Controls.OBC.CDL.Interfaces.RealOutput PFan(
final unit="W") if have_fan
"Power drawn by fan motors"
annotation (Placement(transformation(extent={{300,180},{340,220}}),
annotation (Placement(transformation(extent={{380,180},{420,220}}),
iconTransformation(extent={{300,160},{380,240}})));
Buildings.Controls.OBC.CDL.Interfaces.RealOutput PPum(
final unit="W") if have_pum
"Power drawn by pump motors"
annotation (Placement(transformation(extent={{300,140},{340,180}}),
annotation (Placement(transformation(extent={{380,140},{420,180}}),
iconTransformation(extent={{300,120},{380,200}})));
Buildings.Controls.OBC.CDL.Interfaces.RealOutput QFue_flow[nFue](
each final unit="W") if nFue>0
"Fuel energy input rate"
annotation (
Placement(transformation(extent={{300,100},{340,140}}),
Placement(transformation(extent={{380,100},{420,140}}),
iconTransformation(extent={{300,80},{380,160}})));
protected
final parameter Boolean have_hea=typ <> Buildings.Experimental.DHC.Types.DistrictSystemType.Cooling and
Expand Down Expand Up @@ -188,14 +189,7 @@ First implementation.
color={0,0,255},
pattern=LinePattern.None),
Rectangle(
extent={{-300,-8},{-140,8}},
lineColor={0,0,255},
pattern=LinePattern.None,
fillColor={0,0,255},
fillPattern=FillPattern.Solid,
visible=have_hea),
Rectangle(
extent={{140,-48},{300,-32}},
extent={{-300,-48},{300,-32}},
lineColor={0,0,255},
pattern=LinePattern.None,
fillColor={0,0,255},
Expand All @@ -216,26 +210,19 @@ First implementation.
fillPattern=FillPattern.Solid,
visible=have_serAmb),
Rectangle(
extent={{-140,140},{140,-142}},
lineColor={27,0,55},
fillColor={170,213,255},
fillPattern=FillPattern.Solid),
Rectangle(
extent={{140,-8},{300,8}},
extent={{-300,-8},{300,8}},
lineColor={0,0,255},
pattern=LinePattern.None,
fillColor={238,46,47},
fillColor={255,0,0},
fillPattern=FillPattern.Solid,
visible=have_hea),
Rectangle(
extent={{-300,-48},{-140,-32}},
lineColor={0,0,255},
pattern=LinePattern.None,
fillColor={238,46,47},
fillPattern=FillPattern.Solid,
visible=have_coo)}),
extent={{-140,140},{140,-142}},
lineColor={27,0,55},
fillColor={170,213,255},
fillPattern=FillPattern.Solid)}),
Diagram(
coordinateSystem(
preserveAspectRatio=false,
extent={{-300,-300},{300,300}})));
extent={{-380,-380},{380,380}})));
end PartialPlant;
Loading