Changeset 481 for experiments
- Timestamp:
- 03/26/16 00:26:52 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
experiments/frams/foraminifera/data/scripts/foraminifera.expdef
r479 r481 31 31 global o; 32 32 global reprocounter; 33 global changePeriod; 34 global phase; 33 35 34 36 @include "foraminifera.inc" … … 91 93 92 94 //reproduction 93 ExpParams.foramPop = 4;95 ExpParams.foramPop = 20; 94 96 ExpParams.crossprob = 0; 95 97 ExpParams.mutationprob = 0; … … 110 112 ExpParams.chamber_difference_haplo = 0.0; 111 113 ExpParams.chamber_proculus_diplo = micronsToFrams(20); 112 ExpParams.chamber_difference_diplo = 0.2;114 ExpParams.chamber_difference_diplo = micronsToFrams(8); 113 115 114 116 max_chamber_volume = [Vector.new(), Vector.new()]; … … 129 131 ExpParams.energy_move = 0.0000005; 130 132 131 ExpParams.energies0_haplo = energyFromVolume( ExpParams.chamber_proculus_haplo,1);133 ExpParams.energies0_haplo = energyFromVolume(micronsToFrams(20),1); 132 134 ExpParams.energies0_diplo = energyFromVolume(micronsToFrams(1.25),1); 133 135 ExpParams.feedtrans = 0.001; … … 139 141 140 142 //nutrients 141 ExpParams.foodperiod = 480; 143 changePeriod = 0; 144 phase = "high"; 145 ExpParams.foodperiod = 21600; 146 ExpParams.foodPeriodChange = 0; 142 147 ExpParams.nutrientradius = micronsToFrams(10); 143 148 ExpParams.energy_nut = energyFromVolume(ExpParams.nutrientradius,1); … … 226 231 { 227 232 addInitialForam(0, i); 228 addInitialForam(1, i);233 //addInitialForam(1, i); 229 234 } 230 235 o = Populations[0][0].getMechPart(0).orient.clone(); … … 652 657 function nutrientGrowth() 653 658 { 659 if (ExpParams.foodPeriodChange > 0) 660 { 661 changePeriod += 1; 662 if (phase=="low" && (changePeriod*ExpParams.secPerStep) >= 23328000) //9 months 663 { 664 ExpParams.foodperiod = ExpParams.foodperiod/ExpParams.foodPeriodChange; 665 phase = "high"; 666 changePeriod = 0; 667 } 668 669 else if (phase == "high" && (changePeriod*ExpParams.secPerStep) >= 7776000) //3 months 670 { 671 ExpParams.foodperiod = ExpParams.foodperiod*ExpParams.foodPeriodChange; 672 phase = "low"; 673 changePeriod = 0; 674 } 675 } 654 676 nutrientenergywaiting = nutrientenergywaiting + 1; 655 677 if (nutrientenergywaiting*ExpParams.secPerStep >= ExpParams.foodperiod) 656 678 { 657 for (var i = 0; i < ExpParams.feedrate *(ExpParams.secPerStep/ExpParams.foodperiod); i++)679 for (var i = 0; i < ExpParams.feedrate; i++) 658 680 { 659 681 addNutrient(); … … 976 998 977 999 prop: 1000 id:foodPeriodChange 1001 name:Set variable feed rate 1002 type:f 0 1003 group:Energy 1004 1005 prop: 978 1006 id:ingestion 979 1007 name:Ingestion rate … … 996 1024 id:foodperiod 997 1025 name:Time between food occurrences 998 type:f 0 100000 1026 type:f 0 1000000 999 1027 group:Energy 1000 1028
Note: See TracChangeset
for help on using the changeset viewer.