[380] | 1 | expdef:
|
---|
[406] | 2 | name:Reproduction of benthic foraminifera
|
---|
[380] | 3 | info:~
|
---|
[434] | 4 | Basic information about this simulation:
|
---|
| 5 | www.framsticks.com/foraminifera
|
---|
| 6 |
|
---|
| 7 | Technical information:
|
---|
[476] | 8 | Genes and parameter values which control reproduction are stored in data->genes and data->lifeparams fields.
|
---|
[380] | 9 |
|
---|
[476] | 10 | genes:
|
---|
[402] | 11 | genes which are not encoded in Ff genotype:
|
---|
[422] | 12 | min_repro_energy - Minimum energy necessary for reproduction
|
---|
| 13 | hibernation - Defines foram behavior in the case of no nutrients
|
---|
[380] | 14 |
|
---|
[476] | 15 | lifeparams:
|
---|
[380] | 16 | Physiological parameters of foraminifera:
|
---|
[422] | 17 | max_energy_level - maximum energy level reached so far
|
---|
[380] | 18 | gen - generation: 0 haploid, 1 diploid
|
---|
[432] | 19 | species - species: 0 not hibernating 1 hibernating
|
---|
| 20 | hibernated - 0/1 foram is/isn't hibernated
|
---|
[422] | 21 | reproduce - 0/1 foram isn't/is ready for reproduction
|
---|
[380] | 22 | ~
|
---|
| 23 | code:~
|
---|
| 24 |
|
---|
[479] | 25 | global chambers;
|
---|
[422] | 26 | global colors;
|
---|
[430] | 27 | global dir_change;
|
---|
[479] | 28 | global max_chamber_volume;
|
---|
[474] | 29 | global movePerStep;
|
---|
[479] | 30 | global nutrientenergywaiting;
|
---|
| 31 | global o;
|
---|
| 32 | global reprocounter;
|
---|
[380] | 33 |
|
---|
[406] | 34 | @include "foraminifera.inc"
|
---|
[401] | 35 |
|
---|
[380] | 36 | // -------------------------------- experiment begin --------------------------------
|
---|
| 37 |
|
---|
| 38 | function onExpDefLoad()
|
---|
| 39 | {
|
---|
| 40 | // define genotype and creature groups
|
---|
| 41 | GenePools.clear();
|
---|
| 42 | Populations.clear();
|
---|
| 43 | GenePools[0].name = "Unused";
|
---|
| 44 |
|
---|
| 45 | var pop = Populations[0];
|
---|
[421] | 46 | pop.name = "Forams";
|
---|
[380] | 47 | pop.en_assim = 0;
|
---|
[404] | 48 | pop.nnsim = 0;
|
---|
[380] | 49 | pop.enableperf = 1;
|
---|
| 50 | pop.death = 1;
|
---|
| 51 | pop.energy = 1;
|
---|
| 52 | pop.selfmask = 0x10001;
|
---|
[401] | 53 | pop.othermask = 0x20001;
|
---|
| 54 | //pop.selfmask = 0x20002; pop.othermask = 0x10002;
|
---|
[422] | 55 | pop.perfperiod = 25;
|
---|
[380] | 56 |
|
---|
[421] | 57 | pop = Populations.addGroup("Nutrients");
|
---|
[380] | 58 | pop.nnsim = 0;
|
---|
| 59 | pop.enableperf = 0;
|
---|
| 60 | pop.death = 1;
|
---|
| 61 | pop.energy = 1;
|
---|
| 62 | pop.selfmask = 0x20002;
|
---|
[401] | 63 | pop.othermask = 0x10000;
|
---|
[422] | 64 | //pop.othermask = 0x10002;
|
---|
[380] | 65 |
|
---|
[444] | 66 | pop = Populations.addGroup("ReticulopodiaNutrients");
|
---|
[430] | 67 | pop.nnsim = 0;
|
---|
| 68 | pop.enableperf = 0;
|
---|
| 69 | pop.death = 0;
|
---|
| 70 | pop.energy = 0;
|
---|
| 71 | pop.selfmask = 0x20002;
|
---|
| 72 | pop.othermask = 0x10000;
|
---|
[444] | 73 |
|
---|
[422] | 74 | //world
|
---|
| 75 | SignalView.mode = 1;
|
---|
[430] | 76 | World.wrldwat = 200;
|
---|
[447] | 77 | World.wrldsiz = micronsToFrams(40000);
|
---|
[422] | 78 | World.wrldbnd = 1;
|
---|
| 79 | ExpParams.stress = 1;
|
---|
[421] | 80 | ExpParams.creath = -0.99; //just above the bottom
|
---|
[380] | 81 | ExpParams.autorestart = 0;
|
---|
[422] | 82 |
|
---|
[474] | 83 | //time
|
---|
[479] | 84 | ExpParams.secPerStep = 480;
|
---|
[475] | 85 | ExpParams.foramSpeedMmPerMin = 0.05;
|
---|
[474] | 86 | movePerStep = getMovePerStep();
|
---|
| 87 |
|
---|
[444] | 88 | //ExpParams.visualize = 1; //uncomment to visualize reticulopodia and indicate nutrients positions
|
---|
| 89 |
|
---|
[411] | 90 | //ExpParams.logging = 1; //uncomment to enable logging simulation parameters to log files
|
---|
[401] | 91 |
|
---|
[422] | 92 | //reproduction
|
---|
[479] | 93 | ExpParams.foramPop = 4;
|
---|
[474] | 94 | ExpParams.crossprob = 0;
|
---|
| 95 | ExpParams.mutationprob = 0;
|
---|
[479] | 96 | ExpParams.repro_time = 720;
|
---|
| 97 | ExpParams.gametoPeriod = 43200;
|
---|
| 98 | ExpParams.divisionCost = 15.6;
|
---|
[422] | 99 | reprocounter = 0;
|
---|
[380] | 100 |
|
---|
[479] | 101 | init_chambers();
|
---|
| 102 |
|
---|
[422] | 103 | //morphology
|
---|
[474] | 104 | dir_change = 30000;
|
---|
[475] | 105 | ExpParams.zone1_range = micronsToFrams(1000);
|
---|
| 106 | ExpParams.zone2_range = micronsToFrams(3000);
|
---|
[479] | 107 | ExpParams.chamber_growth_time = 720;
|
---|
| 108 | ExpParams.chamberCostPerSec = 0.000001;
|
---|
[447] | 109 | ExpParams.chamber_proculus_haplo = micronsToFrams(50);
|
---|
[422] | 110 | ExpParams.chamber_difference_haplo = 0.0;
|
---|
[447] | 111 | ExpParams.chamber_proculus_diplo = micronsToFrams(20);
|
---|
[422] | 112 | ExpParams.chamber_difference_diplo = 0.2;
|
---|
[479] | 113 |
|
---|
| 114 | max_chamber_volume = [Vector.new(), Vector.new()];
|
---|
[422] | 115 | for (var j = 0; j < 2; j++)
|
---|
| 116 | {
|
---|
| 117 | for (var i = 0; i < chambers[0].size; i++)
|
---|
| 118 | {
|
---|
[479] | 119 | max_chamber_volume[j].add(((volumeInMicrons(getProperty(j, "chamber_proculus")) + volumeInMicrons(getProperty(j, "chamber_proculus") + (i) * getProperty(j, "chamber_difference")))*(i+1))/2);
|
---|
[422] | 120 | }
|
---|
| 121 | }
|
---|
| 122 |
|
---|
| 123 | //energetics
|
---|
[430] | 124 | ExpParams.min_repro_energ_haplo = 4;
|
---|
| 125 | ExpParams.min_repro_energ_diplo = 6;
|
---|
| 126 |
|
---|
[479] | 127 | ExpParams.e_meta = 0.0000005;
|
---|
| 128 | ExpParams.energy_hib = 0.0000001;
|
---|
| 129 | ExpParams.energy_move = 0.0000005;
|
---|
[430] | 130 |
|
---|
[479] | 131 | ExpParams.energies0_haplo = energyFromVolume(ExpParams.chamber_proculus_haplo,1);
|
---|
| 132 | ExpParams.energies0_diplo = energyFromVolume(micronsToFrams(1.25),1);
|
---|
| 133 | ExpParams.feedtrans = 0.001;
|
---|
| 134 | ExpParams.e_repro_cost_haplo = 0.3;
|
---|
| 135 | ExpParams.e_repro_cost_diplo = 0.2;
|
---|
[422] | 136 |
|
---|
[479] | 137 | ExpParams.e_death_level_haplo = 0.5;
|
---|
| 138 | ExpParams.e_death_level_diplo = 0.5;
|
---|
| 139 |
|
---|
[422] | 140 | //nutrients
|
---|
[479] | 141 | ExpParams.foodperiod = 480;
|
---|
| 142 | ExpParams.nutrientradius = micronsToFrams(10);
|
---|
| 143 | ExpParams.energy_nut = energyFromVolume(ExpParams.nutrientradius,1);
|
---|
| 144 | ExpParams.feedrate = 1;
|
---|
| 145 | ExpParams.ingestion = 0.25;
|
---|
[474] | 146 | nutrientenergywaiting = 0;
|
---|
[380] | 147 | ExpState.totaltestedcr = 0;
|
---|
[421] | 148 | ExpState.nutrient = "";
|
---|
[380] | 149 | }
|
---|
| 150 |
|
---|
| 151 | @include "standard_placement.inc"
|
---|
| 152 |
|
---|
[479] | 153 | function volumeInMicrons(radiusInFrams)
|
---|
[475] | 154 | {
|
---|
[479] | 155 | return 4.0/3.0*Math.pi*Math.pow(framsToMicrons(radiusInFrams),3);
|
---|
[475] | 156 | }
|
---|
| 157 |
|
---|
[479] | 158 | function energyFromVolume(base, isRadiusInFrams)
|
---|
| 159 | {
|
---|
| 160 | if (isRadiusInFrams == 1) //radius in frams
|
---|
| 161 | {
|
---|
| 162 | return ExpParams.picoCarbonPerMikro*volumeInMicrons(base);
|
---|
| 163 | }
|
---|
| 164 | else //volume in microns
|
---|
| 165 | {
|
---|
| 166 | return ExpParams.picoCarbonPerMikro * base;
|
---|
| 167 | }
|
---|
| 168 | }
|
---|
| 169 |
|
---|
[474] | 170 | function getMovePerStep()
|
---|
| 171 | {
|
---|
| 172 | return micronsToFrams((ExpParams.foramSpeedMmPerMin/60)*1000)*ExpParams.secPerStep;
|
---|
| 173 | }
|
---|
| 174 |
|
---|
[447] | 175 | function micronsToFrams(micrometers)
|
---|
[422] | 176 | {
|
---|
[445] | 177 | return micrometers*0.025;
|
---|
[422] | 178 | }
|
---|
| 179 |
|
---|
[447] | 180 | function framsToMicrons(framsworldunits)
|
---|
[445] | 181 | {
|
---|
| 182 | return framsworldunits/0.025;
|
---|
| 183 | }
|
---|
| 184 |
|
---|
[422] | 185 | function getProperty(gen, prop_id)
|
---|
| 186 | {
|
---|
| 187 | var ploid = "haplo";
|
---|
| 188 | if (gen == 1) ploid = "diplo";
|
---|
| 189 | return ExpParams.[prop_id + "_" + ploid];
|
---|
| 190 | }
|
---|
| 191 |
|
---|
[479] | 192 | function addForam(species, iter, chambernum, ploid)
|
---|
[422] | 193 | {
|
---|
[479] | 194 | var geno = createForamGenotype(ploid, species, chambernum);
|
---|
[422] | 195 | var cr = Populations[0].add(geno);
|
---|
[479] | 196 | cr.name = "Initial creature" + species + "_" + iter;
|
---|
[422] | 197 | placeCreatureRandomly(cr, 0, 0);
|
---|
[479] | 198 | cr.energy0 = energyFromVolume(max_chamber_volume[ploid][chambernum],0);
|
---|
[422] | 199 | cr.energy = cr.energy0;
|
---|
| 200 | setGenotype({"opt" : 0, "cr" : cr, "species" : species});
|
---|
[479] | 201 | if (ploid == 1)
|
---|
| 202 | {
|
---|
| 203 | cr.data->lifeparams->gen = 1;
|
---|
| 204 | cr.data->genes = [cr.data->genes, cr.data->genes]; //TODO two different genes sets
|
---|
| 205 | }
|
---|
[422] | 206 | }
|
---|
| 207 |
|
---|
[479] | 208 | function addInitialForam(species, iter)
|
---|
| 209 | {
|
---|
| 210 | var ploid = 0;
|
---|
| 211 | if (Math.rnd01 > 0.5)
|
---|
| 212 | {
|
---|
| 213 | ploid = 1;
|
---|
| 214 | }
|
---|
| 215 | //add new foram with random energy bewtween starting energy and reproduction treshold
|
---|
| 216 | addForam(species, iter, Math.rndUni(0,getProperty(ploid, "min_repro_energ")),ploid);
|
---|
| 217 | }
|
---|
| 218 |
|
---|
[380] | 219 | function onExpInit()
|
---|
| 220 | {
|
---|
| 221 | Populations[0].clear();
|
---|
| 222 | Populations[1].clear();
|
---|
[444] | 223 | Populations[2].clear(); //reticulopodia and nutrients
|
---|
[380] | 224 |
|
---|
[422] | 225 | for (var i = 0; i < ExpParams.foramPop; i++)
|
---|
[380] | 226 | {
|
---|
[422] | 227 | addInitialForam(0, i);
|
---|
| 228 | addInitialForam(1, i);
|
---|
[380] | 229 | }
|
---|
[422] | 230 | o = Populations[0][0].getMechPart(0).orient.clone();
|
---|
[380] | 231 | ExpState.totaltestedcr = 0;
|
---|
[422] | 232 | nutrientenergywaiting = ExpParams.energy_nut;
|
---|
[380] | 233 | }
|
---|
| 234 |
|
---|
| 235 | function onExpLoad()
|
---|
| 236 | {
|
---|
| 237 | for (var pop in Populations)
|
---|
| 238 | pop.clear();
|
---|
| 239 |
|
---|
| 240 | Loader.addClass(sim_params.*);
|
---|
| 241 | Loader.setBreakLabel(Loader.BeforeUnknown, "onExpLoad_Unknown");
|
---|
| 242 | Loader.run();
|
---|
| 243 |
|
---|
[421] | 244 | Simulator.print("Loaded " + Populations[0].size + " Forams and " + Populations[1].size + " nutrient objects");
|
---|
[380] | 245 | }
|
---|
| 246 |
|
---|
| 247 | function onExpLoad_Unknown()
|
---|
| 248 | {
|
---|
| 249 | if (Loader.objectName == "org") // saved by the old expdef
|
---|
| 250 | {
|
---|
| 251 | var g = Genotype.newFromString("");
|
---|
| 252 | Loader.currentObject = g;
|
---|
| 253 | Interface.makeFrom(g).setAllDefault();
|
---|
| 254 | Loader.loadObject();
|
---|
| 255 | var cr = Populations[0].add(g);
|
---|
| 256 | if (cr != null)
|
---|
| 257 | {
|
---|
[401] | 258 | //cr.rotate(0,0,Math.rnd01*Math.twopi);
|
---|
[476] | 259 | if ((typeof(g.data->genes) == "Vector") && (g.data->genes.size >= 3))
|
---|
[401] | 260 | {
|
---|
| 261 | // [x,y,energy]
|
---|
[476] | 262 | cr.move(g.data->genes[0] - cr.center_x, g.data->genes[1] - cr.center_y, 0);
|
---|
| 263 | cr.energy = g.data->genes[2];
|
---|
[380] | 264 | }
|
---|
| 265 | else
|
---|
| 266 | {
|
---|
[401] | 267 | cr.move(Math.rnd01 * World.wrldsiz - cr.center_x, Math.rnd01 * World.wrldsiz - cr.center_y, 0);
|
---|
[380] | 268 | }
|
---|
| 269 | }
|
---|
| 270 | }
|
---|
| 271 | else if (Loader.objectName == "Creature")
|
---|
| 272 | {
|
---|
| 273 | Loader.currentObject = CreatureSnapshot.new();
|
---|
| 274 | Loader.loadObject();
|
---|
| 275 | Populations[0].add(Loader.currentObject);
|
---|
| 276 | }
|
---|
| 277 | }
|
---|
| 278 |
|
---|
| 279 | function onExpSave()
|
---|
| 280 | {
|
---|
| 281 | File.writeComment("saved by '%s.expdef'" % Simulator.expdef);
|
---|
| 282 |
|
---|
[401] | 283 | var tmpvec = [], i;
|
---|
[380] | 284 |
|
---|
[401] | 285 | for(var cr in Populations[1])
|
---|
[380] | 286 | tmpvec.add([cr.center_x, cr.center_y, cr.energy]);
|
---|
| 287 |
|
---|
[421] | 288 | ExpState.nutrient = tmpvec;
|
---|
[380] | 289 | File.writeObject(sim_params.*);
|
---|
[432] | 290 | ExpState.nutrient = null; //vectors are only created for saving and then discarded
|
---|
[380] | 291 |
|
---|
| 292 | for (var cr in Populations[0])
|
---|
| 293 | File.writeObject(cr);
|
---|
| 294 | }
|
---|
| 295 |
|
---|
| 296 | // -------------------------------- experiment end --------------------------------
|
---|
| 297 |
|
---|
[421] | 298 | // -------------------------------- foram begin -----------------------------------
|
---|
[380] | 299 |
|
---|
[479] | 300 | function setForamMeta(cr)
|
---|
[430] | 301 | {
|
---|
[479] | 302 | //percent of current energy
|
---|
[475] | 303 | cr.idleen = (ExpParams.e_meta * cr.energy)*ExpParams.secPerStep;
|
---|
[430] | 304 | }
|
---|
| 305 |
|
---|
| 306 | function lastChamberNum(cr)
|
---|
| 307 | {
|
---|
| 308 | return cr.numparts-1;
|
---|
| 309 | }
|
---|
| 310 |
|
---|
[479] | 311 | function getZoneRange(cr, zone_num)
|
---|
| 312 | {
|
---|
| 313 | return ExpParams.["zone"+zone_num+"_range"];
|
---|
| 314 | }
|
---|
| 315 |
|
---|
[421] | 316 | function onForamsBorn(cr)
|
---|
| 317 | {
|
---|
[479] | 318 | setForamMeta(cr);
|
---|
[444] | 319 | if (ExpParams.visualize == 1)
|
---|
[430] | 320 | {
|
---|
[479] | 321 | var ret = Populations[2].add("//0\np:sh=3,sx=0.01,sy="+getZoneRange(cr,1)+",sz="+getZoneRange(cr,1)+",ry=1.57,vr=1.0,1.0,1.0");
|
---|
[476] | 322 | cr.data->reticulopodiacreature = ret;
|
---|
[430] | 323 | }
|
---|
[380] | 324 | }
|
---|
| 325 |
|
---|
[401] | 326 | function placeRandomlyNotColliding(cr)
|
---|
| 327 | {
|
---|
| 328 | var retry = 100; //try 100 times
|
---|
| 329 | while (retry--)
|
---|
| 330 | {
|
---|
| 331 | placeCreatureRandomly(cr, 0, 0);
|
---|
| 332 | if (!cr.boundingBoxCollisions(0))
|
---|
| 333 | return cr;
|
---|
| 334 | }
|
---|
| 335 |
|
---|
| 336 | Populations[0].delete(cr);
|
---|
| 337 | }
|
---|
| 338 |
|
---|
[444] | 339 | function visualization(cr)
|
---|
| 340 | {
|
---|
| 341 | var has_ret = 0;
|
---|
| 342 |
|
---|
[476] | 343 | if (cr.data->reticulopodiacreature != null)
|
---|
[444] | 344 | {
|
---|
[476] | 345 | if (Populations[2].findUID(cr.data->reticulopodiacreature.uid) != null)
|
---|
[444] | 346 | {
|
---|
| 347 | has_ret = 1;
|
---|
| 348 | }
|
---|
| 349 | }
|
---|
| 350 |
|
---|
| 351 | return has_ret;
|
---|
| 352 | }
|
---|
| 353 |
|
---|
[422] | 354 | function foramGrow(cr, chamber_num)
|
---|
[380] | 355 | {
|
---|
[476] | 356 | if ((chamber_num+1) < chambers[cr.data->lifeparams->species].size)
|
---|
[474] | 357 | {
|
---|
[476] | 358 | var geno = createForamGenotype(cr.data->lifeparams->gen, cr.data->lifeparams->species, chamber_num+1);
|
---|
[474] | 359 | var cr2 = Populations[0].add(geno);
|
---|
[422] | 360 |
|
---|
[474] | 361 | cr2.energy0 = cr.energy;
|
---|
| 362 | cr2.energy = cr2.energy0;
|
---|
[422] | 363 |
|
---|
[476] | 364 | setGenotype({"cr" : cr2, "parent_genes" : cr.data->genes, "parent_lifeparams" : cr.data->lifeparams, "opt" : 2});
|
---|
[474] | 365 | cr2.moveAbs(cr.center_x - cr2.size_x / 2, cr.center_y - cr2.size_y / 2, cr.pos_z);
|
---|
[479] | 366 | setForamMeta(cr2);
|
---|
[422] | 367 |
|
---|
[474] | 368 | if (visualization(cr))
|
---|
| 369 | {
|
---|
[476] | 370 | Populations[2].delete(cr.data->reticulopodiacreature);
|
---|
[474] | 371 | }
|
---|
| 372 | Populations[0].delete(cr);
|
---|
[430] | 373 | }
|
---|
[380] | 374 | }
|
---|
| 375 |
|
---|
[435] | 376 | function stepToNearest(cr)
|
---|
[380] | 377 | {
|
---|
| 378 | var p = cr.getMechPart(0);
|
---|
[479] | 379 | var n = cr.signals.receiveSet("nutrient", getZoneRange(cr,2));
|
---|
[380] | 380 |
|
---|
[401] | 381 | //if signals are received find the source of the nearest
|
---|
[380] | 382 | if (n.size > 0)
|
---|
| 383 | {
|
---|
| 384 | var i;
|
---|
| 385 | var mp;
|
---|
| 386 | var distvec = XYZ.new(0, 0, 0);
|
---|
| 387 | var dist;
|
---|
[470] | 388 | var mindist = 100000000000.0;
|
---|
[380] | 389 | var mindistvec = null;
|
---|
[430] | 390 | var eating = 0;
|
---|
[380] | 391 |
|
---|
[401] | 392 | for (i = 0; i < n.size; i++)
|
---|
[380] | 393 | {
|
---|
[430] | 394 | mp = n[i].value.getMechPart(0);
|
---|
[401] | 395 | distvec.set(mp.pos);
|
---|
| 396 | distvec.sub(p.pos);
|
---|
| 397 | dist = distvec.length;
|
---|
[479] | 398 | if (dist < getZoneRange(cr,1))
|
---|
[380] | 399 | {
|
---|
[430] | 400 | if (n[i].value != null)
|
---|
| 401 | {
|
---|
| 402 | energyTransfer(cr, n[i].value);
|
---|
| 403 | eating = 1;
|
---|
| 404 | }
|
---|
| 405 | }
|
---|
[476] | 406 | else if (eating == 0 && cr.data->lifeparams->hibernated == 0 && dist < mindist)
|
---|
[430] | 407 | {
|
---|
[401] | 408 | mindist = dist;
|
---|
| 409 | mindistvec = distvec.clone();
|
---|
[380] | 410 | }
|
---|
| 411 | }
|
---|
| 412 |
|
---|
[476] | 413 | if (!eating && cr.data->lifeparams->hibernated == 0)
|
---|
[430] | 414 | {
|
---|
| 415 | mindistvec.normalize();
|
---|
[474] | 416 | mindistvec.scale(-1*movePerStep);
|
---|
[430] | 417 | cr.localDrive = mindistvec;
|
---|
| 418 | moveEnergyDec(cr);
|
---|
| 419 | }
|
---|
| 420 |
|
---|
[422] | 421 | return 1;
|
---|
[380] | 422 | }
|
---|
[422] | 423 |
|
---|
| 424 | else
|
---|
[474] | 425 | {
|
---|
[422] | 426 | return 0;
|
---|
[474] | 427 | }
|
---|
[422] | 428 | }
|
---|
[401] | 429 |
|
---|
[422] | 430 | function moveEnergyDec(cr)
|
---|
| 431 | {
|
---|
[476] | 432 | if (cr.data->lifeparams->hibernated == 0)
|
---|
[422] | 433 | {
|
---|
[479] | 434 | //percent of maximal energy
|
---|
| 435 | cr.energy_m += (ExpParams.energy_move * cr.data->lifeparams->max_energy_level)*ExpParams.secPerStep;
|
---|
[422] | 436 | }
|
---|
[421] | 437 | }
|
---|
[380] | 438 |
|
---|
[422] | 439 | function foramMove(cr)
|
---|
[421] | 440 | {
|
---|
[422] | 441 | //TODO moving inside sediment?
|
---|
[421] | 442 |
|
---|
[422] | 443 | //adjustment in z axis
|
---|
[430] | 444 | cr.moveAbs(cr.pos_x, cr.pos_y, 0);
|
---|
[421] | 445 |
|
---|
[430] | 446 | //are there any nutrients in zone 1 or 2?
|
---|
[401] | 447 | {
|
---|
[435] | 448 | var moved = stepToNearest(cr); //TODO weighted sum of distance and energy
|
---|
[422] | 449 | if (moved==1)
|
---|
[430] | 450 | {
|
---|
[422] | 451 | return;
|
---|
| 452 | }
|
---|
[401] | 453 | }
|
---|
| 454 |
|
---|
[422] | 455 | //no nutrients in zone 2
|
---|
| 456 | var hibernation = 0;
|
---|
[476] | 457 | if (cr.data->lifeparams->gen == 0) hibernation = cr.data->genes->hibernation;
|
---|
| 458 | else hibernation = cr.data->genes[0]->hibernation;
|
---|
[422] | 459 | //hibernation
|
---|
| 460 | if (hibernation == 1)
|
---|
[401] | 461 | {
|
---|
[430] | 462 | reverseHib(cr);
|
---|
[422] | 463 | cr.localDrive = XYZ.new(0,0,0);
|
---|
[380] | 464 | }
|
---|
[422] | 465 | //random move
|
---|
[479] | 466 | else if (cr.lifespan%int(dir_change/ExpParams.secPerStep) == 0)
|
---|
[380] | 467 | {
|
---|
[476] | 468 | cr.data->lifeparams->dir = randomDir();
|
---|
| 469 | cr.localDrive = cr.data->lifeparams->dir;
|
---|
[422] | 470 | moveEnergyDec(cr);
|
---|
| 471 | }
|
---|
[474] | 472 | else
|
---|
| 473 | {
|
---|
[476] | 474 | cr.localDrive = cr.data->lifeparams->dir;
|
---|
[474] | 475 | }
|
---|
[422] | 476 | }
|
---|
[401] | 477 |
|
---|
[474] | 478 | function randomDir()
|
---|
| 479 | {
|
---|
| 480 | var dir = (Math.rndUni(-ExpParams.zone2_range, ExpParams.zone2_range), Math.rndUni(-ExpParams.zone2_range, ExpParams.zone2_range), 0);
|
---|
| 481 | dir.normalize();
|
---|
| 482 | dir.scale(-1*movePerStep);
|
---|
| 483 | return dir;
|
---|
| 484 | }
|
---|
| 485 |
|
---|
[430] | 486 | function energyTransfer(cr1, cr2)
|
---|
[422] | 487 | {
|
---|
[430] | 488 | cr1.localDrive = XYZ.new(0,0,0);
|
---|
[479] | 489 | var e = ExpParams.feedtrans*cr1.energy;//ExpParams.feedtrans*cr1.energy*ExpParams.ingestion*ExpParams.secPerStep; //TODO efficiency dependent on age
|
---|
| 490 | e = Math.min(cr2.energy, e);
|
---|
| 491 | e *= ExpParams.secPerStep;
|
---|
| 492 | //Simulator.print("transferring "+e +"("+e*ExpParams.ingestion+")"+" to "+cr1.name +" ("+ cr1.energy+") " +" from "+cr2.name+" ("+cr2.energy+") "+ e/ExpParams.secPerStep+ " per sec");
|
---|
| 493 | cr2.energy_m = cr2.energy_m + e + 0.0000001;
|
---|
| 494 | cr1.energy_p = cr1.energy_p + e*ExpParams.ingestion;
|
---|
[476] | 495 | if (cr1.data->lifeparams->hibernated == 1)
|
---|
[422] | 496 | {
|
---|
[430] | 497 | reverseHib(cr1);
|
---|
[422] | 498 | }
|
---|
| 499 | }
|
---|
[401] | 500 |
|
---|
[430] | 501 | function reverseHib(cr)
|
---|
| 502 | {
|
---|
[476] | 503 | if (cr.data->lifeparams->hibernated == 1)
|
---|
[430] | 504 | {
|
---|
[479] | 505 | setForamMeta(cr); //unhibernate
|
---|
[430] | 506 | }
|
---|
| 507 | else
|
---|
| 508 | {
|
---|
[475] | 509 | cr.idleen = (ExpParams.energy_hib * cr.energy)*ExpParams.secPerStep; //hibernate
|
---|
[430] | 510 | }
|
---|
[476] | 511 | cr.data->lifeparams->hibernated = 1 - cr.data->lifeparams->hibernated;
|
---|
[430] | 512 | }
|
---|
| 513 |
|
---|
[479] | 514 |
|
---|
[422] | 515 | function onForamsStep(cr)
|
---|
| 516 | {
|
---|
[479] | 517 | //checking for gametogenesis process
|
---|
| 518 | if (cr.data->lifeparams->division_time > 0)
|
---|
[444] | 519 | {
|
---|
[479] | 520 | cr.data->lifeparams->division_time = Math.max(cr.data->lifeparams->division_time-1,0);
|
---|
[444] | 521 | }
|
---|
[479] | 522 | //checking for end of gametogenesis
|
---|
| 523 | else if (cr.data->lifeparams->division_time == 0)
|
---|
[422] | 524 | {
|
---|
[479] | 525 | //waiting for gamets fusion
|
---|
[422] | 526 | }
|
---|
[479] | 527 | //checking for chamber growth process
|
---|
| 528 | else if (cr.data->lifeparams->chamber_growth > 0)
|
---|
| 529 | {
|
---|
| 530 | cr.data->lifeparams->chamber_growth = Math.max(cr.data->lifeparams->chamber_growth-1,0);
|
---|
| 531 | //Simulator.print("chamber growing, time left = " + cr.data->lifeparams->chamber_growth*ExpParams.secPerStep);
|
---|
| 532 | cr.energy_m += ExpParams.chamberCostPerSec * cr.energy * ExpParams.secPerStep;
|
---|
[422] | 533 |
|
---|
[479] | 534 | //Simulator.print("energy " + cr2.energy + " subtracting " + growth_cost);
|
---|
| 535 | }
|
---|
| 536 | //checking for end of chamber growth process
|
---|
| 537 | else if (cr.data->lifeparams->chamber_growth == 0)
|
---|
[430] | 538 | {
|
---|
[479] | 539 | foramGrow(cr, lastChamberNum(cr));
|
---|
| 540 | cr.data->lifeparams->chamber_growth = -1;
|
---|
| 541 | //Simulator.print("chamber "+ (lastChamberNum(cr) + 1) +" complete");
|
---|
[430] | 542 | }
|
---|
[479] | 543 | else
|
---|
[422] | 544 | {
|
---|
[479] | 545 | //update of metabolism rate
|
---|
| 546 | if (cr.data->lifeparams->hibernated == 0)
|
---|
[401] | 547 | {
|
---|
[479] | 548 | setForamMeta(cr);
|
---|
| 549 | }
|
---|
| 550 |
|
---|
| 551 | cr.getMechPart(0).orient.set(o);
|
---|
| 552 | if (visualization(cr))
|
---|
| 553 | {
|
---|
| 554 | cr.data->reticulopodiacreature.moveAbs(cr.center_x-getZoneRange(cr,1), cr.center_y-getZoneRange(cr,1), cr.center_z-getZoneRange(cr,1)-getProperty(cr.data->lifeparams->gen, "chamber_proculus"));
|
---|
| 555 | }
|
---|
| 556 |
|
---|
| 557 | if (deathConditions(cr) == 1)
|
---|
| 558 | {
|
---|
| 559 | Populations[0].kill(cr);
|
---|
| 560 | return;
|
---|
| 561 | }
|
---|
| 562 |
|
---|
| 563 | foramMove(cr);
|
---|
| 564 |
|
---|
| 565 | var repro = foramReproduce(cr);
|
---|
| 566 | if (repro == 1)
|
---|
| 567 | {
|
---|
| 568 | return;
|
---|
| 569 | }
|
---|
| 570 |
|
---|
| 571 | cr.data->lifeparams->max_energy_level = Math.max(cr.energy, cr.data->lifeparams->max_energy_level);
|
---|
| 572 |
|
---|
| 573 | //cheking conditions of chamber growth process start
|
---|
| 574 | if (lastChamberNum(cr) != chambers[0].size-1)
|
---|
| 575 | {
|
---|
| 576 | if ((cr.data->lifeparams->max_energy_level >= energyFromVolume(max_chamber_volume[cr.data->lifeparams->gen][lastChamberNum(cr)],0)))
|
---|
| 577 | {
|
---|
| 578 | cr.data->lifeparams->chamber_growth = int(ExpParams.chamber_growth_time/ExpParams.secPerStep);
|
---|
| 579 | }
|
---|
| 580 | }
|
---|
[430] | 581 | }
|
---|
[380] | 582 | }
|
---|
| 583 |
|
---|
[422] | 584 | function deathConditions(cr)
|
---|
| 585 | {
|
---|
[479] | 586 | if ((cr.energy <= getProperty(cr.data->lifeparams->gen,"e_death_level")*cr.data->lifeparams->max_energy_level) || (Math.rnd01 < ExpParams.hunted_prob))
|
---|
| 587 | {
|
---|
[422] | 588 | return 1;
|
---|
[479] | 589 | }
|
---|
[422] | 590 | else
|
---|
| 591 | return 0;
|
---|
| 592 | }
|
---|
| 593 |
|
---|
[421] | 594 | function onForamsDied(cr)
|
---|
[380] | 595 | {
|
---|
[444] | 596 | if (visualization(cr))
|
---|
[430] | 597 | {
|
---|
[476] | 598 | Populations[2].delete(cr.data->reticulopodiacreature);
|
---|
[430] | 599 | }
|
---|
[380] | 600 | //fossilization
|
---|
| 601 | var geno = GenePools[0].add(cr.genotype);
|
---|
[476] | 602 | geno.data->genes = cr.data->genes;
|
---|
| 603 | geno.data->lifeparams = cr.data->lifeparams;
|
---|
[418] | 604 | if (ExpParams.logging == 1) Simulator.print("\"" + cr.name + "\" died...");
|
---|
[380] | 605 | ExpState.totaltestedcr++;
|
---|
| 606 | }
|
---|
| 607 |
|
---|
[421] | 608 | // --------------------------------foram end -------------------------------------
|
---|
[380] | 609 |
|
---|
[421] | 610 | // -------------------------------- nutrient begin --------------------------------
|
---|
[380] | 611 |
|
---|
[479] | 612 | function createNutrientGenotype(nutrientradius)
|
---|
[422] | 613 | {
|
---|
[479] | 614 | return "//0\np:sh=3,sx="+nutrientradius+",sy="+nutrientradius+",sz="+nutrientradius+",ry=1.5,vr=0.0,1.0,0.0";
|
---|
[422] | 615 | }
|
---|
| 616 |
|
---|
[421] | 617 | function onNutrientsStep(cr)
|
---|
[380] | 618 | {
|
---|
[444] | 619 | cr.moveAbs(cr.pos_x % World.wrldsiz, cr.pos_y % World.wrldsiz, 0.5);
|
---|
[380] | 620 | }
|
---|
| 621 |
|
---|
[421] | 622 | function addNutrient()
|
---|
[380] | 623 | {
|
---|
[479] | 624 | var cr = Populations[1].add(createNutrientGenotype(ExpParams.nutrientradius));
|
---|
[380] | 625 |
|
---|
[421] | 626 | cr.name = "Nutrients";
|
---|
[380] | 627 | cr.idleen = 0;
|
---|
[422] | 628 | cr.energy0 = ExpParams.energy_nut;
|
---|
[416] | 629 | cr.energy = cr.energy0;
|
---|
[421] | 630 | cr.signals.add("nutrient");
|
---|
[380] | 631 |
|
---|
[430] | 632 | cr.signals[0].value = cr;
|
---|
[380] | 633 |
|
---|
[422] | 634 | placeCreatureRandomly(cr, 0, 0);
|
---|
[444] | 635 | if (ExpParams.visualize == 1)
|
---|
| 636 | {
|
---|
[479] | 637 | var nutsize = ExpParams.nutrientradius*10;
|
---|
[444] | 638 | var nut = Populations[2].add("//0\np:sh=2,sx="+nutsize+",sy="+nutsize+",sz="+nutsize+",ry=1.5,vr=0.0,1.0,0.0");
|
---|
[476] | 639 | cr.data->reticulopodiacreature = nut;
|
---|
[444] | 640 | nut.moveAbs(cr.pos_x-1.5*nutsize, cr.pos_y-1.5*nutsize, 0.5);
|
---|
| 641 | }
|
---|
[380] | 642 | }
|
---|
| 643 |
|
---|
[444] | 644 | function onNutrientsDied(cr)
|
---|
| 645 | {
|
---|
| 646 | if (visualization(cr))
|
---|
| 647 | {
|
---|
[476] | 648 | Populations[2].delete(cr.data->reticulopodiacreature);
|
---|
[444] | 649 | }
|
---|
| 650 | }
|
---|
| 651 |
|
---|
[422] | 652 | function nutrientGrowth()
|
---|
[380] | 653 | {
|
---|
[474] | 654 | nutrientenergywaiting = nutrientenergywaiting + 1;
|
---|
[479] | 655 | if (nutrientenergywaiting*ExpParams.secPerStep >= ExpParams.foodperiod)
|
---|
[380] | 656 | {
|
---|
[479] | 657 | for (var i = 0; i < ExpParams.feedrate*(ExpParams.secPerStep/ExpParams.foodperiod); i++)
|
---|
[432] | 658 | {
|
---|
[422] | 659 | addNutrient();
|
---|
| 660 | }
|
---|
| 661 |
|
---|
| 662 | nutrientenergywaiting = 0.0;
|
---|
| 663 | Simulator.checkpoint();
|
---|
[380] | 664 | }
|
---|
| 665 | }
|
---|
| 666 |
|
---|
[421] | 667 | // -------------------------------- nutrient end --------------------------------
|
---|
[380] | 668 |
|
---|
[422] | 669 | // -------------------------------- step begin --------------------------------
|
---|
[380] | 670 |
|
---|
[422] | 671 | function onStep()
|
---|
| 672 | {
|
---|
[432] | 673 |
|
---|
| 674 | nutrientGrowth();
|
---|
[422] | 675 | if (ExpParams.logging == 1)
|
---|
| 676 | {
|
---|
| 677 | createStatistics();
|
---|
| 678 | }
|
---|
| 679 |
|
---|
| 680 | //reproduction --------------------------------------------
|
---|
| 681 | reprocounter += 1;
|
---|
[474] | 682 | if (reprocounter*ExpParams.secPerStep > ExpParams.repro_time)
|
---|
[422] | 683 | {
|
---|
| 684 | reprocounter = 0;
|
---|
| 685 | reproduce_parents(0);
|
---|
| 686 | reproduce_parents(1);
|
---|
| 687 | }
|
---|
| 688 |
|
---|
| 689 | //check for extinction -----------------------------------------------
|
---|
| 690 | if (Populations[0].size == 0)
|
---|
| 691 | {
|
---|
| 692 | if (ExpParams.autorestart)
|
---|
| 693 | {
|
---|
| 694 | Simulator.print("no more creatures, restarting...");
|
---|
| 695 | onExpInit();
|
---|
| 696 | }
|
---|
| 697 | else
|
---|
| 698 | {
|
---|
| 699 | Simulator.print("no more creatures, stopped.");
|
---|
| 700 | Simulator.stop();
|
---|
| 701 | }
|
---|
| 702 | }
|
---|
[434] | 703 | if (ExpParams.maxSteps > 0)
|
---|
[432] | 704 | {
|
---|
[434] | 705 | if (Simulator.stepNumber >= ExpParams.maxSteps)
|
---|
[432] | 706 | Simulator.stop();
|
---|
| 707 | }
|
---|
[422] | 708 | }
|
---|
| 709 |
|
---|
| 710 | function createStatistics()
|
---|
| 711 | {
|
---|
[430] | 712 | var number = [[0, 0],[0,0]]; // [species][gen]
|
---|
| 713 | var e_inc = [[0, 0],[0,0]];
|
---|
[422] | 714 | var e_nut = 0.0;
|
---|
| 715 |
|
---|
| 716 | for (var i = 0; i < Populations[0].size; i++)
|
---|
| 717 | {
|
---|
| 718 | var cr = Populations[0].get(i);
|
---|
[476] | 719 | var gen = cr.data->lifeparams->gen;
|
---|
| 720 | var species = cr.data->lifeparams->species;
|
---|
[430] | 721 |
|
---|
| 722 | number[species][gen] = number[species][gen] + 1;
|
---|
| 723 | e_inc[species][gen] = e_inc[species][gen] + cr.energy;
|
---|
[422] | 724 | }
|
---|
| 725 |
|
---|
| 726 | for (var i = 0; i < Populations[1].size; i++)
|
---|
| 727 | {
|
---|
| 728 | var cr = Populations[1].get(i);
|
---|
| 729 | e_nut += cr.energy;
|
---|
| 730 | }
|
---|
| 731 |
|
---|
[432] | 732 | var log_numbers = [number[1][0], number[1][1], number[0][0], number[0][1], Populations[1].size];
|
---|
| 733 | var log_energies = [e_inc[1][0], e_inc[1][1], e_inc[0][0], e_inc[0][1], e_nut];
|
---|
[422] | 734 |
|
---|
[430] | 735 | log(log_numbers, "forams_log.txt");
|
---|
[474] | 736 | log(log_energies, "energies_log.txt");
|
---|
[422] | 737 | }
|
---|
| 738 |
|
---|
[380] | 739 | function log(tolog, fname)
|
---|
| 740 | {
|
---|
[430] | 741 | var f = File.appendDirect(fname, "forams data");
|
---|
[380] | 742 | f.writeString("" + Simulator.stepNumber);
|
---|
[401] | 743 | for (var i = 0; i < tolog.size; i++)
|
---|
[380] | 744 | {
|
---|
| 745 | f.writeString(";" + tolog[i]);
|
---|
| 746 | }
|
---|
| 747 | f.writeString("\n");
|
---|
| 748 | f.close();
|
---|
| 749 | }
|
---|
| 750 |
|
---|
[422] | 751 | // -------------------------------- step end --------------------------------
|
---|
[479] | 752 | //TODO default params values in frams instead of microns/seconds
|
---|
[380] | 753 |
|
---|
[401] | 754 | @include "standard_events.inc"
|
---|
[380] | 755 |
|
---|
[401] | 756 | ~
|
---|
[380] | 757 |
|
---|
[401] | 758 | prop:
|
---|
[444] | 759 | id:visualize
|
---|
| 760 | name:Show reticulopodia and nutrients
|
---|
[430] | 761 | type:d 0 1 0
|
---|
| 762 | group:Foraminifera
|
---|
| 763 |
|
---|
| 764 | prop:
|
---|
[434] | 765 | id:maxSteps
|
---|
[432] | 766 | name:Stop after the given number of simulation steps
|
---|
[434] | 767 | type:d 0 1000000 0
|
---|
[432] | 768 |
|
---|
| 769 | prop:
|
---|
[474] | 770 | id:foramSpeedMmPerMin
|
---|
| 771 | name:Speed of foraminfera in mm/min
|
---|
| 772 | type:f 0.1
|
---|
| 773 | flags: 16
|
---|
| 774 | group:Foraminifera
|
---|
| 775 |
|
---|
| 776 | prop:
|
---|
[479] | 777 | id:gametSuccessRate
|
---|
| 778 | name:Ratio of successful gamets
|
---|
| 779 | type:f 0.001
|
---|
| 780 | group:Foraminifera
|
---|
| 781 |
|
---|
| 782 | prop:
|
---|
| 783 | id:gametoPeriod
|
---|
| 784 | name:Time of gametogenesis
|
---|
| 785 | type:f 720
|
---|
| 786 | group:Foraminifera
|
---|
| 787 |
|
---|
| 788 | prop:
|
---|
| 789 | id:picoCarbonPerMikro
|
---|
| 790 | name:Picograms of carbon in cubed micrometer
|
---|
| 791 | type:f 0.13
|
---|
| 792 | group:Foraminifera
|
---|
| 793 |
|
---|
| 794 | prop:
|
---|
[474] | 795 | id:secPerStep
|
---|
| 796 | name:Seconds per simulation step
|
---|
| 797 | type:f 60.0
|
---|
| 798 | flags: 16
|
---|
| 799 | group:Foraminifera
|
---|
| 800 |
|
---|
| 801 | prop:
|
---|
[422] | 802 | id:e_repro_cost_haplo
|
---|
[423] | 803 | name:Cost of reproduction
|
---|
[422] | 804 | type:f 0.1 0.9 0.5
|
---|
[421] | 805 | group:Foraminifera
|
---|
[380] | 806 |
|
---|
[401] | 807 | prop:
|
---|
[479] | 808 | id:divisionCost
|
---|
| 809 | name:Cost of division in pG
|
---|
| 810 | type:f
|
---|
| 811 | group:Foraminifera
|
---|
| 812 |
|
---|
| 813 | prop:
|
---|
[422] | 814 | id:e_repro_cost_diplo
|
---|
[423] | 815 | name:Cost of reproduction
|
---|
[422] | 816 | type:f 0.1 0.9 0.3
|
---|
| 817 | group:Foraminifera
|
---|
[380] | 818 |
|
---|
[401] | 819 | prop:
|
---|
[479] | 820 | id:chamber_growth_time
|
---|
| 821 | name:Time of the chamber growth in seconds
|
---|
| 822 | type:f
|
---|
| 823 | group:Foraminifera
|
---|
| 824 |
|
---|
| 825 | prop:
|
---|
| 826 | id:chamberCostPerSec
|
---|
| 827 | name:Cost of growning chamber per second
|
---|
| 828 | type:f
|
---|
| 829 | group:Foraminifera
|
---|
| 830 |
|
---|
| 831 | prop:
|
---|
[422] | 832 | id:chamber_proculus_haplo
|
---|
[423] | 833 | name:Size of proculus
|
---|
[422] | 834 | type:f
|
---|
[421] | 835 | group:Foraminifera
|
---|
[380] | 836 |
|
---|
[401] | 837 | prop:
|
---|
[422] | 838 | id:chamber_proculus_diplo
|
---|
[423] | 839 | name:Size of proculus
|
---|
[422] | 840 | type:f
|
---|
[380] | 841 | group:Foraminifera
|
---|
| 842 |
|
---|
| 843 | prop:
|
---|
[422] | 844 | id:chamber_difference_haplo
|
---|
[423] | 845 | name:Difference in size between subsequent chambers
|
---|
[422] | 846 | type:f
|
---|
[380] | 847 | group:Foraminifera
|
---|
| 848 |
|
---|
| 849 | prop:
|
---|
[422] | 850 | id:chamber_difference_diplo
|
---|
[423] | 851 | name:Difference in size between subsequent chambers
|
---|
[422] | 852 | type:f
|
---|
[380] | 853 | group:Foraminifera
|
---|
| 854 |
|
---|
| 855 | prop:
|
---|
[422] | 856 | id:hunted_prob
|
---|
| 857 | name:Probability of being hunted
|
---|
| 858 | type:f 0 1 0
|
---|
| 859 | group:Forminifera
|
---|
[380] | 860 |
|
---|
| 861 | prop:
|
---|
[422] | 862 | id:zone1_range
|
---|
| 863 | name:Zone 1 range
|
---|
| 864 | type:f 0 200
|
---|
| 865 | group:Foraminifera
|
---|
[380] | 866 |
|
---|
| 867 | prop:
|
---|
[422] | 868 | id:zone2_range
|
---|
| 869 | name:Zone 2 range
|
---|
| 870 | type:f 0 3000
|
---|
[421] | 871 | group:Foraminifera
|
---|
[380] | 872 |
|
---|
| 873 | prop:
|
---|
[422] | 874 | id:colors
|
---|
| 875 | name:Haploid and diploid colors
|
---|
| 876 | type:x
|
---|
[380] | 877 | group:Foraminifera
|
---|
| 878 |
|
---|
| 879 | prop:
|
---|
[422] | 880 | id:min_repro_energ_haplo
|
---|
| 881 | name:Min reproduction energy of forams
|
---|
| 882 | type:f
|
---|
[380] | 883 | group:Foraminifera
|
---|
| 884 |
|
---|
| 885 | prop:
|
---|
[422] | 886 | id:min_repro_energ_diplo
|
---|
| 887 | name:Min reproduction energy of forams
|
---|
| 888 | type:f
|
---|
| 889 | group:Foraminifera
|
---|
| 890 |
|
---|
| 891 | prop:
|
---|
[380] | 892 | id:repro_prob
|
---|
[401] | 893 | name:Probability of reproduction
|
---|
[422] | 894 | type:f 0 1 0.8
|
---|
[421] | 895 | group:Foraminifera
|
---|
[380] | 896 |
|
---|
| 897 | prop:
|
---|
[422] | 898 | id:energies0_haplo
|
---|
| 899 | name:Energy of offspring from diploid forams
|
---|
| 900 | type:f
|
---|
| 901 | group:Foraminifera
|
---|
| 902 |
|
---|
| 903 | prop:
|
---|
| 904 | id:energies0_diplo
|
---|
| 905 | name:Energy of offspring from diploid forams
|
---|
| 906 | type:f
|
---|
| 907 | group:Foraminifera
|
---|
| 908 |
|
---|
| 909 | prop:
|
---|
[475] | 910 | id:e_death_level_haplo
|
---|
| 911 | name:Minimal level of energy to sustain life of haploid
|
---|
[479] | 912 | type:f 0 20 0.2
|
---|
[475] | 913 | group:Foraminifera
|
---|
| 914 |
|
---|
| 915 | prop:
|
---|
| 916 | id:e_death_level_diplo
|
---|
| 917 | name:Minimal level of energy to sustain life of diploid
|
---|
[479] | 918 | type:f 0 20 0.2
|
---|
[475] | 919 | group:Foraminifera
|
---|
| 920 |
|
---|
| 921 | prop:
|
---|
[422] | 922 | id:energy_hib
|
---|
| 923 | name:Energy used for hibernation during one step
|
---|
| 924 | type:f 0 1 0.001
|
---|
| 925 | group:Foraminifera
|
---|
| 926 |
|
---|
| 927 | prop:
|
---|
| 928 | id:energy_move
|
---|
| 929 | name:Energy used for movement during one step
|
---|
| 930 | type:f 0 20 0.001
|
---|
| 931 | group:Foraminifera
|
---|
| 932 |
|
---|
| 933 | prop:
|
---|
| 934 | id:min_vol
|
---|
| 935 | name:Minimal volume for reproduction
|
---|
| 936 | type:f 100 900 100
|
---|
| 937 | group:Foraminifera
|
---|
| 938 |
|
---|
| 939 | prop:
|
---|
| 940 | id:max_size
|
---|
| 941 | name:Maximal size
|
---|
| 942 | type:d 1 10 5
|
---|
| 943 | group:Foraminifera
|
---|
| 944 |
|
---|
| 945 | prop:
|
---|
| 946 | id:foramPop
|
---|
| 947 | name:Initial forams population size
|
---|
| 948 | type:d 1 1000 100
|
---|
| 949 | group:Foraminifera
|
---|
| 950 |
|
---|
| 951 | prop:
|
---|
[380] | 952 | id:crossprob
|
---|
[401] | 953 | name:Crossover probability
|
---|
| 954 | type:f 0 1 0
|
---|
[421] | 955 | group:Foraminifera
|
---|
[380] | 956 |
|
---|
| 957 | prop:
|
---|
[401] | 958 | id:mutationprob
|
---|
| 959 | name:Mutation probability
|
---|
| 960 | type:f 0 1 0
|
---|
[421] | 961 | group:Foraminifera
|
---|
[401] | 962 |
|
---|
| 963 | prop:
|
---|
[380] | 964 | id:e_meta
|
---|
| 965 | name:Idle metabolism
|
---|
| 966 | type:f 0 1
|
---|
| 967 | group:Energy
|
---|
| 968 | help:Each stick consumes this amount of energy in one time step
|
---|
| 969 |
|
---|
| 970 | prop:
|
---|
| 971 | id:feedrate
|
---|
| 972 | name:Feeding rate
|
---|
[474] | 973 | type:f 0 1000000
|
---|
[380] | 974 | group:Energy
|
---|
| 975 | help:How fast energy is created in the world
|
---|
| 976 |
|
---|
| 977 | prop:
|
---|
[479] | 978 | id:ingestion
|
---|
| 979 | name:Ingestion rate
|
---|
| 980 | type:f
|
---|
| 981 | group:Energy
|
---|
| 982 |
|
---|
| 983 | prop:
|
---|
[422] | 984 | id:energy_nut
|
---|
[428] | 985 | name:Nutrient energy
|
---|
[479] | 986 | type:f 0 100000
|
---|
[380] | 987 | group:Energy
|
---|
| 988 |
|
---|
| 989 | prop:
|
---|
| 990 | id:feedtrans
|
---|
[479] | 991 | name:Energy transfer per second
|
---|
| 992 | type:f 0 100000
|
---|
[380] | 993 | group:Energy
|
---|
[422] | 994 |
|
---|
| 995 | prop:
|
---|
[479] | 996 | id:foodperiod
|
---|
| 997 | name:Time between food occurrences
|
---|
| 998 | type:f 0 100000
|
---|
[422] | 999 | group:Energy
|
---|
| 1000 |
|
---|
| 1001 | prop:
|
---|
[479] | 1002 | id:nutrientradius
|
---|
| 1003 | name:Nutrient size
|
---|
| 1004 | type:f 0.1 0.9 0.1
|
---|
[421] | 1005 | group:Energy
|
---|
| 1006 |
|
---|
[422] | 1007 | prop:
|
---|
| 1008 | id:stress
|
---|
| 1009 | name:Environmental stress
|
---|
| 1010 | type:d 0 1 1
|
---|
| 1011 | group:World
|
---|
| 1012 |
|
---|
| 1013 | prop:
|
---|
| 1014 | id:repro_trigger
|
---|
| 1015 | name:Reproduction trigger
|
---|
| 1016 | type:d 0 1 1
|
---|
| 1017 | group:World
|
---|
| 1018 |
|
---|
| 1019 | prop:
|
---|
| 1020 | id:repro_time
|
---|
| 1021 | name:Time before reproduction
|
---|
[474] | 1022 | type:d 0 10000
|
---|
[422] | 1023 |
|
---|
| 1024 | prop:
|
---|
| 1025 | id:creath
|
---|
| 1026 | name:Creation height
|
---|
| 1027 | type:f -1 50
|
---|
| 1028 | help:~
|
---|
| 1029 | Vertical position (above the surface) where new Forams are revived.
|
---|
| 1030 | Negative values are only used in the water area:
|
---|
| 1031 | 0 = at the surface
|
---|
| 1032 | -0.5 = half depth
|
---|
| 1033 | -1 = just above the bottom~
|
---|
| 1034 |
|
---|
[421] | 1035 | state:
|
---|
| 1036 | id:nutrient
|
---|
[428] | 1037 | name:Nutrient locations
|
---|
[421] | 1038 | help:vector of vectors [x,y,energy]
|
---|
| 1039 | type:x
|
---|
| 1040 | flags:32
|
---|
| 1041 |
|
---|
| 1042 | prop:
|
---|
[380] | 1043 | id:autorestart
|
---|
| 1044 | name:Restart after extinction
|
---|
| 1045 | help:Restart automatically this experiment after the last creature has died?
|
---|
| 1046 | type:d 0 1
|
---|
| 1047 |
|
---|
| 1048 | state:
|
---|
| 1049 | id:notes
|
---|
| 1050 | name:Notes
|
---|
| 1051 | type:s 1
|
---|
| 1052 | help:~
|
---|
| 1053 | You can write anything here
|
---|
| 1054 | (it will be saved to the experiment file)~
|
---|
| 1055 |
|
---|
| 1056 | state:
|
---|
| 1057 | id:totaltestedcr
|
---|
[421] | 1058 | name:Evaluated Forams
|
---|
| 1059 | help:Total number of the Forams evaluated in the experiment
|
---|
[380] | 1060 | type:d
|
---|
| 1061 | flags:16
|
---|
| 1062 |
|
---|
[404] | 1063 | prop:
|
---|
[421] | 1064 | id:logging
|
---|
| 1065 | name:Log statistics to file
|
---|
| 1066 | type:d 0 1 0
|
---|