Changeset 184


Ignore:
Timestamp:
Mar 6, 2007, 12:13:09 PM (16 years ago)
Author:
Rafael de Pelegrini Soares
Message:

Updated optimization problem

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/newlanguage/sample/optimization/flash_opt.mso

    r85 r184  
    2929FlowSheet FlashSteadyTest
    3030        PARAMETERS
    31         PP      as CalcObject(Brief="Physical Properties",File="vrpp");
     31        PP      as Plugin(Brief="Physical Properties",File="vrpp");
    3232        NComp   as Integer;
    3333
     
    4343       
    4444        DEVICES
    45         fl as flash_Steady;
    46         s1 as stream_therm;
     45        fl as flash_steady;
     46        s1 as source;
    4747       
    4848        CONNECTIONS
    49         s1 to fl.Inlet;
     49        s1.Outlet to fl.Inlet;
    5050        Q to fl.Q;
    5151       
     
    5454       
    5555        SPECIFY
    56         s1.F = 496.3 * "kmol/h";
    57         s1.T = 338 * "K";
    58         s1.P = 507.1 * "kPa";
    59         s1.v = 0.1380;
    60         s1.z = [0.2379,0.3082,0.09959,0.1373,0.08872,0.1283];
     56        s1.Outlet.F = 496.3 * 'kmol/h';
     57        s1.Outlet.T = 338 * 'K';
     58        s1.Outlet.P = 507.1 * 'kPa';
     59        #s1.Outlet.v = 0.1380;
     60        s1.Outlet.z = [0.2379,0.3082,0.09959,0.1373,0.08872,0.1283];
    6161       
    62         fl.OutletL.P = 2.5 * "atm";
     62        fl.OutletL.P = 2.5 * 'atm';
    6363
    64         #Q = 0 * "kJ/h";
    65         fl.OutletL.T = 315.06 * "K";
     64        #Q = 0 * 'kJ/h';
     65        fl.OutletL.T = 315.06 * 'K';
    6666       
    6767        OPTIONS
    68         mode = "steady";
     68        Dynamic = false;
    6969end
    7070
     
    8282       
    8383        EQUATIONS
    84         fl.OutletL.T < 320 * "K";
    85         fl.OutletL.T > 300 * "K";
     84        fl.OutletL.T < 320 * 'K';
     85        fl.OutletL.T > 300 * 'K';
    8686
    8787        OPTIONS
    88         mode = "steady";
     88        Dynamic = false;
     89        NLPSolveNLA = false;
     90        RelativeAccuracy = 1e-6;
    8991end
    9092
Note: See TracChangeset for help on using the changeset viewer.