Skip to content

Commit bab32e2

Browse files
committed
Fix failing examples due to (now)conditional output of P_out
1 parent 9b551e2 commit bab32e2

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

OpenHPL/ElectroMech/Turbines/Francis.mo

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ model Francis "Model of the Francis turbine"
8383
Modelica.Blocks.Interfaces.RealInput w_in "Input angular velocity from the generator" annotation (
8484
Placement(transformation(origin={-120,-80}, extent={{-20,-20},
8585
{20,20}})));
86+
protected
87+
Modelica.Blocks.Interfaces.RealOutput p_out = Wdot_s "Internal connector for output power" annotation (Placement(transformation(
88+
extent={{-10,-10},{10,10}},
89+
rotation=90,
90+
origin={40,90})));
8691
equation
8792
// design algorithm for runner
8893
if GivenData then
@@ -205,8 +210,8 @@ equation
205210
p_tr2 = o.p;
206211
i.mdot+o.mdot=0;
207212
mdot=i.mdot;
208-
// output mechanical power
209-
P_out = Wdot_s;
213+
214+
connect(p_out, P_out) annotation (Line(points={{40,90},{40,110}}, color={0,0,127}));
210215
annotation (
211216
Documentation(info="<html>
212217
<p>

0 commit comments

Comments
 (0)