/atomistic-skills:mat-phase-field-conservativefrom Atomistic Skills
Simulates spinodal decomposition and phase separation in binary alloys using the Cahn-Hilliard equation. Solves the 4th-order PDE with FiPy on a 2D grid.
Ships in Atomistic Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
To simulate the morphological evolution of spinodal decomposition (phase separation) in a binary alloy system using the Cahn-Hilliard equation. This skill solves the 4th-order partial differential equation to track the conservative concentration field $c(\mathbf{r}, t)$ over time.
The Cahn-Hilliard equation describes the evolution of a conserved concentration field $c$ down a free energy gradient: $$ \frac{\partial c}{\partial t} = \nabla \cdot \left( M \nabla \frac{\delta F}{\delta c} \right) $$ Where $M$ is the mobility, and $F$ is the Ginzburg-Landau free energy functional incorporating a double-well local potential $f(c) = a c^2(1-c)^2$ and a gradient energy penalty $\frac{\kappa}{2} |\nabla c|^2$.
Use the provided script to set up a 2D grid and solve the Cahn-Hilliard equation using FiPy.
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/run_spinodal_decomposition.py \
--grid-size 100 \
--dx 0.25 \
--steps 100 \
--dt 0.01 \
--output spinodal_output.gif
Parameters:
--grid-size: Number of grid points per dimension (e.g., 100 for a 100x100 2D grid).--dx: Size of each grid cell.--steps: Total number of time steps to run.--dt: Time step size. Use small values for stability unless using fully implicit solvers.--output: Filepath to save the resulting .gif animation or final .png image.To benchmark the solver and reproduce the classic interconnected "worm-like" bicontinuous morphology of spinodal decomposition:
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/run_spinodal_decomposition.py \
--grid-size 100 \
--steps 200 \
--dt 1e-2 \
--output examples/benchmark-spinodal/classic_spinodal.gif
See the examples/benchmark-spinodal/README.md for the expected output.
cpu environment. Each code block MUST specify the environment.dt, numerical instability may break conservation.Author: Bowen Deng
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
133 skills in this plugin
/chem-bond-dissociationCalculate homolytic and heterolytic bond dissociation energies (BDEs) for all single bonds in a molecule using MLIPs with RDKit fragmentation./chem-conformer-searchGenerate molecular conformers with RDKit ETKDG, relax with MLIPs, and rank by energy with Boltzmann weighting./chem-db-mofQuery multiple MOF databases (QMOF via MPContribs; ARC-MOF DB7/Majumdar et al. via Materials Cloud) and download CIF structures with optional element or identifier filters.npx claudepluginhub learningmatter-mit/atomisticskills --plugin atomistic-skillsOther plugins' skills for the same job