Skip to content

Commit

Permalink
Adapt conversion script and rename example #1171
Browse files Browse the repository at this point in the history
  • Loading branch information
LauraMaier committed Mar 23, 2022
1 parent 7508612 commit 1066f23
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
within AixLib.Fluid.Storage.Examples;
model BufferStorage
model StorageDetailedExample "Simple usage example for StorageDetailed"

extends Modelica.Icons.Example;
import AixLib;
Expand Down Expand Up @@ -74,7 +74,8 @@ model BufferStorage
equation
connect(boundary.m_flow_in, const.y)
annotation (Line(points={{34,38},{34,38},{51,38}}, color={0,0,127}));
connect(boundary1.ports[1], bufferStorage.fluidportTop2) annotation (Line(points={{-34,46},{-14,46},{-14,24.12},{-13.125,24.12}}, color={0,127,255}));
connect(boundary1.ports[1], bufferStorage.fluidportTop2) annotation (Line(points={{-34,46},
{-14,46},{-14,24.12},{-13.125,24.12}}, color={0,127,255}));
connect(bufferStorage.fluidportTop1, boundary.ports[1]) annotation (Line(points={{-6.5,24.12},{-6.5,45.06},{12,45.06},{12,46}}, color={0,127,255}));
connect(bufferStorage.fluidportBottom1, boundary_ph5.ports[1]) annotation (Line(points={{-6.625,-0.24},{-6.625,-20.12},{2,-20.12},{2,-20}}, color={0,127,255}));
connect(boundary2.ports[1], bufferStorage.fluidportBottom2) annotation (Line(points={{-36,-20},{-14,-20},{-14,-0.12},{-12.875,-0.12}}, color={0,127,255}));
Expand Down Expand Up @@ -104,4 +105,4 @@ equation
</li>
</ul>
</html>"));
end BufferStorage;
end StorageDetailedExample;
2 changes: 1 addition & 1 deletion AixLib/Fluid/Storage/Examples/package.order
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
BufferStorage
StorageDetailedExample
ExpansionVessel
StorageBoiler
StorageSolarCollector
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ convertClass("AixLib.Fluid.Storage.BufferStorage", "AixLib.Fluid.Storage.Storage
convertClass("AixLib.Fluid.Storage.Storage", "AixLib.Fluid.Storage.StorageSimple");

//Rename data base due to renaming of buffer storage
convertClass("AixLib.DataBase.Storage.BufferStorageBaseDataDefinition", "AixLib.DataBase.Storage.StorageDetailedBaseDataDefinition");
convertClass("AixLib.DataBase.Storage.BufferStorageBaseDataDefinition", "AixLib.DataBase.Storage.StorageDetailedBaseDataDefinition");
convertClass("AixLib.Fluid.Storage.Examples.BufferStorage", "AixLib.Fluid.Storage.Examples.StorageDetailedExample");

0 comments on commit 1066f23

Please sign in to comment.