Author: E. Cappellari (elisa.cappellari@polimi.it)
OpenCalphad is a free thermodynamic software for calculation of multicomponent equilibria, property and phase diagrams and for database development. It has a simple command line interface and an Application Software Interface (OCASI) for integration in simulation software. For simulations it can calculate equilibria in parallel using OpenMP.
This repository is a derivative of OpenCalphad (OC), created and maintained by Bo Sundman.
It bundles a subset of the source tree forked at OC version 6.116 (commit 76a0482, 2026-05-16), adapted so OpenCalphad can be embedded as a library for Sciantix.
OpenCalphad is licensed under the GNU General Public License. The original version of OpenCalphad can be downloaded from http://opencalphad.org either as a zip file or as a precompiled installation for Windows.
The change with respect to the original repository can be reproduced at any time as follows:
git clone https://github.com/sundmanbo/opencalphad.git
git -C opencalphad checkout 76a0482
diff -r opencalphad/src opencalphad-for-sciantix/src
diff -r opencalphad/OCisoCbinding opencalphad-for-sciantix/OCisoCbindingMake OC non-interactive for library use. OC's command-line interface blocks on read(*,...) prompts (e.g. "Press return to continue") in several places. When OC runs embedded inside Sciantix there is no terminal to respond to these, so they were removed or made conditional:
src/utilities/metlib4.F90OCisoCbinding/liboctq.F90src/models/gtp3B.F90,src/models/gtp3E.F90,src/models/gtp3EY.F90
Re-initialization and new C API entry points for Sciantix. Sciantix needs to reset and re-drive OC within a single process (e.g. switching between thermodynamic databases):
src/models/gtp3A.F90src/models/gtp3B.F90OCisoCbinding/liboctqisoc.F90
Other.
src/pmain1.F90only differs in its build-time link-date stampMakefilewas rewritten for this repository's build layout.
Most of the changes above are tagged SCIANTIX-MOD in the source (grep -rn SCIANTIX-MOD src OCisoCbinding). A few informational write statements in OCisoCbinding/liboctq.F90 and liboctqisoc.F90 were also commented out to keep OC quiet when coupled; error/warning messages were left untouched.
- OpenCalphad: Copyright 2009-2026, Bo Sundman, Gif sur Yvette, France (bo.sundman@gmail.com). GPL-2.0-or-later per source headers; this repo bundles GPLv3 both as
LICENSE(text) andGNU-GPL-v3.pdf(unmodified copy from upstream). If used in published work, cite Sundman et al., Int Mat Manu Innov 4:1 (2015); Comp Mat Sci 101:127 (2015); Calphad 75:102330 (2021). - Bundled third-party code, unmodified: MINPACK (Univ. of Chicago/Argonne, BSD-style), a LAPACK/BLAS 3.6.0 extract (netlib.org), tinyfiledialogs (zlib, Guillaume Vareille), GETKEY (John S. Urban).
OCisoCbinding/also carries contributions from Teslos, Matthias Stratmann, Christophe Sigli, Romain Le Tellier and Clément Introïni (see file headers).- Local modifications in this repository: E. Cappellari (elisa.cappellari@polimi.it), under the same license.