Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/samuelhoover/spinodal-decomposition

Python code to model spinodal decomposition using the Cahn-Hilliard equation.
https://github.com/samuelhoover/spinodal-decomposition

cahn-hilliard numerical-analysis polymer-physics

Last synced: 2 days ago
JSON representation

Python code to model spinodal decomposition using the Cahn-Hilliard equation.

Awesome Lists containing this project

README

        

# spin-decomp.py

## Usage

Run `python spin-decomp.py` to generate animations for the time evolution of
the Cahn-Hilliard equation using the forward Euler method.

Pass the model parameters into the `main()` function.

$D = 200$, $\gamma = 0.5$, and 50/50 mixture ($p = 0$).

$D = 200$, $\gamma = 0.5$, and 70/30 mixture ($p = 0.4$) with Ostwald ripening evident.

## Dependencies

NumPy
SciPy
Matplotlib
Pillow