- Timestamp:
- 10/01/21 22:36:10 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
experiments/frams/foraminifera/data/scripts/foraminifera.expdef
r1100 r1152 30 30 global changePeriod; 31 31 global phase; 32 global nutrientSqrCm;33 32 global species_genes; 34 33 global max_chambers_def; … … 38 37 global nutrient_num_counter; 39 38 global wrldsizSquareMeters; 39 const MIN_PART_SIZE = 0.05; //to avoid exceeding the allowed Part.size range when setting radius of body parts 40 40 41 41 @include "foraminifera.inc" … … 86 86 World.wrldwat = 200; 87 87 World.wrldsiz = micronsToFrams(100000); 88 wrldsizSquareMeters = Math.pow(framsToMicrons(World.wrldsiz) * 0.000001, 2);89 88 World.wrldbnd = 1; 90 89 … … 95 94 96 95 //morphology 97 ExpProperties.zone1_range = micronsToFrams(1000);96 ExpProperties.zone1_range = 5; //originally was micronsToFrams(1000); but this was exceeding the allowed Part.size range so was decreased to 5. TODO This change in reticulopodia size may slightly affect simulation and results, so verify/rethink/reimplement if using this expdef in further research. 98 97 ExpProperties.zone2_range = micronsToFrams(3000); 99 98 ExpProperties.chamber_proculus_haplo = micronsToFrams(20); … … 106 105 ExpProperties.nutrientradius = micronsToFrams(10); 107 106 ExpProperties.energy_nut = 200 * energyFromVolume(ExpProperties.nutrientradius, 1); 108 nutrientSqrCm = 10;109 ExpProperties.nutrient_pop = Math.pow(framsToMicrons(World.wrldsiz) * 0.0001, 2) / nutrientSqrCm;110 107 111 108 ExpState.totaltestedcr = 0; … … 125 122 function onExpInit() 126 123 { 124 wrldsizSquareMeters = Math.pow(framsToMicrons(World.wrldsiz) * 0.000001, 2); 127 125 species_genes = []; 128 126 foram_uid = 0; … … 398 396 Populations[2].delete(cr.data->reticulopodiacreature); 399 397 } 400 var ret = Populations[2].add("//0s\nm:Vstyle=reticulopodia\np:sh=1,sx=0.001,sy=0.001,sz=0.001\np:sh=3,sx=0.01,sy=" + radius + ",sz=" + radius + ",ry=1.57079633,vr=" + curColor + "\nj:0, 1, sh=1"); 398 radius = Math.max(radius, MIN_PART_SIZE); 399 var ret = Populations[2].add("//0s\nm:Vstyle=reticulopodia\np:sh=1,sx=" + MIN_PART_SIZE + ",sy=" + MIN_PART_SIZE + ",sz=" + MIN_PART_SIZE + "\n" + 400 "p:sh=3,sx=" + MIN_PART_SIZE + ",sy=" + radius + ",sz=" + radius + ",ry=1.57079633,vr=" + curColor + "\n" + 401 "j:0, 1, sh=1"); 401 402 cr.data->reticulopodiacreature = ret; 402 403 ret.getMechPart(0).orient.set(cr.getMechPart(0).orient);
Note: See TracChangeset
for help on using the changeset viewer.