Giter Site home page Giter Site logo

python_gs's Introduction

Python implemenation of Gray-Scott Model

MIT License

Summary

A simulation of Gray-Scott model which is one of the famous reaction-diffusion systems. There two components in the system, u and v.

The governing equation is as follows.

eq.png

  • Du, Dv: diffusion constants for u and v
  • F, k: some constants

The above system denotes the chemical reaction of U + 2 V -> 3V and V -> P. We choose (Du, Dv, F, k) as (0.1, 0.05, 0.04, 0.06075).

Usage

Run the following command.

python gs.py

Then you will have the following image.

output.png

If you want some animation, run the following.

pythong gs_anime.py

Then you will have images from gs_00.png to gs_99.png. Some of them look as follows.

gs_00.png gs_25.png gs_50.png gs_75.png gs_99.png

You can generate animation gif by some tool such as ImageMagick.

convert gs*.png gs.gif

python_gs's People

Contributors

kaityo256 avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.