TC-Toolbox Property Model Examples
Read more on our website about Property Models, including information about the material specific Model Libraries (i.e steel, nickel, titanium, etc.), as well as how to create your own custom models in TC‑Python. If you are in Thermo‑Calc, press F1 to search the help.

File name: matex_PM_01_Property_model_interfacial_energy.m
This example shows how to run a property model to calculate the interfacial energy. The Thermo-Calc Property Model uses a broken-bond approach. Any other pre-installed or user-defined Property Model created in Thermo-Calc can be loaded and used in the same way as in this example.
This example shows how to run a property model from TC-Python to calculate the interfacial energy. The Thermo-Calc Property Model uses a broken-bond approach. Any other pre-installed or user-defined Property Model created in Thermo-Calc can be loaded and used in the same way as in this example.
The details of a property model (arguments, result quantities, and so forth) are defined in the Thermo-Calc Property Model and are not known to TC-Toolbox in advance. Therefore, when using property models, the workflow differs compared to other TC-Toolbox modules. The available arguments need to be queried by using the respective `get_...()`- method. This requires some interactive development style until a first working version of the code is set up.

File name: matex_PM_2_Property_model_parameter_fitting.mlx
The file type suffix mlx
demonstrates using Live Scripts, not regular scripts.
This example shows how to optimize the parameters of a property model. Typically this approach is used in order to fit a property model to experimental data. That can be useful for any application where no analytical correlation between the input parameters (composition, temperature and other parameters) and the material property can be established.
Examples might be solid solution strength models or martensite temperature models where the transformation barrier is modeled.
For the purpose of this example, the linear fitting to noisy data is shown.
A 'model parameter' is a value that can be changed from the outside of the model in the way demonstrated here. Internally it can be represented in any way; the only requirement is that the property model implements the 'Python Property Model Development Framework' interface methods :func:`provide_model_parameters()`
and :func:`set_model_parameter()`
.

File name: matex_PM_4_Property_model_YS_simplified_mode_vs_advanced_mode.m
This example shows how to call the Yield Strength model using the Simplified and Advanced modes.
It is based on the Graphical Mode example "PM_G_04_Yield_Strength", which is included with the Thermo-Calc installation.
The details of a property model (arguments, result quantities, and so forth) are defined in the Thermo-Calc Property Model and are not known to TC-Toolbox in advance. Therefore, when using property models, the workflow differs compared to other TC-Toolbox modules. The available arguments need to be queried by using the respective `get_...()`- method. This requires some interactive development style until a first working version of the code is set up.