Skip to content

Commit c3dbf6e

Browse files
committed
Move the TwoContacts out of the TurbineContacts
1 parent 7a47311 commit c3dbf6e

3 files changed

Lines changed: 2 additions & 1 deletion

File tree

OpenHPL/ElectroMech/Turbines/Francis.mo

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ model Francis "Model of the Francis turbine"
7979
Real W_t2_n "Euler second term, nominal", W_t1_n "Euler first term, nominal", Wdot_t_n "Total power, nominal", cot_a1_n "Cotant nominal alpha", Vdot_n_ = Vdot_n / 0.99 "Flow rate for fully open guide vane", d_n(start = 0.67) "Nominal servo term", theta_n "Servo angle for fully open guide vane";
8080
SI.Angle alpha1_n "Nominal inlet guide vane angle";
8181
// connectors
82+
extends OpenHPL.Interfaces.TwoContacts;
8283
extends OpenHPL.Interfaces.TurbineContacts(enable_P_out=true);
8384
Modelica.Blocks.Interfaces.RealInput w_in "Input angular velocity from the generator" annotation (
8485
Placement(transformation(origin={-120,-80}, extent={{-20,-20},

OpenHPL/ElectroMech/Turbines/Pelton.mo

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ model Pelton "Model of the Pelton turbine"
2121
SI.AngularVelocity w=w_in "Angular velocity";
2222
Real cos_b = Modelica.Math.cos(Modelica.Units.Conversions.from_deg(beta));
2323
// connectors
24+
extends OpenHPL.Interfaces.TwoContacts;
2425
extends OpenHPL.Interfaces.TurbineContacts(enable_P_out=true);
2526
Modelica.Blocks.Interfaces.RealInput w_in "Input angular velocity from the generator" annotation (
2627
Placement(transformation(origin={-120,-80}, extent={{-20,-20},

OpenHPL/Interfaces/TurbineContacts.mo

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
within OpenHPL.Interfaces;
22
partial model TurbineContacts "Model of turbine connectors"
3-
extends Interfaces.TwoContacts;
43
parameter Boolean enable_P_out = false "If checked, get a connector for the output power"
54
annotation (choices(checkBox = true), Dialog(group="Outputs",tab="I/O"));
65
input Modelica.Blocks.Interfaces.RealInput u_t "[Guide vane|nozzle] opening of the turbine(=1: completely open, =0: completely closed)"

0 commit comments

Comments
 (0)