Changeset 247


Ignore:
Timestamp:
Apr 24, 2007, 10:44:18 AM (15 years ago)
Author:
Rafael de Pelegrini Soares
Message:

Updated solver options for the new language

Location:
trunk/sample
Files:
27 edited

Legend:

Unmodified
Added
Removed
  • trunk/sample/controllers/Sample_flash_pid.mso

    r242 r247  
    162162
    163163        OPTIONS
    164         RelativeAccuracy = 1e-6;
    165164        #time = [0:100:7000 7000:0.10:8150 8150:100:10000];
    166165        TimeStep = 100;
  • trunk/sample/controllers/sample_tanks_pid.mso

    r190 r247  
    7979       
    8080        OPTIONS
    81         DAESolver = "dassl";
     81        DAESolver(File = "dassl");
    8282        TimeStep = 0.1;
    8383        TimeEnd = 30;
     
    137137       
    138138        OPTIONS
    139         NLASolver = "sundials";
    140139        TimeStep = 0.1;
    141140        TimeEnd = 30;
  • trunk/sample/heat_exchangers/sample_Detailed.mso

    r236 r247  
    120120
    121121Dynamic = false;
    122 RelativeAccuracy = 1e-6;
     122NLASolver(RelativeAccuracy = 1e-6);
    123123GuessFile = "GuessDetailed";
    124124end
     
    221221
    222222Dynamic = false;
    223 RelativeAccuracy = 1e-6;
     223NLASolver(RelativeAccuracy = 1e-6);
    224224GuessFile = "GuessDetailed";
    225225end
  • trunk/sample/miscellaneous/sample_bc.mso

    r176 r247  
    8989                TimeStep = 0.01;
    9090                TimeEnd = 2.1;
    91                 #integration = "index0"; #original, index0 or index 1
    92                 RelativeAccuracy = 1e-6;
    93                 AbsoluteAccuracy = 1e-8;
    94                 DAESolver = "dasslc"; # "mebdf"
     91                #Integration = "index0"; #original, index0 or index 1
     92                DAESolver(
     93                        File = "dasslc" # "mebdf"
     94                );
    9595end
    9696
  • trunk/sample/miscellaneous/sample_calc_object.mso

    r217 r247  
    100100
    101101        OPTIONS
    102         RelativeAccuracy = 1e-6;
    103102        Dynamic = false;
    104103end
     
    125124       
    126125        OPTIONS
    127         RelativeAccuracy = 1e-6;
    128126        Dynamic = false;
    129127end
  • trunk/sample/miscellaneous/sample_car.mso

    r198 r247  
    8787        TimeEnd = 3;
    8888        Integration = "index0";# "index0"; # "original";
    89         DAESolver = "mebdf";
    90         NLASolver = "sundials"; # "nlasolver";
    91         RelativeAccuracy = 1e-5;
    92         AbsoluteAccuracy = 1e-5;
     89        NLASolver(
     90                File = "sundials",
     91                RelativeAccuracy = 1e-5,
     92                AbsoluteAccuracy = 1e-5
     93        );
     94        DAESolver(
     95                File = "mebdf",
     96                RelativeAccuracy = 1e-5,
     97                AbsoluteAccuracy = 1e-5
     98        );
    9399end
  • trunk/sample/miscellaneous/sample_galvanic.mso

    r218 r247  
    9696        TimeStep = 100;
    9797        TimeEnd = 4000;
    98         RelativeAccuracy = 1e-5; #relative tolerance
    99         AbsoluteAccuracy = 1e-8; #absolute tolerance
    10098end
  • trunk/sample/miscellaneous/sample_mathematicals.mso

    r217 r247  
    5555        TimeStep = 0.001;
    5656        TimeEnd = 1;
    57         RelativeAccuracy = 1e-6;
    5857end
  • trunk/sample/miscellaneous/sample_matrix.mso

    r182 r247  
    8484        OPTIONS
    8585        Dynamic = false;
    86         RelativeAccuracy = 1e-6;
    8786end
  • trunk/sample/miscellaneous/sample_optimization.mso

    r183 r247  
    1616        OPTIONS
    1717        NLPSolver = "ipopt_emso";
    18         RelativeAccuracy = 1e-6;
    1918end
  • trunk/sample/miscellaneous/sample_pend.mso

    r182 r247  
    6969        TimeEnd = 30;
    7070        Integration = "index0"; # original, index0 or index1
    71         RelativeAccuracy = 1e-8;
    72         AbsoluteAccuracy = 1e-9;
    73         EventAccuracy = 1e-3;
     71
     72        NLASolver(
     73                RelativeAccuracy = 1e-8,
     74                AbsoluteAccuracy = 1e-9
     75        );
     76        DAESolver(
     77                File = "dassl", # mebdf, dasslc, dassl, or sundials
     78                RelativeAccuracy = 1e-8,
     79                AbsoluteAccuracy = 1e-9,
     80                EventAccuracy = 1e-3
     81        );
    7482        SparseAlgebra = true; # dense or sparse
    75         DAESolver = "dassl"; # mebdf, dasslc, dassl, or sundials
    7683end
  • trunk/sample/miscellaneous/sample_trigonometrics.mso

    r182 r247  
    7272       
    7373        Dynamic = false;
    74         RelativeAccuracy = 1e-10;
     74        NLASolver(
     75                RelativeAccuracy = 1e-10
     76        );
    7577end
  • trunk/sample/mixers_splitters/sample_mixer.mso

    r215 r247  
    6565        OPTIONS
    6666        Dynamic = false;
    67         RelativeAccuracy = 1e-6;
     67        NLASolver(
     68                RelativeAccuracy = 1e-6
     69        );
    6870end
    6971
  • trunk/sample/mixers_splitters/sample_sepComp.mso

    r215 r247  
    6363
    6464OPTIONS
    65         RelativeAccuracy = 1e-7;
    66        
     65        Dynamic = false;
     66        NLASolver(
     67                RelativeAccuracy = 1e-7
     68        );
    6769end
    6870
     
    98100
    99101        OPTIONS
    100         RelativeAccuracy = 1e-7;
     102        Dynamic = false;
     103        NLASolver(
     104                RelativeAccuracy = 1e-7
     105        );
    101106       
    102107end
  • trunk/sample/mixers_splitters/sample_splitter.mso

    r215 r247  
    5656
    5757        OPTIONS
    58         RelativeAccuracy = 1e-7;
     58        Dynamic = false;
     59        NLASolver(
     60                RelativeAccuracy = 1e-7
     61        );
    5962       
    6063end
  • trunk/sample/optimization/ammonia.mso

    r218 r247  
    182182        OPTIONS
    183183        Dynamic = false;
    184         RelativeAccuracy = 1e-5;
     184        NLASolver(
     185                RelativeAccuracy = 1e-5
     186        );
    185187end
  • trunk/sample/optimization/ammonia_opt.mso

    r202 r247  
    4141        production > 90 * 'lbmol/h';
    4242       
    43         OPTIONS
    44         RelativeAccuracy = 1e-1;
    4543end
  • trunk/sample/pressure_changers/sample_valve.mso

    r213 r247  
    5959       
    6060        OPTIONS
    61         RelativeAccuracy = 1e-6;
    6261        Dynamic = false;
     62        NLASolver(
     63                RelativeAccuracy = 1e-6
     64        );
    6365end
    6466
     
    9698       
    9799        OPTIONS
    98         RelativeAccuracy = 1e-6;
    99100        Dynamic = false;
     101        NLASolver(
     102                RelativeAccuracy = 1e-6
     103        );
    100104end
    101105
     
    132136       
    133137        OPTIONS
    134         RelativeAccuracy = 1e-6;
    135138        Dynamic = false;
     139        NLASolver(
     140                RelativeAccuracy = 1e-6
     141        );
    136142end
  • trunk/sample/stage_separators/sample_batch_dist.mso

    r213 r247  
    8383       
    8484        OPTIONS
    85         RelativeAccuracy = 1e-3;
    8685        TimeEnd = 20;
    8786        TimeStep = 0.1;
  • trunk/sample/stage_separators/sample_batch_dist_PID.mso

    r213 r247  
    107107       
    108108        OPTIONS
    109         RelativeAccuracy = 1e-5;
    110109        TimeEnd = 6;
    111110        TimeStep = 0.01;
  • trunk/sample/stage_separators/sample_column.mso

    r237 r247  
    9999       
    100100        OPTIONS
    101         #RelativeAccuracy = 1e-3;
    102         NLASolver = "sundials";
    103101        TimeStep = 10;
    104102        TimeEnd = 1000;
     
    184182       
    185183        OPTIONS
    186         RelativeAccuracy = 1e-5;
    187184        TimeStep = 1;
    188185        TimeEnd = 100;
     
    277274
    278275        OPTIONS
    279         RelativeAccuracy = 1e-3;
    280276        TimeStep = 0.1;
    281277        TimeEnd = 50;
  • trunk/sample/stage_separators/sample_columnReact.mso

    r243 r247  
    249249        TimeStep = 100;
    250250        TimeEnd = 50000;
    251         NLASolver = "sundials";
    252         DAESolver = "dassl";
    253251end
  • trunk/sample/stage_separators/sample_flash.mso

    r235 r247  
    8181       
    8282        OPTIONS
    83         RelativeAccuracy = 1e-4;
    84         AbsoluteAccuracy = 1e-8;
    8583        Dynamic = true;
    8684        TimeStep = 0.1;
  • trunk/sample/stage_separators/sample_reboiler.mso

    r213 r247  
    7979       
    8080        OPTIONS
    81         RelativeAccuracy = 1e-5;
    8281        TimeEnd = 1000;
    8382        TimeStep = 20;
     
    122121       
    123122        OPTIONS
    124         RelativeAccuracy = 1e-5;
    125123        Dynamic = false;
    126124end
  • trunk/sample/stage_separators/sample_stream.mso

    r209 r247  
    5454
    5555        OPTIONS
    56         RelativeAccuracy = 1e-4;
    57         AbsoluteAccuracy = 1e-8;
    5856        Dynamic = false;
    59         TimeStep = 0.1;
    60         TimeEnd = 20;
    61         TimeUnit = 'h';
    6257end
  • trunk/sample/stage_separators/sample_tank.mso

    r213 r247  
    6767       
    6868        OPTIONS
    69         RelativeAccuracy = 1e-5;
    7069        TimeStep = 100;
    7170        TimeEnd = 1000;
     
    115114       
    116115        OPTIONS
    117         RelativeAccuracy = 1e-5;
    118116        TimeStep = 100;
    119117        TimeEnd = 1000;
  • trunk/sample/stage_separators/sample_tray.mso

    r213 r247  
    8484       
    8585        OPTIONS
    86         RelativeAccuracy = 1e-6;
    8786        TimeEnd = 100;
    8887end
Note: See TracChangeset for help on using the changeset viewer.