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

Issue1171 storage spring cleaning #1226

Merged
merged 49 commits into from
Jul 18, 2024
Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
Show all changes
49 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
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 …
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…
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
ad99c48
Replace Storage in exergy meter example with correct path #1171
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
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
48488da
Automatic push of CI with updated or new regression reference files.P…
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
d862f12
Automatic push of CI with updated or new regression reference files.P…
Oct 14, 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
f00bda7
Merge branch 'development' into issue1171_StorageSpringCleaning
LauraMaier Nov 1, 2022
5c46e4b
Merge branch 'development' into issue1171_StorageSpringCleaning
LauraMaier Nov 14, 2022
28fbec5
Merge branch 'main' into issue1171_StorageSpringCleaning [ci skip]
FWuellhorst Jul 18, 2024
7ac11ab
revert results
FWuellhorst Jul 18, 2024
c0f06e8
Merge branch 'main' into issue1171_StorageSpringCleaning
FWuellhorst Jul 18, 2024
c8509f5
correct conversion scripts and revert html changes
FWuellhorst Jul 18, 2024
b05d8b0
Merge branch 'issue1171_StorageSpringCleaning' of https://github.com/…
FWuellhorst Jul 18, 2024
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
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
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
within AixLib.DataBase.Storage;
record BufferStorageBaseDataDefinition
record StorageDetailedBaseDataDefinition
"Base data definition for Buffer storage records"
extends Modelica.Icons.Record;
///////////input parameters////////////
Expand Down Expand Up @@ -72,4 +72,4 @@ record BufferStorageBaseDataDefinition
</li>
</ul>
</html>"));
end BufferStorageBaseDataDefinition;
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 Expand Up @@ -286,12 +286,12 @@ equation
connect(heatPump.port_b2, coldStorage.portHC1Out) annotation (Line(points={{
-33.5,-8.00002},{-33.5,-22},{16,-22},{16,7.42},{23.825,7.42}}, color=
{0,127,255}));
connect(pumpEvaporator.port_a, coldStorage.portHC1In) annotation (Line(points
={{14,36},{18,36},{18,12.69},{23.65,12.69}}, color={0,127,255}));
connect(pumpCondenser.port_a, heatStorage.portHC1Out) annotation (Line(points
={{6,-98},{16,-98},{16,-74.58},{23.825,-74.58}}, color={0,127,255}));
connect(heatPump.port_b1, heatStorage.portHC1In) annotation (Line(points={{
-16.5,20},{8,20},{8,-69.31},{23.65,-69.31}}, color={0,127,255}));
connect(pumpEvaporator.port_a, coldStorage.portHC1In) annotation (Line(points=
{{14,36},{18,36},{18,12.69},{23.65,12.69}}, color={0,127,255}));
connect(pumpCondenser.port_a, heatStorage.portHC1Out) annotation (Line(points=
{{6,-98},{16,-98},{16,-74.58},{23.825,-74.58}}, color={0,127,255}));
connect(heatPump.port_b1, heatStorage.portHC1In) annotation (Line(points={{-16.5,
20},{8,20},{8,-69.31},{23.65,-69.31}}, color={0,127,255}));
connect(heatStorage.fluidportTop2, pumpHeatConsumer.port_a) annotation (Line(
points={{42.375,-61.83},{42.375,-50},{58,-50}}, color={0,127,255}));
connect(resistanceHeatConsumerReturn.port_b, heatStorage.fluidportBottom2)
Expand Down
2 changes: 1 addition & 1 deletion AixLib/Fluid/Storage/Examples/BufferStorage.mo
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ model BufferStorage
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,
massDynamics=Modelica.Fluid.Types.Dynamics.SteadyStateInitial,
m1_flow_nominal=const.k,
Expand Down
3 changes: 1 addition & 2 deletions AixLib/Fluid/Storage/Examples/StorageBoiler.mo
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ model StorageBoiler
Modelica.Media.Water.ConstantPropertyLiquidWater
constrainedby Modelica.Media.Interfaces.PartialMedium;

