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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.