Changeset 423 for experiments/frams
- Timestamp:
- 08/25/15 15:33:31 (9 years ago)
- Location:
- experiments/frams/foraminifera/data/scripts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
experiments/frams/foraminifera/data/scripts/foraminifera.expdef
r422 r423 557 557 prop: 558 558 id:e_repro_cost_haplo 559 name: cost of reproduction559 name:Cost of reproduction 560 560 type:f 0.1 0.9 0.5 561 561 group:Foraminifera … … 563 563 prop: 564 564 id:e_repro_cost_diplo 565 name: cost of reproduction565 name:Cost of reproduction 566 566 type:f 0.1 0.9 0.3 567 567 group:Foraminifera … … 569 569 prop: 570 570 id:chamber_proculus_haplo 571 name: size of proculus571 name:Size of proculus 572 572 type:f 573 573 group:Foraminifera … … 575 575 prop: 576 576 id:chamber_proculus_diplo 577 name: size of proculus577 name:Size of proculus 578 578 type:f 579 579 group:Foraminifera … … 581 581 prop: 582 582 id:chamber_difference_haplo 583 name: difference in size between subsequent chambers583 name:Difference in size between subsequent chambers 584 584 type:f 585 585 group:Foraminifera … … 587 587 prop: 588 588 id:chamber_difference_diplo 589 name: difference in size between subsequent chambers589 name:Difference in size between subsequent chambers 590 590 type:f 591 591 group:Foraminifera … … 689 689 prop: 690 690 id:e_death_level 691 name: Level of energy ... death692 type:f 0 691 name:Minimal level of energy to sustain life 692 type:f 0 20 0 693 693 group:Foraminifera 694 694 … … 723 723 id:nutrientsize 724 724 name:Nutrients's size 725 type:f 0.1 725 type:f 0.1 0.9 0.1 726 726 group:Energy 727 727 -
experiments/frams/foraminifera/data/scripts/foraminifera.show
r422 r423 13 13 code:~ 14 14 15 global Params; 16 15 17 function onLoad() 16 18 { … … 18 20 GLDisplay.desiredsimspeed = 50; 19 21 GLDisplay.minfps = 10; 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]}; 20 24 } 25 26 function setShowParam(param_id) 27 { 28 ExpParams.[param_id] = Params[param_id][ShowParams.[param_id]]; 29 } 30 21 31 function ShowParams_nutrientPop_set() 22 32 { 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 } 33 setShowParam("nutrientPop"); 35 34 } 36 35 37 function ShowParams_feed Rate_set()36 function ShowParams_feedrate_set() 38 37 { 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 } 38 setShowParam("feedrate"); 51 39 } 52 40 53 function ShowParams_feed Trans_set()41 function ShowParams_feedtrans_set() 54 42 { 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 } 43 setShowParam("feedtrans"); 67 44 } 68 45 69 function ShowParams_ nutrientEnerg_set()46 function ShowParams_energy_nut_set() 70 47 { 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 } 48 setShowParam("energy_nut"); 83 49 } 84 50 85 51 function ShowParams_stress_set() 86 52 { 87 switch (ShowParams.stress) 88 { 89 case 0: 90 ExpParams.stress = 0; 91 break; 92 case 1: 93 ExpParams.stress = 1; 94 break; 95 } 53 setShowParam("stress"); 96 54 } 97 55 … … 104 62 105 63 prop: 106 id:feed Rate64 id:feedrate 107 65 name:Feeding rate 108 type:d 0 2 1 ~ 1~2~366 type:d 0 2 1 ~Low~Medium~High 109 67 110 68 prop: 111 id:feed Trans69 id:feedtrans 112 70 name:Energy transfer 113 71 type:d 0 2 1 ~0.01~0.05~0.1 114 72 115 73 prop: 116 id: nutrientEnerg74 id:energy_nut 117 75 name:Nutrient energy 118 76 type:d 0 2 1 ~0.5~1.5~3
Note: See TracChangeset
for help on using the changeset viewer.