Ignore:
Timestamp:
Mar 14, 2007, 1:17:25 AM (16 years ago)
Author:
Argimiro Resende Secchi
Message:

More newlanguage conversions in sample files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/newlanguage/sample/stage_separators/sample_condenser.mso

    r86 r202  
    2929FlowSheet condenser_Test
    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
     
    4444        c1 as condenser;
    4545        sp as splitter;
    46         s1 as stream_therm;
     46        s1 as source;
    4747       
    4848        CONNECTIONS
     
    5252       
    5353        SPECIFY
    54         s1.P = 152 * "kPa";
    55         s1.T = 298.6 * "K";
    56         s1.F = 153 * "kmol/h";
    57         s1.z = [0.664, 0.336];
    58         s1.v = 1.0;
     54        s1.Outlet.P = 152 * 'kPa';
     55        s1.Outlet.T = 298.6 * 'K';
     56        s1.Outlet.F = 153 * 'kmol/h';
     57        s1.Outlet.z = [0.664, 0.336];
    5958       
    6059        sp.frac = 0.444445;
    61         c1.OutletV.F = 0 * "kmol/h";
    62         c1.OutletL.F = 153 * "kmol/h";
     60        c1.OutletV.F = 0 * 'kmol/h';
     61        c1.OutletL.F = 153 * 'kmol/h';
    6362
    64         Q = -3.71e6 * "kJ/h";
     63        Q = -3.71e6 * 'kJ/h';
    6564
    6665        SET
    67         c1.V = 2 * "m^3";
    68         c1.Across = 1 * "m^2";
     66        c1.V = 2 * 'm^3';
     67        c1.Across = 1 * 'm^2';
    6968
    7069        INITIAL
    71         c1.OutletL.T = 280 *"K";
    72         c1.Level = 1 * "m";
     70        c1.OutletL.T = 280 *'K';
     71        c1.Level = 1 * 'm';
    7372        c1.OutletL.z(1) = 0.65;
    7473       
    7574        OPTIONS
    76         time = [0:20:1000];
     75        TimeEnd = 1000;
     76        TimeStep = 20;
    7777end
    7878
    7979FlowSheet condenserSteady_Test
    8080        PARAMETERS
    81         PP      as CalcObject(Brief="Physical Properties",File="vrpp");
     81        PP      as Plugin(Brief="Physical Properties",File="vrpp");
    8282        NComp   as Integer;
    8383
     
    9393        DEVICES
    9494        c1 as condenserSteady;
    95         s1 as stream_therm;
     95        s1 as source;
    9696       
    9797        CONNECTIONS
     
    100100       
    101101        SPECIFY
    102         s1.P = 152 * "kPa";
    103         s1.T = 298.6 * "K";
    104         s1.F = 153 * "kmol/h";
    105         s1.z = [0.664, 0.336];
    106         s1.v = 1.0;
    107         Q = 3.71e6 * "kJ/h";
    108         c1.DP = 100 * "kPa";
     102        s1.Outlet.P = 152 * 'kPa';
     103        s1.Outlet.T = 298.6 * 'K';
     104        s1.Outlet.F = 153 * 'kmol/h';
     105        s1.Outlet.z = [0.664, 0.336];
     106
     107        Q = 3.71e6 * 'kJ/h';
     108        c1.DP = 100 * 'kPa';
    109109
    110110        OPTIONS
    111         mode = "steady";
    112         time = [0:20:1000];
     111        Dynamic = false;
    113112end
Note: See TracChangeset for help on using the changeset viewer.