source: experiments/frams/foraminifera/data/scripts/foraminifera.show @ 430

Last change on this file since 430 was 430, checked in by oriona, 9 years ago

new reticulopodia range implemented, visualization of reticulopodia

File size: 1.5 KB
RevLine 
[401]1show:
[406]2name:Reproduction of benthic foraminifera
[401]3info:~
[422]4There are two species of Foraminiera: longitudal and coiled. First chamber of the longitudal species has
5orange marks. Haploid and diploid generations alternate in both species. All chambers of the haploid generation
6have the same size. In the diploid generation subsequent chambers are bigger than their predecessors.
7Nutrients are green disks. Foraminifers move towards nearest nutrients and try to accumulate a sufficient
8amount of energy to reproduce.
9
[407]10More information at www.framsticks.com/foraminifera
[401]11~
[406]12expdef:foraminifera
[401]13code:~
14
[423]15global Params;
16
[401]17function onLoad()
18{
19        Simulator.init();
20        GLDisplay.desiredsimspeed = 50;
21        GLDisplay.minfps = 10;
[423]22
[430]23        Params = { "feedrate" : [0.05,0.1,0.2], "feedtrans" : [0.01,0.05,0.1],"energy_nut" :[0.5,1.5,3.0], "stress" : [0,1]};
[401]24}
[423]25
26function setShowParam(param_id)
27{
28        ExpParams.[param_id] = Params[param_id][ShowParams.[param_id]];
29}
30
31function ShowParams_feedrate_set()
[401]32{
[423]33        setShowParam("feedrate");
[401]34}
35
[423]36function ShowParams_feedtrans_set()
[401]37{
[423]38        setShowParam("feedtrans");
[401]39}
40
[423]41function ShowParams_energy_nut_set()
[401]42{
[423]43        setShowParam("energy_nut");
[401]44}
45
[422]46function ShowParams_stress_set()
47{
[423]48        setShowParam("stress");
[422]49}
50
[401]51~
52
[422]53prop:
[423]54id:feedrate
[422]55name:Feeding rate
[423]56type:d 0 2 1 ~Low~Medium~High
[401]57
58prop:
[423]59id:feedtrans
[422]60name:Energy transfer
61type:d 0 2 1 ~0.01~0.05~0.1
[401]62
63prop:
[423]64id:energy_nut
[422]65name:Nutrient energy
66type:d 0 2 1 ~0.5~1.5~3
[401]67
68prop:
[422]69id:stress
70name:Stress
71type:d 0 1 1
Note: See TracBrowser for help on using the repository browser.