source: trunk/sample/reconciliation/flash_rec.mso @ 548

Last change on this file since 548 was 548, checked in by Argimiro Resende Secchi, 14 years ago

Adding reconciliation example.

File size: 1.3 KB
Line 
1using "stage_separators/flash";
2
3# exemplo baseado nos dados do artigo do Gani 1985.
4FlowSheet flash_Test
5        PARAMETERS
6        PP as Plugin(Brief="Physical Properties",
7                Type="PP",
8                Components = ["1,3-butadiene", "isobutene", "n-pentane",
9                        "1-pentene", "1-hexene", "benzene"],
10                LiquidModel = "PR",
11                VapourModel = "PR"
12        );
13        NComp as Integer;
14
15        VARIABLES
16        Q       as energy_source (Brief="Heat supplied");
17       
18        SET
19        NComp = PP.NumberOfComponents;
20       
21        DEVICES
22        fl as flash_steady;
23        s1 as source;
24       
25        CONNECTIONS
26        s1.Outlet to fl.Inlet;
27        Q.OutletQ to fl.InletQ;
28       
29        SPECIFY
30        s1.Outlet.F = 496.3 * 'kmol/h';
31        s1.Outlet.T = 338 * 'K';
32        s1.Outlet.P = 507.1 * 'kPa';
33        s1.Outlet.z = [0.2379,0.3082,0.09959,0.1373,0.08872,0.1283];
34       
35        fl.OutletL.P = 2.5 * 'atm';
36
37        #Q.OutletQ.Q = 0 * 'kJ/h';
38        fl.OutletL.T = 315.06 * 'K';
39       
40        OPTIONS
41        Dynamic = false;
42end
43
44Reconciliation flash_rec as flash_Test
45
46        RECONCILE
47        s1.Outlet.F; fl.OutletL.F; fl.OutletV.F;
48       
49        FREE
50        s1.Outlet.F;
51
52        EXPERIMENTS
53        # FILE            WEIGTH
54        "flash.dat"       1;
55
56        OPTIONS
57        Filter = "mean";
58        Significance = 0.95;
59        ObjectiveFunction = "Normal";
60       
61        GrossErrorTests(
62                Global = true,
63                Nodal = true,
64                Measurements = true
65        );
66       
67        NLPSolver(
68                MaxIterations=1000,
69                File = "complex"
70                #File = "ipopt_emso"
71        );
72        Dynamic = false;
73end
74
Note: See TracBrowser for help on using the repository browser.