[80] | 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 sepComp_n and sepComp |
---|
| 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_sepComp.mso 585 2008-07-28 23:31:29Z bicca $ |
---|
| 24 | *--------------------------------------------------------------------*# |
---|
| 25 | |
---|
[1] | 26 | using "mixers_splitters/sepComp"; |
---|
| 27 | |
---|
| 28 | FlowSheet Sample_sepComp_n |
---|
| 29 | |
---|
[175] | 30 | PARAMETERS |
---|
[1] | 31 | |
---|
[215] | 32 | PP as Plugin (Brief="Physical Properties",Type="PP",Components = [ "isobutane", "benzene"], |
---|
| 33 | LiquidModel = "PR", |
---|
| 34 | VapourModel = "PR"); |
---|
[175] | 35 | NComp as Integer; |
---|
[1] | 36 | |
---|
[175] | 37 | DEVICES |
---|
| 38 | Stream as source; |
---|
| 39 | sep as sepComp_n; |
---|
| 40 | |
---|
| 41 | CONNECTIONS |
---|
| 42 | Stream.Outlet to sep.Inlet; |
---|
| 43 | |
---|
| 44 | SET |
---|
[215] | 45 | |
---|
[1] | 46 | NComp = PP.NumberOfComponents; |
---|
[175] | 47 | |
---|
[1] | 48 | sep.mainComp = 1; |
---|
| 49 | sep.NOutlet = 3; |
---|
[578] | 50 | |
---|
| 51 | Stream.ValidPhases = "Vapour-Liquid"; |
---|
[585] | 52 | Stream.CompositionBasis = "Molar"; |
---|
[1] | 53 | |
---|
[175] | 54 | SPECIFY |
---|
[578] | 55 | Stream.F = 30 * 'kmol/h'; |
---|
| 56 | Stream.P = 120 * 'kPa'; |
---|
| 57 | Stream.T = 290 * 'K'; |
---|
| 58 | Stream.Composition = [0.6, 0.4]; |
---|
[175] | 59 | |
---|
[1] | 60 | sep.Outlet(1).z(1) = 0.7; |
---|
| 61 | sep.Outlet(2).z(1) = 0.1; |
---|
| 62 | sep.frac(1) = 0.4; |
---|
| 63 | sep.frac(2) = 0.2; |
---|
| 64 | # sep.recovery(1) = 0.533333; |
---|
| 65 | # sep.recovery(2) = 0.033333; |
---|
| 66 | |
---|
[175] | 67 | OPTIONS |
---|
[247] | 68 | Dynamic = false; |
---|
| 69 | NLASolver( |
---|
| 70 | RelativeAccuracy = 1e-7 |
---|
| 71 | ); |
---|
[1] | 72 | end |
---|
| 73 | |
---|
| 74 | |
---|
| 75 | FlowSheet Sample_sepComp |
---|
| 76 | PARAMETERS |
---|
[215] | 77 | PP as Plugin(Brief="Physical Properties",Type="PP",Components = [ "isobutane", "benzene"], |
---|
| 78 | LiquidModel = "PR", |
---|
| 79 | VapourModel = "PR"); |
---|
[1] | 80 | NComp as Integer; |
---|
| 81 | |
---|
| 82 | DEVICES |
---|
[175] | 83 | Stream as source; |
---|
[1] | 84 | sep as sepComp; |
---|
| 85 | |
---|
| 86 | CONNECTIONS |
---|
[175] | 87 | Stream.Outlet to sep.Inlet; |
---|
[1] | 88 | |
---|
| 89 | SET |
---|
[215] | 90 | |
---|
[1] | 91 | NComp = PP.NumberOfComponents; |
---|
| 92 | sep.mainComp = 1; |
---|
[578] | 93 | |
---|
| 94 | Stream.ValidPhases = "Vapour-Liquid"; |
---|
[585] | 95 | Stream.CompositionBasis = "Molar"; |
---|
[1] | 96 | |
---|
| 97 | SPECIFY |
---|
[578] | 98 | Stream.F = 30 * 'kmol/h'; |
---|
| 99 | Stream.P = 120 * 'kPa'; |
---|
| 100 | Stream.T = 290 * 'K'; |
---|
| 101 | Stream.Composition = [0.6, 0.4]; |
---|
[175] | 102 | |
---|
[1] | 103 | sep.Outlet1.z(1) = 0.7; |
---|
| 104 | sep.frac = 0.4; |
---|
| 105 | # sep.recovery = 0.533333; |
---|
| 106 | |
---|
| 107 | OPTIONS |
---|
[247] | 108 | Dynamic = false; |
---|
| 109 | NLASolver( |
---|
| 110 | RelativeAccuracy = 1e-7 |
---|
| 111 | ); |
---|
[1] | 112 | |
---|
| 113 | end |
---|