source: trunk/sample/stage_separators/sample_condenser.mso @ 690

Last change on this file since 690 was 650, checked in by Argimiro Resende Secchi, 15 years ago

Fixing convergence problems!

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 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 condenser and condenserSteady
17*--------------------------------------------------------------------
18*
19* This sample file needs VRTherm DEMO (www.vrtech.com.br) to run.
20*
21*----------------------------------------------------------------------
22* Author: Paula B. Staudt
23* $Id: sample_condenser.mso 650 2008-10-01 01:00:48Z arge $
24*--------------------------------------------------------------------*#
25using "stage_separators/condenser";
26using "mixers_splitters/splitter";
27
28# condenser with splitter dividing liquid outlet
29FlowSheet condenser_Test
30        PARAMETERS
31        PP      as Plugin(Brief="Physical Properties",
32                Type="PP",
33                Components = [ "isobutane", "benzene"],
34                LiquidModel = "PR",
35                VapourModel = "PR"
36        );
37        NComp   as Integer;
38
39        VARIABLES
40        Q       as energy_source (Brief="Heat supplied");
41       
42        SET
43        NComp = PP.NumberOfComponents;
44       
45        DEVICES
46        c1 as condenser;
47        sp as splitter;
48        s1 as source;
49       
50        CONNECTIONS
51        s1.Outlet to c1.InletV;
52        c1.OutletL to sp.Inlet;
53        Q.OutletQ to c1.InletQ;
54       
55        SPECIFY
56        s1.P = 152 * 'kPa';
57        s1.T = 298.6 * 'K';
58        s1.F = 153 * 'kmol/h';
59        s1.Composition = [0.664, 0.336];
60       
61        sp.frac = 0.444445;
62        c1.OutletV.F = 0 * 'kmol/h';
63        c1.OutletL.F = 153 * 'kmol/h';
64
65        Q.OutletQ.Q = -3.71e6 * 'kJ/h';
66
67        SET
68        c1.V = 2 * 'm^3';
69        c1.Across = 1 * 'm^2';
70
71        INITIAL
72        c1.OutletL.T = 280 *'K';
73        c1.Level = 1 * 'm';
74        c1.OutletL.z(1) = 0.65;
75       
76        OPTIONS
77        TimeEnd = 1000;
78        TimeStep = 20;
79        DAESolver(File="dassl");
80end
81
82FlowSheet condenserSteady_Test
83        PARAMETERS
84        PP      as Plugin(Brief="Physical Properties",
85                Type="PP",
86                Components = [ "isobutane", "benzene"],
87                LiquidModel = "PR",
88                VapourModel = "PR"
89        );
90        NComp   as Integer;
91
92        VARIABLES
93        Q       as energy_source (Brief="Heat supplied");
94       
95        SET
96        NComp = PP.NumberOfComponents;
97       
98        DEVICES
99        c1 as condenserSteady;
100        s1 as source;
101       
102        CONNECTIONS
103        s1.Outlet to c1.InletV;
104        Q.OutletQ to c1.InletQ;
105       
106        SPECIFY
107        s1.P = 152 * 'kPa';
108        s1.T = 298.6 * 'K';
109        s1.F = 153 * 'kmol/h';
110        s1.Composition = [0.664, 0.336];
111
112        Q.OutletQ.Q = 3.71e6 * 'kJ/h';
113        c1.DP = 100 * 'kPa';
114
115        OPTIONS
116        Dynamic = false;
117end
Note: See TracBrowser for help on using the repository browser.