source: trunk/BioModel/energy_stream.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: energy_stream.mso
5* Projeto: Modelo integrado de producao de etanol 1G/2G
6* Conteudo: corrente de energia
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 corrente de energia que sera utilizado
17*na simulacao do processo
18*--------------------------------------------------------------------
19
20*--------------------------------------------------------------------
21*Notas: Foram feitos os flowsheets teste e teste2 para averiguar
22*o modelo
23*--------------------------------------------------------------------*#
24
25using "streams";
26
27Model heat_stream
28        ATTRIBUTES
29        Pallete = false;
30        Brief = "Heat Stream";
31        Color = "red";
32        Info =
33"== GENERAL ==
34        This general stream should be used when heat is transfered.
35";
36       
37        VARIABLES
38        Q as power (Upper = 1e8, Lower = -1e8);
39end
40
41Model heat_sourceR
42        ATTRIBUTES
43        Pallete = true;
44        Icon = "icon/heatR";
45        Brief = "Heat Stream Source";
46        Info =
47"== GENERAL ==
48        Source of heat.
49";
50        VARIABLES
51out Outlet_q as heat_stream (Brief = "Outlet Heat Stream", PosX = 1.0, PosY = 0.5256);
52
53end
54
55Model heat_sourceL
56        ATTRIBUTES
57        Pallete = true;
58        Icon = "icon/heatL";
59        Brief = "Heat Stream Source";
60        Info =
61"== GENERAL ==
62        Source of heat.
63";
64        VARIABLES
65out Outlet_q as heat_stream (Brief = "Outlet Heat Stream", PosX = 0, PosY = 0.5256);
66
67end
68
69
70Model heat_sinkR
71        ATTRIBUTES
72        Pallete = true;
73        Icon = "icon/heatR";
74        Brief = "Heat Stream Sink";
75        Info =
76"== GENERAL ==
77        Sink of heat.
78";
79        VARIABLES
80in Inlet_q as heat_stream (Brief = "Inlet Heat Stream", PosX = 0.0, PosY = 0.5256);
81
82end
83
84Model heat_sinkL
85        ATTRIBUTES
86        Pallete = true;
87        Icon = "icon/heatL";
88        Brief = "Heat Stream Sink";
89        Info =
90"== GENERAL ==
91        Sink of heat.
92";
93        VARIABLES
94in Inlet_q as heat_stream (Brief = "Inlet Heat Stream", PosX = 1.0, PosY = 0.5256);
95
96end
97
98
99#work stream
100Model power_stream
101        ATTRIBUTES
102        Pallete = false;
103        Brief = "Work Stream";
104        Color = "darkgreen";
105        Info =
106"== GENERAL ==
107        This general stream should be used when work is transfered.
108";
109
110        VARIABLES
111        W as potency (Upper = 1e8, Lower = -1e-6);
112       
113end
114
115Model power_sourceR
116        ATTRIBUTES
117        Pallete = true;
118        Icon = "icon/workR";
119        Brief = "Work Stream Source";
120        Info =
121"== GENERAL ==
122        Source of work.
123";
124
125        VARIABLES
126out Outlet_p as power_stream (Brief = "Outlet Work Stream", PosX = 1.0, PosY = 0.5256);
127       
128end
129
130Model power_sourceL
131        ATTRIBUTES
132        Pallete = true;
133        Icon = "icon/workL";
134        Brief = "Work Stream Source";
135        Info =
136"== GENERAL ==
137        Source of work.
138";
139
140        VARIABLES
141out Outlet_p as power_stream (Brief = "Outlet Work Stream", PosX = 0, PosY = 0.5256);
142       
143end
144
145
146Model power_sinkR
147        ATTRIBUTES
148        Pallete = true;
149        Icon = "icon/workR";
150        Brief = "Work Stream Sink";
151        Info =
152"== GENERAL ==
153        Sink of work.
154";
155
156        VARIABLES
157in Inlet_p as power_stream (Brief = "Inlet Work Stream", PosX = 0.0, PosY = 0.5256);
158       
159end
160
161Model power_sinkL
162        ATTRIBUTES
163        Pallete = true;
164        Icon = "icon/workL";
165        Brief = "Work Stream Sink";
166        Info =
167"== GENERAL ==
168        Sink of work.
169";
170
171        VARIABLES
172in Inlet_p as power_stream (Brief = "Inlet Work Stream", PosX = 1.0, PosY = 0.5256);
173       
174end
175
176
177
178
179FlowSheet teste
180       
181#*-------------------------------------------------------------------
182* Declaracao de dispositivos (ou blocos contendo o modelo)
183*--------------------------------------------------------------------*#
184       
185        DEVICES
186        SS101 as heat_sourceR;
187       
188#*-------------------------------------------------------------------
189* Especifica variaveis definidas no modelo
190*--------------------------------------------------------------------*#
191       
192        SPECIFY
193        SS101.Outlet_q.Q = 10 * 'kW';
194       
195#*-------------------------------------------------------------------
196* Opcoes do Solver
197*--------------------------------------------------------------------*#
198       
199        OPTIONS
200        Dynamic = false;
201
202end
203
204
205FlowSheet teste2
206       
207#*-------------------------------------------------------------------
208* Declaracao de dispositivos (ou blocos contendo o modelo)
209*--------------------------------------------------------------------*#
210       
211        DEVICES
212        SS101 as heat_sourceR;
213        SS102 as heat_sinkL;
214       
215        CONNECTIONS
216        SS101.Outlet_q to SS102.Inlet_q;
217       
218#*-------------------------------------------------------------------
219* Especifica variaveis definidas no modelo
220*--------------------------------------------------------------------*#
221       
222        SPECIFY
223        SS101.Outlet_q.Q = 10 * 'kW';
224       
225#*-------------------------------------------------------------------
226* Opcoes do Solver
227*--------------------------------------------------------------------*#
228       
229        OPTIONS
230        Dynamic = false;
231
232end
233
Note: See TracBrowser for help on using the repository browser.