mat-phase-field-non-conservative

Simulate Allen-Cahn phase-field evolution for grain growth and dendrite formation.

144|21|Updated Jan 8, 2026
One-click install
npx skills add https://github.com/learningmatter-mit/AtomisticSkills --skill mat-phase-field-non-conservative
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mat-phase-field-non-conservative
Source: https://github.com/learningmatter-mit/AtomisticSkills/tree/main/.agents/skills/mat-phase-field-non-conservative
Command: npx skills add https://github.com/learningmatter-mit/AtomisticSkills --skill mat-phase-field-non-conservative

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires numpy, matplotlib, imageio, tqdm, fipy, scipy, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps you model how non-conservative phase domains evolve in time, capturing curvature-driven grain shrinkage and solid–liquid transformations using the Allen-Cahn equation.

Core Features & Use Cases

  • Allen-Cahn non-conservative phase-field modeling: Evolves a non-conserved order parameter to reduce interfacial energy and drive curvature-driven boundary motion.
  • Curvature-driven grain shrinkage demo: Runs a 2D circular grain in a liquid matrix and visualizes the expected shrinking behavior.
  • Dendrite growth simulation (Kobayashi-style): Produces dendritic morphologies with anisotropy and coupled thermal effects via a phase-field plus temperature evolution.

Quick Start

Run the grain shrinkage simulation by executing the provided script for the Allen-Cahn curvature-driven benchmark with your chosen grid size, radius, time steps, and output filename.

Frequently Asked Questions about mat-phase-field-non-conservative

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I simulate grain growth using the Allen-Cahn equation?

You can simulate grain growth by running the provided Python scripts for the Allen-Cahn non-conservative phase-field benchmark. The simulation evolves a non-conserved order parameter to reduce interfacial energy and outputs visualizations of curvature-driven grain shrinkage as GIFs or PNGs.

Can I model dendrite growth with anisotropy and thermal coupling using a phase-field approach?

Yes, you can model dendrite growth using the Kobayashi-style phase-field simulation included in the Skill. It couples phase-field evolution with thermal dynamics and anisotropy to produce dendritic morphologies and saves the results as reproducible visual outputs.

Do I need FiPy to run non-conservative phase-field simulations for materials modeling?

Yes, you need FiPy along with numpy, scipy, matplotlib, and imageio. These dependencies must be installed in the phasefield-agent environment to execute the numerical PDE scripts and generate visual outputs.

What is the difference between Allen-Cahn and Cahn-Hilliard equations for phase-field modeling?

The Allen-Cahn equation models non-conservative phase-field evolution, driving curvature-driven boundary motion for grain shrinkage. The Cahn-Hilliard equation handles conserved order parameters, whereas this Skill specifically focuses on non-conservative dynamics.

How do I visualize phase transformations and microstructure evolution in 2D?

You visualize phase transformations by executing the 2D benchmark scripts and generating outputs with matplotlib and imageio. The process produces reproducible visual outputs like PNGs or GIFs showing the evolving materials microstructure.

What are the limitations of using Allen-Cahn equations for solid-liquid transformations?

The Allen-Cahn equation is limited to non-conserved order parameters, making it suitable for curvature-driven grain shrinkage and solid-liquid transformations but unsuitable for conserved quantities like concentration fields found in spinodal decomposition.