Changeset 180 for branches/newlanguage


Ignore:
Timestamp:
Mar 5, 2007, 11:42:08 AM (16 years ago)
Author:
Rafael de Pelegrini Soares
Message:

Updated UOM for the new language

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/newlanguage/sample/miscellaneous/sample_switcher.mso

    r145 r180  
    99    PARAMETERS
    1010    ValveMode as Switcher(Valid = ["closed", "opened"], Default = "closed");
    11         R as Real(Unit="J/(K*mol)", Default=8.314472);
     11        R as Real(Unit='J/(K*mol)', Default=8.314472);
    1212        V as volume;
    1313        T as temperature;
     
    3131    switch ValveMode
    3232        case "closed":
    33                 flow_out = 0 * "mol/h";
    34                 when P > 2*"atm" switchto "opened";
     33                flow_out = 0 * 'mol/h';
     34                when P > 2*'atm' switchto "opened";
    3535
    3636        case "opened":
     
    4545       
    4646        SET
    47         ball.V = 1 * "l";
    48         ball.T = 300 * "K";
    49         ball.Pout = 1 * "atm";
     47        ball.V = 1 * 'l';
     48        ball.T = 300 * 'K';
     49        ball.Pout = 1 * 'atm';
    5050        ball.ValveMode = "opened";
    5151       
    5252        SPECIFY
    53         ball.flow_in = 50 * "mol/h";
     53        ball.flow_in = 50 * 'mol/h';
    5454       
    5555        INITIAL
    56         ball.P = 1.2 * "atm";
     56        ball.P = 1.2 * 'atm';
    5757       
    5858        OPTIONS
Note: See TracChangeset for help on using the changeset viewer.