Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

pycalphad

Skill by K-Dense-AI

Computes finite-temperature CALPHAD equilibria, phase fractions, and phase compositions from TDB databases using pycalphad. Built for alloy phase stability, temperature sweeps, and reproducible phase-fraction checks.

  • Score 94
  • 58k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install pycalphad

Built from the published package, never by AI.

git clone --depth 1 https://github.com/K-Dense-AI/scientific-agent-skills /tmp/scientific-agent-skills && mkdir -p ~/.claude/skills && cp -r /tmp/scientific-agent-skills/skills/pycalphad ~/.claude/skills/pycalphad

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install pycalphad in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

pycalphad is an agent skill for computing finite-temperature CALPHAD equilibria from thermodynamic TDB databases with the pycalphad library. Given elemental mole fractions, a pressure, and a list of temperatures, it returns stable phases, phase fractions, and phase compositions. A bundled script runs the calculation locally, checks mass balance, repeats the run at doubled sampling density, and writes a JSON report and a CSV of equilibrium vertices.

The skill is aimed at researchers and engineers who study alloy phase stability, tie lines, or lever-rule checks and need reproducible phase-fraction results with explicit components and conditions. It ships a hypothetical teaching model, not an assessed Cu-Ni database. The source states that numerical checks do not establish experimental accuracy, so real materials need a suitable licensed database.

Written from the project's SKILL.md and checked against it.

What it can do

  • Equilibrium calculationComputes stable phases, phase fractions, and compositions at a fixed bulk composition and pressure.
  • Temperature sweepsRuns equilibria over up to 1000 explicit positive temperatures in one request.
  • Mass balance checksChecks phase fractions sum to one and reconstructed bulk composition matches the request.
  • Sampling stability checkRepeats the calculation at doubled phase-constitution sampling density and compares results.
  • Reproducible reportsExports a JSON report with database hash, settings, versions, and checks, plus a CSV of vertices.

What you need

  • Python 3.12 or later
  • pycalphad 0.11.2
  • NumPy
  • Network access for installation
  • A suitable licensed thermodynamic database for real-material predictions

Try asking

  • Run a pycalphad equilibrium for my Cu-Ni TDB at X(Ni)=0.5 from 900 K to 1300 K.
  • Check the lever-rule phase fractions for my alloy at 1100 K using this TDB.
  • Export the phase compositions and mass balance report for this equilibrium sweep.

Good to know

  • The bundled ideal-cu-ni.tdb is a hypothetical teaching model, not an assessed Cu-Ni database.
  • Does not predict precipitation rates, retained metastable microstructures, or properties of phases missing from the database.
  • Successful numerical checks do not establish the database's experimental accuracy.
  • URL database downloads are not supported; the Database loader reads local paths, file-like objects, or TDB text.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/pycalphad/SKILL.md, skills/pycalphad/scripts/equilibrate.py. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md8 KB
  • assets/equilibrium.json443 B
  • assets/ideal-cu-ni.tdb702 B
  • references/model-and-validation.md10 KB
  • scripts/equilibrate.py11 KB

Alternatives to pycalphad

All alternatives →

Compare with literature-search-arxiv, alphafold-database-fetch-and-analyze or quickgo-database

pycalphad: common questions

What does pycalphad compute?

According to the source, it computes finite-temperature CALPHAD equilibria, phase fractions, and phase compositions at a fixed bulk elemental mole composition and pressure. Results are constrained by the selected database, components, phases, and conditions.

Does the skill include a real Cu-Ni thermodynamic database?

No. The source says the bundled ideal-cu-ni.tdb is an original hypothetical teaching model and not an assessed Cu-Ni database. Users should supply their own database for real alloys.

Can it predict precipitation kinetics?

No. The source states the skill does not predict precipitation rates or retained metastable microstructures. It only computes constrained equilibrium results.

How do I install pycalphad?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is pycalphad free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is pycalphad safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to pycalphad?

Similar skills: literature-search-arxiv, alphafold-database-fetch-and-analyze, quickgo-database, peloton.

pycalphad Install

Add to stack

Loading.