Revision 2

src/constants.h (revision 2)
1
#ifndef CONSTANTS_H_INCLUDED
2
#define CONSTANTS_H_INCLUDED
3

  
4
extern double pi;
5

  
6
extern double youngs_modulus;
7
extern double stress_x;
8
extern double stress_y;
9

  
10
extern double growth_threshold;
11

  
12
extern double sigma;
13

  
14
extern int growth;
15

  
16
#pragma omp threadprivate(stress_x, stress_y, sigma, growth, growth_threshold)
17

  
18
#endif // CONSTANTS_H_INCLUDED
src/Init/48.toy (revision 2)
1
56.116792084273854
2
57.122161858681615
3
88
4
132
5
44
6
44.44590546798042
7
31.06400178762852
8
15.28614477128565
9
46.07438116496734
10
45.68370971785784
11
55.898772921654235
12
15.69646769192234
13
26.80779564828808
14
37.31588459856476
15
3.063793004185224
16
16.53217151175219
17
4.440703657093252
18
48.26972900048682
19
37.1986720299509
20
5.561361358589701
21
7.272114619665761
22
48.83039851576928
23
26.93788082781429
24
24.00947933249071
25
3.560567946674195
26
13.11147779883033
27
8.018606493623423
28
28.26232367365101
29
35.70438222289199
30
45.94785542188641
31
53.94767727638087
32
53.85325428566935
33
50.46440027468195
34
18.69752070984621
35
24.30961586748105
36
43.4936495917745
37
44.54367260401871
38
8.273200952485594
39
30.99067125101685
40
53.84152924828402
41
18.20882995977306
42
24.60850978455296
43
26.55221180655271
44
33.59003416719355
45
37.31883397124851
46
6.565569019268996
47
54.5579732803416
48
3.172615279439423
49
46.60838819317063
50
51.21311785649767
51
35.98890753096349
52
23.40219946005433
53
40.6740149451155
54
31.81270783470978
55
2.329696218931677
56
55.52633924329002
57
13.44370463210872
58
52.09815778831366
59
3.676756734503515
60
12.37388137454953
61
28.05529110382381
62
36.05903248232052
63
39.53593681020817
64
12.37042704228561
65
43.38398370149374
66
1.928303944451709
67
29.26873455191602
68
28.58575629997667
69
48.99137494887965
70
25.67372244503945
71
39.98823860428437
72
15.17595618804429
73
54.48748533643613
74
0.2146515380268589
75
21.36562402978377
76
44.68038841175585
77
43.18031425400945
78
9.736193750628654
79
35.59212617558239
80
54.51652609005403
81
32.00714286728275
82
39.34032259295582
83
16.29319443623066
84
37.71500198367416
85
7.04073794313703
86
1.357854560310445
87
7.401159072849132
88
34.87165848607491
89
48.84657763093039
90
25.77701081463702
91
4.088823396942256
92
26.26407330780703
93
8.09085407866544
94
5.281992764838149
95
0.7657426297614376
96
55.95854757255521
97
40.75140239221398
98
43.00269180264237
99
17.17528192650103
100
26.56822800886965
101
13.39276403921164
102
45.00167811724376
103
18.83096554315458
104
2.260795867528327
105
47.78047200232299
106
11.10782952544684
107
37.51329241227099
108
54.63231734276779
109
49.75869537126278
110
33.95035164817229
111
19.01137359340264
112
37.55640716432576
113
9.949603272534386
114
7.667645656254989
115
18.27117578342802
116
33.68186944703722
117
43.60352290176333
118
33.24644553232941
119
21.63924951921179
120
16.48318215146051
121
16.25035878756063
122
52.08697892803165
123
45.39848795792474
124
8.316596322773037
125
18.43074642339369
126
27.0911209192926
127
32.16233954396728
128
46.89081586900789
129
9.197308691561881
130
39.91792206153881
131
1.526331876288296
132
1.231591836223541
133
41.26690058024526
134
28.1335361823915
135
45.04912269404191
136
26.31480556943485
137
25.46924378007913
138
29.12253044945163
139
14.89842582228981
140
36.28520631696006
141
49.14438080228429
142
4.498846947800401
143
6.808064875410037
144
51.23509884747121
145
3.385145073016869
146
17.22361516751497
147
35.46956018069162
148
44.07878737162434
149
21.78110930933903
150
5.54837887048811
151
13.72938718966373
152
31.78989062676125
153
11.13667945613903
154
43.59040978752375
155
46.82530710475478
156
41.06486117001386
157
25.46058529878058
158
15.79217251751946
159
51.71621366505386
160
41.35380046182465
161
28.65028232864171
162
55.16166817964296
163
56.16601788048032
164
22.22660496484446
165
52.37112306219502
166
30.47563294070585
167
23.45786114096693
168
30.07680991048651
169
50.34429924986451
170
15.47585500672533
171
14.94587411304556
172
29.69700442007021
173
15.81564198359301
174
23.54157338421655
175
14.32943701254623
176
32.55564619744789
177
28.78372647635837
178
25.3340680497636
179
18.26966696798044
180
36.59120464463223
181
31.37195361470454
182
0
183
1
184
0
185
0
186
0
187
8
188
0
189
0
190
6.020685464390844
191
0.8278949178441415
192
2
193
0
194
0
195
0
196
0
197
6
198
0
199
0
200
7.228817703455071
201
0.953411931356204
202
1
203
2
204
0
205
0
206
0
207
77
208
0
209
0
210
3.922646427577326
211
0.8537775241089347
212
3
213
4
214
1
215
0
216
0
217
76
218
0
219
0
220
5.664480385612694
221
1.8382630520386067
222
4
223
5
224
1
225
0
226
0
227
23
228
0
229
0
230
9.748553688604321
231
1.505230872264721
232
5
233
3
234
1
235
0
236
0
237
29
238
0
239
0
240
3.967322571542468
241
1.6914860325991
242
6
243
7
244
2
245
0
246
0
247
62
248
0
249
1
250
6.387900425722233
251
3.2265786164621697
252
8
253
6
254
2
255
0
256
0
257
12
258
0
259
0
260
1.9688949108475617
261
4.374860317586122
262
7
263
8
264
2
265
0
266
0
267
69
268
0
269
1
270
7.2150195419086725
271
2.6184299132579927
272
9
273
10
274
3
275
0
276
0
277
70
278
0
279
0
280
8.795359243772417
281
1.0267859664644268
282
11
283
9
284
3
285
0
286
0
287
27
288
0
289
0
290
3.549059699128109
291
1.5050846540468588
292
10
293
11
294
3
295
0
296
0
297
14
298
0
299
0
300
3.9047690627773406
301
2.5447191840406362
302
12
303
13
304
4
305
0
306
0
307
24
308
0
309
0
310
5.551923322989334
311
2.335608697089364
312
7
313
12
314
4
315
0
316
0
317
62
318
0
319
0
320
3.0223146226881377
321
2.7668015618193307
322
13
323
7
324
4
325
0
326
0
327
39
328
0
329
0
330
3.996922032583442
331
2.0860589144933774
332
14
333
15
334
5
335
0
336
0
337
10
338
0
339
0
340
4.950003453056753
341
3.38279234110297
342
15
343
16
344
5
345
0
346
0
347
9
348
0
349
0
350
7.528928948717227
351
2.415426794942007
352
16
353
14
354
5
355
0
356
0
357
33
358
0
359
-1
360
7.2041879963282165
361
2.015898673206891
362
2
363
17
364
6
365
0
366
0
367
35
368
0
369
0
370
6.975916395610812
371
1.8911891888569499
372
17
373
0
374
6
375
0
376
0
377
22
378
0
379
0
380
3.1823054694197905
381
2.120112979863687
382
14
383
18
384
7
385
0
386
0
387
68
388
0
389
0
390
1.159430480140459
391
3.3695613278226832
392
18
393
19
394
7
395
0
396
0
397
72
398
0
399
0
400
6.4572856207732885
401
0.8647969145846215
402
19
403
14
404
7
405
0
406
0
407
10
408
0
409
0
410
7.586930102424607
411
3.416539856005443
412
20
413
1
414
8
415
0
416
0
417
71
418
0
419
0
420
7.012139542173991
421
1.0536408039276923
422
0
423
20
424
8
425
0
426
0
427
37
428
0
429
0
430
7.617707293919693
431
1.0206994543000885
432
21
433
16
434
9
435
0
436
0
437
79
438
0
439
-1
440
8.500673365314418
441
0.9709414173616803
442
15
443
21
444
9
445
0
446
0
447
42
448
0
449
0
450
1.8447821988289685
451
2.180489611752403
452
19
453
15
454
10
455
0
456
0
457
82
458
0
459
0
460
7.319652741237647
461
2.7126671339762
462
10
463
22
464
11
465
0
466
0
467
32
468
0
469
0
470
5.005225451182547
471
2.1054408568877547
472
22
473
23
474
11
475
0
476
0
477
19
478
0
479
0
480
5.566951908430207
481
1.9429540636288667
482
23
483
10
484
11
485
0
486
0
487
60
488
0
489
0
490
3.7306543971722785
491
2.1269896762675167
492
8
493
24
494
12
495
0
496
0
497
13
498
0
499
0
500
8.638781735063414
501
1.2352637179006336
502
24
503
6
504
12
505
0
506
0
507
74
508
0
509
0
510
7.502380074392706
511
3.276408102071225
512
25
513
24
514
13
515
0
516
0
517
51
518
0
519
0
520
1.051170137344771
521
1.1976547879492763
522
8
523
25
524
13
525
0
526
0
527
78
528
0
529
0
530
5.8498196759125065
531
0.9387037219627647
532
10
533
26
534
14
535
0
536
0
537
18
538
0
539
0
540
6.3221063252086545
541
2.9118587785802994
542
26
543
11
544
14
545
0
546
0
547
57
548
0
549
0
550
8.35792557584722
551
2.430671811469086
552
2
553
27
554
15
555
0
556
0
557
28
558
0
559
0
560
8.963869105737608
561
2.2293471425316227
562
27
563
24
564
15
565
0
566
0
567
74
568
0
569
0
570
2.2836852958388465
571
3.678023320709588
572
24
573
2
574
15
575
0
576
0
577
35
578
0
579
0
580
1.8075107240043395
581
3.016838997730364
582
28
583
9
584
16
585
0
586
0
587
36
588
0
589
0
590
4.828429905282562
591
1.8189448459235447
592
29
593
28
594
16
595
0
596
0
597
30
598
0
599
0
600
6.574403702106191
601
2.1444839001611196
602
9
603
29
604
16
605
0
606
0
607
27
608
0
609
0
610
5.0430185933063445
611
1.6691184534835568
612
20
613
30
614
17
615
0
616
0
617
34
618
1
619
0
620
4.020574883072038
621
1.7135079720529118
622
30
623
31
624
17
625
0
626
0
627
25
628
0
629
0
630
5.054206575479507
631
1.9959846653706521
632
31
633
20
634
17
635
0
636
0
637
48
638
0
639
0
640
8.86171657767631
641
1.6142778799836373
642
32
643
26
644
18
645
0
646
0
647
65
648
0
649
0
650
2.0209564695633055
651
2.100376667860471
652
10
653
32
654
18
655
0
656
0
657
60
658
0
659
0
660
6.134891301110521
661
1.8690549269835988
662
2
663
23
664
19
665
0
666
0
667
87
668
0
669
0
670
6.661261908204632
671
0.9801021155531058
672
22
673
2
674
19
675
0
676
0
677
28
678
0
679
0
680
3.318357677921835
681
1.98722145391297
682
3
683
25
684
20
685
0
686
0
687
49
688
0
689
0
690
8.029046983390446
691
1.0432012474247392
692
25
693
14
694
20
695
0
696
0
697
44
698
0
699
1
700
3.568754663972679
701
1.1369084557433968
702
14
703
3
704
20
705
0
706
0
707
33
708
0
709
0
710
8.610675684662978
711
1.1317475907987893
712
33
713
34
714
21
715
0
716
0
717
63
718
0
719
0
720
5.683226365907732
721
1.2233164114749318
722
3
723
33
724
21
725
0
726
0
727
29
728
0
729
0
730
9.746616107690803
731
1.4211389229017826
732
34
733
3
734
21
735
0
736
0
737
49
738
0
739
0
740
1.4849899311493633
741
1.8291033567002823
742
17
743
28
744
22
745
0
746
0
747
45
748
0
749
0
750
6.723128772638477
751
1.3434759969311816
752
28
753
0
754
22
755
0
756
0
757
37
758
0
759
0
760
5.173679135244523
761
1.9344619150276408
762
4
763
10
764
23
765
0
766
0
767
32
768
0
769
0
770
2.3727844109736225
771
1.841378132945337
772
10
773
5
774
23
775
0
776
0
777
70
778
0
779
0
780
8.078443739665982
781
0.7984482416345275
782
12
783
21
784
24
785
0
786
0
787
81
788
0
789
-1
790
9.271513867984417
791
1.243232339399745
792
21
793
13
794
24
795
0
796
0
797
42
798
0
799
0
800
6.286824870038186
801
1.6996404521855055
802
30
803
18
804
25
805
0
806
0
807
72
808
1
809
0
810
6.145475515000017
811
1.0672514749646578
812
18
813
31
814
25
815
0
816
0
817
40
818
1
819
0
820
6.348878528186362
821
2.3132144000496337
822
8
823
31
824
26
825
0
826
0
827
69
828
0
829
0
830
0.9109929179105035
831
2.3010527945121813
832
31
833
35
834
26
835
0
836
0
837
40
838
1
839
0
840
6.540474386424632
841
2.6094306191356718
842
35
843
8
844
26
845
0
846
0
847
78
848
0
849
-1
850
5.5541754501963085
851
0.9783245365955708
852
11
853
29
854
27
855
0
856
0
857
59
858
0
859
0
860
10.444779667229207
861
0.921589963190107
862
22
863
27
864
28
865
0
866
0
867
55
868
0
869
0
870
4.7112801560223785
871
0.9682543742715622
872
5
873
33
874
29
875
0
876
0
877
50
878
0
879
0
880
6.004928700899227
881
1.2448111125902523
882
29
883
20
884
30
885
0
886
0
887
34
888
0
889
0
890
8.086764525759554
891
1.7853068998123078
892
20
893
28
894
30
895
0
896
0
897
37
898
-1
899
0
900
4.466507126801222
901
2.046163413502742
902
36
903
4
904
31
905
0
906
0
907
64
908
0
909
0
910
3.9681048216399213
911
0.8528196548377335
912
21
913
36
914
31
915
0
916
0
917
81
918
0
919
0
920
2.013366591957313
921
1.1251029103428558
922
4
923
21
924
31
925
0
926
0
927
79
928
0
929
0
930
7.201493109944114
931
0.9687803689443979
932
4
933
22
934
32
935
0
936
0
937
64
938
0
939
0
940
5.627009098306746
941
1.0875089332425962
942
16
943
3
944
33
945
0
946
0
947
76
948
0
949
0
950
2.8389556603296477
951
1.6586803061239406
952
29
953
30
954
34
955
0
956
0
957
54
958
0
959
0
960
8.069865629347076
961
0.8782589055928082
962
24
963
17
964
35
965
0
966
0
967
58
968
0
969
0
970
7.731615462277459
971
0.8630616108957792
972
28
973
33
974
36
975
0
976
0
977
63
978
0
979
0
980
10.224055861854431
981
0.8367477862188357
982
33
983
9
984
36
985
0
986
0
987
50
988
0
989
0
990
2.3605644256730884
991
1.2855874147272466
992
37
993
38
994
38
995
0
996
0
997
52
998
0
999
0
1000
6.036578891731217
1001
1.976669506969914
1002
39
1003
37
1004
38
1005
0
1006
0
1007
53
1008
0
1009
0
1010
6.58965121297249
1011
1.755866486101661
1012
38
1013
39
1014
38
1015
0
1016
0
1017
46
1018
0
1019
0
1020
3.7670978973941636
1021
1.6719030606431162
1022
39
1023
7
1024
39
1025
0
1026
0
1027
61
1028
0
1029
0
1030
9.425834597065922
1031
0.8969830760417317
1032
13
1033
39
1034
39
1035
0
1036
0
1037
53
1038
0
1039
0
1040
2.913185510964611
1041
1.4418414300190103
1042
18
1043
35
1044
40
1045
0
1046
0
1047
68
1048
0
1049
0
1050
3.1964971305017276
1051
3.6733342295250457
1052
12
1053
27
1054
41
1055
0
1056
0
1057
67
1058
0
1059
0
1060
1.4445775157701137
1061
0.8427730838489842
1062
27
1063
36
1064
41
1065
0
1066
0
1067
55
1068
0
1069
0
1070
5.376357582086158
1071
0.7419033314339933
1072
36
1073
12
1074
41
1075
0
1076
0
1077
81
1078
0
1079
0
1080
5.02331990924774
1081
0.8770465036415086
1082
15
1083
13
1084
42
1085
0
1086
0
1087
43
1088
0
1089
0
1090
4.031560423670558
1091
1.2190916564075922
1092
40
1093
13
1094
43
1095
0
1096
0
1097
73
1098
0
1099
0
1100
6.309652072223675
1101
0.9171315013572681
1102
15
1103
40
1104
43
1105
0
1106
0
1107
47
1108
0
1109
0
1110
5.310627016833087
1111
1.2850860088281775
1112
35
1113
14
1114
44
1115
0
1116
0
1117
68
1118
0
1119
0
1120
6.09286266799143
1121
0.909994014353808
1122
25
1123
35
1124
44
1125
0
1126
0
1127
78
1128
-1
1129
-1
1130
6.470434130663106
1131
0.8515657782160756
1132
17
1133
34
1134
45
1135
0
1136
0
1137
58
1138
0
1139
0
1140
6.048507917188777
1141
0.9317938369124962
1142
34
1143
28
1144
45
1145
0
1146
0
1147
63
1148
1
1149
0
1150
1.4823573981752196
1151
1.7027292965291294
1152
31
1153
39
1154
46
1155
0
1156
0
1157
61
1158
0
1159
0
1160
8.874996658751831
1161
0.9157037274908074
1162
38
1163
31
1164
46
1165
0
1166
0
1167
48
1168
0
1169
0
1170
2.595618331808175
1171
1.4951718154712506
1172
41
1173
40
1174
47
1175
0
1176
0
1177
66
1178
0
1179
0
1180
2.965042725322048
1181
1.095040003491865
1182
15
1183
41
1184
47
1185
0
1186
0
1187
84
1188
0
1189
0
1190
3.16827941885015
1191
0.9879206834082908
1192
38
1193
20
1194
48
1195
0
1196
0
1197
71
1198
0
1199
0
1200
3.091128526850178
1201
1.4313220411963044
1202
34
1203
25
1204
49
1205
0
1206
0
1207
51
1208
-1
1209
0
1210
4.235613253392752
1211
1.2844043630550463
1212
5
1213
9
1214
50
1215
0
1216
0
1217
70
1218
0
1219
0
1220
6.448230412611128
1221
1.0370280655037245
1222
34
1223
24
1224
51
1225
0
1226
0
1227
58
1228
0
1229
0
1230
5.0487777068177095
1231
0.8221290174304571
1232
42
1233
38
1234
52
1235
0
1236
0
1237
56
1238
0
1239
0
1240
2.720517542926033
1241
1.5948924171541623
1242
37
1243
42
1244
52
1245
0
1246
0
1247
83
1248
0
1249
0
1250
5.320118717166006
1251
1.2010409193657794
1252
13
1253
37
1254
53
1255
0
1256
0
1257
73
1258
0
1259
0
1260
5.88743261903577
1261
0.9895500562983791
1262
29
1263
19
1264
54
1265
0
1266
0
1267
59
1268
0
1269
0
1270
0.6682811958399486
1271
1.269738597667966
1272
19
1273
30
1274
54
1275
0
1276
0
1277
72
1278
0
1279
0
1280
5.011899374458959
1281
0.8928216323407699
1282
22
1283
36
1284
55
1285
0
1286
0
1287
64
1288
0
1289
0
1290
5.733564404016943
1291
0.8639893787335947
1292
43
1293
38
1294
56
1295
0
1296
0
1297
75
1298
0
1299
0
1300
8.702311774683862
1301
1.2840418052736113
1302
42
1303
43
1304
56
1305
0
1306
0
1307
80
1308
0
1309
0
1310
3.3143250668397823
1311
1.7561017772514342
1312
26
1313
15
1314
57
1315
0
1316
0
1317
84
1318
0
1319
0
1320
7.315109518002571
1321
1.0373730398142098
1322
15
1323
11
1324
57
1325
0
1326
0
1327
82
1328
0
1329
0
1330
1.6481469117056933
1331
2.3336146351088316
1332
11
1333
19
1334
59
1335
0
1336
0
1337
82
1338
0
1339
0
1340
7.9623689893886125
1341
0.9995108599103917
1342
23
1343
32
1344
60
1345
0
1346
0
1347
85
1348
0
1349
0
1350
6.424644953319666
1351
0.8525974000515482
1352
31
1353
7
1354
61
1355
0
1356
0
1357
69
1358
0
1359
0
1360
7.256310393423394
1361
1.037157450244026
1362
6
1363
12
1364
62
1365
0
1366
0
1367
67
1368
0
1369
-1
1370
10.17471308284182
1371
0.9077101540054616
1372
32
1373
42
1374
65
1375
0
1376
0
1377
80
1378
0
1379
0
1380
4.62148726433817
1381
1.7138345015378253
1382
42
1383
26
1384
65
1385
0
1386
0
1387
86
1388
0
1389
0
1390
7.266068562558435
1391
0.9744587193203027
1392
41
1393
37
1394
66
1395
0
1396
0
1397
83
1398
0
1399
0
1400
1.0822688341969655
1401
1.1068453446582425
1402
37
1403
40
1404
66
1405
0
1406
0
1407
73
1408
0
1409
0
1410
4.611458125012716
1411
0.8261084556114584
1412
6
1413
27
1414
67
1415
0
1416
0
1417
74
1418
0
1419
0
1420
7.664470011743081
1421
1.0045336543978185
1422
38
1423
1
1424
71
1425
0
1426
0
1427
75
1428
0
1429
0
1430
4.7562900148782985
1431
1.257958333446013
1432
43
1433
1
1434
75
1435
0
1436
0
1437
77
1438
0
1439
0
1440
3.202757102350571
1441
1.4427530851252512
1442
16
1443
4
1444
76
1445
0
1446
0
1447
79
1448
0
1449
0
1450
6.467675566820941
1451
0.8097214187807529
1452
43
1453
2
1454
77
1455
0
1456
0
1457
87
1458
0
1459
0
1460
5.485418261839078
1461
0.9586623043222804
1462
32
1463
43
1464
80
1465
0
1466
0
1467
85
1468
0
1469
0
1470
5.717630341229382
1471
0.6641830216078559
1472
41
1473
42
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff