source: trunk/BioModel/mixers_and_splitters/splitter_heat.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: 5.9 KB
Line 
1#*-------------------------------------------------------------------
2* Biorrefinaria Petrobras
3*--------------------------------------------------------------------
4* Nome do arquivo: splitter_heat.mso
5* Projeto: Modelo integrado de producao de etanol 1G/2G
6* Conteudo: splitter de calor
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 calor
17*--------------------------------------------------------------------
18
19*--------------------------------------------------------------------
20*Notas: Foi feito um 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_heatR
28        ATTRIBUTES
29        Pallete = true;
30        Icon = "icon/heatL";
31        Brief = "Model of a Heat Splitter With 2 Outlets";
32        Info =
33"== ASSUMPTIONS ==
34* Static;
35* Adiabatic.
36
37== SPEFICY ==
38* The inlet stream:
39  energy;
40* The split fraction (Outlet_q1).
41";
42
43#*-------------------------------------------------------------------
44* Declaracao de variaveis
45*--------------------------------------------------------------------*#
46       
47        VARIABLES
48in      Inlet_q         as heat_stream  (Brief = "Inlet Heat Stream", PosX=0, PosY=0.50, Symbol="_{in}");
49out     Outlet_q1       as heat_stream  (Brief = "Outlet Heat Stream", PosX=1.0, PosY=0.08, Symbol="_{out1}");
50out     Outlet_q2       as heat_stream  (Brief = "Outlet Heat Stream", PosX=1.0, PosY=0.92, Symbol="_{out2}");
51        frac        as fraction         (Brief = "fraction of energy outflow through the Outlet_q1");
52       
53        EQUATIONS
54        "Energy Balance"
55        Inlet_q.Q = Outlet_q1.Q + Outlet_q2.Q;
56       
57        "Fraction"
58        Outlet_q1.Q = Inlet_q.Q * frac;
59
60end
61
62Model splitter_heatL
63        ATTRIBUTES
64        Pallete = true;
65        Icon = "icon/heatR";
66        Brief = "Model of a Heat Splitter With 2 Outlets";
67        Info =
68"== ASSUMPTIONS ==
69* Static;
70* Adiabatic.
71
72== SPEFICY ==
73* The inlet stream:
74  energy;
75* The split fraction (Outlet_q1).
76";
77
78#*-------------------------------------------------------------------
79* Declaracao de variaveis
80*--------------------------------------------------------------------*#
81       
82        VARIABLES
83in      Inlet_q         as heat_stream  (Brief = "Inlet Heat Stream", PosX=0, PosY=0.50, Symbol="_{in}");
84out     Outlet_q1       as heat_stream  (Brief = "Outlet Heat Stream", PosX=1.0, PosY=0.08, Symbol="_{out1}");
85out     Outlet_q2       as heat_stream  (Brief = "Outlet Heat Stream", PosX=1.0, PosY=0.92, Symbol="_{out2}");
86        frac        as fraction         (Brief = "fraction of energy outflow through the Outlet_q1");
87       
88        EQUATIONS
89        "Energy Balance"
90        Inlet_q.Q = Outlet_q1.Q + Outlet_q2.Q;
91       
92        "Fraction"
93        Outlet_q1.Q = Inlet_q.Q * frac;
94
95end
96
97Model splitter_heatU
98        ATTRIBUTES
99        Pallete = true;
100        Icon = "icon/heatD";
101        Brief = "Model of a Heat Splitter With 2 Outlets";
102        Info =
103"== ASSUMPTIONS ==
104* Static;
105* Adiabatic.
106
107== SPEFICY ==
108* The inlet stream:
109  energy;
110* The split fraction (Outlet_q1).
111";
112
113#*-------------------------------------------------------------------
114* Declaracao de variaveis
115*--------------------------------------------------------------------*#
116       
117        VARIABLES
118in      Inlet_q         as heat_stream  (Brief = "Inlet Heat Stream", PosX=0, PosY=0.50, Symbol="_{in}");
119out     Outlet_q1       as heat_stream  (Brief = "Outlet Heat Stream", PosX=1.0, PosY=0.08, Symbol="_{out1}");
120out     Outlet_q2       as heat_stream  (Brief = "Outlet Heat Stream", PosX=1.0, PosY=0.92, Symbol="_{out2}");
121        frac        as fraction         (Brief = "fraction of energy outflow through the Outlet_q1");
122       
123        EQUATIONS
124        "Energy Balance"
125        Inlet_q.Q = Outlet_q1.Q + Outlet_q2.Q;
126       
127        "Fraction"
128        Outlet_q1.Q = Inlet_q.Q * frac;
129       
130end
131
132Model splitter_heatD
133        ATTRIBUTES
134        Pallete = true;
135        Icon = "icon/heatU";
136        Brief = "Model of a Heat Splitter With 2 Outlets";
137        Info =
138"== ASSUMPTIONS ==
139* Static;
140* Adiabatic.
141
142== SPEFICY ==
143* The inlet stream:
144  energy;
145* The split fraction (Outlet_q1).
146";
147
148#*-------------------------------------------------------------------
149* Declaracao de variaveis
150*--------------------------------------------------------------------*#
151       
152        VARIABLES
153in      Inlet_q         as heat_stream  (Brief = "Inlet Heat Stream", PosX=0, PosY=0.50, Symbol="_{in}");
154out     Outlet_q1       as heat_stream  (Brief = "Outlet Heat Stream", PosX=1.0, PosY=0.08, Symbol="_{out1}");
155out     Outlet_q2       as heat_stream  (Brief = "Outlet Heat Stream", PosX=1.0, PosY=0.92, Symbol="_{out2}");
156        frac        as fraction         (Brief = "fraction of energy outflow through the Outlet_q1");
157       
158        EQUATIONS
159        "Energy Balance"
160        Inlet_q.Q = Outlet_q1.Q + Outlet_q2.Q;
161       
162        "Fraction"
163        Outlet_q1.Q = Inlet_q.Q * frac;
164
165end
166
167FlowSheet teste_splitter_heat
168       
169#*-------------------------------------------------------------------
170* Declaracao de dispositivos (ou blocos contendo o modelo)
171*--------------------------------------------------------------------*#
172
173        DEVICES
174        S101 as heat_sourceR;
175        Sp101 as splitter_heatR;
176       
177#*-------------------------------------------------------------------
178* Especifica as conexoes entre os modelos
179*--------------------------------------------------------------------*#
180       
181        CONNECTIONS
182        S101.Outlet_q to Sp101.Inlet_q;
183       
184#*-------------------------------------------------------------------
185* Especifica variaveis definidas no modelo
186*--------------------------------------------------------------------*#
187
188        SPECIFY
189        S101.Outlet_q.Q = 10 * 'kW';
190       
191        Sp101.frac = 0.2;
192       
193#*-------------------------------------------------------------------
194* Condicoes iniciais e opcoes de Solver
195*--------------------------------------------------------------------*#
196       
197        OPTIONS
198        Dynamic = false;
199end
Note: See TracBrowser for help on using the repository browser.