Ignore:
Timestamp:
10/01/21 22:36:10 (3 years ago)
Author:
Maciej Komosinski
Message:

Foraminifera show has now smaller world compared to expdef (and adjusted other parameters), so it is better suited for visualization and demonstration

File:
1 edited

Legend:

Unmodified
Added
Removed
  • experiments/frams/foraminifera/data/scripts/foraminifera.show

    r847 r1152  
    1818function onLoad()
    1919{
     20        // Since Theater is mostly for demos and visualization, we make the world smaller (than set by expdef) for clarity, and adjust other parameters accordingly
     21        World.wrldsiz = 100;
    2022        var nutrient_multiple = 200;
    21         Params = { "foodflux" : [0.0000000037815, 0.0000000075631, 0.000000015126], "feedtrans" : [0.0005, 0.001, 0.002], "energy_nut" : [nutrient_multiple * 144.54, nutrient_multiple * 544.54, nutrient_multiple * 944.54], "stress" : [0, 1], "visualize" : [0, 1]};
    22         ShowProperties.visualize = 1;
     23        Params = { "foodflux" : [0.000000037815, 0.000000075631, 0.00000015126], "feedtrans" : [0.0005, 0.001, 0.002], "energy_nut" : [nutrient_multiple * 144.54, nutrient_multiple * 544.54, nutrient_multiple * 944.54], "stress" : [0, 1], "visualize" : [0, 1]}; //a set of smaller food fluxes because of the smaller world
     24        //larger initial energies result in fewer individuals that do not overcrowd the small world:
     25        ExpProperties.energies0_haplo = 60;
     26        ExpProperties.energies0_diplo = 3.75;
     27        ShowProperties_foodflux_set(); //force call of the value change handler
     28
     29        ShowProperties.visualize = 1; //calls value change handler
    2330        ExpProperties.secPerStep = 50;
    24         Simulator.init();
     31
     32        Simulator.init(); //calculates some parameters based on the current world size
    2533        last_simspeed = 0;
    2634        GLDisplay.desiredsimspeed = 50;
Note: See TracChangeset for help on using the changeset viewer.