Skip to content

Commit e82643e

Browse files
hadrienp-metpostorino
andauthored
Creatio of MetroscopiaCCGT faulty model (#301)
Co-authored-by: postorino <mtspst@MTSPST.localdomain>
1 parent 05fc041 commit e82643e

File tree

3 files changed

+1940
-0
lines changed

3 files changed

+1940
-0
lines changed
Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
within MetroscopeModelingLibrary.Examples.CCGT.MetroscopiaCCGT;
2+
model MetroscopiaCCGT_faulty "Metroscopia CCGT faulty"
3+
extends
4+
MetroscopeModelingLibrary.Examples.CCGT.MetroscopiaCCGT.MetroscopiaCCGT_causality_direct(
5+
condenser(faulty=true),
6+
AirFilter(faulty=true),
7+
HPsuperheater1(faulty=true),
8+
HPsuperheater2(faulty=true),
9+
Reheater(faulty=true),
10+
evaporator(faulty=true),
11+
economiser(faulty=true));
12+
13+
//Heat exchangers failures
14+
input Real Reheater_fouling(start=0);
15+
input Real evaporator_fouling(start=0);
16+
input Real HPsuperheater1_fouling(start=0);
17+
input Real HPsuperheater2_fouling(start=0);
18+
input Real economiser_fouling(start=0);
19+
input Real condenser_fouling(start=0);
20+
input Real condenser_air_intake(start=0);
21+
22+
//Leaks
23+
input Real bypass_HP_turbine_to_condenser_leak_Q(start=0);
24+
input Real bypass_HP_CV_to_condenser_leak_Q(start=0);
25+
input Real bypass_IP_turbine_to_condenser_leak_Q(start=0);
26+
input Real bypass_IP_CV_to_condenser_leak_Q(start=0);
27+
input Real deSH_controlValve_leak_Q(start=0);
28+
29+
//Gas turbine failures
30+
input Real AirFilter_fouling;
31+
32+
MetroscopeModelingLibrary.WaterSteam.Pipes.Leak bypass_HP_turbine_to_condenser_leak
33+
annotation (Placement(transformation(
34+
extent={{-10,-10},{10,10}},
35+
rotation=0,
36+
origin={-110,182})));
37+
MetroscopeModelingLibrary.WaterSteam.Pipes.Leak bypass_HP_CV_to_condenser_leak
38+
annotation (Placement(transformation(
39+
extent={{-10,-10},{10,10}},
40+
rotation=0,
41+
origin={-162,192})));
42+
MetroscopeModelingLibrary.WaterSteam.Pipes.Leak bypass_IP_CV_to_condenser_leak
43+
annotation (Placement(transformation(
44+
extent={{-10,-10},{10,10}},
45+
rotation=0,
46+
origin={-4,284})));
47+
MetroscopeModelingLibrary.WaterSteam.Pipes.Leak bypass_IP_turbine_to_condenser_leak
48+
annotation (Placement(transformation(
49+
extent={{10,-10},{-10,10}},
50+
rotation=180,
51+
origin={-4,268})));
52+
MetroscopeModelingLibrary.WaterSteam.Pipes.Leak deSH_controlValve_leak
53+
annotation (Placement(transformation(
54+
extent={{10,-10},{-10,10}},
55+
rotation=0,
56+
origin={-158,64})));
57+
equation
58+
59+
//Condenser
60+
condenser.fouling=condenser_fouling;
61+
condenser.air_intake=condenser_air_intake;
62+
63+
//Reheater
64+
Reheater.fouling=Reheater_fouling;
65+
evaporator.fouling=evaporator_fouling;
66+
//economiser
67+
economiser.fouling=economiser_fouling;
68+
69+
//Superheater
70+
HPsuperheater1.fouling=HPsuperheater1_fouling;
71+
HPsuperheater2.fouling=HPsuperheater2_fouling;
72+
deSH_controlValve_leak.Q = deSH_controlValve_leak_Q + 1E-3;
73+
74+
//Steam Turbines
75+
bypass_HP_turbine_to_condenser_leak.Q=bypass_HP_turbine_to_condenser_leak_Q+1E-3;
76+
bypass_HP_CV_to_condenser_leak.Q=bypass_HP_CV_to_condenser_leak_Q+1E-3;
77+
bypass_IP_turbine_to_condenser_leak.Q=bypass_IP_turbine_to_condenser_leak_Q+1E-3;
78+
bypass_IP_CV_to_condenser_leak.Q=bypass_IP_CV_to_condenser_leak_Q+1E-3;
79+
80+
//Gas turbine
81+
AirFilter.fouling=AirFilter_fouling;
82+
83+
connect(P_HPST_in_sensor.C_in, HPST_control_valve.C_out) annotation (Line(
84+
points={{-180,148},{-183.375,148},{-183.375,148},{-186.75,148}}, color={
85+
28,108,200}));
86+
connect(bypass_HP_CV_to_condenser_leak.C_out, condenser.C_hot_in) annotation (
87+
Line(points={{-152,192},{52,192},{52,176.778}}, color={217,67,180}));
88+
connect(HPsteamTurbine.C_in, bypass_HP_turbine_to_condenser_leak.C_in)
89+
annotation (Line(points={{-160,148},{-158,148},{-158,182},{-120,182}},
90+
color={217,67,180}));
91+
connect(bypass_HP_turbine_to_condenser_leak.C_out, condenser.C_hot_in)
92+
annotation (Line(points={{-100,182},{52,182},{52,176.778}}, color={217,67,
93+
180}));
94+
connect(bypass_IP_CV_to_condenser_leak.C_in, LPST_control_valve.C_in)
95+
annotation (Line(points={{-14,284},{-80,284},{-80,214},{-61.25,214}}, color={217,67,
96+
180}));
97+
connect(bypass_IP_CV_to_condenser_leak.C_out, condenser.C_hot_in) annotation (
98+
Line(points={{6,284},{52,284},{52,176.778}}, color={217,67,180}));
99+
connect(LPST_control_valve.C_out, bypass_IP_turbine_to_condenser_leak.C_in)
100+
annotation (Line(points={{-44.75,214},{-38,214},{-38,268},{-14,268}}, color={217,67,
101+
180}));
102+
connect(bypass_IP_turbine_to_condenser_leak.C_out, condenser.C_hot_in)
103+
annotation (Line(points={{6,268},{52,268},{52,176.778}}, color={217,67,180}));
104+
connect(deSH_controlValve_leak.C_out, deSH_controlValve.C_out) annotation (
105+
Line(points={{-168,64},{-184,64},{-184,92},{-171.25,92}}, color={217,67,
106+
180}));
107+
connect(deSH_controlValve_leak.C_in, Q_deSH_sensor.C_in) annotation (Line(
108+
points={{-148,64},{-132,64},{-132,92}}, color={217,67,180}));
109+
connect(bypass_HP_CV_to_condenser_leak.C_in, HPST_control_valve.C_in)
110+
annotation (Line(points={{-172,192},{-222,192},{-222,148},{-203.25,148}},
111+
color={217,67,180}));
112+
annotation (Diagram(coordinateSystem(extent={{-680,-120},{260,340}})), Icon(
113+
coordinateSystem(extent={{-680,-120},{260,340}})));
114+
end MetroscopiaCCGT_faulty;

0 commit comments

Comments
 (0)