dummy-link

TuringPatterns

A package for making multi-scale Turing patterns.

Readme

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)

# solver with default parameters
solver = TuringPat()

solution = solve(problem, solver)

plot(solution)

GeoStats.jl solution

References

First Commit

10/19/2017

Last Touched

about 1 month ago

Commits

43 commits

Used By: