TC-Python

TC-Python is a Python™ language-based SDK available with Thermo-Calc that allows users to openly couple Thermo-Calc calculations with other software. The SDK is built in the popular language PythonTM to give Thermo-Calc users access to many other programs, such as numerical packages like NumPy and SciPy, which can now be used in combination with our calculations. It is truly a tool for Integrated Computational Materials Engineering (ICME).

Key features of TC-Python include: 

  • Built in Python™ to give users access to many other programs. The language is also easier to start with than, for example, FORTRAN or C.
  • Uses intelligent code completion such as Microsoft's Intellisense® to help you more easily navigate through the available classes and methods.
  • Allows users to easily do parallel computations.
  • Takes an object-oriented approach, which makes it easier to reuse information (classes/methods) and more quickly run your calculations when you need to change the compositions.
  • Guides you through the process of setting up the simulation, using good default values when you are unsure of what to use and prompts you to add missing information, for example. This minimises the occurrence of errors and makes it an easy option even for those who do not have experience working with APIs.
  • Couples with other software programs such as numerical packages like NumPy and SciPy in a very open way, making it an integral part of the ICME framework .
  • Includes several examples with the installation which can be used to both learn about the use of TC-Python and as a way to build your own calculation simulation.
  • Once you have a license for TC-Python, the other software components are open source and have good development tools.

TC-Python is available starting with Thermo-Calc version 2018a and can be used with all operating systems supported by Thermo-Calc (Windows, Mac and Linux). 

Available Calculations

  • Single equilibrium calculations
  • Phase (map) diagrams
  • Property (step) diagrams
  • Scheil-Gulliver solidification calculations
  • Precipitation calculations - All of the precipitation calculations available in the Precipitation Module (TC-PRISMA) can now be integrated into your own programming workflow with TC-Python. This is the first Thermo-Calc SDK that can be used for precipitation calculations.

NOTE: Users who do not have a Precipitation module (TC-PRISMA) license can make precipitation calculations with up to three elements using the Precipitation module DEMO included in your software. 

Future Releases

Additional functionality, such as diffusion calculations and property models, will continue to be added in future releases.

Free Trial License 

We are offering a free trial license of TC-Python to all users with a valid Maintenance & Support Subscription until the end of 2018. If you have Thermo-Calc 2018a or newer, simply fill out the form below and we will contact you about your free trial license. 

License Information

To access your basic license information:

  1. From the Thermo-Calc menu, select Help>Show License Info.
  2. Copy all of the information in the License Information window.
    Make sure to scroll to the end as a lot of information may be shown below the initial screen.
    In Console Mode, you can also copy the same information by using the SYS module command DISPLAY_LICENSE_INFO.
  3. Paste the copied information in the form above. 

Installation

In order to run TC-Python, you must have Thermo-Calc 2018a or newer and you must install additional software programs. There are various ways to do this, but we recommend the following open source programs: 

  • Anaconda - Python distribution software
  • PyCharm Community - Integrated Development Environment (IDE) that makes it easy to get started writing code and gives you access to the Intellisense feature in the program

Detailed instructions are included in the TC-Python Quick Installation Guide