1 | #*------------------------------------------------------------------- |
---|
2 | * EMSO Model Library (EML) Copyright (C) 2004 - 2007 ALSOC. |
---|
3 | * |
---|
4 | * This LIBRARY is free software; you can distribute it and/or modify |
---|
5 | * it under the therms of the ALSOC FREE LICENSE as available at |
---|
6 | * http://www.enq.ufrgs.br/alsoc. |
---|
7 | * |
---|
8 | * EMSO Copyright (C) 2004 - 2007 ALSOC, original code |
---|
9 | * from http://www.rps.eng.br Copyright (C) 2002-2004. |
---|
10 | * All rights reserved. |
---|
11 | * |
---|
12 | * EMSO is distributed under the therms of the ALSOC LICENSE as |
---|
13 | * available at http://www.enq.ufrgs.br/alsoc. |
---|
14 | * |
---|
15 | *-------------------------------------------------------------------- |
---|
16 | * Sample file for model mixer |
---|
17 | *-------------------------------------------------------------------- |
---|
18 | * |
---|
19 | * This sample file needs VRTherm DEMO (www.vrtech.com.br) to run. |
---|
20 | * |
---|
21 | *---------------------------------------------------------------------- |
---|
22 | * Author: Maurício Carvalho Maciel |
---|
23 | * $Id: sample_mixer.mso 400 2007-11-09 21:41:38Z bicca $ |
---|
24 | *--------------------------------------------------------------------*# |
---|
25 | using "mixers_splitters/mixer"; |
---|
26 | |
---|
27 | FlowSheet SampleMixer |
---|
28 | |
---|
29 | PARAMETERS |
---|
30 | PP as Plugin(Brief="Physical Properties",Type="PP",Components = [ "isobutane", "benzene", "methane" ], |
---|
31 | LiquidModel = "PR", |
---|
32 | VapourModel = "PR"); |
---|
33 | |
---|
34 | NComp as Integer; |
---|
35 | |
---|
36 | DEVICES |
---|
37 | stream1 as source; |
---|
38 | stream2 as source; |
---|
39 | mixer1 as mixer; |
---|
40 | |
---|
41 | |
---|
42 | SET |
---|
43 | |
---|
44 | NComp = PP.NumberOfComponents; |
---|
45 | mixer1.Ninlet = 2; |
---|
46 | |
---|
47 | CONNECTIONS |
---|
48 | stream1.Outlet to mixer1.Inlet(1); |
---|
49 | stream2.Outlet to mixer1.Inlet(2); |
---|
50 | |
---|
51 | SPECIFY |
---|
52 | |
---|
53 | stream1.Outlet.F = 20 * 'kmol/h'; |
---|
54 | stream1.Outlet.P = 120 * 'kPa'; |
---|
55 | stream1.Outlet.T = 400 * 'K'; |
---|
56 | stream1.Outlet.z = [0.5, 0.1, 0.4]; |
---|
57 | |
---|
58 | |
---|
59 | stream2.Outlet.F = 10 * 'kmol/h'; |
---|
60 | stream2.Outlet.P = 120 * 'kPa'; |
---|
61 | stream2.Outlet.T = 290 * 'K'; |
---|
62 | stream2.Outlet.z = [0.5, 0.1, 0.4]; |
---|
63 | |
---|
64 | OPTIONS |
---|
65 | Dynamic = false; |
---|
66 | NLASolver( |
---|
67 | RelativeAccuracy = 1e-6 |
---|
68 | ); |
---|
69 | end |
---|
70 | |
---|