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/mixers_splitters/sample_mixer.mso

    r80 r202  
    2828       
    2929        PARAMETERS
    30         PP      as CalcObject(Brief="Physical Properties",File="vrpp");
     30        PP      as Plugin(Brief="Physical Properties",File="vrpp");
    3131        NComp   as Integer;
    3232        Ninlet as Integer;
    3333       
    3434        DEVICES
    35         stream1 as stream_therm;
    36         stream2 as stream_therm;
    37         mixer   as mixer;
    38        
     35        stream1 as source;
     36        stream2 as source;
     37        mixer1  as mixer;
     38
    3939       
    4040        SET
     
    4343        PP.VapourModel = "PR";
    4444        NComp = PP.NumberOfComponents;
    45         mixer.Ninlet = 2;
     45        mixer1.Ninlet = 2;
    4646       
    4747        CONNECTIONS
    48         stream1 to mixer.Inlet_mixer(1);
    49         stream2 to mixer.Inlet_mixer(2);
     48        stream1 to mixer1.Inlet_mixer(1);
     49        stream2 to mixer1.Inlet_mixer(2);
    5050       
    5151        SPECIFY
    5252       
    53         stream1.F = 20 * "kmol/h";
    54         stream1.P = 120 * "kPa";
    55         stream1.T = 400  * "K";
    56         stream1.z = [0.5, 0.1, 0.4];
    57         stream1.v = 1;
     53        stream1.Outlet.F = 20 * 'kmol/h';
     54        stream1.Outlet.P = 120 * 'kPa';
     55        stream1.Outlet.T = 400  * 'K';
     56        stream1.Outlet.z = [0.5, 0.1, 0.4];
    5857       
    5958       
    60         stream2.F = 10 * "kmol/h";
    61         stream2.P = 120 * "kPa";
    62         stream2.T = 290 * "K"; 
    63         stream2.z = [0.5, 0.1, 0.4];
    64         stream2.v = 0.0;
     59        stream2.Outlet.F = 10 * 'kmol/h';
     60        stream2.Outlet.P = 120 * 'kPa';
     61        stream2.Outlet.T = 290 * 'K';   
     62        stream2.Outlet.z = [0.5, 0.1, 0.4];
    6563       
    6664        OPTIONS
    67         mode = "steady";
    68         relativeAccuracy = 1e-6;
    69 
     65        Dynamic = false;
     66        RelativeAccuracy = 1e-6;
    7067end
    7168
Note: See TracChangeset for help on using the changeset viewer.