source: trunk/sample/water_steam/planta_cogeracao.mso @ 976

Last change on this file since 976 was 965, checked in by Argimiro Resende Secchi, 7 years ago

adding cogeneration example

File size: 4.3 KB
Line 
1#*----------------------------------------------
2* FlowSheet generated automaticaly by EMSO-GUI
3*----------------------------------------------*#
4
5using "water_steam/power_plant.mso";
6
7FlowSheet planta_cogeracao
8        PARAMETERS
9        PP as Plugin(Brief="Physical Properties",
10                Type="PP"
11                ,Components = ["water"]
12                ,LiquidModel = "IdealLiquid"
13                ,VapourModel = "Ideal"
14        );
15        NComp as Integer;
16        SET
17        NComp = PP.NumberOfComponents;
18
19        DEVICES
20        GV as Gerador_VaporMod;
21        TAP as Turbina_sangra;
22        TMP1 as Turbina_sangra;
23        TMP2 as Turbina_sangra;
24        TBP as Turbina;
25        COND as Condensador;
26        ATEMP as Tanque2;
27        TD1 as Turbina;
28        T4P as Tanque4perdas;
29        DEAERA as Desaerador5;
30        B4 as Bomba;
31        T2P as Tanque2;
32        B3 as Bomba;
33        B5 as Bomba;
34        B2 as Bomba;
35        CONDP as Condensador;
36        B1 as Bomba;
37        CONDP6 as Condensador;
38        FLASH as Flash;
39        SP4 as Splitter4;
40        Torre_1 as Torre;
41        SUM as SumidouroQ;
42        SumidouroQ_1 as SumidouroQ;
43        SUM2 as Sumidouro;
44        ETA_CICLO_1 as ETA_CICLO;
45        GE as Gerador_Eletrico;
46        SUMM as SumidouroQ;
47        Fonte2_1 as Fonte2;
48        Splitter_1 as Splitter;
49
50        CONNECTIONS
51        GV.Fout_sa to TAP.Fin;
52        TAP.Fouts to ATEMP.Fin1;
53        TAP.Fout to TMP1.Fin;
54        ATEMP.Fout to TD1.Fin;
55        TMP1.Fouts to T2P.Fin1;
56        TMP1.Fout to TMP2.Fin;
57        B4.Fout to ATEMP.Fin2;
58        TD1.Fout to T4P.Fin2;
59        B3.Fout to T2P.Fin2;
60        TMP2.Fout to TBP.Fin;
61        B5.Fout to GV.Fin_a;
62        B2.Fout to T4P.Fin4;
63        T4P.Fout to CONDP.Fin;
64        CONDP.Fout to DEAERA.Fin1;
65        COND.Fout to B1.Fin;
66        B1.Fout to DEAERA.Fin2;
67        TBP.Fout to COND.Fin;
68        T2P.Fout to CONDP6.Fin;
69        CONDP6.Fout to FLASH.Fin;
70        FLASH.FoutL to DEAERA.Fin3;
71        FLASH.FoutV to T4P.Fin3;
72        DEAERA.Fout to SP4.Fin;
73        SP4.Fout1 to B2.Fin;
74        SP4.Fout2 to B3.Fin;
75        SP4.Fout3 to B4.Fin;
76        SP4.Fout4 to B5.Fin;
77        COND.Q_COND to Torre_1.Qin;
78        CONDP6.Q_COND to SUM.Qin;
79        CONDP.Q_COND to SumidouroQ_1.Qin;
80        T4P.Fperda to SUM2.Fin;
81        GV.Q_GV to ETA_CICLO_1.POT_GV;
82        B5.POT_BMB to ETA_CICLO_1.POT_BMB5;
83        B4.POT_BMB to ETA_CICLO_1.POT_BMB1;
84        B3.POT_BMB to ETA_CICLO_1.POT_BMB2;
85        B2.POT_BMB to ETA_CICLO_1.POT_BMB3;
86        B1.POT_BMB to ETA_CICLO_1.POT_BMB4;
87        TAP.POT_TURB to GE.POT_TURB2;
88        TMP1.POT_TURB to GE.POT_TURB1;
89        TMP2.POT_TURB to GE.POT_TURB3;
90        TBP.POT_TURB to GE.POT_TURB4;
91        GE.POT_GE to ETA_CICLO_1.POT_GE;
92        TD1.POT_TURB to SUMM.Qin;
93        Fonte2_1.Fout to DEAERA.Fin4;
94        TMP2.Fouts to Splitter_1.Fin;
95        Splitter_1.Fouts to T4P.Fin1;
96        Splitter_1.Fout to DEAERA.Fin5;
97
98        SET
99
100        SPECIFY
101        GV.EF_GV = 0.8 ;
102        GV.Fin_a.F = 81.3 * 'kg/s' ;
103        GV.Feco.P = 8 * 'MPa' ;
104        GV.Fvap.P = 8 * 'MPa' ;
105        GV.Fvap.T = 568 * 'K' ;
106        GV.Qpre = 1 * 'kW' ;
107        GV.Fout_sa.P = 8 * 'MPa' ;
108        GV.Fout_sa.T = 753 * 'K' ;
109        GV.Feco.T = 563 * 'K' ;
110        TAP.EF_T = 0.85 ;
111        TAP.Fout.P = 1.9 * 'MPa' ;
112        TAP.y = 0.3 ;
113        TMP1.EF_T = 0.8 ;
114        TMP1.Fout.P = 0.6 * 'MPa' ;
115        TMP1.y = 0.05 ;
116        TMP2.EF_T = 0.8 ;
117        TMP2.Fout.P = 0.25 * 'MPa' ;
118        TMP2.y = 0.05 ;
119        TBP.EF_T = 0.7 ;
120        TBP.Fout.P = 0.007 * 'MPa' ;
121        COND.G_S = 2 * 'K' ;
122        ATEMP.Fout.P = 1.9 * 'MPa' ;
123        TD1.EF_T = 0.55 ;
124        TD1.Fout.P = 0.25 * 'MPa' ;
125        T4P.Fout.P = 0.25 * 'MPa' ;
126        T4P.Fperda.F = 2.6 * 'kg/s' ;
127        DEAERA.Fout.P = 0.16 * 'MPa' ;
128        B4.EF_B = 0.95 ;
129        B4.Fout.P = 1.9 * 'MPa' ;
130        T2P.Fout.P = 0.6 * 'MPa' ;
131        B3.EF_B = 0.95 ;
132        B3.Fout.P = 0.6 * 'MPa' ;
133        B5.EF_B = 0.95 ;
134        B5.Fout.P = 8 * 'MPa' ;
135        B2.EF_B = 0.95 ;
136        B2.Fout.P = 0.25 * 'MPa' ;
137        CONDP.G_S = 2 * 'K' ;
138        B1.EF_B = 0.95 ;
139        B1.Fout.P = 0.16 * 'MPa' ;
140        CONDP6.G_S = 2 * 'K' ;
141        FLASH.FoutL.P = 0.25 * 'MPa' ;
142        SP4.y(1) = 0.001 ;
143        SP4.y(2) = 0.001 ;
144        SP4.y(3) = 0.001 ;
145        Torre_1.F = 7000 * 'kg/s' ;
146        Torre_1.Th = 308 * 'K' ;
147        Torre_1.Tar_c = 293 * 'K' ;
148        Torre_1.DTar = 10 * 'K' ;
149        Fonte2_1.Fout.F = 2.6 * 'kg/s' ;
150        Fonte2_1.Fout.P = 0.1013 * 'MPa' ;
151        Fonte2_1.Fout.T = 293 * 'K' ;
152        Splitter_1.y = 0.015 ;
153
154        INITIAL
155
156        GUESS
157
158        OPTIONS
159        Dynamic = false;
160        Integration = "original";
161        NLASolver(
162                File = "sundials",
163                RelativeAccuracy = 1e-5,
164                AbsoluteAccuracy = 1e-6,
165                MaxIterations = 100
166        );
167        DAESolver(
168                File = "dassl",
169                RelativeAccuracy = 1e-3,
170                AbsoluteAccuracy = 1e-6,
171                EventAccuracy = 1e-2
172        );
173
174#*
175This tab can be used by users to insert small code
176structures in the present simulation.
177
178For example: Steps, Ramps, Sinusoidals, ... *#
179
180PARAMETERS
181PP2 as Plugin(Type="water");
182
183#EQUATIONS
184
185#Enter your code here.
186
187#Example:
188#*if time > 1000 * 's' then
189        source_1.F = 100 * 'kmol/h';
190else
191        source_1.F = 200 * 'kmol/h';
192end*#
193end
Note: See TracBrowser for help on using the repository browser.