Skip to content

Commit

Permalink
Adapt specific heat capacity #1223 [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
LauraMaier committed Jul 14, 2022
1 parent 9d0a6d3 commit c2f454b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions AixLib/Fluid/Storage/Examples/StorageSimpleExample.mo
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ model StorageSimpleExample "Example model with simple storage"
replaceable package Medium = AixLib.Media.Water
annotation (choicesAllMatching=true);
parameter Modelica.Units.SI.MassFlowRate m_flow_nominal_gen=
heatingRod.Q_flow_nominal/(dT_gen*4185)
heatingRod.Q_flow_nominal/(dT_gen*Medium.cp_const)
"Nominal mass flow rate in generation cycle";

parameter Modelica.Units.SI.PressureDifference dp_nominal_hr = 1000
Expand Down Expand Up @@ -101,7 +101,7 @@ model StorageSimpleExample "Example model with simple storage"
transformation(
extent={{-7,-7},{7,7}},
rotation=90,
origin={-81,-7})));
origin={-87,-17})));
Modelica.Blocks.Continuous.LimPID PID_pump_gen(
controllerType=Modelica.Blocks.Types.SimpleController.PI,
k=0.5,
Expand All @@ -116,7 +116,7 @@ model StorageSimpleExample "Example model with simple storage"
transformation(
extent={{-7,-7},{7,7}},
rotation=0,
origin={47,35})));
origin={47,37})));
Modelica.Blocks.Sources.Constant m_flow_set(k=m_flow_nominal_gen)
"Set mass flow rate"
annotation (Placement(transformation(extent={{-96,-88},{-82,-74}})));
Expand Down

0 comments on commit c2f454b

Please sign in to comment.