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

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