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