Skip to content

Commit

Permalink
Add simulate and plot scripts for storage related examples #1171
Browse files Browse the repository at this point in the history
  • Loading branch information
LauraMaier committed Mar 23, 2022
1 parent 74ec10e commit 9810289
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions AixLib/Fluid/Storage/Examples/StorageSolarCollector.mo
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ equation
connect(bufferStorage.portHC1In, pump.port_b) annotation (Line(points={{-9.75,
29.7},{-9.75,44.85},{-8,44.85},{-8,60}}, color={0,127,255}));
annotation (experiment(Tolerance=1e-6, StopTime = 172800, Interval = 60),
__Dymola_Commands(file="modelica://AixLib/Resources/Scripts/Dymola/Fluid/Storage/Examples/StorageSolarCollector.mos" "Simulate and plot"),
Documentation(info = "<html><h4>
<span style=\"color:#008000\">Overview</span>
</h4>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
simulateModel("AixLib.Fluid.Storage.Examples.StorageBoiler", tolerance=1e-6, stopTime=86400, method="dassl", resultFile="StorageBoiler");
createPlot(id=1, position={104, 0, 742, 420}, y={"bufferStorage.layer[5].T","bufferStorage.layer[1].T"}, range={0.0, 90000.0, 25.0, 65.0}, grid=true, filename="StorageBoiler.mat", colors={{28,108,200},{238,46,47}}, displayUnits={"degC","degC"});
createPlot(id=1, position={104, 0, 742, 420}, y={"bufferStorage.layer[10].T","bufferStorage.layer[5].T","bufferStorage.layer[1].T"}, range={0.0, 90000.0, 25.0, 65.0}, grid=true, filename="StorageBoiler.mat", colors={{28,108,200},{238,46,47},{110,110,110}}, displayUnits={"degC","degC","degC"});
createPlot(id=2, position={104, 0, 742, 420}, y={"hea.Q_flow"}, range={0.0, 90000.0, 25.0, 65.0}, grid=true, filename="StorageBoiler.mat", colors={{28,108,200}}, displayUnits={"W"});
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
simulateModel("AixLib.Fluid.Storage.Examples.StorageSolarCollector", tolerance=1e-6, stopTime=172800, method="dassl", resultFile="StorageSolarCollector");
createPlot(id=1, position={104, 0, 742, 420}, y={"bufferStorage.layer[10].T","bufferStorage.layer[5].T","bufferStorage.layer[1].T"}, range={0.0, 90000.0, 25.0, 65.0}, grid=true, filename="StorageSolarCollector.mat", colors={{110,110,110},{28,108,200},{238,46,47}}, displayUnits={"degC","degC","degC"});
createPlot(id=2, position={104, 0, 742, 420}, y={"temperatureSensor.T"}, range={0.0, 90000.0, 25.0, 65.0}, grid=true, filename="StorageSolarCollector.mat", colors={{28,108,200}}, displayUnits={"degC"});
createPlot(id=3, position={104, 0, 742, 420}, y={"solarThermal.Irradiation","solarThermal.heater.Q_flow"}, range={0.0, 90000.0, 25.0, 65.0}, grid=true, filename="StorageSolarCollector.mat", colors={{28,108,200},{238,46,47}});

0 comments on commit 9810289

Please sign in to comment.