Skip to content

Commit

Permalink
Change energy balances in ReverseFlowHumidifier
Browse files Browse the repository at this point in the history
To avoid the use of default start values, the energy balances in this
example have been set to fixed initial. #31
  • Loading branch information
marcusfuchs committed Jun 12, 2014
1 parent 4f84c42 commit 6d285ac
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Annex60/Fluid/Interfaces/Examples/ReverseFlowHumidifier.mo
Expand Up @@ -17,16 +17,18 @@ package Medium = Annex60.Media.Air;
dp_nominal=0,
m_flow(start=1),
m_flow_nominal=1,
T=283.15,
mWat_flow_nominal=0.1) "Humidifier with backward flow"
mWat_flow_nominal=0.1,
energyDynamics=Modelica.Fluid.Types.Dynamics.FixedInitial,
T=283.15) "Humidifier with backward flow"
annotation (Placement(transformation(extent={{-32,-16},{-52,4}})));
Annex60.Fluid.MassExchangers.HumidifierPrescribed humFor(
redeclare package Medium = Medium,
dp_nominal=0,
m_flow(start=1),
m_flow_nominal=1,
T=283.15,
mWat_flow_nominal=0.1) "Humidifier with forward flow"
mWat_flow_nominal=0.1,
energyDynamics=Modelica.Fluid.Types.Dynamics.FixedInitial,
T=283.15) "Humidifier with forward flow"
annotation (Placement(transformation(extent={{-50,20},{-30,40}})));
Modelica.Blocks.Sources.Constant u2(k=0.01) "Control input"
annotation (Placement(transformation(extent={{-92,54},{-80,66}})));
Expand Down Expand Up @@ -140,7 +142,7 @@ equation
color={0,127,255},
smooth=Smooth.None));
connect(humBac.port_a, res2.port_a) annotation (Line(
points={{-32,-6},{-26.5,-6},{-26.5,-6},{-21,-6},{-21,-6},{-10,-6}},
points={{-32,-6},{-10,-6}},
color={0,127,255},
smooth=Smooth.None));
connect(res2.port_b, sink1.ports[2]) annotation (Line(
Expand Down

0 comments on commit 6d285ac

Please sign in to comment.