Ignore:
Timestamp:
08/02/16 18:52:31 (8 years ago)
Author:
Maciej Komosinski
Message:
  • Fixed extra space after property ID
  • A function to generate simple planispiral forams
Location:
experiments/frams/foraminifera/data/scripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • experiments/frams/foraminifera/data/scripts/foraminifera.expdef

    r556 r557  
    125125        //addSpecies({"min_repro_energies" : [4,6]});
    126126        //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
    127130}
    128131
     
    10061009
    10071010property:
    1008 id:zone1_range 
     1011id:zone1_range
    10091012name:Zone 1 range in frams units
    10101013type:f 0 200 10
  • experiments/frams/foraminifera/data/scripts/foraminifera.inc

    r554 r557  
    11//size versus energy
    22//real proportions
     3
     4function 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}
    322
    423function init_chambers()
Note: See TracChangeset for help on using the changeset viewer.