source: branches/newlanguage/sample/heat_exchangers/Sample_Simplified.mso @ 179

Last change on this file since 179 was 179, checked in by gerson bicca, 17 years ago

fixed problem with UOM

File size: 3.3 KB
Line 
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
26using "heat_exchangers/HeatExchangerSimplified.mso";
27
28FlowSheet NTU_Block
29       
30DEVICES
31
32        exchanger       as HeatExchanger_NTU;
33        streamhot       as source;
34        streamcold      as source;
35
36CONNECTIONS
37
38        streamhot.Outlet        to exchanger.InletHot;
39        streamcold.Outlet       to exchanger.InletCold;
40       
41PARAMETERS
42        PP                      as Plugin       (File="vrpp");
43        NComp           as Integer;
44SET
45
46        PP.LiquidModel     = "RK";
47        PP.VapourModel   = "RK";
48        PP.Components   = ["water"];
49        NComp                           = PP.NumberOfComponents;
50       
51        exchanger.FlowDirection      = "counter";
52
53SPECIFY
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       
72OPTIONS
73
74 Dynamic                          = false;
75
76end
77
78FlowSheet LMTD_Block
79
80DEVICES
81
82        exchanger       as HeatExchanger_LMTD;
83        streamhot       as source;
84        streamcold      as source;
85
86
87CONNECTIONS
88
89        streamhot.Outlet        to exchanger.InletHot;
90        streamcold.Outlet       to exchanger.InletCold;
91       
92PARAMETERS
93        PP                      as Plugin       (File="vrpp");
94        NComp           as Integer;
95
96SET
97
98        PP.LiquidModel     = "RK";
99        PP.VapourModel   = "RK";
100        PP.Components   = ["water"];
101        NComp                           = PP.NumberOfComponents;
102       
103        exchanger.FlowDirection      = "counter";
104
105SPECIFY
106
107        exchanger.Method.Fc                                      = 1;
108       
109        exchanger.Details.A                                              = 65.031*'m^2';
110        exchanger.Details.Ud                                     = 0.75*'W/(m^2*K)';
111        exchanger.Details.Uc                                     = 0.75*'W/(m^2*K)';
112       
113        exchanger.HotSide.PressureDrop.Pdrop  = 0*'atm';
114        exchanger.ColdSide.PressureDrop.Pdrop = 0*'atm';
115       
116        streamhot.Outlet.F                                      = 1000    * 'kmol/h';
117        streamhot.Outlet.T                                      = 450     * 'K';
118        streamhot.Outlet.P                                      = 1.5     * 'atm';
119        streamhot.Outlet.z                                      = [1];
120
121        streamcold.Outlet.F                                     = 500   * 'kmol/h';
122        streamcold.Outlet.P                                     = 1     * 'atm';
123        streamcold.Outlet.T                                     = 315   * 'K';
124    streamcold.Outlet.z                                         = [1];
125       
126OPTIONS
127
128 Dynamic = false;
129
130end
Note: See TracBrowser for help on using the repository browser.