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

Last change on this file since 444 was 444, checked in by oriona, 8 years ago

Visualization of reticulopodia and nutrients added as an option in theater.

File size: 1.8 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 tiny green cylinders. Foraminifers move towards nearest nutrients and this way they can accumulate enough energy to reproduce.
7
8After "Enhance visualization" option is enabled reticulopodia are shown as disks and positions of nutrients are indicated by cuboids. 
9
10More information at www.framsticks.com/foraminifera
11~
12expdef:foraminifera
13code:~
14
15global Params;
16
17function onLoad()
18{
19        Simulator.init();
20        GLDisplay.desiredsimspeed = 50;
21        GLDisplay.minfps = 10;
22        TrackingCam.cam_h = 15; //more side view
23
24        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], "visualize" : [0,1]};
25}
26
27function setShowParam(param_id)
28{
29        ExpParams.[param_id] = Params[param_id][ShowParams.[param_id]];
30}
31
32function ShowParams_feedrate_set()
33{
34        setShowParam("feedrate");
35}
36
37function ShowParams_feedtrans_set()
38{
39        setShowParam("feedtrans");
40}
41
42function ShowParams_energy_nut_set()
43{
44        setShowParam("energy_nut");
45}
46
47function ShowParams_stress_set()
48{
49        setShowParam("stress");
50}
51
52function ShowParams_visualize_set()
53{
54        setShowParam("visualize");
55}
56
57~
58
59prop:
60id:feedrate
61name:Feeding rate
62type:d 0 2 1 ~Low~Medium~High
63
64prop:
65id:feedtrans
66name:Energy transfer
67type:d 0 2 1 ~0.01~0.05~0.1
68
69prop:
70id:energy_nut
71name:Nutrient energy
72type:d 0 2 1 ~0.5~1.5~3
73
74prop:
75id:stress
76name:Stress
77type:d 0 1 1
78
79prop:
80id:visualize
81name:Enhance visualization
82type:d 0 1 0
Note: See TracBrowser for help on using the repository browser.