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

Last change on this file since 435 was 434, checked in by Maciej Komosinski, 9 years ago

Increased ExpParams?.maxSteps range; safer stopping condition; theater description with no line-breaks

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