[81] | 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 centrifugal_pump and pump (simplified) |
---|
| 17 | *-------------------------------------------------------------------- |
---|
| 18 | * |
---|
| 19 | * This sample file needs VRTherm DEMO (www.vrtech.com.br) to run. |
---|
| 20 | * |
---|
| 21 | *---------------------------------------------------------------------- |
---|
| 22 | * Author: Estefane S. Horn, Paula B. Staudt |
---|
| 23 | * $Id: sample_pump.mso 372 2007-09-21 22:17:36Z arge $ |
---|
| 24 | *--------------------------------------------------------------------*# |
---|
[1] | 25 | using "pressure_changers/pump"; |
---|
| 26 | |
---|
[57] | 27 | FlowSheet Pump_P1 |
---|
| 28 | |
---|
| 29 | DEVICES |
---|
[196] | 30 | S1 as source; |
---|
[57] | 31 | P1 as centrifugal_pump; |
---|
| 32 | |
---|
| 33 | CONNECTIONS |
---|
[196] | 34 | S1.Outlet to P1.Inlet; |
---|
[57] | 35 | |
---|
| 36 | PARAMETERS |
---|
[213] | 37 | PP as Plugin (Brief="External Physical Properties", |
---|
| 38 | Type="PP", |
---|
| 39 | Components = ["water", "benzene"], |
---|
| 40 | LiquidModel = "PR", |
---|
| 41 | VapourModel = "PR" |
---|
| 42 | ); |
---|
[196] | 43 | Mw as positive (Brief = "Molar Mass", Unit = 'kg/kmol'); |
---|
[57] | 44 | NComp as Integer (Default= 1); |
---|
| 45 | |
---|
| 46 | SET |
---|
| 47 | NComp = PP.NumberOfComponents; |
---|
[196] | 48 | P1.N = 1000 * 'rpm'; |
---|
| 49 | P1.Lev = 0 * 'm'; |
---|
[57] | 50 | P1.Meff = 0.95; |
---|
| 51 | P1.Eff = 0.72; |
---|
[196] | 52 | P1.Beta = 425e-6 * '1/K'; |
---|
[57] | 53 | |
---|
| 54 | SPECIFY |
---|
[196] | 55 | S1.Outlet.F = 1000 * 'kmol/h'; |
---|
| 56 | S1.Outlet.P = 10 * 'atm'; |
---|
| 57 | S1.Outlet.T = 298 * 'K' ; |
---|
| 58 | S1.Outlet.z = [1,0]; |
---|
[57] | 59 | |
---|
[372] | 60 | P1.Pdrop = -8 * 'kPa'; |
---|
[196] | 61 | #P1.Outlet.P = 2 * 'atm'; |
---|
| 62 | #P1.BPower = 1 * 'kW'; |
---|
| 63 | |
---|
[57] | 64 | end |
---|
| 65 | |
---|
[1] | 66 | FlowSheet pump_Test |
---|
| 67 | PARAMETERS |
---|
[213] | 68 | PP as Plugin (Brief="External Physical Properties", |
---|
| 69 | Type="PP", |
---|
| 70 | Components = ["water", "benzene"], |
---|
| 71 | LiquidModel = "PR", |
---|
| 72 | VapourModel = "PR" |
---|
| 73 | ); |
---|
[1] | 74 | NComp as Integer; |
---|
| 75 | |
---|
| 76 | SET |
---|
| 77 | NComp = PP.NumberOfComponents; |
---|
| 78 | |
---|
| 79 | DEVICES |
---|
| 80 | p1 as pump; |
---|
[196] | 81 | s1 as source; |
---|
[1] | 82 | |
---|
| 83 | CONNECTIONS |
---|
[196] | 84 | s1.Outlet to p1.Inlet; |
---|
[1] | 85 | |
---|
| 86 | SPECIFY |
---|
[196] | 87 | s1.Outlet.F = 826 * 'kmol/h'; |
---|
| 88 | s1.Outlet.P = 549 * 'kPa'; |
---|
| 89 | s1.Outlet.T = 313 * 'K'; |
---|
| 90 | s1.Outlet.z = 1/NComp; |
---|
| 91 | #s1.Outlet.v = 0.68; |
---|
| 92 | |
---|
| 93 | p1.dP = 90 * 'kPa'; |
---|
[1] | 94 | |
---|
| 95 | OPTIONS |
---|
[196] | 96 | Dynamic = false; |
---|
[1] | 97 | end |
---|