[401] | 1 | show:
|
---|
[406] | 2 | name:Reproduction of benthic foraminifera
|
---|
[401] | 3 | info:~
|
---|
[422] | 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 |
|
---|
[407] | 10 | More information at www.framsticks.com/foraminifera
|
---|
[401] | 11 | ~
|
---|
[406] | 12 | expdef:foraminifera
|
---|
[401] | 13 | code:~
|
---|
| 14 |
|
---|
[423] | 15 | global Params;
|
---|
| 16 |
|
---|
[401] | 17 | function onLoad()
|
---|
| 18 | {
|
---|
| 19 | Simulator.init();
|
---|
| 20 | GLDisplay.desiredsimspeed = 50;
|
---|
| 21 | GLDisplay.minfps = 10;
|
---|
[423] | 22 |
|
---|
| 23 | Params = {"nutrientPop" : [5,10,15], "feedrate" : [0.001,0.0025,0.004], "feedtrans" : [0.01,0.05,0.1],"energy_nut" :[0.5,1.5,3.0], "stress" : [0,1]};
|
---|
[401] | 24 | }
|
---|
[423] | 25 |
|
---|
| 26 | function setShowParam(param_id)
|
---|
| 27 | {
|
---|
| 28 | ExpParams.[param_id] = Params[param_id][ShowParams.[param_id]];
|
---|
| 29 | }
|
---|
| 30 |
|
---|
[422] | 31 | function ShowParams_nutrientPop_set()
|
---|
[401] | 32 | {
|
---|
[423] | 33 | setShowParam("nutrientPop");
|
---|
[401] | 34 | }
|
---|
| 35 |
|
---|
[423] | 36 | function ShowParams_feedrate_set()
|
---|
[401] | 37 | {
|
---|
[423] | 38 | setShowParam("feedrate");
|
---|
[401] | 39 | }
|
---|
| 40 |
|
---|
[423] | 41 | function ShowParams_feedtrans_set()
|
---|
[401] | 42 | {
|
---|
[423] | 43 | setShowParam("feedtrans");
|
---|
[401] | 44 | }
|
---|
| 45 |
|
---|
[423] | 46 | function ShowParams_energy_nut_set()
|
---|
[401] | 47 | {
|
---|
[423] | 48 | setShowParam("energy_nut");
|
---|
[401] | 49 | }
|
---|
| 50 |
|
---|
[422] | 51 | function ShowParams_stress_set()
|
---|
| 52 | {
|
---|
[423] | 53 | setShowParam("stress");
|
---|
[422] | 54 | }
|
---|
| 55 |
|
---|
[401] | 56 | ~
|
---|
| 57 |
|
---|
[422] | 58 | prop:
|
---|
| 59 | id:nutrientPop
|
---|
| 60 | name:Nutrients amount
|
---|
| 61 | type:d 0 2 1 ~5~10~15
|
---|
[401] | 62 |
|
---|
| 63 | prop:
|
---|
[423] | 64 | id:feedrate
|
---|
[422] | 65 | name:Feeding rate
|
---|
[423] | 66 | type:d 0 2 1 ~Low~Medium~High
|
---|
[401] | 67 |
|
---|
| 68 | prop:
|
---|
[423] | 69 | id:feedtrans
|
---|
[422] | 70 | name:Energy transfer
|
---|
| 71 | type:d 0 2 1 ~0.01~0.05~0.1
|
---|
[401] | 72 |
|
---|
| 73 | prop:
|
---|
[423] | 74 | id:energy_nut
|
---|
[422] | 75 | name:Nutrient energy
|
---|
| 76 | type:d 0 2 1 ~0.5~1.5~3
|
---|
[401] | 77 |
|
---|
| 78 | prop:
|
---|
[422] | 79 | id:stress
|
---|
| 80 | name:Stress
|
---|
| 81 | type:d 0 1 1
|
---|