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

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

new species added, hibernation added, morphology changed to more realistic, parameters in .show changed, refactoring

File size: 2.1 KB
Line 
1show:
2name:Reproduction of benthic foraminifera
3info:~
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
10More information at www.framsticks.com/foraminifera
11~
12expdef:foraminifera
13code:~
14
15function onLoad()
16{
17        Simulator.init();
18        GLDisplay.desiredsimspeed = 50;
19        GLDisplay.minfps = 10;
20}
21function ShowParams_nutrientPop_set()
22{
23        switch (ShowParams.nutrientPop)
24        {
25        case 0:
26                ExpParams.nutrientPop = 5;
27                break;
28        case 1:
29                ExpParams.nutrientPop = 10;
30                break;
31        case 2:
32                ExpParams.nutrientPop = 15;
33                break;
34        }
35}
36
37function ShowParams_feedRate_set()
38{
39        switch (ShowParams.feedRate)
40        {
41        case 0:
42                ExpParams.feedrate = 0.001;
43                break;
44        case 1:
45                ExpParams.feedrate = 0.0025;
46                break;
47        case 2:
48                ExpParams.feedrate = 0.004;
49                break;
50        }
51}
52
53function ShowParams_feedTrans_set()
54{
55        switch (ShowParams.feedTrans)
56        {
57        case 0:
58                ExpParams.feedtrans = 0.01;
59                break;
60        case 1:
61                ExpParams.feedtrans = 0.05;
62                break;
63        case 2:
64                ExpParams.feedtrans = 0.1;
65                break;
66        }
67}
68
69function ShowParams_nutrientEnerg_set()
70{
71        switch (ShowParams.nutrientEnerg)
72        {
73        case 0:
74                ExpParams.energy_nut = 0.5;
75                break;
76        case 1:
77                ExpParams.energy_nut = 1.5;
78                break;
79        case 2:
80                ExpParams.energy_nut = 3.0;
81                break;
82        }
83}
84
85function ShowParams_stress_set()
86{
87        switch (ShowParams.stress)
88        {
89        case 0:
90                ExpParams.stress = 0;
91                break;
92        case 1:
93                ExpParams.stress = 1;
94                break;
95        }
96}
97
98~
99
100prop:
101id:nutrientPop
102name:Nutrients amount
103type:d 0 2 1 ~5~10~15
104
105prop:
106id:feedRate
107name:Feeding rate
108type:d 0 2 1 ~1~2~3
109
110prop:
111id:feedTrans
112name:Energy transfer
113type:d 0 2 1 ~0.01~0.05~0.1
114
115prop:
116id:nutrientEnerg
117name:Nutrient energy
118type:d 0 2 1 ~0.5~1.5~3
119
120prop:
121id:stress
122name:Stress
123type:d 0 1 1
Note: See TracBrowser for help on using the repository browser.