Ignore:
Timestamp:
Mar 5, 2007, 9:02:04 PM (16 years ago)
Author:
Rafael de Pelegrini Soares
Message:

More updates on samples to run on the new language

Location:
branches/newlanguage/sample/miscellaneous
Files:
13 edited

Legend:

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

    r155 r182  
    2424FlowSheet bio
    2525        PARAMETERS
    26         miMax   as frequency(Brief="Monod parameter", Unit='1/h', Default=0.53);
    27         D       as frequency(Brief="Dilution rate F/V", Unit='1/h');
     26        miMax   as frequency(Brief="Monod parameter", DisplayUnit='1/h');
     27        D       as frequency(Brief="Dilution rate F/V", DisplayUnit='1/h');
    2828        Km      as conc_mass(Brief="Monod parameter", Default=0.12);
    2929        K1      as inv_conc_mass(Brief="Monod parameter", Default=0.4545);
     
    3434        biomass   as conc_mass (Brief="Biomass concentration");
    3535        substrate as conc_mass (Brief="Substrate concentration");
    36         mi        as frequency (Brief="Specific growth rate", Unit='1/h');
     36        mi        as frequency (Brief="Specific growth rate", DisplayUnit='1/h');
    3737       
    3838        EQUATIONS
     
    4747       
    4848        SET
     49        miMax = 0.53  *  '1/h';
    4950        D      = 0.3  *  '1/h';
    5051       
  • branches/newlanguage/sample/miscellaneous/sample_galvanic.mso

    r83 r182  
    9494
    9595        OPTIONS
    96         time = [0:100:4000]; #integration time
    97         relativeAccuracy = 1e-5; #relative tolerance
    98         absoluteAccuracy = 1e-8; #absolute tolerance
     96        TimeStep = 100;
     97        TimeEnd = 4000;
     98        RelativeAccuracy = 1e-5; #relative tolerance
     99        AbsoluteAccuracy = 1e-8; #absolute tolerance
    99100end
  • branches/newlanguage/sample/miscellaneous/sample_hyperbolics.mso

    r107 r182  
    5353       
    5454        Pi         = 3.14159265;
    55         Theta  = 0.6*Pi*"rad";
     55        Theta  = 0.6*Pi*'rad';
    5656       
    5757        EQUATIONS
     
    6464        OPTIONS
    6565       
    66         mode = "steady";
     66        Dynamic = false;
    6767       
    6868end
  • branches/newlanguage/sample/miscellaneous/sample_if.mso

    r125 r182  
    2828        EQUATIONS
    2929        if x < 1 then
    30                 diff(y) = 1 / "s";
     30                diff(y) = 1 / 's';
    3131                z = 3;
    3232        else
    33                 diff(y) = - 1 / "s";
     33                diff(y) = - 1 / 's';
    3434                if y < 1 then
    3535                        z = x + y;
     
    3939        end
    4040       
    41         diff(x) = y / "s";
     41        diff(x) = y / 's';
    4242
    4343        INITIAL
     
    4848        TimeStep = 0.1;
    4949        TimeEnd = 10.0;
    50         TimeUnit = "s";
     50        TimeUnit = 's';
    5151end
    5252
  • branches/newlanguage/sample/miscellaneous/sample_if_tanh.mso

    r83 r182  
    4343       
    4444        OPTIONS
    45         time = [0:0.01:6];
     45        TimeStep = 0.01;
     46        TimeEnd = 6;
    4647end
  • branches/newlanguage/sample/miscellaneous/sample_manipulation.mso

    r107 r182  
    6464
    6565        OPTIONS
    66         mode = "steady";
     66        Dynamic = false;
    6767       
    6868end
  • branches/newlanguage/sample/miscellaneous/sample_mathematicals.mso

    r107 r182  
    5252
    5353        OPTIONS
    54        
    55         time = [0.1:0.001:1];
    56         relativeAccuracy = 1e-10;
    57        
     54        TimeStart = 0.001;
     55        TimeStep = 0.001;
     56        TimeEnd = 1;
     57        RelativeAccuracy = 1e-6;
    5858end
  • branches/newlanguage/sample/miscellaneous/sample_matrix.mso

    r107 r182  
    8383       
    8484        OPTIONS
    85         mode = "steady";
    86         relativeAccuracy = 1e-10;
    87        
     85        Dynamic = false;
     86        RelativeAccuracy = 1e-6;
    8887end
  • branches/newlanguage/sample/miscellaneous/sample_methanol.mso

    r83 r182  
    2525Model MESEPARATOR
    2626        PARAMETERS
    27                 ext NoComp;
     27        outer NoComp;
    2828        VARIABLES
    2929        in      FLOWIN(NoComp) as FLOWRATE;
     
    5454Model FEEDERMB    #  Feed stream definition (material balance only)
    5555        PARAMETERS
    56                 ext NoComp;
     56                outer NoComp;
    5757        VARIABLES
    5858        out FLOWOUT(NoComp) as FLOWRATE;
     
    6868Model MEREACTOR
    6969        PARAMETERS
    70                 ext NoComp;
     70                outer NoComp;
    7171                Temp as Real(Default=500, Lower=300);
    7272                Pressure as Real(Default=100);
     
    110110Model SPLITMB    # TWO Stream SPLITTER (MATERIAL BALANCE ONLY)
    111111        PARAMETERS
    112                 ext NoComp;
     112                outer NoComp;
    113113        VARIABLES
    114114        out FLOWOUT2(NoComp) as FLOWRATE;
     
    135135Model MAKEUPMB    # MIXER of TWO StreamS (MATERIAL BALANCE ONLY) 
    136136        PARAMETERS
    137                 ext NoComp;
     137                outer NoComp;
    138138        VARIABLES
    139139        out FLOWOUT(NoComp) as FLOWRATE;
     
    182182                Reactor.Pressure = 120;
    183183        OPTIONS
    184                 mode = "steady";
     184                Dynamic = false;
    185185end
    186186
  • branches/newlanguage/sample/miscellaneous/sample_pend.mso

    r83 r182  
    3333        w   as velocity(Brief = "Velocity for x");
    3434        z   as velocity(Brief = "Velocity for y");
    35         T   as Real(Brief = "Tension on cable",Default=10,Unit="1/s^2");
     35        T   as Real(Brief = "Tension on cable",Default=10,Unit='1/s^2');
    3636       
    3737        EQUATIONS
     
    5252       
    5353        SET
    54         g     = 9.8 * "m/s^2";
    55         L     = 1 * "m";
     54        g     = 9.8 * 'm/s^2';
     55        L     = 1 * 'm';
    5656
    5757        INITIAL
    5858        "Initial Position x"
    59         x = -1 * "m";
     59        x = -1 * 'm';
    6060
    6161        "Initial x Velocity"
    62         w = 0 * "m/s";
     62        w = 0 * 'm/s';
    6363       
    6464        #"Initial Position y"  y = 0 * "m";
     
    6666
    6767        OPTIONS
    68        
    69         time = [0:0.1:30];
    70         integration = "index0"; # original, index0 or index1
    71         relativeAccuracy = 1e-8;
    72         absoluteAccuracy = 1e-9;
    73         indVarAccuracy = 1e-3;
    74         LASolver = "dense"; # dense or sparse
     68        TimeStep = 0.1;
     69        TimeEnd = 30;
     70        Integration = "index0"; # original, index0 or index1
     71        RelativeAccuracy = 1e-8;
     72        AbsoluteAccuracy = 1e-9;
     73        EventAccuracy = 1e-3;
     74        SparseAlgebra = true; # dense or sparse
    7575        DAESolver = "dassl"; # mebdf, dasslc, dassl, or sundials
    7676end
  • branches/newlanguage/sample/miscellaneous/sample_streams.mso

    r147 r182  
    3434
    3535        SPECIFY
    36         s1.F = 10  * "kmol/h";
    37         s1.T = 300 * "K";
    38         s1.P = 1   * "atm";
     36        s1.F = 10  * 'kmol/h';
     37        s1.T = 300 * 'K';
     38        s1.P = 1   * 'atm';
    3939        s1.z = 1/NComp;
    40         s1.h = 5   * "J/kmol";
     40        s1.h = 5   * 'J/kmol';
    4141        s1.v = 0.0;
    4242
     
    7070       
    7171        SPECIFY
    72         sl.Outlet.F = 10  * "kmol/h";
    73         sl.Outlet.T = 300 * "K";
    74         sl.Outlet.P = 100 * "kPa";
     72        sl.Outlet.F = 10  * 'kmol/h';
     73        sl.Outlet.T = 300 * 'K';
     74        sl.Outlet.P = 100 * 'kPa';
    7575        sl.Outlet.z =  [0.24596, 0.370278, 0.383762];
    7676#       sl.Outlet.v = 0.0; #liquid stream
    7777
    7878       
    79         sv.Outlet.F = 10  * "kmol/h";
    80         #sv.Outlet.h = 20248 * "J/mol";
    81         sv.Outlet.T = 300 * "K";
    82         sv.Outlet.P = 100 * "kPa";
     79        sv.Outlet.F = 10  * 'kmol/h';
     80        #sv.Outlet.h = 20248 * 'J/mol';
     81        sv.Outlet.T = 300 * 'K';
     82        sv.Outlet.P = 100 * 'kPa';
    8383        #sv.Outlet.z = [0.824212, 0.12577, 0.0500176];
    8484#       sv.Outlet.v = 1.0; #vapor stream
  • branches/newlanguage/sample/miscellaneous/sample_tanks.mso

    r113 r182  
    3131       
    3232        SET
    33         Tanque.k = 8 * "m^2.5/h";
    34         Tanque.A = 4 * "m^2";
     33        Tanque.k = 8 * 'm^2.5/h';
     34        Tanque.A = 4 * 'm^2';
    3535       
    3636        SPECIFY
    3737        "Vazao de entrada"
    38         Fin = 10 * "m^3/h";
     38        Fin = 10 * 'm^3/h';
    3939
    4040        INITIAL
    4141        "altura inicial"
    42         Tanque.h = 1 * "m";
     42        Tanque.h = 1 * 'm';
    4343       
    4444        OPTIONS
    45         time = [0:0.1:5] * "h" ;
     45        TimeStep = 0.1;
     46        TimeEnd = 5;
     47        TimeUnit = 'h' ;
    4648end
    4749
     
    5961       
    6062        SET
    61         Tanque2.k = 8 * "m^2.5/h";
    62         Tanque2.A = 4 * "m^2";
     63        Tanque2.k = 8 * 'm^2.5/h';
     64        Tanque2.A = 4 * 'm^2';
    6365       
    6466        SPECIFY
    6567        "Vazao de entrada"
    66         Fin = 10 * "m^3/h";
     68        Fin = 10 * 'm^3/h';
    6769
    6870        INITIAL
    6971        "altura inicial"
    70         Tanque1.h = 1 * "m";
    71         Tanque2.h = 2 * "m";
    72         Tanque3.h = 1 * "m";
     72        Tanque1.h = 1 * 'm';
     73        Tanque2.h = 2 * 'm';
     74        Tanque3.h = 1 * 'm';
    7375       
    7476        OPTIONS
    75         time = [0:0.5:15] * "h" ;
     77        TimeStep = 0.5;
     78        TimeEnd = 15;
     79        TimeUnit = 'h' ;
    7680end
  • branches/newlanguage/sample/miscellaneous/sample_trigonometrics.mso

    r107 r182  
    5757       
    5858        Pi         = 3.14159265;
    59         Theta  = 0.6*Pi*"rad";
     59        Theta  = 0.6*Pi*'rad';
    6060       
    6161        EQUATIONS
     
    7171        OPTIONS
    7272       
    73         mode = "steady";
    74         relativeAccuracy = 1e-10;
    75        
     73        Dynamic = false;
     74        RelativeAccuracy = 1e-10;
    7675end
Note: See TracChangeset for help on using the changeset viewer.