Have a personal or library account? Click to login
pycalphad: CALPHAD-based Computational Thermodynamics in Python Cover

pycalphad: CALPHAD-based Computational Thermodynamics in Python

By: Richard Otis and  Zi-Kui Liu  
Open Access
|Jan 2017

Figures & Tables

jors-4-140-g1.png
Figure 1

General architecture of the pycalphad software package. Using parameters from the given Database, a Model object is constructed for each phase and then fed into the calculation engine to produce results for the user.

jors-4-140-g2.png
Figure 2

Creating a custom model in pycalphad involves creating a subclass of the Model class. The key step is declaring the contributions class attribute. The CustomModel subclass can then be passed as an argument to calculate() and equilibrium().

jors-4-140-g3.png
Figure 3

This is a summary of the result object returned by a call to equilibrium() when performing a 2-D mapping calculation. The “Dimensions” line indicates the shape of the array, with each dimension having a label and corresponding size. In this case, equilibria at 170 temperatures and 100 compositions are computed for a two component system. The “internal dof” dimension corresponds to the site fractions of a phase. The “vertex” dimension corresponds to the vertices of a tie simplex (tie-line in binary systems). The “Data Variables” section contains the actual result of the calculation, with the corresponding dimensions of each property array listed in parentheses, followed by the rst few values. The “Attributes” section contains some metadata about the calculation.

jors-4-140-g4.png
Figure 4

Equilibrium chemical potential of Fe as a function of Al composition in the Al-Fe system at 600 K, computed using pycalphad. Each point is color-coded with the corresponding stable phase; coexistence regions can be identied by the chemical potential remaining at across a range of composition. The end-points of such an iso-potential region can be directly connected to the corresponding tie-line at the given temperature.

jors-4-140-g5.png
Figure 5

Phase diagram of the Al-Fe system according to the COST 507 database, computed using pycalphad. The solid black lines in the B2 region correspond to lines of constant “degree of ordering” in the B2 phase. The grey dashed line is the Curie temperature. The bcc ordering transition is second-order since the degree of ordering is continuously changing with respect to composition and temperature. Some lines in the diagram are not smooth due to the coarseness of the grid used in the calculation; mapping in pycalphad is still experimental.

jors-4-140-g6.png
Figure 6

Source code for the Al-Fe chemical potential calculation in Figure 4.

jors-4-140-g7.png
Figure 7

Source code for the Al-Fe phase diagram in Figure 5.

DOI: https://doi.org/10.5334/jors.140 | Journal eISSN: 2049-9647
Language: English
Submitted on: Aug 9, 2016
Accepted on: Nov 10, 2016
Published on: Jan 9, 2017
Published by: Ubiquity Press
In partnership with: Paradigm Publishing Services
Publication frequency: 1 issue per year

© 2017 Richard Otis, Zi-Kui Liu, published by Ubiquity Press
This work is licensed under the Creative Commons Attribution 4.0 License.