Skip to content

Commit

Permalink
Adapt simulate and plot script, delete ref results and add initializa…
Browse files Browse the repository at this point in the history
…tion info #1223
  • Loading branch information
LauraMaier committed Oct 24, 2022
1 parent b0570fb commit 0e72f33
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 19 deletions.
6 changes: 5 additions & 1 deletion AixLib/Fluid/Storage/Examples/StorageSimpleExample.mo
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ model StorageSimpleExample "Example model with simple storage"
extends Modelica.Icons.Example;
StorageSimple storageSimple(
redeclare package Medium = Medium,
layer(each T(start=308.15,fixed=true)),
layer_HE(each T(start=308.15,fixed=true)),
n=3,
d=0.7,
h=0.78,
Expand All @@ -23,7 +25,7 @@ model StorageSimpleExample "Example model with simple storage"
redeclare package Medium = Medium,
m_flow_nominal=m_flow_nominal_gen,
dp_nominal=dp_nominal_hr,
energyDynamics=Modelica.Fluid.Types.Dynamics.DynamicFreeInitial,
energyDynamics=Modelica.Fluid.Types.Dynamics.FixedInitial,
Q_flow_nominal=8000,
V=0.01,
eta=0.98,
Expand Down Expand Up @@ -58,10 +60,12 @@ model StorageSimpleExample "Example model with simple storage"
nPorts=1)
annotation (Placement(transformation(extent={{-24,-52},{-38,-38}})));
AixLib.Fluid.Movers.SpeedControlled_y pumpGen(redeclare package Medium = Medium,
energyDynamics=Modelica.Fluid.Types.Dynamics.FixedInitial,
redeclare
AixLib.Fluid.Movers.Data.Pumps.Wilo.CronolineIL80slash220dash4slash4 per)
annotation (Placement(transformation(extent={{-48,-20},{-68,-40}})));
AixLib.Fluid.Movers.SpeedControlled_y pumpCon(redeclare package Medium = Medium,
energyDynamics=Modelica.Fluid.Types.Dynamics.FixedInitial,
redeclare
AixLib.Fluid.Movers.Data.Pumps.Wilo.CronolineIL80slash220dash4slash4 per)
"Consumer pump"
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
simulateModel("AixLib.Fluid.Storage.Examples.StorageSimpleExample", tolerance=1e-6, stopTime=86400, method="dassl", resultFile="StorageSimple");
createPlot(id=1, position={104, 0, 742, 420}, y={"storageSimple.layer[1].T","storageSimple.layer[2].T","storageSimple.layer[3].T"}, grid=true, filename="StorageSimple.mat", colors={{28,108,200},{100,108,150},{50,70,20},{15,15,15}});
createPlot(id=1, position={104, 0, 742, 420}, y={"storageSimple.layer[1].T","storageSimple.layer[2].T","storageSimple.layer[3].T"}, grid=true, filename="StorageSimple.mat", colors={{28,108,200},{100,108,150},{50,70,20}});

0 comments on commit 0e72f33

Please sign in to comment.