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 splitter_n |
---|
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_splitter.mso 80 2006-12-08 19:46:22Z paula $ |
---|
24 | *--------------------------------------------------------------------*# |
---|
25 | |
---|
26 | using "mixers_splitters/splitter"; |
---|
27 | |
---|
28 | FlowSheet TestSplitter |
---|
29 | PARAMETERS |
---|
30 | PP as CalcObject(Brief="Physical Properties",File="vrpp"); |
---|
31 | NComp as Integer; |
---|
32 | NOutlet as Integer; |
---|
33 | |
---|
34 | DEVICES |
---|
35 | stream as stream_therm; |
---|
36 | splitter as splitter_n; |
---|
37 | |
---|
38 | CONNECTIONS |
---|
39 | stream to splitter.Inlet; |
---|
40 | |
---|
41 | SET |
---|
42 | PP.Components = [ "isobutane", "benzene"]; |
---|
43 | PP.LiquidModel = "PR"; |
---|
44 | PP.VapourModel = "PR"; |
---|
45 | NComp = PP.NumberOfComponents; |
---|
46 | splitter.NOutlet = 3; |
---|
47 | |
---|
48 | SPECIFY |
---|
49 | stream.F = 153 * "kmol/h"; |
---|
50 | stream.P = 150 * "kPa"; |
---|
51 | stream.T = 298.6 * "K"; |
---|
52 | stream.z = [0.6, 0.4]; |
---|
53 | stream.v = 0; |
---|
54 | splitter.frac(1) = 0.4; |
---|
55 | splitter.frac(2) = 0.1; |
---|
56 | |
---|
57 | OPTIONS |
---|
58 | relativeAccuracy = 1e-7; |
---|
59 | |
---|
60 | end |
---|