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

Issue1223 new storage examples #1307

Open
wants to merge 112 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
112 commits
Select commit Hold shift + click to select a range
a2149d0
Add conversion script for renaming #1171 [skip ci]
LauraMaier Jan 27, 2022
4bdc81f
Change version number in AixLib #1171 [skip ci]
LauraMaier Jan 27, 2022
612b155
Rename storage models #1171 [skip ci]
LauraMaier Jan 27, 2022
2fbb2af
Adapt package order #1171 [skip ci]
LauraMaier Jan 27, 2022
fce547e
Automatic path change in example models #1171 [skip ci]
LauraMaier Jan 27, 2022
c8aebd7
Adapt documentation to increase comprehensibility #1171 [skip ci]
LauraMaier Jan 27, 2022
080200b
Add temperature sensors in simple storage #1171
LauraMaier Jan 27, 2022
5d38fd0
ci_correct_html
ebc-aixlib-bot Jan 27, 2022
f2d1b77
Merge pull request #1225 from RWTH-EBC/Correct_HTML_issue1171_Storage…
LauraMaier Jan 28, 2022
4027ea0
Change used class in geothermal example #1171
LauraMaier Jan 28, 2022
6378d97
Adapt name of data base due to renaming of bufferStorage [skip ci] #1171
LauraMaier Jan 28, 2022
03d3e4d
Adapt conversion script for new data base record #1171
LauraMaier Jan 28, 2022
7f709c7
Replace HC1 to old position and change path to data base #1171
LauraMaier Jan 28, 2022
fbe8d82
Merge branch 'development' into issue1171_StorageSpringCleaning
LauraMaier Mar 23, 2022
7508612
Adapt baseData in partialHeatTransfer #1171
LauraMaier Mar 23, 2022
1066f23
Adapt conversion script and rename example #1171
LauraMaier Mar 23, 2022
81249b4
Adapt simulate and plot script to new name #1171 [skip-ci]
LauraMaier Mar 23, 2022
74ec10e
Add simulate and plot script #1171
LauraMaier Mar 23, 2022
9810289
Add simulate and plot scripts for storage related examples #1171
LauraMaier Mar 23, 2022
823eba6
Automatic push of CI with new regression reference files.Please pull …
ebc-aixlib-bot Mar 23, 2022
61b730c
Replace obsolete pump and valve models in example model #1171 "ci_upd…
LauraMaier Mar 23, 2022
ec7f364
Replace obsolete pump model in StorageBoiler example #1171 "ci_update…
LauraMaier Mar 23, 2022
0d61e63
Automatic push of CI with updated or new regression reference files.P…
ebc-aixlib-bot Mar 23, 2022
6fc9854
Merge branch 'IBPSA_Merge' into issue1171_StorageSpringCleaning
LauraMaier Jul 14, 2022
9a26a02
Merge branch 'IBPSA_Merge' into issue1171_StorageSpringCleaning #1171
LauraMaier Jul 14, 2022
2000641
Refactor SI units path in storage models #1171
LauraMaier Jul 14, 2022
643f429
Add conversion script and update version #1171
LauraMaier Jul 14, 2022
7c033a6
Add conversion script #1171
LauraMaier Jul 14, 2022
6b22338
Adapt conversion script #1171
LauraMaier Jul 14, 2022
4fea999
Delete Medium model due to double declaration #1171
LauraMaier Jul 14, 2022
8bda225
Adapt white list for CI #1171
LauraMaier Jul 14, 2022
4f46a9a
Merge branch 'issue1171_StorageSpringCleaning' into issue1223_NewStor…
LauraMaier Jul 14, 2022
ad99c48
Replace Storage in exergy meter example with correct path #1171
LauraMaier Jul 14, 2022
9d0a6d3
Add example for simple storage #1223
LauraMaier Jul 14, 2022
c2f454b
Adapt specific heat capacity #1223 [skip ci]
LauraMaier Jul 14, 2022
ea1f35f
Add simulate and plot script #1223 [skip ci]
LauraMaier Jul 14, 2022
3adddb2
Add pressure drops #1223
LauraMaier Jul 14, 2022
b5e83bf
Merge branch 'development' into issue1171_StorageSpringCleaning
LauraMaier Oct 12, 2022
92c7431
Add conversion script and update AL version #1171
LauraMaier Oct 12, 2022
1b542fe
Merge branch 'development' into issue1223_NewStorageExamples
LauraMaier Oct 12, 2022
c5cc586
Change all paths to absolute paths and replace PID controller #1223 […
LauraMaier Oct 12, 2022
e019b52
Corrected some absolute paths #1223 [skip ci]
LauraMaier Oct 12, 2022
8cea333
Replaced PIDs by AL models rather than MSL #1223 [skip ci]
LauraMaier Oct 12, 2022
1ebf6e3
Refactoring and adding descriptions #1223
LauraMaier Oct 12, 2022
7947ced
Automatic push of CI with new regression reference files.Please pull …
ebc-aixlib-bot Oct 12, 2022
dabb343
Merge branch 'development' into issue1171_StorageSpringCleaning
LauraMaier Oct 13, 2022
3829755
Add Storage example on update list "ci_update_ref" #1171
LauraMaier Oct 13, 2022
f279c80
Replace wrong storage path in exergy example #1223
LauraMaier Oct 13, 2022
2bfa740
Merge branch 'development' into issue1223_NewStorageExamples
LauraMaier Oct 13, 2022
48488da
Automatic push of CI with updated or new regression reference files.P…
ebc-aixlib-bot Oct 13, 2022
b1e05ae
Merge branch 'development' into issue1171_StorageSpringCleaning
LauraMaier Oct 13, 2022
812ab0f
Adapt storage examples to avoid warnings and "ci_update_ref" #1171
LauraMaier Oct 14, 2022
f278ae2
Correct simulate and plot script and update ref results "ci_update_re…
LauraMaier Oct 14, 2022
1eb2ecc
Merge branch 'development' into issue1223_NewStorageExamples
LauraMaier Oct 14, 2022
d862f12
Automatic push of CI with updated or new regression reference files.P…
ebc-aixlib-bot Oct 14, 2022
20d3cfb
Sloppy change to trigger CI with new reference results "ci_update_ref…
LauraMaier Oct 17, 2022
0fa9af4
Automatic push of CI with updated or new regression reference files.P…
ebc-aixlib-bot Oct 17, 2022
e597844
Delete ref results to force CI to create new ones #1223
LauraMaier Oct 21, 2022
3fc5cc5
Automatic push of CI with new regression reference files.Please pull …
ebc-aixlib-bot Oct 21, 2022
f24c23f
Merge branch 'issue1171_StorageSpringCleaning' into issue1223_NewStor…
LauraMaier Oct 24, 2022
38b4e76
Adapt initialization #1223
LauraMaier Oct 24, 2022
ba57c81
Trigger update of reference results for solar collector example #1223
LauraMaier Oct 24, 2022
1757734
Automatic push of CI with new regression reference files.Please pull …
ebc-aixlib-bot Oct 24, 2022
b0570fb
Merge branch 'development' into issue1223_NewStorageExamples
LauraMaier Oct 24, 2022
0e72f33
Adapt simulate and plot script, delete ref results and add initializa…
LauraMaier Oct 24, 2022
ae41d8d
Automatic push of CI with new regression reference files.Please pull …
ebc-aixlib-bot Oct 24, 2022
df1739e
Refactor paths and delete import SI #1223
LauraMaier Oct 28, 2022
1f23ab7
Delete import SI and change to full paths #1171
LauraMaier Oct 28, 2022
e148bd7
Merge branch 'development' into issue1171_StorageSpringCleaning
LauraMaier Oct 28, 2022
9db1100
Merge branch 'development' into issue1223_NewStorageExamples
LauraMaier Oct 28, 2022
f00bda7
Merge branch 'development' into issue1171_StorageSpringCleaning
LauraMaier Nov 1, 2022
fb08f47
Merge branch 'development' into issue1223_NewStorageExamples
LauraMaier Nov 1, 2022
3851797
Merge branch 'issue1171_StorageSpringCleaning' into issue1223_NewStor…
LauraMaier Nov 10, 2022
6f25b1b
Try revert of date created, an unnecessary commit
Nov 11, 2022
b5cd9d1
revert ashrea as well
Nov 11, 2022
7b39720
Add full paths #1223
LauraMaier Nov 14, 2022
958a197
Delete unnecessary import AixLib commands #1223
LauraMaier Nov 14, 2022
9a5ed2d
Restructure model and delete faulty assignments in documentation #1223
LauraMaier Nov 14, 2022
03173f1
Adapt faulty reference #1223
LauraMaier Nov 14, 2022
d64920a
Add array for output of temperatures for each layer #1223
LauraMaier Nov 14, 2022
44b9501
Add revisions in docu and update simulate and plot script #1223
LauraMaier Nov 14, 2022
04106b0
Merge branch 'development' into issue1223_NewStorageExamples
LauraMaier Nov 14, 2022
5e60ccf
Adapt simulate and plot scripts and update ref results #1223
LauraMaier Nov 14, 2022
3901992
Automatic push of CI with new regression reference files.Please pull …
ebc-aixlib-bot Nov 14, 2022
0e9d003
Add documentation for storage boiler example #1223
LauraMaier Nov 14, 2022
ec4ad4e
ci_correct_html
ebc-aixlib-bot Nov 14, 2022
39df81d
Merge pull request #1403 from RWTH-EBC/Correct_HTML_issue1223_NewStor…
LauraMaier Nov 14, 2022
382f0b0
Add revision section and further documentation #1223
LauraMaier Nov 14, 2022
4d5d235
Update simulate and plot script #1223
LauraMaier Nov 14, 2022
e80138c
ci_correct_html
ebc-aixlib-bot Nov 14, 2022
fe4bfee
Merge pull request #1404 from RWTH-EBC/Correct_HTML_issue1223_NewStor…
LauraMaier Nov 14, 2022
1c3c948
Automatic push of CI with new regression reference files.Please pull …
ebc-aixlib-bot Nov 14, 2022
e47cd6a
Revert "ci_correct_html"
ebc-aixlib-bot Nov 14, 2022
51c03d7
Delete import SI and update documentation #1223
LauraMaier Nov 17, 2022
e253d18
Adapt html for revisions and delete overview section #1223
LauraMaier Nov 17, 2022
868b3df
delete ugly white space #1223
LauraMaier Nov 17, 2022
c7459e1
Reformatting of ugly white spaces #1223
LauraMaier Nov 17, 2022
dc8a752
More ugly white spaces #1223
LauraMaier Nov 17, 2022
f432824
More and more ugly white spaces #1223
LauraMaier Nov 17, 2022
21eeeee
Revert unintended change in reference results #1223
LauraMaier Nov 17, 2022
4dc0c4c
Revert unintented change in ref results of thermal zone #1223
LauraMaier Nov 17, 2022
47f63a4
Revert unintended change in ref results #1223
LauraMaier Nov 17, 2022
6faa28d
Revert unintended changes in .mos script and update ref results #1223
LauraMaier Nov 17, 2022
1ba2f2c
re-add file [skip-ci]
Nov 18, 2022
b9eb08a
Merge branch 'issue1223_NewStorageExamples' of https://github.com/RWT…
Nov 18, 2022
25ae341
del file
Nov 18, 2022
47b85d7
try correct rename [skip-ci]
Nov 18, 2022
267b05c
trigger ci to avoid merge possibility
Nov 18, 2022
e4420a2
Correct html manually #1223
LauraMaier Nov 21, 2022
00fe3e7
Correct html manually #1223
LauraMaier Nov 21, 2022
951fd78
Correct more html manually #1223
LauraMaier Nov 21, 2022
8ad40b2
Correct html manually #1223
LauraMaier Nov 22, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
75 changes: 0 additions & 75 deletions AixLib/DataBase/Storage/BufferStorageBaseDataDefinition.mo

