Skip to content

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

License

Notifications You must be signed in to change notification settings

samuelhoover/spinodal-decomposition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Languages