source: trunk/BioModel/pressure_changers/turbine_w.mso @ 1008

Last change on this file since 1008 was 1008, checked in by Argimiro Resende Secchi, 21 months ago

Adding BioModel? to the MSO library.

File size: 4.8 KB
Line 
1#*-------------------------------------------------------------------
2* Biorrefinaria Petrobras
3*--------------------------------------------------------------------
4* Nome do arquivo: turbine_w.mso
5* Projeto: Modelo integrado de producao de etanol 1G/2G
6* Conteudo: turbina
7*--------------------------------------------------------------------*#
8
9#*-------------------------------------------------------------------
10*
11* Versao 2.2
12* Data:    03/2016
13* Autores:   Anderson R. A. Lino e Gabriel C. Fonseca
14*
15*--------------------------------------------------------------------
16*Descricao: modelo da turbina que sera empregado na biorrefinaria
17*--------------------------------------------------------------------
18
19*--------------------------------------------------------------------
20*Notas: Foi feito o flowsheet teste para averiguar o modelo e outro
21* para averiguar as propriedades
22*--------------------------------------------------------------------*#
23
24using "water_stream";
25using "energy_stream";
26
27
28Model turbine_w
29ATTRIBUTES
30        Pallete         = true;
31        Icon            = "icon/turbine";
32        Brief           = "Simplified Turbine Model";
33        Info =
34"== GENERAL ==
35        Model of a steam turbine based on the isoentropric efficiency
36        and the mechanical efficiency.
37       
38== ASSUMPTIONS ==
39* Steady-state;
40* Adiabatic.
41
42== SPECIFY ==
43* Inlet stream:
44  flow rate
45  temperature
46  pressure
47  stream composition;
48* Pressure drop or outlet stream pressure;
49* Turbine isoentropic efficiency;
50* Turbine mechanical efficiency.
51
52== SET ==
53* Specify the phase that comes out of the source.
54";
55
56
57#*-------------------------------------------------------------------
58#Parametros
59*--------------------------------------------------------------------*#
60
61        PARAMETERS
62        propterm as Plugin                              (Brief="Steam tables", Symbol = "{}", Type="water");
63       
64#*-------------------------------------------------------------------
65* Declaracao de variaveis
66*--------------------------------------------------------------------*#
67       
68        VARIABLES
69        H_IS            as enth_mass                    (Brief = "Outlet Isoentropic Mass Enthalpy", Symbol = "H_{isoentr}");
70        EF_T            as efficiency                   (Brief = "Turbine Efficiency", Symbol = "\eta_{term}", Default = 0.5);
71        EF_ME           as efficiency                   (Brief = "Turbine Mechanical and Electric Efficiency", Symbol = "\eta_{mech}", Default = 0.96);
72        q_losses        as heat_rate                    (Brief = "Heat Losses", Symbol = "q_{loss}");
73       
74in      Inlet           as water_stream                 (Brief = "Inlet Current", PosX=0.08, PosY=0.0, Symbol="_{in}", Protected = true);
75out     Outlet          as water_stream_vapfrac (Brief = "Outlet Current", PosX=0.665, PosY=1.0, Symbol="_{out}", Protected = false);
76out Outlet_p    as power_stream                 (Brief = "Eletric Power Generated", PosX=0.94, PosY=0.5, Symbol="_{out}");
77
78        Pdrop           as press_delta                  (Brief = "Pressure Drop", Symbol = "\Delta P");
79        Pout            as pressure                             (Brief = "Outlet Pressure", Symbol = "\P_out");
80#*-------------------------------------------------------------------
81* Equacoes do modelo
82*--------------------------------------------------------------------*#
83
84        EQUATIONS
85        "Mass Balance"
86        Outlet.Fw = Inlet.Fw;
87       
88        "Pressure Drop"
89        Inlet.P = Outlet.P + Pdrop;
90       
91        "Outlet Pressure"
92        Outlet.P = Pout;
93
94        "Outlet Isoentropic Mass Enthalpy"
95        H_IS = propterm.propPS(Outlet.P, Inlet.S);
96
97        "Outlet Real Mass Enthalpy"
98        Outlet.H = (H_IS - Inlet.H) * EF_T + Inlet.H;
99
100        "Outlet Mass Entropy and Temperature, array = [Outlet.S, Outlet.H]"
101        [Outlet.S, Outlet.T] = propterm.propPH(Outlet.P, Outlet.H);
102       
103        "Eletric Power Generated"
104        Inlet.Fw * (Inlet.H - Outlet.H) * EF_ME = Outlet_p.W ;
105       
106        "Energy Balance"
107        q_losses + Outlet_p.W = Inlet.Fw * (Inlet.H - Outlet.H);
108
109end
110
111FlowSheet teste_turbine_w
112       
113#*-------------------------------------------------------------------
114* Declaracao de dispositivos (ou blocos contendo o modelo)
115*--------------------------------------------------------------------*#
116       
117        DEVICES
118        S101 as water_sourceR;
119        T101 as turbine_w;
120       
121#*-------------------------------------------------------------------
122* Especifica as conexoes entre os modelos
123*--------------------------------------------------------------------*#
124       
125        CONNECTIONS
126        S101.Outlet to T101.Inlet;
127       
128#*-------------------------------------------------------------------
129* Especifica variaveis definidas no modelo
130*--------------------------------------------------------------------*#
131
132        SPECIFY
133
134        S101.Fw = 252100 * 'kg/h';
135        S101.T = (520 + 273.15) * 'K';
136        S101.P = 120 * 'bar';
137
138        T101.Outlet.P = 22 * 'bar';
139        T101.EF_T = 0.8;
140        T101.EF_ME = 0.958;
141       
142        SET
143        S101.ValidPhases = "Vapour-Only";
144       
145#*-------------------------------------------------------------------
146* Condicoes iniciais e opcoes de Solver
147*--------------------------------------------------------------------*#
148       
149        OPTIONS
150        Dynamic = false;
151
152end
Note: See TracBrowser for help on using the repository browser.