source: trunk/sample/heat_exchangers/PHE_diagram.mso

Last change on this file was 992, checked in by Argimiro Resende Secchi, 7 years ago

fixing some examples

File size: 2.9 KB
Line 
1#*----------------------------------------------
2* FlowSheet generated automaticaly by EMSO-GUI
3*----------------------------------------------*#
4
5using "streams.mso";
6using "heat_exchangers\PHE.mso";
7
8FlowSheet PHE_diagram
9        PARAMETERS
10        PP as Plugin(Brief="Physical Properties",
11                Type="PP"
12                ,Components = ["toluene","benzene"]
13                ,LiquidModel = "PR"
14                ,VapourModel = "PR"
15        );
16        NComp as Integer;
17        SET
18        NComp = PP.NumberOfComponents;
19
20        DEVICES
21        simple_sink_1 as simple_sink;
22        simple_sink_2 as simple_sink;
23        PHE_1 as PHE;
24        source_1 as simple_source;
25        source_2 as simple_source;
26
27        CONNECTIONS
28        PHE_1.OutletCold to simple_sink_2.Inlet;
29        PHE_1.OutletHot to simple_sink_1.Inlet;
30        source_1.Outlet to PHE_1.InletCold;
31        source_2.Outlet to PHE_1.InletHot;
32#       source_1.Outlet to simple_sink_2.Inlet;
33#       source_2.Outlet to simple_sink_1.Inlet;
34
35        SET
36        PHE_1.Geometry.Lv = 155 * 'cm' ;
37        PHE_1.Geometry.Nplates = 129 ;
38        PHE_1.Geometry.NpassHot = 2 ;
39        PHE_1.Geometry.NpassCold = 2 ;
40        PHE_1.Geometry.Dports = 15 * 'cm' ;
41        PHE_1.Geometry.Lw = 70 * 'cm' ;
42        PHE_1.Geometry.pitch = 3.7 * 'mm' ;
43        PHE_1.Geometry.pt = 0.70 * 'mm' ;
44        PHE_1.Geometry.Kwall = 17 * 'W/m/K' ;
45        PHE_1.Geometry.Rfh = 0 * 'm^2*K/kW' ;
46        PHE_1.Geometry.Rfc = 0 * 'm^2*K/kW' ;
47        PHE_1.Geometry.PhiFactor = 1.17 ;
48        PHE_1.ChevronAngle = "A30_Deg" ;
49        PHE_1.SideOne = "cold" ;
50        source_1.ValidPhases = "Liquid-Only" ;
51        source_2.ValidPhases = "Liquid-Only" ;
52
53        SPECIFY
54#       source_1.Composition(1) = 0 ;
55#       source_1.Composition(2) = 1 ;
56        source_1.MolarComposition(1) = 0 ;
57        source_1.MolarComposition(2) = 1 ;     
58        source_1.F = 290 * 'kmol/h' ;
59        source_1.T = 293 * 'K' ;
60        source_1.P = 2 * 'atm' ;
61#       source_2.Composition(1) = 1 ;
62#       source_2.Composition(2) = 0 ;
63        source_2.MolarComposition(1) = 1 ;
64        source_2.MolarComposition(2) = 0 ;             
65        source_2.F = 82.5 * 'kmol/h' ;
66        source_2.T = 360 * 'K' ;
67        source_2.P = 2 * 'atm' ;
68
69        INITIAL
70
71        GUESS
72        simple_sink_1.Inlet.T = 350 * 'K' ;
73        simple_sink_1.Inlet.P = 2 * 'atm' ;
74        simple_sink_2.Inlet.T = 300 * 'K' ;
75        simple_sink_2.Inlet.P = 2 * 'atm' ;
76        PHE_1.InletHot.z(1) = 1 ;
77        PHE_1.InletHot.z(2) = 0 ;
78        PHE_1.InletCold.z(1) = 0 ;
79        PHE_1.InletCold.z(2) = 1 ;
80        PHE_1.OutletCold.T = 300 *'K';
81        PHE_1.OutletHot.T = 350 *'K';
82        PHE_1.OutletCold.P = 2 *'atm';
83        PHE_1.OutletHot.P = 2 *'atm';
84        PHE_1.OutletHot.z(1) = 1 ;
85        PHE_1.OutletHot.z(2) = 0 ;
86        PHE_1.OutletCold.z(1) = 0 ;
87        PHE_1.OutletCold.z(2) = 1 ;
88        PHE_1.ColdSide.Properties.Outlet.rho=900*'kg/m^3';
89        PHE_1.HotSide.Properties.Outlet.rho=800*'kg/m^3';
90        PHE_1.ColdSide.Properties.Average.rho=900*'kg/m^3';
91        PHE_1.HotSide.Properties.Average.rho=800*'kg/m^3';
92
93        OPTIONS
94        Dynamic = false;
95        Integration = "original";
96        GuessFile = "PHE_diagram";
97        NLASolver(
98                File = "sundials",
99                RelativeAccuracy = 1e-3,
100                AbsoluteAccuracy = 1e-6,
101                MaxIterations = 200
102        );
103        DAESolver(
104                File = "dasslc",
105                RelativeAccuracy = 1e-3,
106                AbsoluteAccuracy = 1e-6,
107                EventAccuracy = 1e-2
108        );
109
110end
Note: See TracBrowser for help on using the repository browser.