pycalphad

Compute phase diagrams and equilibria from CALPHAD TDB databases.

34|7|Updated Nov 29, 2025
One-click install
npx skills add https://github.com/jkitchin/skillz --skill pycalphad
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pycalphad
Source: https://github.com/jkitchin/skillz/tree/main/skills/programming/pycalphad
Command: npx skills add https://github.com/jkitchin/skillz --skill pycalphad

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enables computational thermodynamics using pycalphad to build phase diagrams, compute equilibria, and derive thermodynamic properties from CALPHAD databases.

Core Features & Use Cases

  • Phase diagram construction (binary/ternary/multicomponent)
  • Equilibrium calculations and property maps
  • Driving force, metastability, and phase stability analysis
  • Working with CALPHAD databases (TDB)
  • Visualization utilities for phase diagrams

Quick Start

Load a binary database and plot a simple phase diagram.

Frequently Asked Questions about pycalphad

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

FAQPage Schema
How do I compute phase diagrams from CALPHAD databases?

Phase diagrams are computed by performing Gibbs energy minimization across temperature, pressure, and composition grids using CALPHAD thermodynamic databases. pycalphad reads Thermo-Calc style TDB files and calculates equilibrium phase assemblies, outputting phase names, compositions, and mole fractions for binary, ternary, and multicomponent systems.

Can I calculate equilibrium properties like chemical potential and activity from TDB files?

Yes. pycalphad performs Gibbs energy minimization on CALPHAD databases to calculate chemical potentials, activities, Gibbs energy, enthalpy, entropy, and heat capacity across specified temperature, pressure, and composition conditions, enabling thermodynamic property mapping.

How do I analyze phase stability and driving force in multicomponent systems?

Driving force and metastability analyses quantify the thermodynamic distance between phases at given conditions. pycalphad computes these by evaluating Gibbs energy surfaces and phase equilibria, helping identify energetically favorable phases and predict phase transformations in binary through multicomponent systems.

What thermodynamic data and file formats does pycalphad support?

pycalphad reads Thermo-Calc style TDB (thermodynamic database) files containing CALPHAD descriptions of phases, elements, and compounds. It handles vacancies, ordered phases, and multicomponent interactions, outputting standard thermodynamic properties: NP, X, MU, GM, HM, SM, CPM, and ACR data.

Do I need prior thermodynamics knowledge to build phase diagrams with pycalphad?

Understanding CALPHAD methodology and phase equilibrium concepts strengthens workflow design, but pycalphad provides standard APIs—Database, equilibrium, calculate, binplot—that abstract complexity. Start with binary systems and preexisting TDB databases to learn by example.

What's the difference between calculating single equilibrium points versus constructing full phase diagrams?

Single-point calculations return equilibrium state at one T-P-X condition; full phase diagrams sweep grids across temperature, pressure, and composition to map phase regions and boundaries. pycalphad supports both: calculate() for points and binplot() for visualization across composition and temperature ranges.