Changeset 552 for experiments/frams/foraminifera/data
- Timestamp:
- 07/30/16 15:18:59 (8 years ago)
- Location:
- experiments/frams/foraminifera/data/scripts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
experiments/frams/foraminifera/data/scripts/foraminifera.expdef
r525 r552 27 27 global retColors; 28 28 global curColor; 29 global dir_change_sec;30 29 global max_chamber_volume; 31 30 global movePerStep; … … 91 90 92 91 //time 93 ExpProperties.secPerStep = 480;92 ExpProperties.secPerStep = 300; 94 93 ExpProperties.foramSpeedMmPerMin = 0.05; 95 94 movePerStep = getMovePerStep(); … … 106 105 ExpProperties.repro_time = 720; 107 106 ExpProperties.gametoPeriod = 21600; 108 ExpProperties.divisionCost = 15.6;107 ExpProperties.divisionCost = 20; 109 108 reprocounter = 0; 110 109 … … 115 114 curColor = retColors[0]; 116 115 //morphology 117 dir_change_sec = 30000;116 ExpProperties.dir_change_sec = 30000; 118 117 ExpProperties.zone1_range = micronsToFrams(1000); 119 118 ExpProperties.zone2_range = micronsToFrams(3000); … … 155 154 phase = "low"; 156 155 nutrientSqrCm = 10; 157 ExpProperties.foodperiod = 1 9200;156 ExpProperties.foodperiod = 14400; 158 157 ExpProperties.foodPeriodChange = 0; 159 158 ExpProperties.nutrientradius = micronsToFrams(10); 160 ExpProperties.energy_nut = 100 * energyFromVolume(ExpProperties.nutrientradius,1);159 ExpProperties.energy_nut = 200 * energyFromVolume(ExpProperties.nutrientradius,1); 161 160 ExpProperties.nutrient_pop = Math.pow(framsToMicrons(World.wrldsiz)*0.0001,2)/nutrientSqrCm; 162 161 ExpProperties.ingestion = 0.25; … … 516 515 } 517 516 //random move 518 else if ( Simulator.stepNumber%int(dir_change_sec/ExpProperties.secPerStep) == 0)517 else if (cr.data->lifeparams->dir_counter >= int(ExpProperties.dir_change_sec/ExpProperties.secPerStep)) 519 518 { 520 519 cr.data->lifeparams->dir = randomDir(); 520 cr.data->lifeparams->dir_counter = 0; 521 521 cr.localDrive = cr.data->lifeparams->dir; 522 522 moveEnergyDec(cr); … … 632 632 { 633 633 log(createLogVector(cr, cr.data->lifeparams->max_energy_level),ExpProperties.logPref+"fossil_log.txt"); 634 log(createLogVector(cr, cr.lifespan),ExpProperties.logPref+"lifespan_log.txt"); 634 635 } 635 636 Populations[0].kill(cr); 636 637 return; 637 638 } 639 640 //update direction change counter 641 cr.data->lifeparams->dir_counter += 1; 638 642 639 643 foramMove(cr); … … 882 886 id:maxSteps 883 887 name:Stop after the given number of simulation steps 884 type:d 0 1000000 0888 type:d 0 10000000 0 885 889 886 890 property: … … 900 904 name:Ratio of successful gamets 901 905 type:f 0.001 906 group:Foraminifera 907 908 property: 909 id:dir_change_sec 910 name:Number of seconds before direction change 911 type:d 30000 902 912 group:Foraminifera 903 913 -
experiments/frams/foraminifera/data/scripts/foraminifera.inc
r510 r552 5 5 { 6 6 colors = ["1.0,1.0,0.0","1.0,0.5,0.0"]; 7 retColors = ["1.0,1.0,1.0", "1.0, 0.0,0.0"];7 retColors = ["1.0,1.0,1.0", "1.0,1.0,0.0"]; 8 8 chambers = [ ["p:sh=1, sx=0.2, sy=0.2, sz=0.2, rz=3.14159265358979,", 9 9 "p:0.18421219587326, 0.13, sh=1, sx=0.21, sy=0.21, sz=0.21,", … … 55 55 { 56 56 mode->cr.data->genes = String.deserialize(String.serialize(mode->genes)); 57 mode->cr.data->lifeparams = {"max_energy_level" : mode->energy0, "gen" : 0, "hibernated" : 0, "species" : mode->species, "reproduce" : 0, "dir" : randomDir(), " chamber_growth" : -1, "division_time" : -1};57 mode->cr.data->lifeparams = {"max_energy_level" : mode->energy0, "gen" : 0, "hibernated" : 0, "species" : mode->species, "reproduce" : 0, "dir" : randomDir(), "dir_counter" : Math.random(ExpProperties.dir_change_sec), "chamber_growth" : -1, "division_time" : -1}; 58 58 } 59 59 else if (mode->opt == 1) //child 60 60 { 61 mode->cr.data->lifeparams = {"max_energy_level" : mode->energy0, "gen" : 1 - mode->parent_lifeparams->gen, "hibernated" : 0, "species" : mode->parent_lifeparams->species, "reproduce" : 0, "dir" : randomDir(), " chamber_growth" : -1, "division_time" : -1};61 mode->cr.data->lifeparams = {"max_energy_level" : mode->energy0, "gen" : 1 - mode->parent_lifeparams->gen, "hibernated" : 0, "species" : mode->parent_lifeparams->species, "reproduce" : 0, "dir" : randomDir(), "dir_counter" : Math.random(ExpProperties.dir_change_sec), "chamber_growth" : -1, "division_time" : -1}; 62 62 mode->cr.data->genes = String.deserialize(String.serialize(mode->parent_genes)); 63 63 } … … 113 113 log(createLogVector(parent2, parent2.energy),ExpProperties.logPref+"repro_energies_log.txt"); 114 114 log(createLogVector(parent, number),ExpProperties.logPref+"repro_num_log.txt"); 115 log(createLogVector(parent, parent.lifespan),ExpProperties.logPref+"lifespan_log.txt"); 116 log(createLogVector(parent2, parent2.lifespan),ExpProperties.logPref+"lifespan_log.txt"); 115 117 } 116 118 } … … 134 136 log(createLogVector(parent, parent.energy),ExpProperties.logPref+"repro_energies_log.txt"); 135 137 log(createLogVector(parent, number),ExpProperties.logPref+"repro_num_log.txt"); 138 log(createLogVector(parent, parent.lifespan),ExpProperties.logPref+"lifespan_log.txt"); 136 139 } 137 140
Note: See TracChangeset
for help on using the changeset viewer.