AixLib.Fluid.Storage.BufferStorage
bufferStorage(
AixLib.Fluid.Storage.StorageDetailed bufferStorage(
redeclare package MediumHC1 = Medium,
redeclare package MediumHC2 = Medium,
m1_flow_nominal=pipe1.m_flow_nominal,
Expand Down
3 changes: 1 addition & 2 deletions AixLib/Fluid/Storage/Examples/StorageSolarCollector.mo
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ model StorageSolarCollector

replaceable package Medium = AixLib.Media.Water;

AixLib.Fluid.Storage.BufferStorage
bufferStorage(
AixLib.Fluid.Storage.StorageDetailed bufferStorage(
redeclare package MediumHC1 = Medium,
redeclare package MediumHC2 = Medium,
m1_flow_nominal=solarThermal.m_flow_nominal,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
within AixLib.Fluid.Storage;
model BufferStorage
model StorageDetailed
"Buffer Storage Model with support for heating rod and two heating coils"
import SI = Modelica.SIunits;

Expand Down Expand Up @@ -36,8 +36,9 @@ model BufferStorage

parameter SI.Temperature TStart=298.15 "Start Temperature of fluid" annotation (Dialog(tab="Initialization", group="Storage specific"));

replaceable parameter DataBase.Storage.BufferStorageBaseDataDefinition data constrainedby DataBase.Storage.BufferStorageBaseDataDefinition "Data record for Storage"
annotation (choicesAllMatching);
replaceable parameter DataBase.Storage.StorageDetailedBaseDataDefinition data
constrainedby DataBase.Storage.StorageDetailedBaseDataDefinition
"Data record for Storage" annotation (choicesAllMatching);

parameter Integer n(min=3)=5 " Model assumptions Number of Layers";

Expand Down Expand Up @@ -139,22 +140,25 @@ model BufferStorage
extent={{-5,5},{5,-5}},
rotation=0,
origin={-80,-80})));
Modelica.Fluid.Interfaces.FluidPort_a fluidportTop1(redeclare final package Medium =
Medium)
Modelica.Fluid.Interfaces.FluidPort_a fluidportTop1(redeclare final package
Medium = Medium)
"Fluid connector a (positive design flow direction is from port_a to port_b)"
annotation (Placement(transformation(extent={{-38,92},{-18,110}},rotation=
0), iconTransformation(extent={{-38,92},{-18,110}})));
Modelica.Fluid.Interfaces.FluidPort_a fluidportBottom2(redeclare final package Medium =
Modelica.Fluid.Interfaces.FluidPort_a fluidportBottom2(redeclare final
package Medium =
Medium)
"Fluid connector a (positive design flow direction is from port_a to port_b)"
annotation (Placement(transformation(extent={{14,-110},{32,-92}},rotation=
0), iconTransformation(extent={{14,-110},{32,-92}})));
Modelica.Fluid.Interfaces.FluidPort_b fluidportBottom1(redeclare final package Medium =
Modelica.Fluid.Interfaces.FluidPort_b fluidportBottom1(redeclare final
package Medium =
Medium)
"Fluid connector b (positive design flow direction is from port_a to port_b)"
annotation (Placement(transformation(extent={{-36,-112},{-18,-92}},
rotation=0), iconTransformation(extent={{-36,-112},{-18,-92}})));
Modelica.Fluid.Interfaces.FluidPort_b fluidportTop2(redeclare final package Medium =
Modelica.Fluid.Interfaces.FluidPort_b fluidportTop2(redeclare final package
Medium =
Medium)
"Fluid connector b (positive design flow direction is from port_a to port_b)"
annotation (Placement(transformation(extent={{14,92},{36,110}},rotation=0),
Expand Down Expand Up @@ -197,12 +201,14 @@ model BufferStorage
/////HEATING COIL 1 ////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////

Modelica.Fluid.Interfaces.FluidPort_a portHC1In(redeclare final package Medium =
Modelica.Fluid.Interfaces.FluidPort_a portHC1In(redeclare final package
Medium =
MediumHC1) if useHeatingCoil1
"Fluid connector a (positive design flow direction is from port_a to port_b)"
annotation (Placement(transformation(extent={{-92,36},{-72,56}}),
iconTransformation(extent={{-90,50},{-74,64}})));
Modelica.Fluid.Interfaces.FluidPort_b portHC1Out(redeclare final package Medium =
Modelica.Fluid.Interfaces.FluidPort_b portHC1Out(redeclare final package
Medium =
MediumHC1) if useHeatingCoil1
"Fluid connector b (positive design flow direction is from port_a to port_b)"
annotation (Placement(transformation(extent={{-90,2},{-70,22}}),
Expand All @@ -212,12 +218,14 @@ model BufferStorage
/////HEATING COIL 2 ////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////

Modelica.Fluid.Interfaces.FluidPort_a portHC2In(redeclare final package Medium =
Modelica.Fluid.Interfaces.FluidPort_a portHC2In(redeclare final package
Medium =
MediumHC2) if useHeatingCoil2
"Fluid connector a (positive design flow direction is from port_a to port_b)"
annotation (Placement(transformation(extent={{-92,-30},{-72,-10}}),
iconTransformation(extent={{-88,-32},{-74,-18}})));
Modelica.Fluid.Interfaces.FluidPort_b portHC2Out(redeclare final package Medium =
Modelica.Fluid.Interfaces.FluidPort_b portHC2Out(redeclare final package
Medium =
MediumHC2) if useHeatingCoil2
"Fluid connector b (positive design flow direction is from port_a to port_b)"
annotation (Placement(transformation(extent={{-92,-68},{-72,-48}}),
Expand Down Expand Up @@ -812,16 +820,16 @@ for i in 2:(n-1) loop
</li>
</ul>
</html>",
info="<html><h4>
<span style=\"color: #008000\">Overview</span>
</h4>
info="<html><p>
<b><span style=\"color: #008000;\">Overview</span></b>
</p>
<p>
Detailed thermal energy storage model with optional heating rod and
two heating coils based on a pipe model.
</p>
<p>
Buffer Storage Model with support for heating rod and two heating
coils.
<b><span style=\"color: #008000;\">Concept</span></b>
</p>
<h4>
<span style=\"color: #008000\">Concept</span>
</h4>
<p>
It represents a buffer storage stratified into n layers where 1
represents the bottom layer and n represents the top layer. The
Expand Down Expand Up @@ -873,22 +881,22 @@ for i in 2:(n-1) loop
included. Thus external pressure loss models are required for the use
of the model.
</p>
<h4>
<span style=\"color: #008000\">Sources</span>
</h4>
<p>
<b><span style=\"color: #008000;\">Sources</span></b>
</p>
<ul>
<li>R. Viskanta, A. KaraIds: Interferometric observations of the
temperature structure in water cooled or heated from above.
<i>Advances in Water Resources,</i> volume 1, 1977, pages 57-69.
Bibtex-Key [R.VISKANTA1977]
</li>
</ul>
<h4>
<span style=\"color: #008000;\">Example Results</span>
</h4>
<p>
<b><span style=\"color: #008000;\">Example Results</span></b>
</p>
<p>
<a href=
\"AixLib.Fluid.Storage.Examples.BufferStorageCharging\">AixLib.Fluid.Storage.Examples.BufferStorageCharging</a>
</p>
</html>"));
end BufferStorage;
end StorageDetailed;
Loading