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

Last change on this file since 442 was 442, checked in by Maciej Komosinski, 8 years ago

Set lower initial camera height

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 shown as tall vertical bars. 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        TrackingCam.cam_h = 15; //more side view
21
22        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]};
23}
24
25function setShowParam(param_id)
26{
27        ExpParams.[param_id] = Params[param_id][ShowParams.[param_id]];
28}
29
30function ShowParams_feedrate_set()
31{
32        setShowParam("feedrate");
33}
34
35function ShowParams_feedtrans_set()
36{
37        setShowParam("feedtrans");
38}
39
40function ShowParams_energy_nut_set()
41{
42        setShowParam("energy_nut");
43}
44
45function ShowParams_stress_set()
46{
47        setShowParam("stress");
48}
49
50~
51
52prop:
53id:feedrate
54name:Feeding rate
55type:d 0 2 1 ~Low~Medium~High
56
57prop:
58id:feedtrans
59name:Energy transfer
60type:d 0 2 1 ~0.01~0.05~0.1
61
62prop:
63id:energy_nut
64name:Nutrient energy
65type:d 0 2 1 ~0.5~1.5~3
66
67prop:
68id:stress
69name:Stress
70type:d 0 1 1
Note: See TracBrowser for help on using the repository browser.