Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/samuelhoover/spinodal-decomposition
- Owner: samuelhoover
- License: mit
- Created: 2023-06-01T03:47:34.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-27T22:28:06.000Z (about 1 month ago)
- Last Synced: 2024-11-27T23:25:18.452Z (about 1 month ago)
- Topics: cahn-hilliard, numerical-analysis, polymer-physics
- Language: Python
- Homepage:
- Size: 249 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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