Skip to content

Commit

Permalink
Change energy balances in ThreeWayValves example
Browse files Browse the repository at this point in the history
To avoid the use of default start values, the energy balances have been
set to fixed initial. #31
  • Loading branch information
marcusfuchs committed Jun 12, 2014
1 parent 8e3a695 commit 4f84c42
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Annex60/Fluid/Actuators/Valves/Examples/ThreeWayValves.mo
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@ within Annex60.Fluid.Actuators.Valves.Examples;
model ThreeWayValves "Three way valves with different opening characteristics"
extends Modelica.Icons.Example;

package Medium = Annex60.Media.Water
"Medium in the component";
package Medium = Annex60.Media.Water "Medium in the component";

Annex60.Fluid.Actuators.Valves.ThreeWayLinear valLin(
redeclare package Medium = Medium,
l={0.05,0.05},
m_flow_nominal=2,
filteredOpening=false,
dpValve_nominal=6000) "Valve model, linear opening characteristics"
dpValve_nominal=6000,
energyDynamics=Modelica.Fluid.Types.Dynamics.FixedInitial)
"Valve model, linear opening characteristics"
annotation (Placement(transformation(extent={{0,-8},{20,12}},
rotation=0)));
Modelica.Blocks.Sources.Ramp y(
Expand Down Expand Up @@ -42,7 +43,8 @@ model ThreeWayValves "Three way valves with different opening characteristics"
R=10,
m_flow_nominal=2,
filteredOpening=false,
dpValve_nominal=6000)
dpValve_nominal=6000,
energyDynamics=Modelica.Fluid.Types.Dynamics.FixedInitial)
annotation (Placement(transformation(extent={{0,-60},{20,-40}}, rotation=0)));
Annex60.Fluid.Sources.Boundary_pT ret(
redeclare package Medium = Medium,
Expand Down

0 comments on commit 4f84c42

Please sign in to comment.