This file was deleted.

2 changes: 1 addition & 1 deletion AixLib/DataBase/Storage/Generic_New_2000l.mo
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
within AixLib.DataBase.Storage;
record Generic_New_2000l "Pseudo storage with 2000 l (standing)"
extends BufferStorageBaseDataDefinition(
extends StorageDetailedBaseDataDefinition(
hTank=2.145,
hLowerPortDemand=0.1,
hUpperPortDemand=2.1,
Expand Down
75 changes: 75 additions & 0 deletions AixLib/DataBase/Storage/StorageDetailedBaseDataDefinition.mo
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
within AixLib.DataBase.Storage;
record StorageDetailedBaseDataDefinition
"Base data definition for Buffer storage records"
extends Modelica.Icons.Record;
///////////input parameters////////////

parameter Modelica.Units.SI.Height hTank "Height of storage";
parameter Modelica.Units.SI.Height hLowerPortDemand "Height of lower demand port";
parameter Modelica.Units.SI.Height hUpperPortDemand "Height of upper demand port";
parameter Modelica.Units.SI.Height hLowerPortSupply "Height of lower supply port";
parameter Modelica.Units.SI.Height hUpperPortSupply "Height of upper supply port";
parameter Modelica.Units.SI.Height hHC1Up "Height of heating Coil";
parameter Modelica.Units.SI.Height hHC1Low "Height of heating Coil";
parameter Modelica.Units.SI.Height hHC2Up "Height of heating Coil";
parameter Modelica.Units.SI.Height hHC2Low "Height of heating Coil";
parameter Modelica.Units.SI.Height hHR "Height of heating Rod";
parameter Modelica.Units.SI.Diameter dTank "Inner diameter of storage";
parameter Modelica.Units.SI.Length sWall "Thickness of storage Wall";
parameter Modelica.Units.SI.Length sIns "Thickness of storage insulation";
parameter Modelica.Units.SI.ThermalConductivity lambdaWall
"thermal conductivity of storage wall";
parameter Modelica.Units.SI.ThermalConductivity lambdaIns
"thermal conductivity of storage insulation";
parameter Modelica.Units.SI.Length hTS1 "Height of lower temperature sensor";
parameter Modelica.Units.SI.Length hTS2 "Height of upper temperature sensor";
parameter Modelica.Units.SI.Density rhoIns "Density of insulation";
parameter Modelica.Units.SI.SpecificHeatCapacity cIns "Heat capacity of insulation";
parameter Modelica.Units.SI.Density rhoWall "Density of wall";
parameter Modelica.Units.SI.SpecificHeatCapacity cWall "Heat capacity of wall";
parameter Modelica.Units.SI.Length roughness "Inner roughness of storage wall";

// Heat exchanger Pipes

parameter DataBase.Pipes.PipeBaseDataDefinition pipeHC1
"Type of Pipe for HR1";
parameter DataBase.Pipes.PipeBaseDataDefinition pipeHC2
"Type of Pipe for HR2";

parameter Modelica.Units.SI.Length lengthHC1 "Length of Pipe for HR1";
parameter Modelica.Units.SI.Length lengthHC2 "Length of Pipe for HR2";

annotation (Icon(graphics),Documentation(info="<html><h4>
<span style=\"color:#008000\">Overview</span>
</h4>
<p>
Base data definition for detailed storage records
</p>
<h4>
<span style=\"color:#008000\">References</span>
</h4>
<p>
Base data definition for record used with
<a href=\"modelica://AixLib.Fluid.Storage.StorageDetailed\">AixLib.Fluid.Storage.StorageDetailed</a>
</p>
</html>",
revisions="<html><ul>
<li>
<i>November 17, 2022</i> by Laura Maier:<br/>
Refactor and fix documentation
</li>
<li>
<i>October 12, 2016&#160;</i> by Marcus Fuchs:<br/>
Add comments and fix documentation
</li>
<li>
<i>October 11, 2016&#160;</i> by Sebastian Stinner:<br/>
Transferred to AixLib
</li>
<li>
<i>July 4, 2013&#160;</i> by Ole Odendahl:<br/>
Added documentation and formatted appropriately
</li>
</ul>
</html>"));
end StorageDetailedBaseDataDefinition;
2 changes: 1 addition & 1 deletion AixLib/DataBase/Storage/package.order
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
BufferStorageBaseDataDefinition
StorageDetailedBaseDataDefinition
Generic_New_2000l
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ partial model GeothermalHeatPumpBase
AixLib.Fluid.Interfaces.PartialTwoPort
annotation (Placement(transformation(extent={{108,-56},{120,-44}})));

Storage.BufferStorage
Storage.StorageDetailed
coldStorage(
redeclare package Medium = Medium,
redeclare package MediumHC1 = Medium,
Expand Down Expand Up @@ -86,7 +86,7 @@ partial model GeothermalHeatPumpBase
extent={{-6,-7},{6,7}},
rotation=90,
origin={-60,1})));
Storage.BufferStorage
Storage.StorageDetailed
heatStorage(
redeclare package Medium = Medium,
redeclare package MediumHC1 = Medium,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ partial model PartialHeatTransferLayers "Partial for storage heat transfer model
Modelica.Media.Interfaces.PartialMedium "Medium model" annotation(choicesAllMatching);

replaceable parameter
AixLib.DataBase.Storage.BufferStorageBaseDataDefinition data=
AixLib.DataBase.Storage.StorageDetailedBaseDataDefinition data=
AixLib.DataBase.Storage.Generic_New_2000l()
"Storage data record"
annotation (choicesAllMatching);
Expand Down
144 changes: 80 additions & 64 deletions AixLib/Fluid/Storage/Examples/StorageBoiler.mo
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
within AixLib.Fluid.Storage.Examples;
model StorageBoiler
extends Modelica.Icons.Example;
import AixLib;

replaceable package Medium =
Modelica.Media.Water.ConstantPropertyLiquidWater
constrainedby Modelica.Media.Interfaces.PartialMedium;

AixLib.Fluid.Storage.BufferStorage
bufferStorage(
AixLib.Fluid.Storage.StorageDetailed bufferStorage(
energyDynamics=Modelica.Fluid.Types.Dynamics.FixedInitial,
redeclare package MediumHC1 = Medium,
redeclare package MediumHC2 = Medium,
FWuellhorst marked this conversation as resolved.
Show resolved Hide resolved
m1_flow_nominal=pipe1.m_flow_nominal,
m2_flow_nominal=pipe1.m_flow_nominal,
mHC1_flow_nominal=pipe1.m_flow_nominal,
useHeatingCoil2=false,
useHeatingRod=false,
TStart=343.15,
redeclare AixLib.DataBase.Storage.Generic_New_2000l data(
hTank=2,
hUpperPortDemand=1.95,
Expand All @@ -27,89 +27,104 @@ model StorageBoiler
hConIn=1500,
hConOut=15,
redeclare package Medium = Medium,
hConHC1=300) annotation (Placement(transformation(extent={{6,8},{
-18,38}})));
Modelica.Thermal.HeatTransfer.Sources.FixedTemperature fixedTemperature(T = 283.15) annotation(Placement(transformation(extent={{-56,12},
{-36,32}})));
AixLib.Obsolete.Year2021.Fluid.Movers.Pump pump(redeclare package Medium = Medium, m_flow_small=1e-4) annotation (Placement(transformation(
extent={{-10,-10},{10,10}},
rotation=270,
origin={6,60})));
AixLib.Fluid.Sources.Boundary_pT
boundary_p(nPorts=1, redeclare package Medium = Medium)
annotation(Placement(transformation(extent={{-48,68},
{-28,88}})));
Modelica.Blocks.Sources.BooleanExpression booleanExpression annotation(Placement(transformation(extent = {{-10, -10}, {10, 10}}, rotation = 180, origin={46,48})));
Modelica.Blocks.Sources.Constant const(k = 273.15 + 80) annotation(Placement(transformation(extent = {{-3, -3}, {3, 3}}, rotation = 180, origin={61,67})));
hConHC1=300) annotation (Placement(transformation(extent={{6,-14},{-18,16}})));
Modelica.Thermal.HeatTransfer.Sources.FixedTemperature fixedTemperature(T = 283.15)
annotation(Placement(transformation(extent={{-56,-10},{-36,10}})));
AixLib.Fluid.Sources.Boundary_pT boundary_p(redeclare package Medium = Medium,nPorts=1)
annotation(Placement(transformation(extent={{-48,46},{-28,66}})));
Modelica.Blocks.Sources.Constant SetTemp(k=273.15 + 80) annotation (Placement(
transformation(
extent={{-7,-7},{7,7}},
rotation=180,
origin={65,69})));
AixLib.Fluid.FixedResistances.PressureDrop pipe(
redeclare package Medium = Medium,
m_flow_nominal=0.5,
dp_nominal=200)
annotation (Placement(transformation(extent={{12,-12},{32,8}})));
AixLib.Fluid.FixedResistances.HydraulicResistance
hydraulicResistance(zeta = 1000,
annotation (Placement(transformation(extent={{18,-34},{38,-14}})));
AixLib.Fluid.FixedResistances.HydraulicResistance hydraulicResistance(zeta = 1000,
redeclare package Medium = Medium,
diameter=0.05,
m_flow_nominal=0.001) annotation(Placement(transformation(extent={{46,-12},
{66,8}})));
AixLib.Fluid.Sources.Boundary_ph
boundary_ph1(use_p_in = true, h = 0.8e5,
m_flow_nominal=0.001) annotation(Placement(transformation(extent={{46,-34},
{66,-14}})));
AixLib.Fluid.Sources.Boundary_ph boundary_ph1(use_p_in = true,
h = 0.8e5,
nPorts=1,
redeclare package Medium = Medium) annotation(Placement(transformation(extent={{-66,-22},
{-46,-2}})));
Modelica.Blocks.Sources.Ramp ramp(duration = 1000, height = 0.00001e5,
offset=101325) annotation(Placement(transformation(extent={{-96,-14},
{-76,6}})));
AixLib.Fluid.Sources.Boundary_pT
boundary_ph2(nPorts=1, redeclare package Medium = Medium)
annotation(Placement(transformation(extent = {{10, -10}, {-10, 10}}, rotation = 180, origin={-38,56})));
redeclare package Medium = Medium)
annotation(Placement(transformation(extent={{-66,-44},{-46,-24}})));
Modelica.Blocks.Sources.Ramp ramp(duration = 1000,
height = 0.00001e5,
offset=101325) annotation(Placement(transformation(extent={{-96,-36},{-76,-16}})));
AixLib.Fluid.Sources.Boundary_pT boundary_ph2(nPorts=1,
redeclare package Medium = Medium)
annotation(Placement(transformation(extent = {{10, -10}, {-10, 10}}, rotation = 180, origin={-38,34})));
AixLib.Fluid.FixedResistances.PressureDrop pipe1(
redeclare package Medium = Medium,
m_flow_nominal=0.5,
dp_nominal=200)
annotation (Placement(transformation(extent={{-36,-22},{-16,-2}})));
annotation (Placement(transformation(extent={{-36,-44},{-16,-24}})));
AixLib.Fluid.HeatExchangers.Heater_T hea(
redeclare package Medium = Medium,
m_flow_nominal=0.01,
dp_nominal=0)
annotation (Placement(transformation(extent={{42,68},{22,88}})));
annotation (Placement(transformation(extent={{42,46},{22,66}})));
AixLib.Fluid.Movers.FlowControlled_dp pump(redeclare package Medium = Medium,
energyDynamics=Modelica.Fluid.Types.Dynamics.SteadyState,
T_start=298.15,
m_flow_nominal=pipe1.m_flow_nominal,
per(pressure(V_flow={0,pipe.m_flow_nominal/1000,pipe.m_flow_nominal/(1000*
0.8)}, dp={dpSet.k/0.8,dpSet.k,0}), motorCooledByFluid=false))
annotation (Placement(transformation(extent={{10,10},{-10,-10}},rotation=90,origin={2,42})));
Modelica.Blocks.Sources.Constant dpSet(k=40000)
"Constant set pressure difference for pump" annotation (Placement(
transformation(
extent={{-7,-7},{7,7}},
rotation=180,
origin={37,27})));
equation
connect(booleanExpression.y, pump.IsNight) annotation(Line(points={{35,48},{
24,48},{24,60},{16.2,60}}, color = {255, 0, 255}));
connect(pipe.port_b, hydraulicResistance.port_a) annotation(Line(points={{32,-2},
{46,-2}}, color = {0, 127, 255}));
connect(ramp.y, boundary_ph1.p_in) annotation(Line(points={{-75,-4},{-68,-4}}, color = {0, 0, 127}));
connect(pipe.port_b, hydraulicResistance.port_a) annotation(Line(points={{38,-24},
{46,-24}},color = {0, 127, 255}));
connect(ramp.y, boundary_ph1.p_in) annotation(Line(points={{-75,-26},{-68,-26}},color = {0, 0, 127}));
connect(boundary_ph1.ports[1], pipe1.port_a) annotation (Line(
points={{-46,-12},{-36,-12}},
points={{-46,-34},{-36,-34}},
color={0,127,255}));
connect(boundary_p.ports[1], pump.port_a) annotation (Line(
points={{-28,78},{6,78},{6,70}},
color={0,127,255}));
connect(pump.port_a, hea.port_b) annotation (Line(points={{6,70},{6,70},{6,78},
{6,78},{22,78}}, color={0,127,255}));
connect(hydraulicResistance.port_b, hea.port_a) annotation (Line(points={{66,
-2},{80,-2},{80,78},{42,78}}, color={0,127,255}));
connect(const.y, hea.TSet) annotation (Line(points={{57.7,67},{52,67},{52,86},
{44,86}}, color={0,0,127}));
connect(hydraulicResistance.port_b, hea.port_a) annotation (Line(points={{66,-24},
{80,-24},{80,56},{42,56}}, color={0,127,255}));
connect(SetTemp.y, hea.TSet) annotation (Line(points={{57.3,69},{52,69},{52,
64},{44,64}}, color={0,0,127}));
connect(boundary_ph2.ports[1], bufferStorage.fluidportTop2) annotation (Line(
points={{-28,56},{-9.75,56},{-9.75,38.15}}, color={0,127,255}));
connect(bufferStorage.fluidportBottom2, pipe1.port_b) annotation (Line(points=
{{-9.45,7.85},{-9.45,-2},{-10,-2},{-10,-12},{-16,-12}}, color={0,127,
points={{-28,34},{-9.75,34},{-9.75,16.15}}, color={0,127,255}));
connect(bufferStorage.fluidportBottom2, pipe1.port_b) annotation (Line(points={{-9.45,
-14.15},{-9.45,-24},{-10,-24},{-10,-34},{-16,-34}}, color={0,127,
255}));
connect(pipe.port_a, bufferStorage.portHC1Out) annotation (Line(points={{12,
-2},{14,-2},{14,26.9},{6.15,26.9}}, color={0,127,255}));
connect(pump.port_b, bufferStorage.portHC1In) annotation (Line(points={{6,50},
{6,44},{12,44},{12,31.55},{6.3,31.55}}, color={0,127,255}));
connect(pipe.port_a, bufferStorage.portHC1Out) annotation (Line(points={{18,-24},
{18,4.9},{6.15,4.9}}, color={0,127,255}));
connect(fixedTemperature.port, bufferStorage.heatportOutside) annotation (
Line(points={{-36,22},{-28,22},{-28,23.9},{-17.7,23.9}}, color={191,0,0}));
Line(points={{-36,0},{-28,0},{-28,1.9},{-17.7,1.9}}, color={191,0,0}));
connect(pump.port_b, bufferStorage.portHC1In) annotation (Line(points={{2,32},
{2,26},{14,26},{14,9.55},{6.3,9.55}}, color={0,127,255}));
connect(pump.port_a, hea.port_b)
annotation (Line(points={{2,52},{2,56},{22,56}}, color={0,127,255}));
connect(boundary_p.ports[1], pump.port_a) annotation (Line(points={{-28,56},{
-18,56},{-18,58},{0,58},{0,52},{2,52}}, color={0,127,255}));
connect(dpSet.y, pump.dp_in) annotation (Line(points={{29.3,27},{30,27},{30,
28},{24,28},{24,42},{14,42}}, color={0,0,127}));
annotation (experiment(Tolerance=1e-6, StopTime=86400, Interval=60),
Documentation(info = "<html><h4>
<span style=\"color:#008000\">Overview</span>
</h4>
<p>
This is a simple example of a storage and a boiler.
</p>
<ul>
__Dymola_Commands(file="modelica://AixLib/Resources/Scripts/Dymola/Fluid/Storage/Examples/StorageBoiler.mos" "Simulate and plot"),
Documentation(
info="<html>
<p>
This is a simple example of a storage and an ideal heater.<br/>
The ideal heater has a constant supply temperature and supplies heat to a thermal energy water storage.<br/>
The pressure boundary is an idealized consumer with a pressure ramp.
</p>
<ul>
</html>",revisions="<html>
<ul>
<li>
<i>November 14, 2022</i> by Laura Maier:<br/>
Added simulate and plot scripts, add docu and adapt parameters.
</li>
<li>
<i>December 08, 2016&#160;</i> by Moritz Lauster:<br/>
Adapted to AixLib conventions
Expand All @@ -130,6 +145,7 @@ equation
<i>13.12.2013</i> by Sebastian Stinner:<br/>
implemented
</li>
</ul>
</ul>
</html>"));
end StorageBoiler;