Changeset 557 for experiments/frams/foraminifera/data/scripts
- Timestamp:
- 08/02/16 18:52:31 (8 years ago)
- Location:
- experiments/frams/foraminifera/data/scripts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
experiments/frams/foraminifera/data/scripts/foraminifera.expdef
r556 r557 125 125 //addSpecies({"min_repro_energies" : [4,6]}); 126 126 //addSpecies({"min_repro_energies" : [4,8]}); 127 128 //Simulator.print(create_genotype(0.1, 30)); //sample call 129 //Simulator.print(create_genotype(0.2, 30)); //sample call 127 130 } 128 131 … … 1006 1009 1007 1010 property: 1008 id:zone1_range 1011 id:zone1_range 1009 1012 name:Zone 1 range in frams units 1010 1013 type:f 0 200 10 -
experiments/frams/foraminifera/data/scripts/foraminifera.inc
r554 r557 1 1 //size versus energy 2 2 //real proportions 3 4 function create_genotype(proculus_size, number_of_chambers) 5 { 6 const shift=0.75; 7 const angle_delta=0.7; 8 const angle_delta_delta=-0.018; 9 const growing=1.05; 10 11 var str="//0\n"; 12 var size=proculus_size; 13 for(var i=0;i<number_of_chambers;i++) 14 { 15 str+="p:sh=1,sx=%g,sy=%g,sz=%g\n" % size % size % size; 16 if (i>0) 17 str+="j:%d,%d,sh=1,dx=%g,ry=%g\n" % (i-1) % i % (size*shift) % (angle_delta+i*angle_delta_delta); 18 size*=growing; 19 } 20 return str; 21 } 3 22 4 23 function init_chambers()
Note: See TracChangeset
for help on using the changeset viewer.