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_tray.mso

    r86 r202  
    2727FlowSheet tray_Test
    2828        PARAMETERS
    29         PP      as CalcObject(Brief="Physical Properties",File="vrpp");
     29        PP      as Plugin(Brief="Physical Properties",File="vrpp");
    3030        NComp   as Integer;
    3131
     
    3838        DEVICES
    3939        t1 as tray;
    40         feed as stream_therm;
    41         inL as stream_therm;
    42         inV as stream_therm;
     40        feed as source;
     41        inL as liquid_stream;
     42        inV as vapour_stream;
    4343       
    4444        CONNECTIONS
     
    4848       
    4949        SPECIFY
    50         feed.F = 113.4 * "kmol/h";
    51         feed.T = 291 * "K";
    52         feed.P = 1.66 * "atm";
    53         feed.z = [0.5, 0.5];
    54         feed.v = 0;
     50        feed.Outlet.F = 113.4 * 'kmol/h';
     51        feed.Outlet.T = 291 * 'K';
     52        feed.Outlet.P = 1.66 * 'atm';
     53        feed.Outlet.z = [0.5, 0.5];
    5554       
    56         inL.P = 165 * "kPa";
    57         inL.T = 310 * "K";
    58         inL.F = 61.99 * "kmol/h";
     55        inL.P = 165 * 'kPa';
     56        inL.T = 310 * 'K';
     57        inL.F = 61.99 * 'kmol/h';
    5958        inL.z = [0.1641, 0.8359];
    60         inL.v = 0.0;
    6159
    62         inV.F = 147.1 * "kmol/h";
    63         inV.v = 1.0;
    64         inV.P = 150 * "kPa";
    65         inV.T = 321 * "K";
     60        inV.F = 147.1 * 'kmol/h';
     61        inV.P = 150 * 'kPa';
     62        inV.T = 321 * 'K';
    6663        inV.z = [0.0584, 0.9416];
    67        
     64
    6865        t1.Emv = 1;
    69         t1.OutletV.F = 147.1 * "kmol/h";
     66        t1.OutletV.F = 147.1 * 'kmol/h';
    7067
    7168        SET
    72         t1.V = 4 * "ft^3";
    73         t1.Ah = 0.394 * "ft^2";
    74         t1.lw = 20.94 * "in";
    75         t1.hw = 0.125 * "ft";
    76         t1.Q = 0 * "kW";
     69        t1.V = 4 * 'ft^3';
     70        t1.Ah = 0.394 * 'ft^2';
     71        t1.lw = 20.94 * 'in';
     72        t1.hw = 0.125 * 'ft';
     73        t1.Q = 0 * 'kW';
    7774        t1.beta = 0.6;
    7875        t1.alfa = 4;
    79         t1.Ap = 3.94 * "ft^2";
     76        t1.Ap = 3.94 * 'ft^2';
    8077       
    8178        INITIAL
    82         t1.OutletL.T = 290 *"K";
     79        t1.OutletL.T = 290 *'K';
    8380        t1.Level = 0.9 * t1.hw;
    8481        t1.OutletL.z(1) = 0.5;
    8582       
    8683        OPTIONS
    87         relativeAccuracy = 1e-6;
    88         time = [0:1:100];
     84        RelativeAccuracy = 1e-6;
     85        TimeEnd = 100;
    8986end
Note: See TracChangeset for help on using the changeset viewer.