Expert guidance for pycalphad - computational thermodynamics library implementing the CALPHAD method for calculating phase diagrams, phase equilibria, and thermodynamic properties of multicomponent materials systems using thermodynamic databases (TDB files)
This skill provides expert guidance for using pycalphad, a Python library for computational thermodynamics based on the CALPHAD (CALculation of PHAse Diagrams) method.
pycalphad is an open-source Python library that enables researchers to:
This skill is automatically invoked when you:
SKILL.md: Comprehensive guide covering all aspects of pycalphad
QUICK_REFERENCE.md: Condensed reference for quick lookups
Phase Diagram Calculations
Equilibrium Calculations
Thermodynamic Properties
Advanced Analysis
pip install pycalphad
from pycalphad import Database, binplot
import matplotlib.pyplot as plt
# Load database and plot binary phase diagram
db = Database('alzn.tdb')
binplot(db, ['AL', 'ZN', 'VA'], ['LIQUID', 'FCC_A1', 'HCP_A3'],
conditions={'P': 101325, 'T': (300, 1000, 10), 'X(ZN)': (0, 1, 0.01)})
plt.show()
If you publish work using pycalphad, please cite:
Otis, R. & Liu, Z.-K., (2017). pycalphad: CALPHAD-based Computational Thermodynamics in Python. Journal of Open Research Software. 5(1), p.1. DOI: http://doi.org/10.5334/jors.140
This skill is part of the skillz repository. To suggest improvements or report issues, please open an issue or pull request at the repository.
Category:science-education