-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsystems.py
669 lines (667 loc) · 26 KB
/
systems.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
import numpy as np
kernels = {
"standard": np.array([[0.05, 0.2, 0.05],[0.2,-1,0.2],[0.05, 0.2, 0.05]], )
}
#http://mrob.com/pub/comp/xmorphia/pearson-classes.html
pearson = {
'*xi_left': {
'description': """ HAVEN'T GOT THIS TO WORK. Large, sustained spirals similar to the Belousov-Zhabotinsky reaction in a Petri dish.
The seed of the spiral is an essential and sometimes rare feature, which must exist in suitable quantities
to produce a long-lived pattern. This means that if the domain is small, the spirals will die out;
in this case the pattern becomes uniform red state. If the domain is large enough, occasional
irregularities usually geerate new spiral seeds and thereby maintain the population of spiral seeds.""",
'file_stub': "*xi(left)",
'cmap': {'a': "seismic", 'b': 'seismic'},
'factors': {
'Da': 1.0,
'Db': 0.5,
'f': 0.010,
'k': 0.041
},
'scaling': {
"a": {
'icl': 0.0,
'im': 0.5,
'icu': 1.0
},
"b": {
'icl': 0.0,
'im': 0.2116,
'icu': 0.4233
},
}
},
'*nu_left': {
'description': """HAVEN'T GOT THIS TO WORK. Inert (non-mitotic) solitons. The number of solitons depends on the number and size
of blue areas in the starting pattern. All large blue areas shrink and/or split up into solitons.
The solitons then drift apart from each other to spread as uniformly as possible across the space,
but this takes a period of time proportional to eKw where w is the width of the domain in lu and K
is a constant, K≈20+1000F. In the following images (with F=0.046, k=0.067) each successive image
represents approximately twice as much elapsed time: """,
'file_stub': "*nu(left)",
'cmap': {'a': "seismic", 'b': 'seismic'},
'factors': {
'Da': 1.0,
'Db': 0.5,
'f': 0.054,
'k': 0.067
},
'scaling': {
"a": {
'icl': 0.2888,
'im': 0.6444,
'icu': 1.0
},
"b": {
'icl': 0.0,
'im': 0.2116,
'icu': 0.4233
},
}
},
'mu_right': {
'description': """Stripes that grow from each end (worms), possibly also co-existing with inert
(non-mitotic) solitons. After the space is filled by the worms, they reorganise towards parallel
stripes and remain disconnected from one another. Type eta (η) differs from this by having
oscillation in the ∂u/∂t component, and many spots/solitons. Type kappa (κ) differs from this by
having branching and no solitons, and small blue spots grow into a ring or coral rather than a worm. """,
'file_stub': "mu(right)",
'cmap': {'a': "seismic", 'b': 'seismic'},
'factors': {
'Da': 1.0,
'Db': 0.5,
'f': 0.058,
'k': 0.065
},
'scaling': {
"a": {
'icl': 0.2979,
'im': 0.6489,
'icu': 1.0
},
"b": {
'icl': 0.0,
'im': 0.2204,
'icu': 0.4409
},
}
},
'mu_left': {
'description': """Stripes that grow from each end (worms), possibly also co-existing with inert
(non-mitotic) solitons. After the space is filled by the worms, they reorganise towards parallel
stripes and remain disconnected from one another. Type eta (η) differs from this by having
oscillation in the ∂u/∂t component, and many spots/solitons. Type kappa (κ) differs from this by
having branching and no solitons, and small blue spots grow into a ring or coral rather than a worm. """,
'file_stub': "mu(left)",
'cmap': {'a': "seismic", 'b': 'seismic'},
'factors': {
'Da': 1.0,
'Db': 0.5,
'f': 0.046,
'k': 0.065
},
'scaling': {
"a": {
'icl': 0.2872,
'im': 0.6436,
'icu': 1.0
},
"b": {
'icl': 0.0,
'im': 0.2092,
'icu': 0.4184
},
}
},
'lambda_right': {
'description': """Solitons that grow by mitosis (cell-division). After the space is filled, solitons rearrange
into hexagonal grids, sometimes with grain boundaries. Eventually, all movement stops and the pattern is in
a steady state. Type epsilon (ε) differs from this by having "overcrowding" and die-outs, and never reaching
a steady state. Types eta (η), theta (θ), and mu (μ) differ from this by having stripes. """,
'file_stub': "lambda(right)",
'cmap': {'a': "seismic", 'b': 'seismic'},
'factors': {
'Da': 1.0,
'Db': 0.5,
'f': 0.034,
'k': 0.065
},
'scaling': {
"a": {
'icl': 0.2715,
'im': 0.6357,
'icu': 1
},
"b": {
'icl': 0.0,
'im': 0.1971,
'icu': 0.39443
},
}
},
'lambda_left': {
'description': """Solitons that grow by mitosis (cell-division). After the space is filled, solitons rearrange
into hexagonal grids, sometimes with grain boundaries. Eventually, all movement stops and the pattern is in
a steady state. Type epsilon (ε) differs from this by having "overcrowding" and die-outs, and never reaching
a steady state. Types eta (η), theta (θ), and mu (μ) differ from this by having stripes. """,
'file_stub': "lambda(left)",
'cmap': {'a': "seismic", 'b': 'seismic'},
'factors': {
'Da': 1.0,
'Db': 0.5,
'f': 0.026,
'k': 0.061
},
'scaling': {
"a": {
'icl': 0.25,
'im': 0.6025,
'icu': 1
},
"b": {
'icl': 0.0,
'im': 0.22,
'icu': 0.44
},
}
},
'kappa_right': {
'description': """Stripes in isolation grow width-wise (usually by developing meanders to grow longer and
more serpentine); some irregular blue shapes grow into corals. The final state is mostly all stripes,
often with branching, and usually in multiple disjoint sets (hedgerow mazes). Type theta (θ) differs from
this by having a stable blue state, and stripes that are more likely to join. Type mu (μ) differs from
this by the fact that small blue spots turn into a worm, rather than growing out in all directions to
form a ring or coral. Type eta (η) differs from this by having shorter stripes/worms and many solitons,
and oscillation in the ∂u/∂t component. This evolves more slowly than the other models""",
'file_stub': "kappa(right)",
'cmap': {'a': "seismic", 'b': 'seismic'},
'factors': {
'Da': 1.0,
'Db': 0.5,
'f': 0.058,
'k': 0.063
},
'scaling': {
"a": {
'icl': 0.3,
'im': 0.6,
'icu': 1
},
"b": {
'icl': 0.0,
'im': 0.22,
'icu': 0.44
},
}
},
'kappa_left': {
'description': """Stripes in isolation grow width-wise (usually by developing meanders to grow longer and
more serpentine); some irregular blue shapes grow into corals. The final state is mostly all stripes,
often with branching, and usually in multiple disjoint sets (hedgerow mazes). Type theta (θ) differs from
this by having a stable blue state, and stripes that are more likely to join. Type mu (μ) differs from
this by the fact that small blue spots turn into a worm, rather than growing out in all directions to
form a ring or coral. Type eta (η) differs from this by having shorter stripes/worms and many solitons,
and oscillation in the ∂u/∂t component.""",
'file_stub': "kappa(left)",
'cmap': {'a': "seismic", 'b': 'seismic'},
'factors': {
'Da': 1.0,
'Db': 0.5,
'f': 0.050,
'k': 0.063
},
'scaling': {
"a": {
'icl': 0.3,
'im': 0.6,
'icu': 1
},
"b": {
'icl': 0.0,
'im': 0.211,
'icu': 0.422
},
}
},
'iota': {
'description': """Negative spots (negatons) with molecule-like interaction; solitary negatons are not viable.
This pattern class is closely related to type pi (π), which also supports linear and other shapes.""",
'file_stub': "iota",
'cmap': {'a': "seismic", 'b': 'seismic'},
'factors': {
'Da': 1.0,
'Db': 0.5,
'f': 0.046,
'k': 0.0594
},
'scaling': {
"a": {
'icl': 0.28,
'im': 0.64,
'icu': 1
},
"b": {
'icl': 0.0,
'im': 0.2,
'icu': 0.4
},
}
},
'theta_right': {
'description': """Blue spots grow into concentric rings; stripes in isolation grow width-wise into
parallel or crosswise stripes. Final state is mostly all stripes (sometimes with a few solitons),
usually with branching and can be fully connected (network of loops). At lower F values there can
be long-lasting oscillation in the ∂u/∂t component, or the system might never stop changing. Type
gamma (γ) differs from this by having die-out events and unending oscillation in ∂u/∂t. Type kappa (κ)
differs from this by having no stable blue state, and stripes that are less likely to join.
Type eta (η) differs from this by having positive rather than negative spots and stripes.
Pearson [1] misidentified one test as type θ: the parameters (F, k) = (0.03, 0.059) actually yield
something like type gamma (γ) but with no die-out events.""",
'file_stub': "theta(right)",
'cmap': {'a': "seismic", 'b': 'seismic'},
'factors': {
'Da': 1.0,
'Db': 0.5,
'f': 0.038,
'k': 0.061
},
'scaling': {
"a": {
'icl': 0.25,
'im': 0.6125,
'icu': 1
},
"b": {
'icl': 0.0,
'im': 0.2,
'icu': 0.4
},
}
},
'theta_left': {
'description': """Blue spots grow into concentric rings; stripes in isolation grow width-wise into
parallel or crosswise stripes. Final state is mostly all stripes (sometimes with a few solitons),
usually with branching and can be fully connected (network of loops). At lower F values there can
be long-lasting oscillation in the ∂u/∂t component, or the system might never stop changing. Type
gamma (γ) differs from this by having die-out events and unending oscillation in ∂u/∂t. Type kappa (κ)
differs from this by having no stable blue state, and stripes that are less likely to join.
Type eta (η) differs from this by having positive rather than negative spots and stripes.
Pearson [1] misidentified one test as type θ: the parameters (F, k) = (0.03, 0.059) actually yield
something like type gamma (γ) but with no die-out events.""",
'file_stub': "theta(left)",
'cmap': {'a': "seismic", 'b': 'seismic'},
'factors': {
'Da': 1.0,
'Db': 0.5,
'f': 0.030,
'k': 0.057
},
'scaling': {
"a": {
'icl': 0.25,
'im': 0.6125,
'icu': 1
},
"b": {
'icl': 0.0,
'im': 0.19,
'icu': 0.38
},
}
},
'eta': {
'description': """Similar to type gamma (γ), but instead of all stripes there is a mixture of spots and worms.
Any longer or more serpentine stripes will break up into short pieces. Ongoing activity includes low-level
oscillation seen in the ∂u/∂t component, and spots occasionally splitting off and/or rejoining the worms;
but the system always reaches a steady state if run for longer than the 200,000 tu in Pearson's experiments [1].
Type gamma (γ) differs from this by never reaching stability. Type theta (θ) differs from this by having
negative spots and stripes, rather than positive. Type kappa (κ) differs from this by being mostly stripes/worms,
including long and/or convoluted stripes, and by having no oscillation in the ∂u/∂t component or by settling
down to a steady state more quickly. Type mu (μ) differs from this by having no oscillation in the ∂u/∂t
component, and almost no spots/solitons. """,
'file_stub': "eta",
'cmap': {'a': "seismic", 'b': 'seismic'},
'factors': {
'Da': 1.0,
'Db': 0.5,
'f': 0.034,
'k': 0.063
},
'scaling': {
"a": {
'icl': 0.25,
'im': 0.55,
'icu': 0.85
},
"b": {
'icl': 0.0,
'im': 0.2,
'icu': 0.4
},
}
},
'zeta_right': {
'description': """Very similar to type epsilon (ε), but viable spots are generally more symmetrical and more
stable, and the disturbances that cause spots to die are limited to a smaller percentage of the domain at any
given time. In some ζ patterns these areas of disturbance travel slowly rather than appearing suddenly at
random. There is also a subtle oscillation (seen in the ∂u/∂t component in the examples). Type epsilon (ε)
has more volatile spots and constant overcrowding die-outs; type lambda (λ) has no die-outs at all. """,
'file_stub': "zeta(right)",
'cmap': {'a': "seismic", 'b': 'seismic'},
'factors': {
'Da': 1.0,
'Db': 0.5,
'f': 0.022,
'k': 0.061
},
'scaling': {
"a": {
'icl': 0.25,
'im': 0.55,
'icu':0.85
},
"b": {
'icl': 0.0,
'im': 0.18,
'icu': 0.36
},
}
},
'zeta_left': {
'description': """Very similar to type epsilon (ε), but viable spots are generally more symmetrical and more
stable, and the disturbances that cause spots to die are limited to a smaller percentage of the domain at any
given time. In some ζ patterns these areas of disturbance travel slowly rather than appearing suddenly at
random. There is also a subtle oscillation (seen in the ∂u/∂t component in the examples). Type epsilon (ε)
has more volatile spots and constant overcrowding die-outs; type lambda (λ) has no die-outs at all. """,
'file_stub': "zeta(left)",
'cmap': {'a': "seismic", 'b': 'seismic'},
'factors': {
'Da': 1.0,
'Db': 0.5,
'f': 0.022,
'k': 0.061
},
'scaling': {
"a": {
'icl': 0.25,
'im': 0.65,
'icu': .85
},
"b": {
'icl': 0.00,
'im': 0.18,
'icu': 0.36
},
}
},
'epsilon_right': {
'description': """Spatial-temporal chaos composed mainly of spots (resembling solitons but unstable).
Rings can grow until they contact something else; spots with less symmetry tend to live longer and
split via mitosis. Spots continually crowd each other out; after regions are opened up by die-outs;
other spots on the boundary of the newly opened region quickly fill it in again. Type alpha (α)
differs from this by having no rings or symmetrical (round) spots. Type lambda (λ) differs from
this by having no overcrowding or die-outs. Type zeta (ζ) differs by having spots that are somewhat
less volatile, reproducing in a more symmetrical way and being more long-lived, though die-outs still
occur. Pearson [1] misidentified two tests as type ε: the parameters (F, k) = (0.025, 0.0625) and
(0.03, 0.0625) both yield type lambda (λ) behaviour.""",
'file_stub': "epsilon(right)",
'cmap': {'a': "seismic", 'b': 'seismic'},
'factors': {
'Da': 1.0,
'Db': 0.5,
'f': 0.018,
'k': 0.055
},
'scaling': {
"a": {
'icl': 0.2,
'im': 0.6,
'icu': 1
},
"b": {
'icl': 0.00,
'im': 0.21,
'icu': 0.42
},
}
},
'epsilon_left': {
'description': """Spatial-temporal chaos composed mainly of spots (resembling solitons but unstable).
Rings can grow until they contact something else; spots with less symmetry tend to live longer and
split via mitosis. Spots continually crowd each other out; after regions are opened up by die-outs;
other spots on the boundary of the newly opened region quickly fill it in again. Type alpha (α)
differs from this by having no rings or symmetrical (round) spots. Type lambda (λ) differs from
this by having no overcrowding or die-outs. Type zeta (ζ) differs by having spots that are somewhat
less volatile, reproducing in a more symmetrical way and being more long-lived, though die-outs still
occur. Pearson [1] misidentified two tests as type ε: the parameters (F, k) = (0.025, 0.0625) and
(0.03, 0.0625) both yield type lambda (λ) behaviour.""",
'file_stub': "epsilon(left)",
'cmap': {'a': "seismic", 'b': 'seismic'},
'factors': {
'Da': 1.0,
'Db': 0.5,
'f': 0.018,
'k': 0.055
},
'scaling': {
"a": {
'icl': 0.15,
'im': 0.57,
'icu': 1
},
"b": {
'icl': 0.00,
'im': 0.23,
'icu': 0.46
},
}
},
'delta_right': {
'description': """Includes true Turing patterns and many parameter values that produce similar patterns
through a presumably related effect. The true Turing pattern arises from a starting pattern that is all blue,
with arbitrarily small noise or other irregularities. In "Turing-similar" systems, a pattern cannot arise
from an all-blue starting state, instead they need to be "seeded" by a large amplitude disturbance (anything
non-blue and at least as large as a typical negaton will usually suffice); and the pattern grows outward
from the disturbance. In either case, the resulting pattern is a hexagonal array of negative spots, possibly
with some stripes in place of rows of spots, and with grain boundaries that are asymptotically stable. """,
'file_stub': "delta(right)",
'cmap': {'a': "seismic", 'b': 'seismic'},
'factors': {
'Da': 1.0,
'Db': 0.5,
'f': 0.042,
'k': 0.059
},
'scaling': {
"a": {
'icl': 0.27,
'im': 0.635,
'icu': 1.0
},
"b": {
'icl': 0.00,
'im': 0.2,
'icu': 0.4
},
}
},
'delta_left': {
'description': """Includes true Turing patterns and many parameter values that produce similar patterns
through a presumably related effect. The true Turing pattern arises from a starting pattern that is all blue,
with arbitrarily small noise or other irregularities. In "Turing-similar" systems, a pattern cannot arise
from an all-blue starting state, instead they need to be "seeded" by a large amplitude disturbance (anything
non-blue and at least as large as a typical negaton will usually suffice); and the pattern grows outward
from the disturbance. In either case, the resulting pattern is a hexagonal array of negative spots, possibly
with some stripes in place of rows of spots, and with grain boundaries that are asymptotically stable. """,
'file_stub': "delta(left)",
'cmap': {'a': "seismic", 'b': 'seismic'},
'factors': {
'Da': 1.0,
'Db': 0.5,
'f': 0.030,
'k': 0.055
},
'scaling': {
"a": {
'icl': 0.29,
'im': 0.51,
'icu': 0.73
},
"b": {
'icl': 0.02,
'im': 0.16,
'icu': 0.3
},
}
},
'beta_right': {
'description': """Spatial-temporal chaos with localised red and blue state in different spots at different
times. This looks like waves on a blue ocean with periodic red "voids" that open up suddenly and then
quickly fill in with blue. """,
'file_stub': "beta(right)",
'cmap': {'a': "seismic", 'b': 'seismic'},
'factors': {
'Da': 1.0,
'Db': 0.5,
'f': 0.026,
'k': 0.051
},
'scaling': {
"a": {
'icl': 0.35177,
'im': 0.35180,
'icu': 0.35184
},
"b": {
'icl': 0.21886,
'im': 0.218875,
'icu': 0.21889
},
}
},
'beta_left': {
'description': """Spatial-temporal chaos with localised red and blue state in different spots at different
times. This looks like waves on a blue ocean with periodic red "voids" that open up suddenly and then
quickly fill in with blue. """,
'file_stub': "beta(left)",
'cmap': {'a': "seismic", 'b': 'seismic'},
'factors': {
'Da': 1.0,
'Db': 0.5,
'f': 0.014,
'k': 0.039
},
'scaling': {
"a": {
'icl': 0.27,
'im': 0.28,
'icu': 0.29
},
"b": {
'icl': 0.18,
'im': 0.19,
'icu': .2
},
}
},
'alpha_right': {
'description': """patial-temporal chaos composed mainly of wavelets and "fledgling spirals" that repeatedly
grow and/or multiply and quickly annihilate upon hitting another object.Type epsilon (ε) differs from this by
supporting rings, spot mitosis, and longer-lived clumps of spots..""",
'file_stub': "alpha(right)",
'cmap': {'a': "seismic", 'b': 'seismic'},
'factors': {
'Da': 1.0,
'Db': 0.5,
'f': 0.014,
'k': 0.053
},
'scaling': {
"a": {
'icl': 0.1,
'im': 0.5,
'icu': 1.0
},
"b": {
'icl': 0.,
'im': 0.2,
'icu': 0.4
},
}
},
'alpha_left': {
'description': """patial-temporal chaos composed mainly of wavelets and "fledgling spirals" that repeatedly
grow and/or multiply and quickly annihilate upon hitting another object.Type epsilon (ε) differs from this by
supporting rings, spot mitosis, and longer-lived clumps of spots..""",
'file_stub': "alpha(left)",
'cmap': {'a': "seismic", 'b': 'seismic'},
'factors': {
'Da': 1.0,
'Db': 0.5,
'f': 0.010,
'k': 0.047
},
'scaling': {
"a": {
'icl': 0.05,
'im': 0.5,
'icu': 1.0
},
"b": {
'icl': 0.,
'im': 0.2,
'icu': 0.4
},
}
},
'gamma_left' : {
'description': """Stripe either wormlike or branching, with endless instability in the form of
occasional changes due to overcrowding, grain boundary instabilities, or other localised events,
and oscillation in the ∂u/∂t component.""",
'file_stub': "gamma(left)",
'cmap': {'a': "seismic", 'b': 'seismic'},
'factors':{
'Da' : 1.0,
'Db' : 0.5,
'f' : 0.022,
'k' : 0.051
},
'scaling' : {
"a": {
'icl': 0.27,
'im': 0.42,
'icu': 0.70
},
"b": {
'icl': 0.17,
'im': 0.23,
'icu': 0.29
},
}
},
'gamma_right': {
'description': """Stripe either wormlike or branching, with endless instability in the form of
occasional changes due to overcrowding, grain boundary instabilities, or other localised events,
and oscillation in the ∂u/∂t component.""",
'file_stub': "gamma(right)",
'cmap': {'a': "seismic", 'b': 'seismic'},
'factors': {
'Da': 1.0,
'Db': 0.5,
'f': 0.026,
'k': 0.055
},
'scaling': {
"a": {
'icl': 0.25,
'im': 0.55,
'icu': 0.85
},
"b": {
'icl': 0.0,
'im': 0.17,
'icu': 0.34
},
}
}
}