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 578 2008-07-25 22:24:26Z 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_n; |
---|
40 | |
---|
41 | |
---|
42 | SET |
---|
43 | |
---|
44 | NComp = PP.NumberOfComponents; |
---|
45 | mixer1.Ninlet = 2; |
---|
46 | |
---|
47 | stream1.ValidPhases = "Vapour-Liquid"; |
---|
48 | stream1.CompostionBasis = "Molar"; |
---|
49 | |
---|
50 | stream2.ValidPhases = "Vapour-Liquid"; |
---|
51 | stream2.CompostionBasis = "Molar"; |
---|
52 | |
---|
53 | CONNECTIONS |
---|
54 | stream1.Outlet to mixer1.Inlet(1); |
---|
55 | stream2.Outlet to mixer1.Inlet(2); |
---|
56 | |
---|
57 | SPECIFY |
---|
58 | |
---|
59 | stream1.F = 20 * 'kmol/h'; |
---|
60 | stream1.P = 120 * 'kPa'; |
---|
61 | stream1.T = 400 * 'K'; |
---|
62 | stream1.Composition = [0.5, 0.1, 0.4]; |
---|
63 | |
---|
64 | |
---|
65 | stream2.F = 10 * 'kmol/h'; |
---|
66 | stream2.P = 120 * 'kPa'; |
---|
67 | stream2.T = 290 * 'K'; |
---|
68 | stream2.Composition = [0.5, 0.1, 0.4]; |
---|
69 | |
---|
70 | OPTIONS |
---|
71 | Dynamic = false; |
---|
72 | NLASolver( |
---|
73 | RelativeAccuracy = 1e-6 |
---|
74 | ); |
---|
75 | end |
---|
76 | |
---|