Ticket #5351: CombinedCycle.mo

File CombinedCycle.mo, 4.4 KB (added by KieranF <kieran.fung@…>, 6 years ago)

Main Model holding all other respected models inside it

Line 
1model CombinedCycle
2
3 BraytonCycle_CombinedCycle_1 BraytonCycle annotation(
4 Placement(visible = true, transformation(origin = {-59, 81}, extent = {{-11, -11}, {11, 11}}, rotation = 0)));
5
6 Modelica.Blocks.Sources.Step Step_Fuel annotation(
7 Placement(visible = true, transformation(origin = {-90, 82}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
8
9 HRSG_3LRh HRSG annotation(
10 Placement(visible = true, transformation(origin = {0, 80}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
11
12 ThermoPower.Gas.SensT sensT1(
13 redeclare package Medium = ThermoPower.Media.FlueGas) annotation(
14 Placement(visible = true, transformation(origin = {-36, 84}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
15
16 ThermoPower.Gas.SensT sensT2(
17 redeclare package Medium = ThermoPower.Media.FlueGas) annotation(
18 Placement(visible = true, transformation(origin = {36, 80}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
19
20 ThermoPower.Gas.SinkPressure sinkPressure1(
21 redeclare package Medium = ThermoPower.Media.FlueGas) annotation(
22 Placement(visible = true, transformation(origin = {62, 76}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
23
24 ThermoPower.Water.SteamTurbineStodola HP_Turbine annotation(
25 Placement(visible = true, transformation(origin = {-28, -28}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
26
27 ThermoPower.Water.SteamTurbineStodola IP_Turbine annotation(
28 Placement(visible = true, transformation(origin = {0, -28}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
29
30 ThermoPower.Water.SteamTurbineStodola LP_Turbine annotation(
31 Placement(visible = true, transformation(origin = {28, -28}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
32
33 ThermoPower.PowerPlants.SteamTurbineGroup.Components.CondenserPreP condenserPreP1 annotation(
34 Placement(visible = true, transformation(origin = {50, 6}, extent = {{-10, -10}, {10, 10}}, rotation = 180)));
35
36 ThermoPower.PowerPlants.HRSG.Components.PrescribedSpeedPump prescribedSpeedPump1 annotation(
37 Placement(visible = true, transformation(origin = {34, 34}, extent = {{-10, -10}, {10, 10}}, rotation = 180)));
38 inner ThermoPower.System system annotation(
39 Placement(visible = true, transformation(origin = {88, 90}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
40equation
41 connect(prescribedSpeedPump1.outlet, HRSG.WaterIn) annotation(
42 Line(points = {{24, 34}, {16, 34}, {16, 60}}, color = {0, 0, 255}));
43 connect(HRSG.Sh_HP_Out, HP_Turbine.inlet) annotation(
44 Line(points = {{-16, 60}, {-16, 50}, {-40, 50}, {-40, -20}, {-36, -20}}, color = {0, 0, 255}));
45 connect(condenserPreP1.waterOut, prescribedSpeedPump1.inlet) annotation(
46 Line(points = {{50, 16}, {50, 16}, {50, 34}, {44, 34}, {44, 34}}, color = {0, 0, 255}));
47 connect(LP_Turbine.outlet, condenserPreP1.steamIn) annotation(
48 Line(points = {{36, -20}, {50, -20}, {50, -4}, {50, -4}, {50, -4}}, color = {0, 0, 255}));
49 connect(IP_Turbine.shaft_b, LP_Turbine.shaft_a) annotation(
50 Line(points = {{6, -28}, {20, -28}, {20, -28}, {22, -28}}));
51 connect(HP_Turbine.shaft_b, IP_Turbine.shaft_a) annotation(
52 Line(points = {{-22, -28}, {-6, -28}, {-6, -28}, {-6, -28}}));
53 connect(IP_Turbine.outlet, LP_Turbine.inlet) annotation(
54 Line(points = {{8, -20}, {20, -20}, {20, -20}, {20, -20}}, color = {0, 0, 255}));
55 connect(HP_Turbine.outlet, IP_Turbine.inlet) annotation(
56 Line(points = {{-20, -20}, {-8, -20}, {-8, -20}, {-8, -20}}, color = {0, 0, 255}));
57 connect(sensT2.outlet, sinkPressure1.flange) annotation(
58 Line(points = {{42, 76}, {52, 76}, {52, 76}, {52, 76}, {52, 76}, {52, 76}}, color = {159, 159, 223}));
59 connect(HRSG.GasOut, sensT2.inlet) annotation(
60 Line(points = {{20, 76}, {30, 76}, {30, 76}, {30, 76}}, color = {159, 159, 223}));
61 connect(sensT1.outlet, HRSG.GasIn) annotation(
62 Line(points = {{-30, 80}, {-30, 80}, {-30, 76}, {-20, 76}, {-20, 76}}, color = {159, 159, 223}));
63 connect(BraytonCycle.ExhaustOutlet, sensT1.inlet) annotation(
64 Line(points = {{-49.76, 80.78}, {-45.76, 80.78}, {-45.76, 80.78}, {-41.76, 80.78}, {-41.76, 80.78}, {-41.76, 80.78}, {-41.76, 80.78}, {-41.76, 80.78}}, color = {159, 159, 223}));
65 connect(Step_Fuel.y, BraytonCycle.FuelFlowRate) annotation(
66 Line(points = {{-79, 82}, {-71, 82}, {-71, 82}, {-73, 82}}, color = {0, 0, 127}));
67
68annotation(
69 uses(Modelica(version = "3.2.2"), ThermoPower(version = "3.1")));end CombinedCycle;