Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 575 Bytes

README.md

File metadata and controls

23 lines (14 loc) · 575 Bytes

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