/atomistic-skills:mat-phase-field-non-conservativefrom Atomistic Skills
Simulates non-conservative phase-field evolution (grain growth, phase transformations) using the Allen-Cahn equation. Runs curvature-driven boundary migration 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 structural transformations (like solidification, melting, or curvature-driven grain growth) using the Allen-Cahn (time-dependent Ginzburg-Landau) equation. This tracks a non-conservative order parameter $\phi$ which distinguishes between phases (e.g., solid vs. liquid).
The Allen-Cahn equation describes the evolution of a non-conserved order parameter $\phi$ down a free energy gradient: $$ \frac{\partial \phi}{\partial t} = -M \frac{\delta F}{\delta \phi} = M \left( \epsilon^2 \nabla^2 \phi - \frac{\partial f(\phi)}{\partial \phi} \right) $$ Where $M$ is the mobility, $\epsilon$ is the gradient energy coefficient controlling the interface thickness, and $f(\phi) = W \phi^2(1-\phi)^2$ is the double-well potential barrier between the two phases ($\phi=0$ and $\phi=1$).
Unlike Cahn-Hilliard, Allen-Cahn does not conserve the integral of $\phi$. It naturally drives systems to reduce their total interfacial area, resulting in curvature-driven boundary migration.
Use the provided script to set up a 2D grid containing a circular solid grain in a liquid matrix and observe its capillarity-driven shrinkage.
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/run_grain_growth.py \
--grid-size 100 \
--radius 30 \
--steps 200 \
--dt 0.1 \
--output grain_growth.gif
Parameters:
--grid-size: Number of grid points per dimension (e.g., 100 for a 100x100 2D grid).--radius: Initial radius of the circular grain in grid units.--steps: Total number of time steps to run.--dt: Time step size.--output: Filepath to save the resulting .gif animation or .png.A universal mathematical benchmark for the Allen-Cahn equation is proving that a circular domain shrinks at a rate proportional to its curvature (the $v = M \gamma K$ law). The area of the circle must decrease linearly with time.
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/run_grain_growth.py \
--grid-size 100 \
--radius 35 \
--steps 300 \
--dt 0.5 \
--output examples/benchmark-grain/classic_shrinking_grain.gif
See the examples/benchmark-grain/README.md for the expected output.
cpu environment. Each code block MUST specify the environment.dx must be small enough to resolve the diffuse interface (typically requiring at least 4-5 grid points across the interface controlled by $\epsilon$).Author: Bowen Deng
examples/benchmark-dendrite/README.md (opens in a new tab)examples/benchmark-dendrite/dendrite.gif (opens in a new tab)examples/benchmark-grain/README.md (opens in a new tab)examples/benchmark-grain/grain_growth.gif (opens in a new tab)examples/benchmark-grain/grain_growth_area_decay.png (opens in a new tab)scripts/run_dendrite_growth.py (opens in a new tab)scripts/run_grain_growth.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub learningmatter-mit/atomisticskills --plugin atomistic-skills133 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.Other plugins' skills for the same job