source: trunk/BioModel/mixers_and_splitters/splitter_power.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: 6.0 KB
Line 
1#*-------------------------------------------------------------------
2* Biorrefinaria Petrobras
3*--------------------------------------------------------------------
4* Nome do arquivo: splitter_power.mso
5* Projeto: Modelo integrado de producao de etanol 1G/2G
6* Conteudo: splitter de trabalho
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 do splitter de correntes de trabalho
17*--------------------------------------------------------------------
18
19*--------------------------------------------------------------------
20*Notas: Foi feito o flowsheet teste para averiguar o modelo
21*As siglas R, L, U, D sao indicativos da posisao da corrente de saida
22*sendo R=right, L=legth, U=up e D=down
23*--------------------------------------------------------------------*#
24
25using "energy_stream";
26
27Model splitter_powerR
28        ATTRIBUTES
29        Pallete = true;
30        Icon = "icon/workL";
31        Brief = "Model of a Work Splitter With 2 Outlets";
32        Info =
33"== ASSUMPTIONS ==
34* Static;
35* Adiabatic.
36
37== SPEFICY ==
38* The inlet stream:
39  work;
40* The split fraction (Outlet_p1).
41";
42
43#*-------------------------------------------------------------------
44* Declaracao de variaveis
45*--------------------------------------------------------------------*#
46       
47        VARIABLES
48in      Inlet_p         as power_stream         (Brief = "Inlet Work Stream", PosX=1.0, PosY=0.50, Symbol="_{in}");
49out     Outlet_p1       as power_stream         (Brief = "Outlet Work Stream", PosX=0.0, PosY=0.08, Symbol="_{out1}");
50out     Outlet_p2       as power_stream         (Brief = "Outlet Work Stream", PosX=0.0, PosY=0.92, Symbol="_{out2}");
51        frac            as fraction             (Brief = "fraction of work outflow through the Outlet_p1", Symbol="\alpha");
52       
53        EQUATIONS
54        "Energy Balance"
55        Inlet_p.W = Outlet_p1.W + Outlet_p2.W;
56       
57        "Fraction"
58        Outlet_p1.W = Inlet_p.W * frac;
59
60end
61
62Model splitter_powerL
63        ATTRIBUTES
64        Pallete = true;
65        Icon = "icon/workR";
66        Brief = "Model of a Work Splitter With 2 Outlets";
67        Info =
68"== ASSUMPTIONS ==
69* Static;
70* Adiabatic.
71
72== SPEFICY ==
73* The inlet stream:
74  work;
75* The split fraction (Outlet_p1).
76";
77
78#*-------------------------------------------------------------------
79* Declaracao de variaveis
80*--------------------------------------------------------------------*#
81       
82        VARIABLES
83in      Inlet_p         as power_stream         (Brief = "Inlet Work Stream", PosX=1.0, PosY=0.50, Symbol="_{in}");
84out     Outlet_p1       as power_stream         (Brief = "Outlet Work Stream", PosX=0.0, PosY=0.08, Symbol="_{out1}");
85out     Outlet_p2       as power_stream         (Brief = "Outlet Work Stream", PosX=0.0, PosY=0.92, Symbol="_{out2}");
86        frac            as fraction             (Brief = "fraction of work outflow through the Outlet_p1", Symbol="\alpha");
87       
88        EQUATIONS
89        "Energy Balance"
90        Inlet_p.W = Outlet_p1.W + Outlet_p2.W;
91       
92        "Fraction"
93        Outlet_p1.W = Inlet_p.W * frac;
94
95end
96
97Model splitter_powerU
98        ATTRIBUTES
99        Pallete = true;
100        Icon = "icon/workD";
101        Brief = "Model of a Work Splitter With 2 Outlets";
102        Info =
103"== ASSUMPTIONS ==
104* Static;
105* Adiabatic.
106
107== SPEFICY ==
108* The inlet stream:
109  work;
110* The split fraction (Outlet_p1).
111";
112
113#*-------------------------------------------------------------------
114* Declaracao de variaveis
115*--------------------------------------------------------------------*#
116       
117        VARIABLES
118in      Inlet_p         as power_stream         (Brief = "Inlet Work Stream", PosX=1.0, PosY=0.50, Symbol="_{in}");
119out     Outlet_p1       as power_stream         (Brief = "Outlet Work Stream", PosX=0.0, PosY=0.08, Symbol="_{out1}");
120out     Outlet_p2       as power_stream         (Brief = "Outlet Work Stream", PosX=0.0, PosY=0.92, Symbol="_{out2}");
121        frac            as fraction             (Brief = "fraction of work outflow through the Outlet_p1", Symbol="\alpha");
122       
123        EQUATIONS
124        "Energy Balance"
125        Inlet_p.W = Outlet_p1.W + Outlet_p2.W;
126       
127        "Fraction"
128        Outlet_p1.W = Inlet_p.W * frac;
129
130end
131
132Model splitter_powerD
133        ATTRIBUTES
134        Pallete = true;
135        Icon = "icon/workU";
136        Brief = "Model of a Work Splitter With 2 Outlets";
137        Info =
138"== ASSUMPTIONS ==
139* Static;
140* Adiabatic.
141
142== SPEFICY ==
143* The inlet stream:
144  work;
145* The split fraction (Outlet_p1).
146";
147
148#*-------------------------------------------------------------------
149* Declaracao de variaveis
150*--------------------------------------------------------------------*#
151       
152        VARIABLES
153in      Inlet_p         as power_stream         (Brief = "Inlet Work Stream", PosX=1.0, PosY=0.50, Symbol="_{in}");
154out     Outlet_p1       as power_stream         (Brief = "Outlet Work Stream", PosX=0.0, PosY=0.08, Symbol="_{out1}");
155out     Outlet_p2       as power_stream         (Brief = "Outlet Work Stream", PosX=0.0, PosY=0.92, Symbol="_{out2}");
156        frac            as fraction             (Brief = "fraction of work outflow through the Outlet_p1", Symbol="\alpha");
157       
158        EQUATIONS
159        "Energy Balance"
160        Inlet_p.W = Outlet_p1.W + Outlet_p2.W;
161       
162        "Fraction"
163        Outlet_p1.W = Inlet_p.W * frac;
164
165end
166
167FlowSheet teste_splitter_power
168       
169#*-------------------------------------------------------------------
170* Declaracao de dispositivos (ou blocos contendo o modelo)
171*--------------------------------------------------------------------*#
172       
173        DEVICES
174        S101 as power_sourceR;
175        Sp101 as splitter_powerR;
176       
177#*-------------------------------------------------------------------
178* Especifica as conexoes entre os modelos
179*--------------------------------------------------------------------*#
180       
181        CONNECTIONS
182        S101.Outlet_p to Sp101.Inlet_p;
183       
184#*-------------------------------------------------------------------
185* Especifica variaveis definidas no modelo
186*--------------------------------------------------------------------*#
187       
188        SPECIFY
189        S101.Outlet_p.W = 10 * 'kW';
190       
191        Sp101.frac = 0.2;
192       
193#*-------------------------------------------------------------------
194* Opcoes de Solver e Condicoes Iniciais
195*--------------------------------------------------------------------*#
196       
197        OPTIONS
198        Dynamic = false;
199end
Note: See TracBrowser for help on using the repository browser.