mat-phase-field-conservative

Simulate conservative spinodal decomposition with the Cahn-Hilliard equation in 2D.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Simulates conservative phase-field evolution for binary alloys, capturing spinodal decomposition and phase separation with the Cahn-Hilliard equation.

Core Features & Use Cases

  • Conservative phase-field dynamics: tracks a conserved concentration field over time to model phase separation physics.
  • Reproducible 2D benchmarks: produces classic bicontinuous “worm-like” morphologies suitable for validation-style runs.
  • On-demand visualization outputs: generates an animated GIF or a final image for immediate qualitative assessment.

Quick Start

Run the provided Cahn-Hilliard 2D spinodal decomposition script in the phasefield-agent environment to generate a morphology animation (or final frame) from a specified grid and time-stepping setup.

Frequently Asked Questions about mat-phase-field-conservative

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

FAQPage Schema
How do I simulate spinodal decomposition in a binary alloy using the Cahn-Hilliard equation?

You can simulate spinodal decomposition by running the provided FiPy-based solver script to evolve a conserved concentration field via the Cahn-Hilliard equation in 2D. This generates classic bicontinuous worm-like morphologies for validation studies.

Can I use FiPy to perform parameter sweeps for phase-field morphology visualization?

Yes, FiPy supports running parameter sweeps for phase-field morphology visualization by adjusting grid, spacing, and time-step controls in the solver script. Results are saved as .gif animations or .png images for immediate qualitative assessment.

What is conservative phase separation and when do I need a conserved concentration field model?

Conservative phase separation tracks a conserved concentration field over time to model phase separation physics in binary alloys. You need this approach when studying spinodal decomposition and coarsening phenomena where total material concentration must remain constant.

Do I need a specific conda environment to run Cahn-Hilliard 2D phase-field simulations?

Yes, you need the phasefield-agent conda environment to run the Cahn-Hilliard 2D phase-field simulation script. This environment provides the required FiPy solver along with numpy, matplotlib, imageio, and tqdm dependencies.

Does this Cahn-Hilliard solver support 2D grid and time-step controls for benchmark morphology generation?

Yes, the Cahn-Hilliard solver supports grid, spacing, and time-step controls for 2D phase-field simulations. This allows you to produce reproducible benchmark morphologies suitable for validation-style runs and qualitative comparisons.

Why are my phase-field simulation outputs not showing the expected bicontinuous morphology?

Incorrect grid spacing or time-step controls in the Cahn-Hilliard solver can prevent the conserved concentration field from evolving into the expected bicontinuous worm-like morphology. Verify your parameter sweep settings and ensure the phasefield-agent conda environment is active.