[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 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 | *--------------------------------------------------------------------*# |
---|
[1] | 25 | using "mixers_splitters/mixer"; |
---|
| 26 | |
---|
| 27 | FlowSheet SampleMixer |
---|
| 28 | |
---|
| 29 | PARAMETERS |
---|
[215] | 30 | PP as Plugin(Brief="Physical Properties",Type="PP",Components = [ "isobutane", "benzene", "methane" ], |
---|
| 31 | LiquidModel = "PR", |
---|
| 32 | VapourModel = "PR"); |
---|
| 33 | |
---|
[1] | 34 | NComp as Integer; |
---|
| 35 | |
---|
| 36 | DEVICES |
---|
[202] | 37 | stream1 as source; |
---|
| 38 | stream2 as source; |
---|
| 39 | mixer1 as mixer; |
---|
| 40 | |
---|
[1] | 41 | |
---|
| 42 | SET |
---|
[215] | 43 | |
---|
[1] | 44 | NComp = PP.NumberOfComponents; |
---|
[202] | 45 | mixer1.Ninlet = 2; |
---|
[1] | 46 | |
---|
| 47 | CONNECTIONS |
---|
[400] | 48 | stream1.Outlet to mixer1.Inlet(1); |
---|
| 49 | stream2.Outlet to mixer1.Inlet(2); |
---|
[1] | 50 | |
---|
| 51 | SPECIFY |
---|
| 52 | |
---|
[202] | 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]; |
---|
[1] | 57 | |
---|
| 58 | |
---|
[202] | 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]; |
---|
[1] | 63 | |
---|
| 64 | OPTIONS |
---|
[202] | 65 | Dynamic = false; |
---|
[247] | 66 | NLASolver( |
---|
| 67 | RelativeAccuracy = 1e-6 |
---|
| 68 | ); |
---|
[1] | 69 | end |
---|
| 70 | |
---|