[121] | 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 flash and flashSteady |
---|
| 17 | *-------------------------------------------------------------------- |
---|
| 18 | * |
---|
| 19 | * This sample file needs VRTherm (www.vrtech.com.br) to run. |
---|
| 20 | * |
---|
| 21 | *---------------------------------------------------------------------- |
---|
| 22 | * Author: Paula B. Staudt |
---|
| 23 | * $Id: sample_stream.mso 124 2007-01-19 17:54:55Z rafael $ |
---|
| 24 | *--------------------------------------------------------------------*# |
---|
| 25 | using "streams"; |
---|
| 26 | |
---|
| 27 | # exemplo baseado nos dados do artigo do Gani 1985. |
---|
| 28 | FlowSheet stream_test |
---|
| 29 | PARAMETERS |
---|
| 30 | PP as Plugin(Brief="Physical Properties", File="vrpp"); |
---|
| 31 | NComp as Integer; |
---|
| 32 | |
---|
| 33 | SET |
---|
| 34 | PP.Components = ["1,3-butadiene", "isobutene", "n-pentane", "1-pentene", "1-hexene", "benzene"]; |
---|
| 35 | PP.LiquidModel = "PR"; |
---|
| 36 | PP.VapourModel = "PR"; |
---|
| 37 | NComp = PP.NumberOfComponents; |
---|
| 38 | |
---|
| 39 | DEVICES |
---|
| 40 | s1 as source; |
---|
[124] | 41 | s2 as sink; |
---|
[121] | 42 | |
---|
[123] | 43 | CONNECTIONS |
---|
| 44 | s1.Outlet to s2.Inlet; |
---|
| 45 | |
---|
[121] | 46 | SPECIFY |
---|
| 47 | s1.Outlet.F = 496.3 * "kmol/h"; |
---|
| 48 | s1.Outlet.T = 338 * "K"; |
---|
[123] | 49 | #s1.Outlet.P = 507.1 * "kPa"; |
---|
| 50 | s1.Outlet.v = 0.12; |
---|
[121] | 51 | s1.Outlet.z = [0.2379,0.3082,0.09958,0.1373,0.08872,0.1283]; |
---|
| 52 | |
---|
| 53 | OPTIONS |
---|
[124] | 54 | RelativeAccuracy = 1e-4; |
---|
| 55 | AbsoluteAccuracy = 1e-8; |
---|
[123] | 56 | Dynamic = false; |
---|
[121] | 57 | TimeStep = 0.1; |
---|
| 58 | TimeEnd = 20; |
---|
| 59 | TimeUnit = "h"; |
---|
| 60 | end |
---|