Skip to content

Commit

Permalink
Add simulate and plot script #1171
Browse files Browse the repository at this point in the history
  • Loading branch information
LauraMaier committed Mar 23, 2022
1 parent 81249b4 commit 74ec10e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions AixLib/Fluid/Storage/Examples/StorageBoiler.mo
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ equation
connect(fixedTemperature.port, bufferStorage.heatportOutside) annotation (
Line(points={{-36,22},{-28,22},{-28,23.9},{-17.7,23.9}}, color={191,0,0}));
annotation (experiment(Tolerance=1e-6, StopTime=86400, Interval=60),
__Dymola_Commands(file="modelica://AixLib/Resources/Scripts/Dymola/Fluid/Storage/Examples/StorageBoiler.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
@@ -0,0 +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=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"});

0 comments on commit 74ec10e

Please sign in to comment.