TuringPatterns.jl

A package for making multi-scale Turing patterns.
Author yurivish
Popularity
11 Stars
Updated Last
1 Year Ago
Started In
October 2017

Multi-Scale Turing Patterns

A quick example:

using TuringPatterns

sz = (200, 200)

patterns = [
    SimplePattern(Params(2,   4,   0.01), sz),
    SimplePattern(Params(5,   10,  0.02), sz),
    SimplePattern(Params(10,  20,  0.03), sz),
    SimplePattern(Params(20,  40,  0.04), sz),
    SimplePattern(Params(50,  100, 0.05), sz),
]

saveframe(
    simulate(
        rand(sz...),    # initial conditions
        patterns,    # patterns
        BoxBlur(sz), # blur
        100          # iterations
    ),
    "picture.png"
)

# `open` on macOS or `xdg-open` on linux
run(`open picture.png`)

You should see something like this:

A multi-scale Turing pattern

Integration with GeoStats.jl

Multiple images can be generated using:

using GeoStats
using TuringPatterns
using Plots

# define simulation problem for a variable "z"
# request 3 realizations (i.e. images)
problem = SimulationProblem(RegularGrid{Float64}(200,200), :z => Float64, 3)

# solve problem with Turing patterns solver
solution = solve(problem, TPS())

plot(solution)

GeoStats.jl solution

References

Used By Packages

No packages found.