[891] | 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 models valve_simplified and valve |
---|
| 17 | *-------------------------------------------------------------------- |
---|
| 18 | * |
---|
| 19 | * This sample file needs VRTherm DEMO (www.vrtech.com.br) to run. |
---|
| 20 | * |
---|
| 21 | *---------------------------------------------------------------------- |
---|
| 22 | * Author: Paula B. Staudt, Estefane Horn, Núbia do Carmo Ferreira |
---|
| 23 | * $Id: sample_valve.mso 587 2008-08-04 22:45:14Z bicca $ |
---|
| 24 | *--------------------------------------------------------------------*# |
---|
| 25 | |
---|
| 26 | using "pressure_changers/valve"; |
---|
| 27 | using "streams/sources"; |
---|
| 28 | |
---|
| 29 | FlowSheet valve_Test_V |
---|
| 30 | # with vapour conditions |
---|
| 31 | PARAMETERS |
---|
| 32 | PP as Plugin(Brief="Physical Properties", |
---|
| 33 | Type="PP", |
---|
| 34 | Components = [ "isobutane", "benzene"], |
---|
| 35 | LiquidModel = "PR", |
---|
| 36 | VapourModel = "PR" |
---|
| 37 | ); |
---|
| 38 | NComp as Integer; |
---|
| 39 | |
---|
| 40 | SET |
---|
| 41 | NComp = PP.NumberOfComponents; |
---|
| 42 | |
---|
| 43 | DEVICES |
---|
| 44 | v1 as valve_simplified; |
---|
| 45 | s1 as source; |
---|
| 46 | |
---|
| 47 | CONNECTIONS |
---|
| 48 | s1.Outlet to v1.Inlet; |
---|
| 49 | |
---|
| 50 | SPECIFY |
---|
| 51 | s1.P = 150 * 'kPa'; |
---|
| 52 | s1.T = 281.75 * 'K'; |
---|
| 53 | s1.Composition = [0.664, 0.336]; |
---|
| 54 | |
---|
| 55 | v1.x = 0.866; |
---|
| 56 | v1.Outlet.P = 148 * 'kPa'; |
---|
| 57 | |
---|
| 58 | SET |
---|
| 59 | v1.k = 20 * 'gal/min/psi^0.5'; |
---|
| 60 | |
---|
| 61 | OPTIONS |
---|
| 62 | Dynamic = false; |
---|
| 63 | NLASolver( |
---|
| 64 | RelativeAccuracy = 1e-6 |
---|
| 65 | ); |
---|
| 66 | end |
---|
| 67 | |
---|
| 68 | FlowSheet valve_Test_L |
---|
| 69 | #with liquid conditions |
---|
| 70 | PARAMETERS |
---|
| 71 | PP as Plugin(Brief="Physical Properties", |
---|
| 72 | Type="PP", |
---|
| 73 | Components = [ "isobutane", "benzene"], |
---|
| 74 | LiquidModel = "PR", |
---|
| 75 | VapourModel = "PR" |
---|
| 76 | ); |
---|
| 77 | NComp as Integer; |
---|
| 78 | |
---|
| 79 | SET |
---|
| 80 | NComp = PP.NumberOfComponents; |
---|
| 81 | |
---|
| 82 | DEVICES |
---|
| 83 | v1 as valve_simplified; |
---|
| 84 | s1 as source; |
---|
| 85 | |
---|
| 86 | CONNECTIONS |
---|
| 87 | s1.Outlet to v1.Inlet; |
---|
| 88 | |
---|
| 89 | SPECIFY |
---|
| 90 | s1.P = 185 * 'kPa'; |
---|
| 91 | s1.T = 328.12 * 'K'; |
---|
| 92 | s1.Composition = [0.001848, 0.9982]; |
---|
| 93 | |
---|
| 94 | v1.x = 0.3363; |
---|
| 95 | v1.Outlet.P = 183 * 'kPa'; |
---|
| 96 | |
---|
| 97 | SET |
---|
| 98 | v1.k = 20 * 'gal/min/psi^0.5'; |
---|
| 99 | |
---|
| 100 | OPTIONS |
---|
| 101 | Dynamic = false; |
---|
| 102 | NLASolver( |
---|
| 103 | RelativeAccuracy = 1e-6 |
---|
| 104 | ); |
---|
| 105 | end |
---|
| 106 | |
---|