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 HeatExchanger_LMTD and HeatExchanger_NTU |
---|
17 | *-------------------------------------------------------------------- |
---|
18 | * |
---|
19 | * This sample file needs VRTherm DEMO (www.vrtech.com.br) to run. |
---|
20 | * |
---|
21 | *---------------------------------------------------------------------- |
---|
22 | * Author: Gerson B. Bicca |
---|
23 | * $Id: Sample_Simplified.mso 145 2007-01-30 18:20:00Z rafael $ |
---|
24 | *--------------------------------------------------------------------*# |
---|
25 | |
---|
26 | using "heat_exchangers/HeatExchangerSimplified.mso"; |
---|
27 | |
---|
28 | FlowSheet NTU_Block |
---|
29 | |
---|
30 | DEVICES |
---|
31 | |
---|
32 | exchanger as HeatExchanger_NTU; |
---|
33 | streamhot as source; |
---|
34 | streamcold as source; |
---|
35 | |
---|
36 | CONNECTIONS |
---|
37 | |
---|
38 | streamhot.Outlet to exchanger.InletHot; |
---|
39 | streamcold.Outlet to exchanger.InletCold; |
---|
40 | |
---|
41 | PARAMETERS |
---|
42 | PP as Plugin (Type="PP",LiquidModel = "RK",VapourModel = "RK", |
---|
43 | Components = ["water"]); |
---|
44 | NComp as Integer; |
---|
45 | |
---|
46 | SET |
---|
47 | |
---|
48 | |
---|
49 | NComp = PP.NumberOfComponents; |
---|
50 | |
---|
51 | exchanger.FlowDirection = "counter"; |
---|
52 | |
---|
53 | SPECIFY |
---|
54 | |
---|
55 | exchanger.Details.A = 65.031*'m^2'; |
---|
56 | exchanger.Details.Ud = 0.75*'W/(m^2*K)'; |
---|
57 | exchanger.Details.Uc = 0.75*'W/(m^2*K)'; |
---|
58 | |
---|
59 | exchanger.HotSide.PressureDrop.Pdrop = 0*'atm'; |
---|
60 | exchanger.ColdSide.PressureDrop.Pdrop = 0*'atm'; |
---|
61 | |
---|
62 | streamhot.Outlet.F = 1000 * 'kmol/h'; |
---|
63 | streamhot.Outlet.T = 450 * 'K'; |
---|
64 | streamhot.Outlet.P = 1.5 * 'atm'; |
---|
65 | streamhot.Outlet.z = [1]; |
---|
66 | |
---|
67 | streamcold.Outlet.F = 500 * 'kmol/h'; |
---|
68 | streamcold.Outlet.P = 1 * 'atm'; |
---|
69 | streamcold.Outlet.T = 315 * 'K'; |
---|
70 | streamcold.Outlet.z = [1]; |
---|
71 | |
---|
72 | OPTIONS |
---|
73 | |
---|
74 | Dynamic = false; |
---|
75 | GuessFile = "GuessSimplified"; |
---|
76 | |
---|
77 | end |
---|
78 | |
---|
79 | FlowSheet LMTD_Block |
---|
80 | |
---|
81 | DEVICES |
---|
82 | |
---|
83 | exchanger as HeatExchanger_LMTD; |
---|
84 | streamhot as source; |
---|
85 | streamcold as source; |
---|
86 | |
---|
87 | |
---|
88 | CONNECTIONS |
---|
89 | |
---|
90 | streamhot.Outlet to exchanger.InletHot; |
---|
91 | streamcold.Outlet to exchanger.InletCold; |
---|
92 | |
---|
93 | PARAMETERS |
---|
94 | PP as Plugin (Type="PP",LiquidModel = "RK",VapourModel = "RK", |
---|
95 | Components = ["water"]); |
---|
96 | NComp as Integer; |
---|
97 | |
---|
98 | SET |
---|
99 | |
---|
100 | NComp = PP.NumberOfComponents; |
---|
101 | |
---|
102 | exchanger.FlowDirection = "counter"; |
---|
103 | |
---|
104 | SPECIFY |
---|
105 | |
---|
106 | exchanger.Method.Fc = 1; |
---|
107 | |
---|
108 | exchanger.Details.A = 65.031*'m^2'; |
---|
109 | exchanger.Details.Ud = 0.75*'W/(m^2*K)'; |
---|
110 | exchanger.Details.Uc = 0.75*'W/(m^2*K)'; |
---|
111 | |
---|
112 | exchanger.HotSide.PressureDrop.Pdrop = 0*'atm'; |
---|
113 | exchanger.ColdSide.PressureDrop.Pdrop = 0*'atm'; |
---|
114 | |
---|
115 | streamhot.Outlet.F = 1000 * 'kmol/h'; |
---|
116 | streamhot.Outlet.T = 450 * 'K'; |
---|
117 | streamhot.Outlet.P = 1.5 * 'atm'; |
---|
118 | streamhot.Outlet.z = [1]; |
---|
119 | |
---|
120 | streamcold.Outlet.F = 500 * 'kmol/h'; |
---|
121 | streamcold.Outlet.P = 1 * 'atm'; |
---|
122 | streamcold.Outlet.T = 315 * 'K'; |
---|
123 | streamcold.Outlet.z = [1]; |
---|
124 | |
---|
125 | OPTIONS |
---|
126 | |
---|
127 | Dynamic = false; |
---|
128 | |
---|
129 | end |
---|