Skip to content

Commit c06bdc5

Browse files
Added opening connector to IGV component (#522) (#527)
* Added opening connector to IGV component (#522) * Update CHANGELOG.md * Update CHANGELOG.md
1 parent 325fb11 commit c06bdc5

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Use [gitmoji](https://gitmoji.dev/) to identify your changes.
99

1010
### ✨ Added <!--Make sure to add a link to the PR and issues related to your change-->
1111
- Added fixed speed pump [#526](https://github.com/Metroscope-dev/metroscope-modeling-library/pull/526)
12+
- (Breaking change) Added opening connector to IGV component [#527](https://github.com/Metroscope-dev/metroscope-modeling-library/pull/527)
1213

1314
### 🐛 Fixed <!--Make sure to add a link to the PR and issues related to your change-->
1415

MetroscopeModelingLibrary/Examples/CCGT/GasTurbine_direct.mo

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,15 @@ model GasTurbine_direct
5757
FlueGases.Machines.InletGuideVanes inletGuideVanes annotation (Placement(transformation(extent={{-110,-10},{-90,10}})));
5858
Sensors.FlueGases.FlowSensor air_massflowrate_sensor(sensor_function="Calibration", causality="compressor_Qv_in = f(IGV_angle)")
5959
annotation (Placement(transformation(extent={{-132,-10},{-112,10}})));
60+
Sensors.Outline.OpeningSensor IGV_angle_sensor(sensor_function="BC") annotation (Placement(transformation(extent={{-110,32},{-90,52}})));
6061
equation
6162

6263
// Boundary Conditions
6364
source_air.P_out = source_P;
6465
source_air.h_out = source_h;
6566
source_air.Xi_out = {0.768,0.232,0.0,0.0,0.0};
6667
turbine_P_out_sensor.P_barA = turbine_P_out;
68+
IGV_angle_sensor.Opening = IGV_angle;
6769

6870
source_fuel.P_out = P_fuel;
6971
source_fuel.h_out = h_fuel;
@@ -107,6 +109,7 @@ equation
107109
connect(inletGuideVanes.C_out, air_compressor.C_in) annotation (Line(points={{-95,0},{-84,0}}, color={95,95,95}));
108110
connect(source_air.C_out, air_massflowrate_sensor.C_in) annotation (Line(points={{-139,0},{-132,0}}, color={95,95,95}));
109111
connect(air_massflowrate_sensor.C_out, inletGuideVanes.C_in) annotation (Line(points={{-112,0},{-105,0}}, color={95,95,95}));
112+
connect(IGV_angle_sensor.Opening, inletGuideVanes.Opening) annotation (Line(points={{-100,31.8},{-100,8}}, color={0,0,127}));
110113
annotation (
111114
Diagram(coordinateSystem(
112115
preserveAspectRatio=false,

MetroscopeModelingLibrary/Examples/CCGT/GasTurbine_reverse.mo

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,15 @@ model GasTurbine_reverse
5757
FlueGases.Machines.InletGuideVanes inletGuideVanes annotation (Placement(transformation(extent={{-110,-10},{-90,10}})));
5858
Sensors.FlueGases.FlowSensor air_massflowrate_sensor(sensor_function="Calibration", causality="compressor_Qv_in = f(IGV_angle)")
5959
annotation (Placement(transformation(extent={{-132,-10},{-112,10}})));
60+
Sensors.Outline.OpeningSensor IGV_angle_sensor(sensor_function="BC") annotation (Placement(transformation(extent={{-110,32},{-90,52}})));
6061
equation
6162

6263
// Boundary Conditions
6364
source_air.P_out = source_P;
6465
source_air.h_out = source_h;
6566
source_air.Xi_out = {0.768,0.232,0.0,0.0,0.0};
6667
turbine_P_out_sensor.P_barA = turbine_P_out;
68+
IGV_angle_sensor.Opening = IGV_angle;
6769

6870
source_fuel.P_out = P_fuel;
6971
source_fuel.h_out = h_fuel;
@@ -106,6 +108,7 @@ equation
106108
connect(inletGuideVanes.C_out, air_compressor.C_in) annotation (Line(points={{-95,0},{-84,0}}, color={95,95,95}));
107109
connect(source_air.C_out, air_massflowrate_sensor.C_in) annotation (Line(points={{-139,0},{-132,0}}, color={95,95,95}));
108110
connect(air_massflowrate_sensor.C_out, inletGuideVanes.C_in) annotation (Line(points={{-112,0},{-105,0}}, color={95,95,95}));
111+
connect(IGV_angle_sensor.Opening, inletGuideVanes.Opening) annotation (Line(points={{-100,31.8},{-100,8}}, color={0,0,127}));
109112
annotation (
110113
Diagram(coordinateSystem(
111114
preserveAspectRatio=false,

MetroscopeModelingLibrary/FlueGases/Machines/InletGuideVanes.mo

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,17 @@ model InletGuideVanes
88
BaseClasses.IsoPHFlowModel isoPHFlowModel annotation (Placement(transformation(extent={{-10,-10},{10,10}})));
99
Connectors.Inlet C_in annotation (Placement(transformation(extent={{-60,-10},{-40,10}}), iconTransformation(extent={{-60,-10},{-40,10}})));
1010
Connectors.Outlet C_out annotation (Placement(transformation(extent={{40,-10},{60,10}}), iconTransformation(extent={{40,-10},{60,10}})));
11+
Modelica.Blocks.Interfaces.RealInput Opening(
12+
unit="1",
13+
min=0.,
14+
max=1.,
15+
nominal=0.5) annotation (Placement(
16+
transformation(extent={{-20,-20},{20,20}},
17+
rotation=270,
18+
origin={0,80}), iconTransformation(
19+
extent={{-20,-20},{20,20}},
20+
rotation=-90,
21+
origin={0,80})));
1122
equation
1223

1324
Qv = isoPHFlowModel.Qv_in;

0 commit comments

Comments
 (0)