Thermo Calc Documentation Set
Thermo Calc Documentation Set
About License Keys and Files 9 Step 5: Install the software and
start using Thermo-Calc 23
Standalone Installations (SUNLL) 10
Add New Components to an
Multi-User Network Installations Existing Installation 24
(NWL) 10
Custom Standalone Installation 24
Consolidated Network Installations 10
Step 1: Complete Steps 1 to 4 of
Distributed Network Installations 11 a typical standalone installation 24
License Installations on a Server Step 2: Select the installation
Network 12 type and what components to
install 24
Preparing for Installation 13
Step 3: Set the installation
First Steps of Installation 14
directory path, license file
Default Directory Locations 14 location and shortcuts 25
1 of 21
Step 2: Complete Steps 1 to 3 of Step 2: Complete Steps 1 to 4 of
a typical standalone installation28 a typical standalone installation 36
Step 3: Choose the installation Step 3: Choose the installation
type and enter the computer type and what to install 36
server details 28
Step 4: Set the installation
Step 4: Install the software and directory path to the license file36
components 28
Step 5: Specify the
Set Up the License Manager on configuration and create
Windows 29 shortcuts 37
Step 1: Install the Sentinel RMS Step 6: Install the software and
License Manager software 29 start using Thermo-Calc 37
Step 2: Choose the installation Unattended Network Client
directory 29 Installations 37
Step 3: Choose the setup type Step 1: Create an option file in
and install the software 30 a text editor to enter the
options 38
Step 4: Copy the license files to
the destination directory 30 Step 2: Go to the directory
where the installation file is
Step 5: Reboot or restart the stored 38
license manager 31
Request License Files 39
Set Up the License Server on Linux 31
Request a License File from
Step 1: Stop any older versions Thermo-Calc Software 40
of the License Server 32
Getting License Information Using
Step 2: Write a script to start Thermo-Calc 40
the License Server 33
Requesting the License File for
Step 3: Confirm the HOSTNAME Windows 41
variable and open the UDP port 33
Requesting the License File for Mac
Step 4: Start the License Server 33 OS 43
Thin Client Installations 34 Requesting the License File for
Custom Network Client Installations35 Linux 44
2 of 21
Determining the Current License Step 1: Download and run your
File Directory Path 49 Thermo-Calc installation
software 66
From Thermo-Calc 49
Step 2: Select the installation
Specifying a New Server Name or mode – typical or custom 66
IP Number 52
Step 3: Customize your
Changing the server name or installation 67
address (Windows) 53
Mac OS® Standalone Quick Install
Mac installations 53 Guide 68
Linux installations 53 Request a License File 68
MATLAB® Installation Directory 53 Install the Software 69
Firewalls 54 Step 1: Download and install
Client/Server Mismatch 54 XQuartz 69
3 of 21
Examples, Manuals and Materials Moving Nodes in the Tree and
Folders 11 Using the Grid 46
About the PDF Documentation 15 Zooming In and Out 47
About the Examples 16 Node Status Markers 48
Graphical Mode Examples 16 Graphical Mode Projects 50
Console Mode Examples 16 The Quick Start Wizard 51
About the Material Files 17 Creating a Project with the Quick
Start Wizard 51
Help Resources 23
Creating a Project from a Template53
The Thermo-Calc Modules and
Activities 24 Cloning Activities and Trees 54
Displaying Thermo-Calc License Performing Projects, Trees and
Information 28 Activities 56
Using This Guide 29 Using the Scheduler 57
The Graphical Mode Interface 31 The Event Log 58
The GUI Layout 32 Graphical Mode Activities 60
Project Activities and the Tree System Definer 61
Structure 33
The System Definer Settings 61
Activity Successor and Predecessor
Nodes 34 Creating a System Definer
Activity 67
Creating Activities and Successors 35
Property Model Calculator 68
Graphical Mode Workflow 37
Property Model Calculator
Main Menu and Toolbar 37 Workflow 69
Graphical Mode Menu and Toolbar Defining the Property Model
Options 38 Calculator 72
Saving and Opening Project Files 40 About the Uncertainty
Calculations 73
Project Activity Nodes 40
Phase Transition Model 77
Project and Activity Menus 42
Driving Force Model 78
Organising the Windows on the
Desktop 45 Interfacial Energy Model 78
4 of 21
Estimation of coherent About the Homogenization
interfacial energy 79 Functions 103
Coarsening Model 79 Precipitation Calculator 103
Equilibrium Model 81 Precipitation Calculator Settings 104
Equilibrium Calculator 82 Plot Renderer 108
Equilibrium Calculator The Configuration Window 109
Conditions Settings 83
Plotting Options 114
Setting Conditions for
Simplified Mode 83 About Legend Styles 117
Calculating with a Fixed Phase Adding and Editing Plot Labels 119
(Advanced Mode) 85 Label Formatting 120
Equilibrium Calculator Options Entering a Mixture of Plain
Settings 87 Text and Equations 120
Calculating and Plotting Rotation Angle and Show
Functions 90 Anchor 121
Diffusion Calculator 91 Changing the Plot Properties 122
Diffusion Module Options in Saving Plots 122
Graphical Mode 96
Plotting Several Calculations
Diffusion Simulation Template 96 in One Diagram 123
Using the Template 96 Adding Axes to a Diagram 124
Diffusion Calculator 97 Merging Plots into One
Demo Database Packages for Diagram 126
the Examples Collection 97 Results Window Status
Demonstration (Demo) Mode 98 Markers 128
5 of 21
Time 130 Typical POLY Module Workflow 152
Add and Remove Axes 130 Performing Calculations in
Console Mode 153
Precipitation Calculator Plot
Renderer 130 Using the Command Line Prompt 154
Plot Settings 131 Available SYS Module
Commands 154
Non-Isothermal Simulations 131
Moving Between Modules and
Points 132 Submodules 154
Time 132 Entering Command Names or
Excess Kurtosis 133 Abbreviations 155
6 of 21
Calculating an Equilibrium with Calculating a Paraequilibrium 191
Suspended or Dormant Phases 172
Potential Diagrams 194
Property Diagrams 173
About Potential Diagrams 195
About Property Diagrams 174
Calculating a Potential Diagram 195
Calculating and Plotting a
Property Diagram 174 Calculating a Potential Diagram
with Different Pressure 196
Calculating a Property Diagram
One Phase at a Time 176 Aqueous Solutions 198
7 of 21
Database Initialization File 219 Global Settings: Console Mode
Default Appearance 236
User Database Files 219
Technical Notes 237
About Cached Database Files
(Graphical Mode only) 220 Technical Note: Pipe or Redirect
Output Data from Console.exe 238
Editing the Database Initialization
File or Unencrypted Database File 221 Thermo-Calc Property Model
Development Framework 1
Best Practice Recommendations 221
Introduction to the Property Model
Database Checker 221 Development Framework 2
Changing Global Settings 223 Thermo-Calc Console Mode
General 224 Command Reference 1
8 of 21
AMEND_SELECTION 12 EXPERIMENT 44
APPEND_DATABASE 12 EXPORT 46
DATABASE_INFORMATION 14 FLUSH_BUFFER 47
DEFINE_ELEMENTS 14 GRAPHICS_PLOT 47
DEFINE_SPECIES 14 IMPORT 47
DEFINE_SYSTEM 15 LABEL_DATA 48
GET_DATA 16 LIST_ALL_EQUILIBRIA 48
LIST_DATABASE 16 LIST_CONDITIONS 49
LIST_SYSTEM 17 LIST_EQUILIBRIUM 49
NEW_DIRECTORY_FILE 17 LIST_STATUS 50
REJECT 18 LIST_SYMBOL 51
RESTORE 20 MAKE_POP_FILE 52
SET_AUTO_APPEND_DATABASE 21 READ 53
SWITCH_DATABASE 22 READ_WORKSPACES 53
EDIT_EXPERIMENTS Commands 25 REINITIATE_MODULE 54
Running the EDIT_EXPERIMENTS RESTORE_ALL_WEIGHTS 54
Command 27
SAVE_WORKSPACES 54
ADVANCED_OPTIONS 27
SELECT_EQUILIBRIUM 55
COMPUTE_ALL_EQUILIBRIA 36
SET_ALL_START_VALUES 55
COMMENT 37
SET_ALTERNATE_CONDITION 57
COMPUTE_ALL_EQUILIBRIA 37
SET_CONDITION 60
COMPUTE_EQUILIBRIUM 38
SET_NUMERICAL_LIMITS 62
CREATE_NEW_EQUILIBRIUM 40
SET_REFERENCE_STATE 63
DEFINE_COMPONENTS 40
SET_START_CONSTITUTION 65
DELETE_SYMBOL 41
SET_START_VALUE 66
ENTER_SYMBOL 41
SET_WEIGHT 66
EVALUATE_FUNCTIONS 44
9 of 21
SHOW_VALUE 68 ENTER_PHASE 110
STORE_ALL_WEIGHTS 68 ENTER_SPECIES 112
TABLE_HEAD, TABLE_VALUES and ENTER_SYMBOL 113
TABLE_END 68
LIST_CONSTITUENT 119
TRANSFER_START_VALUES 70
LIST_DATA 120
Experimental Data Files 72
LIST_PARAMETER 121
Commands in the Experimental
Data Files (*.POP, *.DOP) 73 LIST_PHASE_DATA 122
10 of 21
LIST_PARAMETER 147 CHANGE_STATUS 186
LIST_PHASE_DATA (from GIBBS) 148 COMPUTE_EQUILIBRIUM 190
LIST_RESULT 149 COMPUTE_TRANSITION 193
LIST_STORE_FILE 153 CREATE_NEW_EQUILIBRIUM 195
LIST_SYMBOL_IN_GES 154 DEFINE_COMPONENTS 196
OPTIMIZE_VARIABLES 154 DEFINE_DIAGRAM 196
READ_PARROT_WORKSPACES 154 DEFINE_MATERIAL 200
RECOVER_VARIABLES 155 DELETE_INITIAL_EQUILIBRIUM 204
REINITIATE 155 DELETE_SYMBOL 205
RESCALE_VARIABLES 156 ENTER_SYMBOL 205
SAVE_PARROT_WORKSPACES 156 EVALUATE_FUNCTIONS 208
SET_ALTERNATE_MODE 156 LIST_AXIS_VARIABLE 208
SET_EXTERNAL_PARAMETER 157 LIST_CONDITIONS 209
SET_FIX_VARIABLE 158 LIST_EQUILIBRIUM 209
SET_OPTIMIZING_CONDITION 158 LIST_INITIAL_EQUILIBRIA 210
SET_OPTIMIZING_VARIABLE 159 LIST_STATUS 210
SET_OUTPUT_LEVELS 160 LIST_SYMBOLS 211
SET_SCALED_VARIABLE 161 LOAD_INITIAL_EQUILIBRIUM 212
SET_STORE_FILE 162 MAP 212
Equilibrium Calculations with the POST 214
POLY_3 Module 163
READ_WORKSPACES 214
About POLY3 - The Equilibrium
Calculation Module 165 RECOVER_START_VALUES 215
11 of 21
SET_AXIS_VARIABLE 218 REINITIATE_PLOT_SETTINGS 255
SET_CONDITION 220 RESTORE_PHASE_IN_PLOT 255
SET_INPUT_AMOUNTS 222 SELECT_PLOT 255
SET_NUMERICAL_LIMITS 223 SET_AXIS_LENGTH 256
SET_REFERENCE_STATE 224 SET_AXIS_PLOT_STATUS 256
SET_START_CONSTITUTION 226 SET_AXIS_TEXT_STATUS 256
SET_START_VALUE 226 SET_AXIS_TYPE 257
SHOW_VALUE 227 SET_COLOR 257
STEP_WITH_OPTIONS 227 SET_CORNER_TEXT 259
TABULATE 239 SET_DIAGRAM_AXIS 259
Plotting and Visualization with the SET_DIAGRAM_TYPE 261
POST Module 240
SET_FONT 262
Using the POST Module 242
SET_INTERACTIVE_MODE 263
ADD_LABEL_TEXT 243
SET_LABEL_CURVE_OPTION 263
APPEND_EXPERIMENTAL_DATA 245
SET_PLOT_FORMAT 264
CHANGE_LEGEND 246
SET_PLOT_OPTIONS 264
DUMP_DIAGRAM 246
SET_PLOT_SIZE 266
ENTER_SYMBOL 247
SET_PREFIX_SCALING 267
FIND_LINE 250
SET_RASTER_STATUS 267
LIST_DATA_TABLE 251
SET_REFERENCE_STATE 267
LIST_PLOT_SETTINGS 251
SET_SCALING_STATUS 268
LIST_SYMBOLS 251
SET_TIC_TYPE 269
MAKE_EXPERIMENTAL_DATAFILE 252
SET_TIELINE_STATUS 269
MODIFY_LABEL_TEXT 252
SET_TITLE 270
PLOT_DIAGRAM 253
SET_TRUE_MANUAL_SCALING 270
PRINT_DIAGRAM 254
SUSPEND_PHASE_IN_PLOT 270
QUICK_EXPERIMENTAL_PLOT 254
12 of 21
TABULATE 271 TERMINATION_CRITERIA 298
POTENTIAL_DIAGRAM Module 272 System Utilities Commands 299
POTENTIAL_DIAGRAM 273 ABOUT 300
POURBAIX_DIAGRAM Commands 274 CLOSE_FILE 300
POURBAIX_DIAGRAM Commands 275 DISPLAY_LICENSE_INFO 300
Pause Options 277 HP_CALCULATOR 300
REACTOR_SIMULATOR_3 OPEN_FILE 301
Commands 284
SET_COMMAND_UNITS 301
CREATE_DIVIDERS 285
SET_ECHO 302
CREATE_PIPES 285
SET_GES_VERSION 302
CREATE_STAGE_BOXES 286
SET_INTERACTIVE_MODE 302
EXECUTE_POLY3_COMMAND 288
SET_LOG_FILE 303
LIST_RECORDS 288
SET_PLOT_ENVIRONMENT 303
READ_WORKSPACE 288
SET_TC_OPTIONS 304
SAVE_WORKSPACE 289
STOP_ON_ERROR 305
START_SIMULATION 290
TABULATION_REACTION
SCHEIL Module 293 Commands 306
BCC_TO_FCC_TRANSFORMATION 294 ENTER_FUNCTION 307
EVALUATE_SEGREGATION_ ENTER_REACTION 308
PROFILE 294
LIST_SUBSTANCES 310
GLOBAL_MINIMIZATION 295
SET_ENERGY_UNIT 312
LIQUID_PHASE_NAME 295
SET_PLOT_FORMAT 312
SAVE_FILE_NAME 295
SWITCH_DATABASE 313
SET_INTERACTIVE 295
TABULATE 315
SET_NUMERICAL_LIMITS 296
TABULATE_DERIVATIVES 315
START_WIZARD 297
TABULATE_REACTION 320
TEMPERATURE_STEP 298
TABULATE_SUBSTANCE 322
13 of 21
TERNARY_DIAGRAM Commands 330 For intensive variables of a
defined system 359
TERNARY_DIAGRAM Module 331
For extensive variables of a
Thermodynamic Variables and defined system 360
Units 332
For intensive variables of a
Thermodynamic Variables 333 system component 361
Common Thermodynamic For extensive variables of a
Variables 333 system component 362
How to read the tables 334 For intensive variables of a
Intensive Variables 334 species in a phase 365
14 of 21
Ex_08: Scheil and Equilibrium Plot Results 26
Solidification 11
Ex_15: Stable and Metastable
Equilibrium Calculator Examples 13 Carbides - TTT Diagram 26
Ex_05: Stable and the Metastable Fe- Plot Results 28
C Phase Diagrams 13
Ex_16: Precipitation of Iron Carbon
Ex_06: Serially Coupled Equilibrium Cementite 28
Calculators 14
Volume Fraction 30
Ex_09: Carbide Driving Force Heat
Map 15 Ex_17: Precipitation of g’ in Ni
Superalloys - Isothermal 30
Property Model Calculator Examples 17
Volume Fraction 32
Ex_10: Phase Transition 17
Number Density 33
Ex_11: Coarsening and Interfacial
Energy 17 Mean Radius 34
15 of 21
Examples of Property and Potential Data Optimization 3
Diagrams 16
The Least-Squares Method 4
Property Diagrams 16
The CALPHAD Approach 4
Potential Diagram 16
Working with Data Optimization in
Examples of Multicomponent Thermo-Calc 6
Systems 17
Data Optimization in Thermo-Calc 7
Examples Using Functions and
Variables 19 Data Optimization Workflow 7
16 of 21
Commenting About an Setting Weights 36
Equilibrium 23
Optimizing and Evaluating Results 37
Simultaneous Use of Binary and
Ternary Experiments 23 The Critical Set of Experiments 38
17 of 21
Useful Guidelines 52 2SL Model for FCC, HCP and BCC 69
Excluding and Including the Correct Magnetic Ordering 70
Equilibria 53
Molar Volumes and High Pressure 70
Conflicting Data 53
Excess Models 71
Experiments and Experimental Data 54
Pourbaix Diagrams 1
Phase Diagram Data 55
Introduction to Pourbaix Diagrams 2
Data for Individual Compounds 56
About Pourbaix Diagrams in
Single Phase Mixing Enthalpies or Thermo-Calc 3
Partial Enthalpies 58
Pourbaix Diagrams 3
Enthalpies of Formation and
Enthalpies of Reactions 58 Working with Pourbaix Diagrams 5
18 of 21
Pourbaix Diagram References 23 XSCALE 15
DATAPLOT User Guide 1 YSCALE 15
Introduction to the DATAPLOT User XTEXT 15
Guide 2
YTEXT 15
Using this Guide 3
XTYPE 16
About the DATAPLOT Graphical
Language 3 YTYPE 16
19 of 21
TEXT 28 ELEMENT 9
FUNCTION 28 SPECIES 10
PCFUNCTION 28 PHASE 11
PAINT 29 Examples of Recommended
Suffixes 11
INCLUDE 29
GIBBS Phase-type Codes 12
Examples of DATAPLOT Files and
Outputs 30 Additional clarification 13
Example 1 – Draw Lines and CONSTITUENT 16
Symbols 31
ADD_CONSTITUENT 17
Example 2 – Draw Polygons and
Symbols 32 COMPOUND_PHASE 18
20 of 21
VERSION_DATA 42
Working with the Mobility Databases 44
About the Diffusion Module
(DICTRA) and the Databases 45
Extensions to Database Definition
File Syntax 46
PARAMETER 46
DIFFUSION 47
ZERO_VOLUME_SPECIES 48
Database Definition File Examples 49
Example 1: A Steel Database 50
Example 2: A Custom Database for
the Sb-Sn Binary System 51
Example 3: A Public Database for
the Fe-Cr-C Ternary System 54
The Database Checker 69
About the Database Checker 70
Database Checker Revision History 70
21 of 21
Installation Guide
Windows®, Mac OS® or Linux Operating Systems
Installing Thermo-Calc
In this section:
System Requirements 3
Platforms Tested 3
Key to Using this Guide 3
Installation Terminology 5
Installing Thermo-Calc ǀ 2 of 71
Thermo-Calc Documentation Set
System Requirements
A typical installation installs Thermo-Calc and the latest version of the databases.
Additional add-on modules include:
Platforms Tested
Thermo-Calc and its components are tested on these platforms:
Windows 10 64-bit
l Ubuntu 16.04 (Xenial)
Window 8 64-bit Mac OS X Sierra
l CentOS 7.0
Windows 7 SP1 32-bit 10.12.3
l OpenSUSE 42.2
Windows 7 SP1 64-bit
1 Thermo-Calc Software cannot guarantee full functionality if the software is installed on other Linux
distributions.
2 If you are installing on CentOS 7, it is recommended you install gtk2 before you run the installation script.
Installing Thermo-Calc ǀ 3 of 71
Thermo-Calc Documentation Set
Name Description
The license file, which contains the license keys and is installed on
License file either a standalone computer or a network server.
Typographical Conventions
Convention Definition
Installing Thermo-Calc ǀ 4 of 71
Thermo-Calc Documentation Set
Convention Definition
A boldface font indicates that the given word(s) are shown that way in on
Boldface a toolbar button or as a menu selection. For example, if you are told to
font select a menu item in a particular order, such as Tools → Options, or to
click Save.
A code font indicates you are to make a keyboard entry. It also shows a
code and
programming code or code examples. The code bold font highlights the
code bold
entry.
Installation Terminology
Term Definition
A computer without a license file of its own but connected through the
client network to a computer with the license information. The client computer
computer receives a license token from the computer where the license
management software is installed.
host ID The MAC/Ethernet Address on the computer that a license is locked to.
The file (called lservrc) that contains all the purchased license keys. It is
license file
issued by Thermo-Calc Software, usually by email.
Installing Thermo-Calc ǀ 5 of 71
Thermo-Calc Documentation Set
Term Definition
License The Linux program used for license management: it distributes license
Server tokens as specified in the network license file issued by Thermo-Calc
(Linux) Software.
The use of the term license server (lower case letters) is reserved for use
for scripts and option files (for example, in an "Unattended Network
license Client Installations" on page 37). For the purposes of the step-by-step
server instructions it is not used to refer to the type of network installation that
runs the license management program. Also see License Manager
(Windows) and License Server (Linux).
The license type used with the licensing software. The NWL can only be
used on one specific computer that hosts the licensing software. The
Network Network License uses information about IP addresses and IP ranges to
License determine which client computers receive license tokens.
(NWL) The software may be used on the number of sites you have paid for and
by the number of persons you have paid for on any number of network
connected computers
standalone
A computer which uses a SUNLL license type.
computer
Installing Thermo-Calc ǀ 6 of 71
Thermo-Calc Documentation Set
Term Definition
Single-User-
A unique license file for one designated computer at one designated site.
Node
It cannot be copied or moved outside the site. If the software is installed
Locked-
on a portable computer, it can be temporarily used off-site. The license
License
can be used without network access (to the License Server).
(SUNLL)
Installing Thermo-Calc ǀ 7 of 71
Thermo-Calc Documentation Set
License
Installation Type Windows Mac OS Linux
type
1 For Mac OS, the licensing software is installed on a Windows or Linux computer server.
www.thermocalc.com/purchase/licensing-options/
The Thermo-Calc software and the license management program are installed on the
same server where the license file is also copied. A thin client installation allows all
computers (the clients) in the server network to access both the software and the licensing
on the same computer server.
To get started, go to "First Steps of Installation" on page 14 and then "Network Client
Installations" on page 27.
The Thermo-Calc software is installed on one computer server in a network and the
licensing software is installed on a different computer server where the license file is
also copied. A thin client installation allows all computers (the clients) in the server network
to access both the software and the licensing on the two computer servers.
To get started, go to "First Steps of Installation" on page 14 and then "Network Client
Installations" on page 27.
The licensing software is installed on a computer server where the license file is also
copied. The Thermo-Calc software is installed on every computer in the network that
needs it.
To get started, go to "First Steps of Installation" on page 14 and then "Network Client
Installations" on page 27.
l Learn about the default directories where the software and license files are installed.
l For network installations, collect subnet information.
l For Mac, install XQuartz and make sure the security preferences are set correctly.
l For Linux, install libgfortran 4.4 (or higher).
l For a Linux Cent OS 7 installation, also install gtk2 before you run the installation
script.
Should I get my license file before or after software installation? The license
file itself is not required during the installation process (and not at all for demo
installations). However, it is required to make calculations in Thermo-Calc. The
license file has details about your computer(s) that in some cases cannot be
determined accurately until after installation (especially for a network
installation). For most users it is recommended you request the file before you
start installing.
Users\<user>\Thermo-Calc\<version>
Windows Normal user Users\<user>\Documents\Thermo- Calc\<version>
My documents
Program Files\Thermo-Calc\<version>
Administrator Users\Public\Documents\Thermo- Calc\<version>
Public documents
Custom
installation Users\Public\Documents\Thermo-Calc\<version>
(for all users)
License
software
installations
on a server C:\Program Files (x86)\Common Files\SafeNet
network (the Sentinel\Sentinel RMS License Manager\WinNT\
License
Manager
software)
License
software If you are doing a network installation then these files are
Linux
installations available as a tar-file from the Thermo-Calc Software web
on a server site.
network (the In the downloaded tar-file, there is a restart_lserv script
License file, which can be used as a template for creating a script
Server that starts up the License Server.
software)
Databases
Depending on the type of license and operating system, the encrypted Thermo-Calc
databases and the database initialization file are located in a subfolder to the Thermo-Calc
installation. For example, in a Windows standalone installation, you can find these in a folder
called data (file path is C:\Program Files\Thermo-Calc\<version>\data).
Thermo-Calc accepts deviations from these syntax rules. This means that a
database can work even if the Database Checker reports errors and warnings.
For example, an error is reported if an abbreviated phase name is found, but
phase name abbreviations are accepted by Thermo-Calc and its add-on
modules.
The executable DatabaseChecker file is found in the Thermo-Calc home directory. The
program can also be launched by selecting Tools→ Database Checker from the main menu.
Predefined models included with the Property Model Calculator are installed in the locations
below based on your operating system. If you create your own models, this is the default
directory where these are saved. You can also use one of these as a template to create your
own property model.
Operating
Property Model installation directory
system
Linux /home/user/Thermo-Calc/2017a/PropertyModels
Mac /Users/Shared/Thermo-Calc/2017a/PropertyModels
Installing XQuartz
The XQuartz open-source X Windows system is required to run Thermo-Calc on Mac OS X
but it is not required to install Thermo-Calc. Before installing Thermo-Calc, you may also
need to ensure that the computer security permissions are set.
3. Click the XQuartz search result. For example, based on the recent version, the name is
XQuartz-2.7.7.dmg.
4. Click Download.
6. Click OK when the message about logging out displays and click Close when the
installation is successful.
Installing Libgfortran
To install and run Thermo-Calc and its components, a runtime library (libgfortran 4.4 or
higher) for GNU Fortran applications is required.
Linux
Notes
distribution
When this command is used, you will do a text-based installation instead of having a
graphical interface to guide you. The information is the same, just without the user
interface.
Standalone Installations
You can either do a typical or a custom standalone installation. The license type is called a
Single-User Node-Locked License (SUNLL).
In this section:
Standalone Installations ǀ 21 of 71
Thermo-Calc Documentation Set
Demo (trial) installations: Skip this step. A license file is automatically installed
with the software. You do not need to request it.
l Web downloads: For web links sent in an email from Thermo-Calc Software, go to the
URL and log in with the information provided to download the software.
l DVD installations: Insert the DVD and follow the instructions.
Step 3: Run the applicable installation file for your operating system
l Windows: Right-click the .exe file. Choose Save target as and save it to your
computer. Double-click the .exe file to launch the Setup program.
l Mac: Right-click the file Thermo-Calc-2016a-osx.app. Choose Download Linked File
and save the installation file to your Downloads directory. Unzip the file.
l Linux: Right-click the binary file (the BIN file) and save it to your computer. To start
the Setup Wizard in a Terminal window, enter these commands in the directory
where the binary installation file is saved:
> chmod +x linux-installation-x64-2017a.run
> ./linux-installation-x64-2017a.run
If you are an openSUSE root user, see "Linux Installation Notes" on page 19 for
some information about your installation.
Standalone Installations ǀ 22 of 71
Thermo-Calc Documentation Set
Demo (trial) installations: Your installation starts and is done when the
Completing the Thermo-Calc Demo Setup Wizard opens. Click Finish and
reboot your computer to start using Thermo-Calc.
Step 4: Select the installation type and upload the license file
1. In the Select installation mode window click Typical Standalone → Install Thermo-
Calc (incorporating Diffusion Module (DICTRA) and Precipitation Module (TC-
PRISMA).
2. In the Choose a license file field enter the path to your license file (called lservrc) or
click the file button to navigate to a location on the computer (for example, where
you saved it). Click Next.
To prevent errors, leave this field blank if you did not get a license file yet.
Step 5: Install the software and start using Thermo-Calc
If you did not get your license file see "Request a License File from Thermo-Calc
Software" on page 40.
Standalone Installations ǀ 23 of 71
Thermo-Calc Documentation Set
2. In the Select Components window, click to select what you want to install. Click
Next.
Standalone Installations ǀ 24 of 71
Thermo-Calc Documentation Set
Step 3: Set the installation directory path, license file location and shortcuts
1. In the Installation Directory window, either accept the default path or enter a path
to where you want to install the software (see "Default Directory Locations" on
page 14). Click the file button to navigate to another directory. Click Next.
For the Windows TC-Toolbox for MATLAB® component, and if you get a MATLAB not
found message, enter the MATLAB installation directory and click Next.
To prevent errors, leave this field blank if you do not have a license file yet.
Standalone Installations ǀ 25 of 71
Thermo-Calc Documentation Set
For Windows, in the Specify Configuration window, the default is Current user only,
meaning the installation is only available for the person logged in and installing the
software. Select All users to allow anyone using this computer to access Thermo-Calc.
By default, the Create Shortcuts on Desktop check box is selected. Click Next.
For Linux, and if you are installing as a non-root user, by default, the Create
Shortcuts on Desktop check box is selected. Click Forward.
Step 4: Install the software and start using Thermo-Calc
1. In the Ready to Install window click Next and then click Finish.
2. Click Finish and start using Thermo-Calc. For Linux users, log out and log back in to
finish the installation and start using Thermo-Calc.
If you did not get your license file see "Request a License File from Thermo-Calc
Software" on page 40.
Standalone Installations ǀ 26 of 71
Thermo-Calc Documentation Set
l Do a Typical Network Client installation if you only want to install the Thermo-Calc
program (including Diffusion Module (DICTRA)) and Precipitation Module (TC-
PRISMA)) and databases.
l Do a Custom installation if you want to select specific components to install or if you
want to install the software in a non-default installation directory.
In this section:
2. In the field, enter the name or IP number of the computer where the licensing
software is installed. Click Next.
If you did not get your license file see "Request a License File from Thermo-Calc
Software" on page 40.
Installation Requirements
This procedure explains how to install the License Manager on a computer that acts as a
license server in your network. It is a Sentinel RMS License Manager Windows service and it
supplies the client computers in your network with license tokens when it runs the Thermo-
Calc software. A network license can only be used on one specific computer that hosts the
License Manager. The network license determines which client computers receive license
tokens using their IP addresses and IP ranges.
l For Mac installations, the server containing the license file must be set up on a
Windows or Linux computer.
l For testing purposes, and in order to confirm the installation is working correctly,
install the Thermo-Calc software on the same computer as the Sentinel RMS License
Manager. Thermo-Calc can always be uninstalled after testing if required.
l Administrator rights are required.
3. In the Destination Folder window click Next to accept the suggested destination
directory or Change to select another directory. Click Next.
The name of the license file must be in lower case letters (lservrc). This is
especially important if both Windows and Linux operating systems are part of
your network; Linux commands and operations are case-sensitive.
If the default file path does not work, you can set the environmental variable LSERVOPTS to
select the license file:
Installation Requirements
There are a variety of things needed to prepare for a Linux License Server installation. The
following points are described in this section.
l You need to stop older versions of the License Server before running the new one. To
stop the license server you run lsrvdown .
l Root access to your computer is required or you need to be on the sudoers list.
l To run the License Server on a Linux 64-bit computer, you need to install 32-bit
library support. For example, on CentOS this can be done by running the command:
>yum install glib2.i686
l You need a valid lservrc network license file supplied by Thermo-Calc Software and
the actual License Server—a file(program) called lserv.
The name of the license file must be in lower case letters (lservrc)
because Linux commands and operations are case-sensitive.
l The license file need to be read and writable by the license server(license manager)
l If you have a license server; Upgrade your license server if the new one is a higher
version than the present one. Clients work with newer license servers(managers) but
not necessarily with ones older than client.
When this command is used, you will do a text-based installation instead of having a
graphical interface to guide you. The information is the same, just without the user
interface.
1. To stop an old version of the License Server that is already running, go to the
directory where the old file is found, and enter the commands:
>chmod +x <lsrvdown>
>./lsrvdown <host_name>
2. Edit existing scripts that start the older version of the License Server so that they
start the newer version instead.
Step 3: Confirm the HOSTNAME variable and open the UDP port
1. Before starting the License Server make sure that the value of the $HOSTNAME
variable is correct. This value can be shown by typing the > nslookup $HOSTNAME
command in the terminal window:
The value should be the same IP address that is shown when you use the ifconfig
command.
2. Open the UDP port 5093 in your firewall. In case you have installed SELinux you
might also need to disable it by setting SELINUX=permissive in the
/etc/selinux/config file.
1. To start the License Server, run the script created as root. Enter these commands in
the console:
2. If you want the License Server to start when you boot the system, put a copy of the
start script under /etc/rc.d/init.d and start the script from the file
/etc/rc.d/rc.local.
Installation Requirements
l You need access to the directory where Thermo-Calc is installed on the file server.
l You need the IP number or name of the computer where the license file is installed.
l For Linux you may have to disable your firewall. If SELinux is installed, try disabling it
by setting SELINUX=permissive in /etc/selinux/config.
1. Map the file server share as a network drive so that it gets an assigned drive letter
(e.g. E:).
2. Open the \Thermo-Calc\<version>\ directory on the file server, where version is the
current version of the software.
3. Open the directory Thin-client. Double-click the client-install-windows.exe file.
4. Click to accept the terms of the license agreement. Click Next.
5. Enter the name or IP number of where the license file and the License Manager
software is installed. Click Next.
6. In the Specify Configuration window, the default is Current user only, meaning the
installation is only available for the person logged in and installing the software.
Select All users to allow anyone using this computer to access Thermo-Calc. By
default the Create Shortcuts on Desktop check box is selected. Click Next.
7. In the Ready to Install window, click Next.
8. Click Finish. To start Thermo-Calc find the program on the server and start it from
there.
1. Add the following to the smb.conf file, where <user> is your user name:
[public]
path=/home/<user>/Thermo_Calc/2017a
public=yes
writable=yes
comment=smb share
guest OK=yes
force user=<user>
2. From the client, mount the directory on the server computer that contains the
Thermo-Calc server installation (by default, this directory is called /Thermo-
Calc/2017a). How the directory is mounted depends on the Linux distribution being
used as well as how the Thermo-Calc directory on the server computer is shared. Use
the Linux command mount. For example:
> mkdir public
> sudo mount -t cifs //ip_number_server_computer/public ./public -o
user=<user>
5. Click Forward and click to select the license agreement. Click Forward.
6. Enter the name or IP number of the License Server. Click Forward.
7. If you are installing as a non-root user, by default, the Create Shortcuts on Desktop
check box is selected. Click Forward.
8. In the Ready to Install window click Forward.
9. Click Finish. Log out and log back in to start using Thermo-Calc.
2. In the Select Components window, choose what you want to install. Click Next.
1. In the Installation Directory window, enter the path to an installation directory (see
"Default Directory Locations" on page 14). Click Next.
For the Windows TC-Toolbox for MATLAB component and if you get a MATLAB not
found message, enter the MATLAB installation directory and click Next.
2. In the Choose Setup Type window, click Network Client and enter the name or IP
number of the computer where the licensing software is installed. Click Next.
Make sure you know the name or IP number of the computer where the
licensing software and the license file are to be installed.
Below is a shorter example, specifying that a typical Thermo-Calc network client should be
installed:
installation_mode=typical_client
license_server=<name/IP number>
Thermo-Calc can only be installed in unattended mode from the command line
prompt.
Start the installation in unattended mode using the option file created with this command:
To see other options when you start the Thermo-Calc installation program from the
command line prompt, run this command:
1. Make a note of your company or organisation’s site number. You can find the site
number on an invoice or any correspondence from Thermo-Calc Software.
2. Retrieve your computer diagnostic and network adapter information.
3. Email Thermo-Calc Software with this information.
4. A Thermo-Calc Software representative emails you the license file. Save the license
file lservrc (there is no file suffix) to a location where you can easily access it later.
http://www.thermocalc.com/support/request-support/
1. Open Thermo-Calc.
2. Click Switch to Console Mode.
5. For both options, the information is displayed on screen. Copy the section containing
the Ethernet and IP address. You can save it to a text file or paste it directly into an
email. If you choose FILE as the output, then you can attach the file to an email. For
Windows and Linux you can also run the diagnostic program located on the web.
6. Double-click the tclog.bat file. Click Run. This starts the diagnostic tool and creates a
tclog.log text file in the same directory.
7. Send an email to [email protected] and attach the tclog.log file. Make sure
to include the following in the subject line:
License diagnostic information from <Name> where Name is replaced with your
name, the organisation name and the Site Number. You can find the five-digit site
number on an invoice or any correspondence from Thermo-Calc Software.
8. A representative from Thermo-Calc Software replies to the email and attaches your
license file(s).
9. Save the license file(s) to your computer or network.
5. Send an email to [email protected] and copy and paste the MAC address into
the body of the email. Make sure to include the following in the subject line:
License diagnostic information from <Name> where Name is replaced with your
name, the organisation name and the Site Number. You can find the five-digit site
number on an invoice or any correspondence from Thermo-Calc Software.
8. Double-click to open the tclog folder. Then either copy the output from the Terminal
window or right-click and save the tclog file. Name it tclog.log.
9. Send an email to [email protected] and attach the tclog.log file. Make sure
to include the following in the subject line:
License diagnostic information from <Name> where Name is replaced with your
name, the organisation name and the Site Number. You can find the five-digit site
number on an invoice or any correspondence from Thermo-Calc Software.
10. A representative from Thermo-Calc Software replies to the email and attaches your
license file(s).
11. Save the license file(s) to your computer or network.
Troubleshooting
In this section:
License Errors 47
Determining the Current License File Directory Path 49
Specifying a New Server Name or IP Number 52
Changing the server name or address (Windows) 53
Mac installations 53
Linux installations 53
MATLAB® Installation Directory 53
Firewalls 54
Client/Server Mismatch 54
Mac OS Installations: Running the License Initialization Script 56
Linux Installations: Running the License Initialization Script 57
Troubleshooting ǀ 46 of 71
Thermo-Calc Documentation Set
License Errors
Installation Action or link to more
Issue Platform
type information
How do I add or
update a standalone
(SUNLL) license on a "Determining the Current License
Windows Standalone
Windows computer File Directory Path" on page 49
where Thermo-Calc is
already installed?
How do I add or
update a standalone
(SUNLL) license on a "Determining the Current License
Linux Standalone
Linux computer where File Directory Path" on page 49
Thermo-Calc is
already installed?
How do I add or
"Determining the Current License
update a network Windows Network
File Directory Path" on page 49
license on Windows?
How do I add or
"Determining the Current License
update a network Linux Network
File Directory Path" on page 49
license on Linux?
Troubleshooting ǀ 47 of 71
Thermo-Calc Documentation Set
Warning Environment
variable “LSHOST” is "Specifying a New Server Name or
All Network
not set. Software will IP Number" on page 52
not function properly.
Firewall warnings
related to license
Windows
management
and Network "Firewalls" on page 54
software (License
Linux
Manager and License
Server)
Windows
Client / Server "Client/Server Mismatch" on
and Network
naming mismatches page 54
Linux
Troubleshooting ǀ 48 of 71
Thermo-Calc Documentation Set
Troubleshooting ǀ 49 of 71
Thermo-Calc Documentation Set
1. Unpack the .zip file that contains your standalone license and save the LSERVRC file
on your computer. Find out where to place the new license file by opening a
Command Prompt Window (cmd.exe) and type in the command line:
>set LSERVRC
2. Press Enter. The output from the command is the path to the license file (including
the name of the license file). For example: if the output is
LSERVRC=C:\Program Files\Thermo-Calc\2017a\lservrc
l On Windows 7, click the Start button and in the search field type Services. Double-
click the Services result.
Troubleshooting ǀ 50 of 71
Thermo-Calc Documentation Set
l On Windows 8, move the mouse over the right edge of the screen to access Search,
click Settings and then enter and select View Local Services.
2. In the list of installed services, right-click Sentinel RMS License Manager and select
Properties from the pop-up menu.
3. On the General tab under Path to executable, click the line containing the path to
see where the file lservnt.exe is located. The license file (lservrc) is in the same
directory.
Troubleshooting ǀ 51 of 71
Thermo-Calc Documentation Set
Troubleshooting ǀ 52 of 71
Thermo-Calc Documentation Set
Windows
l In Windows 8, use Search (mouse-over the right edge of your screen) to find cmd and
then double-click the Command line icon.
l In Windows 7, from the Start menu click Run and type cmd in the field.
Mac
Mac installations
Permanently set the environmental variable LSHOST to specify a new licensing server name
or IP number. Refer to the file /Applications/Thermo-Calc-2017a.app/Contents/plist.info.
In this file, you can manually set the TC70_HOME variable, which specifies the home
directory of the Thermo-Calc program. See the plist.info file for an example.
Linux
Linux installations
You can set or change the name or IP number of the license server at a later time by setting
the environmental variable “LSHOST” to this name or number.
Troubleshooting ǀ 53 of 71
Thermo-Calc Documentation Set
l On Linux open a Terminal window and go to the directory where the lserv script
is saved. For example:
>cd /usr/local/Thermo-Calc/<version>/Licensing-files
Firewalls
Windows
For a Windows License Manager installation you may have to change the system firewall
settings to allow the License Manager to communicate with the computers running the
client applications. Go to the Windows Firewall settings window to see if there are any
problems. If prompted, select Unblock the system firewall for the Sentinel RMS License
Manager and click Next.
Linux
For a Linux License Server installation you need to open the UDP port 5093 in your firewall.
In case you have installed SELinux you might also need to disable it by setting
SELINUX=permissive in the /etc/selinux/config file.
Client/Server Mismatch
For some network installations there can be a naming mismatch that causes errors. The
server (where the license management software is installed) gets information from its DNS
servers that an IP address (aaa.bbb.ccc) belongs to a computer (Computer A). But the client
Troubleshooting ǀ 54 of 71
Thermo-Calc Documentation Set
computer identifies itself as having a different IP address (aaa.bbb.ccc.eee) for the same
computer (Computer A).
Even if the IP address of the client computer belongs to a subnet range listed in the license
file, there is a problem with accessing the license file because the computer name does not
match the information.
You may need your organisation’s network administrator to assist with this issue.
How to Check
Step 1: Compare computer names on the client computer and server
1. On the client computer, start a command prompt cmd.exe and type ipconfig /all.
Press Enter. A variety of data is displayed on screen. Write down the following
information for later comparison:
l Host name
l Dns Suffix
l Current IPv4 Address
This shows what information is saved on the DNS Servers used by the client computer.
This information should match what is shown in the output from the first step.
3. On the server that holds the license management software, open a command prompt
and run the command line: nslookup client_computer_name. The output lists the
information for this server.
Does it match the information given by the command ipconfig /all on the client
computer? If not try the following:
Step 2: Try these options to correct the issue
1. If the client computer has a dynamic (DHCP) IP address, either change it to a static
one or make a reservation on the DHCP Server so that the computer always get the
same IP address.
2. Update the records on the DNS Servers used by both the client computer and the
server computer.
You can also hard code computer names and IP addresses in the local "address book" of the
Troubleshooting ǀ 55 of 71
Thermo-Calc Documentation Set
Troubleshooting ǀ 56 of 71
Thermo-Calc Documentation Set
$ sudo /Applications/Thermo-Calc-
2017a.app/Contents/Resources/license-initialization-MacOS-x86_
64.sh
If you are not already logged in as an administrator, you probably cannot run the
sudo command. If this is the case, then you can use the su command in the terminal
window to login as an administrator. Contact your local system administrator for help.
If you did not install a license file during this procedure, you can still start
Thermo-Calc although you will get the No license file found message.
When this command is used, you will do a text-based installation instead of having a
graphical interface to guide you. The information is the same, just without the user
interface.
For this script to successfully initialize the license, the license file must be called
lservrc and be located in the directory where you have installed Thermo-Calc.
Troubleshooting ǀ 57 of 71
Thermo-Calc Documentation Set
$ sudo sh license-initialization-linux-x86_64.sh
If you are not able to execute the sudo command because you are not on the sudoers
list, you must log in as a root user with the command su, and then use sh to run the
license initialization script. For example, on a 64-bit computer, enter the following:
$ sh license-initialization-linux-x86_64.sh
3. Log out of Thermo-Calc and then log back in to save these changes.
Troubleshooting ǀ 58 of 71
Thermo-Calc Documentation Set
Uninstalling Thermo-Calc
In this section:
Uninstalling Thermo-Calc 60
Uninstalling Standalone Versions of TC-PRISMA 61
Uninstalling Thermo-Calc ǀ 59 of 71
Thermo-Calc Documentation Set
Uninstalling Thermo-Calc
Windows 10
1. From the Control Panel Desktop app, go to Programs → Programs and Features →
Uninstall or change a program.
2. In the list of programs, locate the version of Thermo-Calc you want to uninstall. Click
to highlight that row.
3. Click Uninstall/Change.
4. In the Setup window, Uninstallation Mode dialog box, choose to uninstall the Entire
application or Individual components. Follow the instructions to finish.
Windows 7
Mac
Deleting the program from the Applications folder does not remove the program from your
operating system. Run the Uninstall-Thermo-Calc<version> program located in the
Applications folder. This is also applicable to the Demo version of the software.
1. Go to the Applications folder and double click the file that starts with Uninstall-
Thermo-Calc<version>. Enter the administrator’s user name and password.
2. Click Yes in answer to the question Do you want to uninstall Thermo-Calc and all of
its modules? Click No to quit.
3. The Uninstalling Thermo-Calc window shows the progress. Click OK when prompted.
Linux
Uninstalling Thermo-Calc ǀ 60 of 71
Thermo-Calc Documentation Set
2. To remove the whole application, including all its components, select Entire
application and click Forward, or to remove specific components, select Individual
components and click Forward.
Uninstalling Thermo-Calc ǀ 61 of 71
Thermo-Calc Documentation Set
Uninstalling Thermo-Calc ǀ 62 of 71
Thermo-Calc Installation Documentation Set
Also see the Thermo-Calc Installation Guide for detailed instructions for other
operating systems and network installations.
6. Double-click the tclog.bat file. Click Run. This starts the diagnostic tool and creates a
tclog.log text file in the same directory.
7. Send an email to [email protected] and attach the tclog.log file. Make sure
to include the following in the subject line:
License diagnostic information from <Name> where Name is replaced with your
name, the organisation name and the Site Number. You can find the five-digit site
number on an invoice or any correspondence from Thermo-Calc Software.
8. A representative from Thermo-Calc Software replies to the email and attaches your
license file(s).
9. Save the license file(s) to your computer or network.
1. Open the Windows folder then right-click the .exe file. Choose Save target as and
save it to your computer. Double-click the .exe file to launch the Setup program.
2. On the Setup-Thermo-Calc window click Next.
3. On the License Agreement window click to accept the license agreement. Click
Next.
Demo (trial) installations: Your installation starts and is done when the
Completing the Thermo-Calc Demo Setup Wizard opens. Click Finish and start
using Thermo-Calc.
Step 2: Select the installation mode – typical or custom
2. For a Typical Standalone installation, in the Choose a license file field click the file
button to navigate to where you saved the license file emailed to you from
Thermo-Calc Software. The license file is called lservrc. Click Next.
1. In the Select Components window, click to select what you want to install. Click
Next.
2. In the Installation Directory window, either accept the default, enter a file path or
click the file button to navigate to another directory.
3. In the Choose Setup Type window it defaults to Standalone. In the Choose a license
file field you can accept the default file path or click the file button to navigate
to, where you saved the license file emailed to you from Thermo-Calc Software
(called lservrc). Click Next.
4. In the Specify Configuration window, the default is Current user only, meaning the
installation is only available for the person logged in and installing the software.
Select All users to allow anyone using this computer to access Thermo-Calc. By
default, the Create Shortcuts on Desktop check box is selected. Click Next.
5. In the Ready to Install window click Next. Click Finish and start using Thermo-Calc.
Also see the Thermo-Calc Installation Guide for detailed instructions for other
operating systems and network installations.
3. In the left column select Ethernet or Built-in Ethernet (do not select a WiFi
connection as a local static MAC address is required).
4. Click Advanced → Hardware.
The Network window shows you the MAC Address. For example, the MAC address
(the host ID) might be 3c:07:54:28:5f:72.
5. Send an email to [email protected] and copy and paste the MAC address into
the body of the email. Make sure to include the following in the subject line:
License diagnostic information from <Name> where Name is replaced with your
name, the organisation name and the Site Number. You can find the five-digit site
number on an invoice or any correspondence from Thermo-Calc Software.
3. Click the XQuartz search result. For example, based on the recent version, the name is
XQuartz-2.7.7.dmg.
4. Click Download.
6. Click OK when the message about logging out displays and click Close when the
installation is successful.
1. Open the Mac folder and right-click the file Thermo-Calc-2017a-osx.app. Choose
Download Linked File and save the installation file to your Downloads directory.
2. Unzip the file.
3. On the Setup-Thermo-Calc window click Next.
4. On the License Agreement window click to accept the license agreement. Click
Next.
Demo (trial) installations: Your installation starts and is done when the
Completing the Thermo-Calc Demo Setup Wizard opens. Click Finish and
reboot your computer to start using Thermo-Calc.
2. In the Choose a license file field click the file button to navigate to where you
saved the license file emailed to you from Thermo-Calc Software. The license file is
called lservrc. Click Next.
To prevent errors, leave this field blank if you did not get a license file yet.
3. The installation starts and is done when the Completing the Thermo-Calc Setup
Wizard window opens.
4. Click Finish and start using Thermo-Calc.
Introduction to Thermo-Calc
This guide is an introduction to working with both Graphical Mode and Console Mode in
Thermo-Calc.
In this section:
Add-on modules
The Thermo-Calc program also includes add-on modules:
Use online help for information about how to use Diffusion Module (DICTRA)
and Precipitation Module (TC-PRISMA).
Typographical Conventions
The following typographical conventions are used throughout the documentation.
Text
Convention Definition
Convention Definition
A boldface font indicates that the given word(s) are shown that
way on a toolbar button or as a menu selection. For example, if
Boldface font
you are told to select a menu item in a particular order, such as
Tools→Options, or to click Save.
code and code A code font shows a programming code or code example. The
bold code bold font highlights the entry.
Icons
Convention Definition
In Graphical Mode calculations are set up, carried out, and visualized as part of
a project. The steps in the project are performed with activities. There are
templates and a Wizard available to guide you through the process of defining
the project.
In Console Mode you work with modules, which are managed using commands
typed at a prompt. Some modules, called response-driven modules, ask you a
series of questions that typically take you through the process of defining your
system, setting calculation conditions, performing calculations and plotting the
results.
In Console Mode, except for the SWITCH TO GRAPHICAL MODE button, the toolbar is not used.
See "Main Menu and Toolbar" on page 37 in the Thermo-Calc User Guide for
information about the Tools, Window and Help menus, which are available in
both modes.
File extensions
The file extensions are different based on the mode you are in (Graphical vs. Console). In
Console Mode the extensions are also based on whether you are working with Thermo-Calc
or the Diffusion Module (DICTRA).
In Graphical Mode, the Thermo-Calc project files have the extension *.tcu. This
includes the examples for the add-on Diffusion Module (DICTRA) and
Precipitation Module (TC-PRISMA).
In Console Mode, Thermo-Calc macro files have a *.TCM extension and the
Diffusion Module (DICTRA) file extension is *.DCM. In addition to macro files in
Console Mode the are also Log files and Workspace files, which also differ.
Although many calculations can be done in either mode, data optimization and
thermodynamic or kinetic assessments are only available in Console Mode.
Graphical Mode
In Graphical Mode you work with one file type, a project file, which has a *.tcu file
extension. This is applicable to Thermo-Calc and the add-on modules.
Console Mode
In Console Mode there are file types (macro, log and workspace) and extensions (TCM, LOG,
POLY3, GES5, PAR and POP) to be aware of. For Thermo-Calc Console Mode the file types
are described in "Log, Macro and Workspace Files" on page 159 in this guide.
For DICTRA Console Mode see File Formats as described in the Diffusion Module
(DICTRA) User Guide.
In Thermo-Calc:
On your computer:
1. Open Thermo-Calc.
2. Confirm you are in Graphical Mode. If not, click the Switch to Graphical Mode
button.
3. From the main menu, select File → Open Examples or Help → Open Examples.
4. Navigate to the project file you want and double-click to open.
5. The Graphical Mode examples are stored without calculated results so you will want
to run the example calculation and generate a plot or table. To do this, click the first
node in the tree at the top of the Project window. Then right-click and select
Perform now.
The macro files (with the extension *.TCM) include comments, which you can
either run in Thermo-Calc or open and read in a text editor.
You can open the macro files (*.TCM or *.DCM files) in different ways.
If you only open and read the macro file in a text editor, you do not see the
output that Thermo-Calc gives in response to the commands stored in the
macro file.
1. Open Thermo-Calc.
2. Confirm you are in Console Mode. If not, click the Switch to Console Mode button.
3. From the main menu, select File → Open Examples or Help → Open Examples. The
Console Mode folder opens with the Thermo-Calc examples in separate folders.
For the Diffusion Module (DICTRA) examples (*.DCM macro files), click the Up
One Level button and then double click the DICTRA folder.
how to Drag and Drop a Macro File into the Console Window
For example, on your computer, navigate to the examples folder. Drag the file from its
location into the Thermo-Calc Console window. When you release (drop) the file, the macro
starts running. Follow the prompts in the Console window i.e. keep pressing <Enter> to run
the macro and produce a plot in the Console Results window.
EXAMPLE
From the
Main System On your
Windows Start Website
Menu Definer computer
Menu
Manuals (PDF
x - x x x
documentation)
Examples (project
x - x x x
and macro files)
Materials - x x x x
l To open the PDF documentation select Help → Open Manuals Folder. See "About
the PDF Documentation" on page 15. Note for Linux openSUSE users:1
l To open the Examples based on whether you are in Console Mode or Graphical
Mode, select File → Open Examples or Help → Open Examples.
1This link is not functional. To access the folder, navigate to the default location based on your installation type.
Users\<user>\Thermo-Calc\<version>
Normal user Users\<user>\Documents\Thermo- Calc\<version>
My documents
Windows
Program Files\Thermo-Calc\<version>
Administrator Users\Public\Documents\Thermo- Calc\<version>
Public documents
Website
You can download the PDF documentation and examples from the website.
1. Go to http://www.thermocalc.com/.
2. From the menu, select Support → Documentation and navigate to the applicable
section.
l Installation Guides: Includes the quick install guides for Standalone Windows and
Mac installations as well as the full installation guide for all platforms and
installation types.
l Thermo-Calc Documentation Set: Includes all the manuals needed to work with
Thermo-Calc including the installation guides, Thermo-Calc User Guide, Console
Mode Command Reference, Graphical Mode Examples Guide, Data Optimization
User Guide, Database Manager User Guide, and the DATAPLOT User Guide. It also
includes a copy of the Property Model Development Framework Guide.
l Property Model Development Framework: This PDF guide contains details about
setting up a development environment so you can build custom property models in
Thermo-Calc.
l Diffusion Module (DICTRA) Documentation Set: This add-on module is used for
accurate simulation of diffusion controlled reactions in multi-component alloy
systems, which is based on numerical solution of the multi-component diffusion
equations. The documentation set includes Diffusion Module (DICTRA)-specific
manuals plus the Thermo-Calc User Guide, Console Mode Command Reference, Data
Optimization User Guide, Database Manager User Guide, and the DATAPLOT User
Guide.
l Precipitation Module (TC-PRISMA) User Guide: This add-on module treats
concurrent nucleation, growth/dissolution and coarsening under arbitrary heat
treatment conditions in multi-component and multi-phase systems using Langer-
Schwartz theory and the Kampmann-Wagner numerical approach.
There are other file types when you are working in Console Mode. See
"Thermo-Calc Console Mode File Types" on page 2 in the Console Mode
Command Reference, and About the File Formats in the Diffusion Module
Quick Start Guide.
Thermo-Calc Examples
A brief description of the Thermo-Calc examples, and how to access them, is in "About the
Thermo-Calc Console Mode Examples " on page 2 in the Thermo-Calc Console Mode
Examples Guide.
When you are working with the "System Definer" on page 61 you can open the default
Materials folder included with your installation. The files are in .xml format and the data
contained are from some common alloys. You can also save and create your own materials
files from the System Definer, or copy the xml files to the Materials folder.
Aluminum Alloys
Alloy
UNS_A95005
UNS_A96053
Alloy
UNS_F10007
Alloy
UNS_F33101
Nickel Alloys
Alloy
UNS_N06600
UNS_N6600
UNS_N06625
UNS_N06690
UNS_N07001
UNS_N07718
UNS_N08800
UNS_N08825
Solder Alloys
Alloy
ASTM_25A
ASTM_96TS
UNS_L50134
UNS_L54321
Steel Alloys
Alloy
ASTM_304_(UNS_S30400)
ASTM_304L_(UNS_S30403)
ASTM_304LN_(UNS_S30453)
ASTM_316_(UNS_S31600)
ASTM_316L_(UNS_S31603)
ASTM_316LN_(UNS_S31653)
ASTM_317L_(UNS_S31703)
UNS_J92710
UNS_S30908
Alloy
UNS_S31803_A
UNS_S32750_A
UNS_S32750_B
ASTM_M10_A5
UNS_S31008
HSLA Steel
UNS_K12000
UNS_H61180
Maraging Steel
UNS_K92810
ASTM_420
UNS_J82090
UNS_J91639
UNS_S44004
Alloy
Tool Steel
UNS_T30106
UNS_T30109
UNS_T51620
Training Steel
Ferritic
M7_Steel
Titanium Alloys
Alloy
UNS_R54520
UNS_R56260
My Materials
This is where you can add your own material files to be able to load it to the System Definer.
When you are in the System Definer Configuration window, you define your material then
click Save material as. You can save the profile to this folder or create a folder with a new
name.
Help Resources
'Online' Help: No Internet Required
To access online help in a browser, open Thermo-Calc and select Help → Online Help. The
content opens in a browser but uses local content so you don't need an Internet connection
except links to external websites.
When you are in Graphical Mode, you can access feature help (also called topic-
sensitive or context help) for the activity nodes in the tree.
The window that opens has the same content as the help you access in the browser. There
are these extra navigation buttons in this view.
In Console Mode at the command line prompt, you can access help in these ways:
l For a list of all the available commands in the current module, at the prompt type a
question mark (?) and press <Enter>.
l For a description of a specific command, type Help followed by the name of the
command. You can only get online help about a command related to the current
module you are in.
l For general system information type Information. Specify the subject or type ? and
the available subjects are listed. This subject list is specific to the current module.
For the Console Mode only commands see "The Console Mode Interface" on
page 145 and the Thermo-Calc Console Mode Command Reference included
with this documentation set.
Modules and Activities briefly describes the available modules. The specific modules, using
the names in the table, are accessed through Console Mode. For Graphical Mode, the
underlying principles, and the final calculations, are incorporated into the projects and
activities. Some modules require additional licenses.
"Precipitation
Set the conditions for, and perform,
not available - Calculator"
a precipitation calculation.
on page 103
"Ternary
TERNARY_
TERN Calculator" Calculate ternary phase diagrams.
DIAGRAM
on page 139
For a network license, under each license type with instances checked out, there is a list of
who checked out each license.
In Console Mode, an instance is checked out when you enter the POLY module
and is checked back in when you exit the POLY module. In the example, two
users, amanda and nli, have licenses checked out.
l The Features column is a list of the specific software, databases and API licenses
purchases.
l The Version is an internal version number for the feature.
l The number of licenses column is how many instances of each license type available
l If you start Thermo-Calc without a valid Thermo-Calc license you cannot leave the
SYS module.
l If all the licenses are checked out for a network client installation of Thermo-Calc,
you may not be able to enter the POLY or DICTRA modules until a license is available.
l To enter the DICTRA and the DIC_PARROT modules, you need a valid Diffusion
Module (DICTRA) license key.
l If you enter and use either the DIC_PARROT module or the PARROT module, then
you cannot enter the other module in the same session. You must close down
Thermo-Calc and launch the program again to enter the other data optimization
module.
Graphical Mode
"The Graphical Mode Interface" on page 31 introduces you to the GUI layout and the
workflow. In "Graphical Mode Projects" on page 50, it goes into more detail about how to
set up and run your projects (with the Quick Start Wizard), using templates, scheduling jobs
and creating activities. "Graphical Mode Activities" on page 60 specifically describes how to
set up each type of available activity in the tree structure.
For both Graphical and Console mode, "Changing Global Settings" on page 223 gives
information about adjusting global user settings.
Console Mode
In general, Console Mode has more functionality than Graphical Mode but the underlying
concepts are the same. There are, however, command lines and extensive details applicable
to this mode. This guide is only the beginning of the learning objectives. In particular, refer
to the Thermo-Calc Console Mode Command Reference for details about all the commands
available.
In this guide it is a basic introduction to the layout of the Command windows, as described in
"The Console Mode Interface" on page 145.
Several topics describe and give an example of the calculation types:
1. Project: Create, manipulate and navigate between the activities that make up a
project.
2. Configuration: Shows the settings that can be configured for the currently selected
activity.
3. Results: Shows the results of a calculation, either plotted as a diagram or displayed
in table format. In this example, there is a Plot Renderer tab in the Results window.
4. Scheduler: Displays information about jobs, such as calculations, that are being
performed or are scheduled to be performed. You can cancel scheduled jobs and if a
job has failed, then you can view information about the error.
5. Event Log: By default this window is closed but it displays during calculation
processes. You can always open it to view progress of calculations and to
troubleshoot.
Also see "Activity Successor and Predecessor Nodes" on the next page for
definitions.
The example below shows a My Project node with two trees. In each tree, settings and
calculation results are propagated downward until the calculation and the visualisation of
the results are completed in the Plot Renderer nodes.
The system definitions, settings and calculation results of the two trees are independent of
each other.
EXAMPLE
For example, to calculate and display a phase diagram, create a branch with three linked
activities: A System Definer activity linked to an Equilibrium Calculator activity, which in turn
is connected to a Plot Renderer activity.
See the example below that shows that Binary Calculator 1 is a predecessor to the
successors, Plot Renderer 2 and Table Render 1.
You can determine the available successors by right-clicking a node in the Project window
and choosing options from the menus.
EXAMPLE
l In the Project window, right-click an activity and choose Create New Activity (My
Project node only) or Create New Successor (all other nodes).
l Select the activity you want to create from the submenu.
l At the bottom of the Configuration window, click Create New Activity or Create
New Successor and select the activity to create.
"Property Model
Calculator" on System Definer Plot Renderer, Table Renderer
page 68
"Equilibrium
System Definer, Equilibrium Calculator, Plot
Calculator" on
Equilibrium Calculator Renderer, Table Renderer
page 82
"Precipitation
Calculator" on System Definer Plot Renderer, Table Renderer
page 103
"Diffusion
Calculator" on System Definer Plot Renderer
page 91
Property Model
Calculator, Equilibrium
Calculator, Precipitation
Calculator, Diffusion
"Plot Renderer" on
Calculator, Binary None
page 108
Calculator, Ternary
Calculator, Scheil
Calculator, Experimental
File Reader
Equilibrium Calculator,
Property Model
"Table Renderer" on Calculator, Precipitation
None
page 133 Calculator, Binary
Calculator, Scheil
Calculator
"Experimental File
My Project Plot Renderer
Reader" on page 136
"Binary Calculator"
My Project Plot Renderer, Table Renderer
on page 137
"Ternary Calculator"
My Project Plot Renderer
on page 139
"Scheil Calculator"
System Definer Plot Renderer, Table Renderer
on page 141
1. Define a System: Create a "System Definer" on page 61 activity (in the Project
window) where you select a database and the elements to have as system
components (in the Configuration window).
2. Set up and run a calculation: Create an "Equilibrium Calculator" on page 82 activity
(a successor to the System Definer), where calculation conditions are set
(temperature, pressure, etc.). This is where axis variables are set to create a
property or phase diagram. These settings are also made in the Configuration
window. You can also add a "Property Model Calculator" on page 68, "Precipitation
Calculator" on page 103, "Diffusion Calculator" on page 91 or "Scheil Calculator" on
page 141.
3. Visualize the results: Create either a "Plot Renderer" on page 108 or a "Table
Renderer" on page 133 activity in the Project window. When calculated, this creates
a plot or table in the Results window. The results are shown in a Plot Renderer or a
Table Renderer tab.
The File menu and toolbar are reserved for Graphical Mode but in Console Mode the Tools,
Window and Help menus have the same options.
In Console Mode you use commands to access the other options. These are
discussed in "The Console Mode Interface" on page 145.
Switch to Launch Console Mode and the Click the button to exit Graphical
Console Mode command prompt. Mode and open Console Mode.
Switch to Launch Graphical Mode to work Click the button to exit Console
Graphical Mode with the GUI version. Mode and open Graphical Mode.
Also see
"Displaying
Thermo-Calc
License
Information" on
page 28 and the
Thermo-Calc
Installation Guide
For information about file formats in Console Mode, see "About the File Types
and Formats" on page 7.
To save your project and all its settings and results, on the toolbar click Save. Select to
Include calculated results in the project file (the default) as required.
To open a Thermo-Calc project file, on the toolbar click Open and select the project file in
the Open file window.
You can only have one project file open at a time. However, you can attach (append) the
trees from additional project files to the topmost My Project node. To append an additional
project file in this way, from the main menu select File → Append Project and open a
project file.
Also see "Saving Plots" on page 122 and Saving Tabulated Data for the "Table
Renderer" on page 133.
"System Definer" Define a certain thermodynamic system and read it from file into
on page 61 memory.
"Precipitation
Set the conditions for, and perform, a precipitation calculation
Calculator" on
using the Precipitation Module (TC-PRISMA).
page 103
"Diffusion Using the Diffusion Module (DICTRA), this activity is where you
Calculator" on set the geometry, add one or more regions, enter grids and
page 91 phases in the regions, and then enter compositions of phases.
"Plot Renderer" on
Determine the layout of non-text based output.
page 108
"Table Renderer"
Use it for text-based output.
on page 133
See "Creating
Activities and
Successors" on
page 35.
Perform a calculation
or create a plot or
Perform
table immediately, or
Now or
schedule it for a time Right-click any node.
Perform
in the future. See
Later
"Using the Scheduler"
on page 57.
Duplicate the
selected node and
add it to the same
Clone Right-click any node except My Project.
tree. See "Cloning
Activities and Trees"
on page 54.
Apply an automatic
Apply Auto
layout to the nodes in Right-click any node.
Layout
the tree.
One exception is the Event Log window, which is set to auto-hide by default.
When a window is fixed it can also be set to auto-hide. Auto-hiding means that the window is
minimized when you select another window. The minimized window is then shown either
along the bottom or side of Thermo-Calc. A free-floating window is shown on top of the
other windows and can be moved outside the frame of Thermo-Calc.
Button(s) Description
Click to close the window. You can open the window again
from the Window main menu.
l To select several activity nodes, hold down <Ctrl> while clicking on each node you
want to select.
l Click and hold the mouse button and draw a square around the activity nodes to
select. Both the name and the icon that represents an activity must be within the
square.
Status
Window Description
marker
Status
Window Description
marker
1. In the Configuration window click Quick Start. If you cannot see the Quick Start
button, first click My Project in the Project window.
2. In the Select Project Type window click to select the type of calculation to perform.
Single point equilibrium, Property diagram, Phase diagram or Scheil solidification
simulation. Click Next.
The Select Conditions window has different options depending on the Project type
and the elements selected.
In this example figure, using a Single Point Equilibrium, choose the Composition
unit and under Condition Definitions specify the values of the state variables in the
system.
For a Property diagram or Phase diagram, specify the Axis Definitions of the
stepping or mapping operation. Choose minimum and maximum values for the
variable(s) (select Linear – min no. of steps, Linear – max step size or Logarithmic –
scale factors) and whether it is Normal or Separate phases.
For a Scheil solidification simulation, and where applicable, select Fast diffuser to
account for back-diffusion of any fast-diffusing elements.
6. Click Finish.
7. Click to expand the Event Log window to see information about the progress of the
calculation.
8. The diagram is plotted in a Plot Renderer tab in the Results window. If you have
calculated a single-point equilibrium, then a Table Renderer tab shows information
about the equilibrium.
9. To save the project, click Save on the main toolbar. To save a diagram or table, right-
click the diagram or table and select Save As.
When you click a template, an activity tree is added to the Project window. You can then
configure and perform the activities or the project.
For example, if you click Property Diagram, a tree is added to the My Project node with
System Definer, Equilibrium Calculator and Plot Renderer nodes.
PROPERTY DIAGRAM TEMPLATE
You can also select templates from the Project window. Right-click the My Project node and
choose templates from the Create New Activity → Use Template submenu.
USE TEMPLATE
l The new Equilibrium Calculator has the same settings for conditions, functions and
options as its Equilibrium Calculator 1 clone.
l If the Equilibrium Calculator is already performed, then the calculation results are
cloned.
l If the activity is a Plot Renderer or a Table Renderer, then the plot or table is cloned.
l If you want to clone all the successor activities that follow a selected activity, then
right-click and select Clone Tree instead.
The Equilibrium Calculator successor is different from a clone in that it does not
inherit any calculated results and it is a successor to the Equilibrium Calculator
instead of a successor to its predecessor.
The calculated result from an Equilibrium Calculator that is the predecessor to another
Equilibrium Calculator is the starting value for the latter’s calculation. The clone of an
Equilibrium Calculator on the other hand, does not receive any data as input from the
Equilibrium Calculator that it is cloned from.
can also perform a single activity without performing its successors or perform the whole
project (all the activity trees).
In the Configuration window, click Perform Tree to perform the currently selected activity
and all the activities below it. If there are no activities below the selected activity, then the
button says Perform instead.
l Perform an activity: Right-click the activity and select Perform Now, or Perform
Later and schedule a time to perform the activity.
l Perform an activity and all activities below it in the tree: Right-click any node in the
tree and select Perform Tree Now. Or select Perform Tree Later and schedule a
time for all activities in the tree to be performed.
l Perform a project: Right-click My Project and select Perform Now or Perform Later
and schedule a time to perform all project activities in the tree.
l Whenever you trigger the performance of a whole project, tree or individual activity,
all the activities to be performed are shown under a job heading.
l When all the activities belonging to a job are completed the job and its activities
disappear from the Scheduler window.
l If there is an error during the performance of an activity, icons for that job and
activity remain in the Scheduler window until removed.
EXAMPLE
l To cancel all jobs, right-click the Scheduled Jobs label or the cogwheel icon, and
select Cancel All Jobs.
l To remove (clear) all failed activities and jobs, right-click the Scheduled Jobs label
or the cogwheel icon, and select Clear All Errors.
l To cancel a specific job, right-click the job label (for example, Job no 1) and select
Cancel Job.
l To remove (clear) a specific failed job, right-click the job label (for example, Job no
1) and select Cancel Job.
l To open a window with error details, right-click the label for the failed job (for
example, Job no 1), and select Show Error Log.
System Definer 61
The System Definer Settings 61
Property Model Calculator 68
Property Model Calculator Workflow 69
Equilibrium Calculator 82
Diffusion Calculator 91
Precipitation Calculator 103
Precipitation Calculator Settings 104
Plot Renderer 108
The Configuration Window 109
Table Renderer 133
Experimental File Reader 136
Binary Calculator 137
Ternary Calculator 139
Scheil Calculator 141
Scheil Calculator Advanced Settings 143
System Definer
In a System Definer activity, you select the database to use to retrieve thermodynamic data
and define which elements the system has as components. You can also select the species to
include as well as change the reference temperature and pressure for your components.
Also see "Creating Activities and Successors" on page 35 for a list of possible
successors and predecessors for this activity.
At the top of the Configuration window you can choose to add one or more databases by
clicking the Add a database button. You can also choose a predefined or custom database
package from the Package list. Depending on your license, there are predefined database
packages available to select.
You can also click Remove this database button as required.
If you have chosen a database package and then remove or change a database,
a message displays Selected databases and selected package may differ. This
means that the original package you selected, which added preset databases,
does not match the databases you are using for the project. For information
about how to clear the message, see "Global Settings: System Definition (System
Definer)" on page 227.
There are several settings tabs available for the System Definer activity.
The following example uses the FEDEMO and MFEDEMO databases and Example 12
available with the Graphical Mode Examples.
Elements
On the Elements tab, and based on the databases or database package selected, you can
select and review elements using a Periodic Table or Alphabetic List format. Unavailable
elements are greyed out on the Periodic Table view.
Periodic Table
In this example, using the demonstration databases FEDEMO and MFEDEMO, there are only
a select number of elements to choose from.
Alphabetic List
Material Composition
On the Periodic Table page, you can also define the material composition:
At the bottom of the window, click Load material to open a material file. The default folder
opens to the Materials folder included with your installation.
"About the Material Files" on page 17 and "Examples, Manuals and Materials
Folders" on page 11
You can also click Save material as to save the material you defined, for example Ferritic.
If you Load a material file and then change the composition, a message displays
The composition has changed. This means that the original values/composition
does not match the values you are using for the project. The message is cleared
by either reloading the material file or editing the composition field to the
original value.
Species
On the Species tab for each database you can select and edit the Species.
At the bottom of the window, click Add new species and enter the name of species in the
field.
At the top of the Phases and Phase Constitution tab for each database, you can review and
edit the Status (Entered or Dormant) for the selectedPhases. Select the Check/uncheck all
check box to toggle between the options.
To review the Phase constitution for a specific phase, click it in the Phase list (for example
BCC_A2) and its details are displayed at the bottom of the window. Click Edit then click an
element to select or reject a constituent. The last remaining constituent on a sublattice
cannot be rejected.
Components
The Components tab is where you can review and edit the Component, Reference phase,
Reference temperature, and Reference pressure. Click to toggle the SER (Stable Element
Reference) check box on and off. Then choose a Reference phase from the list and edit
accordingly.
Data Sources
Data sources are not available until the activity has been performed. Click Perform Tree to
display available data sources.
Description
The Description tab displays a description of the selected database(s). In this example,
MFEDEMO.
1. Right-click My Project and from the menu select Create New Activity→ System
Definer .
2. In the Project window, click the "System Definer" on page 61 activity node.
3. In the Configuration window, from the Databases menu choose Database(s) or a
Database Package.
OPTIONS:
l Select <User database>to define your own.
l You can choose to add one or more databases by clicking the Add a database
button.
l From the Package list, choose a predefined database package to add multiple
databases at a time. Depending on your license, there are predefined database
packages available to select.
4. Select the Elements tab to choose the elements in the Periodic Table or use the
Alphabetic List to choose elements for the system.
5. As required click the tabs to make edits: Species, Phases and Phase Constitution,
and Components. The Data Sources and Description tabs provide information based
on the database.
6. Click Perform to start the System Definer activity immediately and retrieve
thermodynamic data about the system. Click the Event Log window to watch the
progress of the job.
Experienced users can also create custom property models. See the
"Introduction to the Property Model Development Framework" on page 2 for
details.
You can evaluate models simultaneously over a range of compositions and cross plot the
results. You can then conduct an uncertainty analysis and plot the results as either a
Also see "The Quick Start Wizard" on page 51 and "Creating a Project from a
Template" on page 53.
For examples using the Property Model Calculator, see examples 10, 11, and 12
in Graphical Mode Examples.
Configuration Window
Configuration Settings
Setting/Button Description
Composition Choose a unit: Mass percent, Mole percent, Mass fraction or Mole
unit fraction
Setting/Button Description
Choose a calculation type: Single (no axes), One axis, Grid, Min/Max
or Uncertainty.
Select Single to calculate a single point.
Select One axis to vary a quantity on the X-axis.
Select a Grid to evaluate two axis variables of the selected quantities
in the specified range and number of steps.
Calculation The Min/Max calculation evaluates the property model(s) for all
Type variations of the selected quantities at the given limits. The Mean
field is as defined under Condition Definitions for the respective
quantity. The total minimum and maximum of the model(s) results
are shown in the Event log.
The Uncertainty calculation evaluates the property model(s) where
the values of the quantities are sampled from Gaussian distributions.
The Mean field is as defined under Condition Definitions for the
respective quantity. The result is visualized as a histogram or normal
probability plot by adding a Plot Render activity.
Single For the Single calculation type no further settings are required. The
calculation results from this calculation are displayed in the Event Log.
For One axis, select a Quantity to vary along the X-axis, for example,
Axis Definition
Temperature then enter a Min, Max and Number of steps.
For the Grid calculation type, define the two axes variables using the
fields and menus: Quantity, Min, Max and Number of steps. The
Grid Definitions number of steps along with the minimum and maximum values for
the axes define a grid. For each grid point the selected models are
evaluated.
For the Min/Max calculation type, click to select the applicable check
boxes under Quantity to enable or disable an axis. The Mean field
Min/Max is as defined under Condition Definitions for the respective quantity.
Definitions Enter numerical values in the ∆ Min/Max fields to evaluate the
change to the quantity. The highest and lowest value of each selected
model results are shown in the Event log.
Setting/Button Description
Also see "About the Uncertainty Calculations" on the next page for more detail.
1. From the left side of the Configuration window, click to select one or more of the
check boxes under the General Models folder.
A tab with the same name as the property model opens in the right side of the window
under Condition Definitions. When you select more than one model, a matching tab is
added in the same order that the check box is selected.
2. Enter the settings described in the following table for the Condition Definitions and
for each Calculation Type (Single, Grid, Min/Max, and Uncertainty). For each model
on the Configuration tab, select or enter settings as required. Click the Description
tab for more information about the model and refer to the individual sections for
details.
As long as the number of events (the sample size) is very large, then the Gaussian
distribution function can be used to describe physical events. A Gaussian distribution is
assumed to describe how each quantity varies in an uncertainty calculation.
In Thermo-Calc, the mean of the quantity’s distribution is defined in the Condition Definitions
section. The Mean is then used in the Sampling of Data from Gaussian Distributions section
as the starting point for how much you want to deviate from this value.
The values entered in the ∆ Min/Max fields are the resulting width of the distribution
corresponding to the 95% confidence interval (approximately µ ± 2σ) shown in Gaussian
distribution, the 3-sigma rule.This confidence interval means that approximately 95% of the
sampled values will fall within these limits.
The default value for truncating the distribution is set at 3 standard deviations in the
Sampling Parameters section. This is also where you set the Total number of samples. The
default is 200. In order to maintain a Gaussian distribution for the varied quantities, this
number should not be too low.
You can experiment by varying the conditions and the number of samples to see the
distribution results smooth out as is to be expected based on the Central Limit Theorem. For
example, on the Plot Renderer the variable is set to measure the Composition of Ni. The
initial sample size uses the default, 200, and then, as in the example below where the
sample size is increased to 300, 400, 600, 800, and 1000 to show how the plot follows the
Gauss distribution.
Histogram Plot
This is a series of histogram plots of the uncertainty calculations sampling data from
Gaussian distributions. It compares the Ni composition where the total sample size is
increased to show how the model follows the Gauss distribution.
This is a normal probability plot example of the uncertainty calculations sampling data from
Gaussian distributions. It compares the Ni composition where the total sample size is 200.
The sampled data (blue line) closely follows the ideal normal distribution (red line).
Deviations are naturally larger at the tails (≈1%Ni and ≈2%Ni) since the number of samples
are fewer there compared to the center of the distribution.
Define the:
l Matrix phase - The single phase region to start in. Select 'Any phase' to use the
phases that take part of the initial equilibrium or choose a specific phase.
l Phase to form - For the new phase to be formed, select 'Any phase' or choose a
specific phase.
l Condition to vary – Choose whether to vary a composition or temperature condition
when calculating the phase transition.
l Search direction - For the composition or temperature condition being varied,
choose the Search direction to be in a Positive, Negative, or Positive and Negative
direction.
l Upper search limit and Lower search limit - These values also relate to the search
direction, where an estimated change to the released condition implies where a new
phase is expected.
The start value (given in Condition Definitions) and phase transition point need to be
within these limits, otherwise the model returns Not a Number as result. For example,
a start temperature is 1100 K then the limits need to be outside these, e.g. 500-1500.
Driving Force Model
The Driving Force model calculates the thermodynamic driving force for a phase.
l Matrix phase: Choose a Matrix phase, the single phase region to start in. Select 'Any
phase' to use the phases that take part of the initial equilibrium or choose a specific
phase.
l Precipitate phase: Choose a Precipitate phase to calculate its driving force.
For other planes and/or other phases, the estimate is approximate. In most situations, it is
recommended to perform calibrations against some experimental data because the
interfacial energy is dependent on so many factors that are ignored in the estimation, for
example entropy, incoherency, orientation, and curvature, etc. Uncertainty factors must also
be considered as thermodynamic data in CALPHAD databases are not always accurate.
Select the Matrix phase and Precipitate phase to return the interfacial energy [J/m2].
where σc is the coherent interfacial energy, ns is the number of atoms per unit area at the
interface, zs is the number of cross bonds per atom at the interface, zl is the coordination
number of an atom within the bulk crystal lattice, and ∆Εs is the energy of solution in a
multicomponent system involving the two phases being considered. (Reference1).
Coarsening Model
The Coarsening model calculates the coarsening rate coefficient K (m3/s) of a spherical
precipitate phase in a matrix phase.
Returns the coarsening rate coefficient [m3/s] for the precipitate phase and the
interfacial energy [J/m2] between matrix and the precipitate phase.
This model requires that the thermodynamic and kinetic databases used include
descriptions of molar volume of the matrix and precipitates as well as mobilities
for the matrix phase.
1Becker, R., Die Keimbildung bei der Ausscheidung in metallischen Mischkristallen, Ann. Phys. 424, 128–140 (1938).
Particle Coarsening
In the coarsening regime where the driving force is capillarity, the change of mean particle
radius evolves according to the equation:
Following Morral and Purdy, the rate constant of precipitating β phase in a multicomponent
α phase is
The mobility matrix M is not the same as the mobilites that can be obtained directly from
the Diffusion Module (DICTRA). The M matrix instead corresponds to the L’’ matrix as
defined by Andersson and Ågren.
Using the u-fractions that is defined as
where the summation only is performed over the substitutional elements give the final
equation for the coarsening rate coefficient.
The interfacial energy σ is calculated using the extended Becker’s model (that also is
available as a separate Property Model Calculator model)
References
Equilibrium Model
The Equilibrium model calculates the equilibrium for the given conditions. Optionally define
additional Function Definitions. All quantities that normally can be obtained from an
equilibrium calculation can also be obtained when plotting the results, as well as the defined
functions.
Equilibrium Calculator
An Equilibrium Calculator allows you to set the conditions for, and perform, a calculation.
The Configuration window for an Equilibrium Calculator has these tabs:
l Conditions: Set the conditions for your calculation that define the stepping or
mapping axis variables. This tab can be viewed in a simplified mode and in an
advanced mode. See "Equilibrium Calculator Conditions Settings" on the next page.
l Functions: Define your own quantities and functions, which you then can calculate
and plot. See "Calculating and Plotting Functions" on page 90.
l Options: Modify numerical settings that determine how equilibria are calculated, as
well as how stepping and mapping calculations are performed. See "Equilibrium
Calculator Options Settings" on page 87.
The Options tab is where you can locally define specific Equilibrium Calculator
settings. These settings can also be applied globally. From the main menu select
Tools → Options and click the Activities tab. Then click Calculation. See
"Global Settings: Calculation (Equilibrium Calculator)" on page 231 for some
more information.
See "Creating Activities and Successors" on page 35 for a list of possible successors and
predecessors for this activity. An Equilibrium Calculator that is the successor of another
Equilibrium Calculator inherits all the Configuration window settings of the predecessor.
For an example of how serially coupled Equilibrium Calculators can be used, see
example 6 in "Equilibrium Calculator Examples" on page 13.
Configuration Window
In advanced mode, you can add and remove conditions as well as set additional axis
definitions. However, the number and types of conditions set must still conform to the Gibbs’
phase rule. The Number of missing conditions is field, at the top of the tab shows how
many conditions that you have left to set. If the number is negative, then that number of
conditions need to be removed.
Setting Conditions for Simplified Mode
The following table briefly describes what you can set on the Conditions tab in simplified
mode. Click Switch to advanced mode for more options.
Setting or
Options
Condition
Condition Specify the values (and units) of the state variables: Temperature,
Definitions Pressure, and System size.
Property diagram: Define the axis variable using these fields and
menus: Quantity, Min, Max, Step division and Type.
Axis Definitions
Property grid: Define the two axis variables using these fields and
menus: Quantity, Min, Max and Number of steps.
Setting or
Options
Condition
Phase diagram: Define the two axis variables using these fields
and menus: Quantity, Min, Max, Step division and Type.
Set a fixed Number of steps. The number of steps along with the
Number of steps
minimum and maximum values for the axes define a grid. For
(Property grid)
each grid point an equilibrium is calculated.
Type options: Linear - min no. of steps, Linear - max step size and
Logarithmic - scale factor.
For Linear - min no. of steps, the Step division value specifies a
minimum number of steps that is calculated between the
Type and Step
minimum and maximum value during the stepping/mapping
division (Property
operation.
diagram and Phase
diagram) For Linear - max step size, the Step division sets the maximum
size of each step.For Logarithmic - scale factor, Step division
specifies the scale factor of a logarithmic function that distributes
the steps from the initial equilibrium to the minimum and
maximum values defined.
1. Right-click a node that can add an Equilibrium Calculator to your project. See
"Creating Activities and Successors" on page 35 for a list.
2. In the Project window, click the Equilibrium Calculator activity node.
3. In the Configuration window, click Switch to advanced mode.
If the Default calculation mode is globally set to Advanced then by default the
Configuration window is already in advanced mode. See "Changing Global
Settings" on page 223.
Above the condition definitions, the Number of missing conditions is field is probably
-1. This means that you must remove one condition.
7. To remove a condition, either click the remove button, or click to clear the check-
box. For example, if you want to know at what temperature your material starts to
melt, then you cannot have a fixed temperature, in which case the temperature
condition is not selected:
The Number of missing conditions is field displays 0. When you have set all your
conditions, you can perform the Equilibrium Calculator (now or later).
Setting Options
Default
calculation Simplified (the default) or Advanced
mode
Default
Single equilibrium (the default), Property diagram, Phase diagram or
calculation
Property grid
type
Setting Options
Global The check box is selected by default to ensure that the most stable
minimization minimum under the specified conditions is computed.
By default, the program tries 500 iterations before it gives up. As some
Max no of models give computation times of more than 1 CPU second/iteration,
iterations this number is also used to check the CPU time and the calculation
stops if 500 CPU seconds/iterations are used.
Coarse (2000 grid points, the default), Medium (20,000 grid points),
Max grid
Fine (200,000 grid points), or Custom (set your own number of grid
points
points).
The default is 1.0E-12. This is the value assigned to constituents that are
unstable. It is normally only in the gas phase you can find such low
fractions.
The default value for the smallest site-fractions is 1E-12 for all phases
except for IDEAL phase with one sublattice site (such as the GAS
Smallest mixture phase in many databases) for which the default value is always
fraction as 1E-30.
Setting Options
Force
positive
definite The check box is selected by default.
phase
Hessian
Control
The check box is selected by default
stepsize
Property diagram
Global The check box is selected by default to ensure that the most stable
minimization minimum under the specified conditions is computed.
Phase diagram
Global The check box is selected by default to ensure that the most stable
minimization minimum under the specified conditions is computed.
Global test At node points (the default), Every 10th eq, Always or Custom
interval
Generate
starting
The check box is selected by default
points
automatically
Use inside
meshing Click to select the check box as required
points
No of meshes
The default is 3
along an axis
For an example of how you can use functions that you yourself define, see
example 7 in "Equilibrium Calculator Examples" on page 13.
4. Under Function Definitions, click the add button to add a new function. In the left
field edit the default name of each function and enter the function itself in the right
field after the equal sign. In this example, the quantity defined as Q1 is renamed to
fraction_solid, which gives as its output the fraction of solid phase (1-Q1).
You can also use Console Mode syntax when entering the function. For example,
the function above can be entered as 1-NP(LIQUID).
5. To plot the defined function, right-click Equilibrium Calculator and choose Create
new successor→Plot Renderer.
6. Click the Plot Renderer node. In the tab for the Equilibrium Calculator that contains
the function, set an Axis variable to Function, then from the menu select the defined
function. In this example the Y-axis is set to plot the value of the function fraction_
solid.
When run, the Plot Renderer plots the value of the function.
Diffusion Calculator
The Diffusion Calculator is available with two elements if you do not have the
additional Diffusion Module (DICTRA) license. With the add-on module you can
use all available elements as per the licensed database selected.
A Diffusion Calculator allows you to set the conditions for, and perform, a diffusion
calculation. The Configuration window for a Diffusion Calculator has these tabs:
l Conditions: Set the conditions for your calculation that define the geometry, regions,
phases, grids, composition profiles and the thermal profile.
l Options: Modify the simulation conditions such as the choosing the default solver
(automatic or homogenization) and the time integration method. Also define the
time step controls and if you choose homogenization as the solver, define further
settings such as the interpolation scheme and whether to use global minimization or
not.
The following Configuration window is from the Graphical Mode Quick Start Guide. It is using
project example file Ex_20 - Diffusion of a Moving Boundary.
EXAMPLE
The following sections list the settings available from the Conditions tab. For the Options
tab, see "Diffusion Calculator Options Settings" on page 98.
You can edit the defaults for some of these settings by going to Tools →
Options → Graphical Mode → Diffusion. Also see "Global Settings: Diffusion
(Diffusion Calculator)" on page 231.
General
Setting Options
Composition Choose from Mass percent, Mole percent, Mass fraction or Mole
unit fraction.
Region
See also these Console commands for some of the equivalent settings: ENTER_
COMPOSITIONS and ENTER_GRID_COORDINATES
Setting Options
Enter a Name for the region in the field. For example, enter Austenite.
Name
This name is automatically updated on the tab and above the grid points
Setting Options
graphic. You can also double-click the tab to enter the name.
Enter a numerical value in the Width field. The unit is the one selected
Width
for the Length unit.
Points Enter a numerical value in the points field. The default is 50.
Choose a Phase from the list. The available options are defined in the
System Definer. At least one phase that dissolves all system elements
Phase must be selected.
Click the Add quantity or Remove quantity buttons as required.
Composition
profile
Select a Dependent component for which the composition does not
need to be given. The available options depend on the phase description.
For each Component choose one of these options:
Setting Options
Thermal Profile
Setting Options
Setting Options
If you are using the Diffusion Module in Demo Mode, see "Demonstration
(Demo) Mode" on page 98 for what is available to you. Even if you have a
license, you may find yourself in Demo Mode if you have a network license and
all the licenses are checked out. See Diffusion Module (DICTRA) Licenses for
more information.
Using the Template
When you first open Thermo-Calc in Graphical Mode, on the My Project window, click the
Diffusion Simulation button to add a System Definer, Diffusion Calculator and Plot Renderer
to the Project tree.
Click the Diffusion Simulation icon in the Templates window to add THESE NODES to the
Project.
Diffusion Calculator
A Diffusion Calculator allows you to set the conditions for your calculation that define the
geometry, regions, phases, grids, composition profiles and the thermal profile, plus
additional options. Many of the settings are automatically set as you define your system.
Details about this activity are described in "Diffusion Calculator" on page 91 in the Thermo-
Calc User Guide.
Demo Database Packages for the Examples Collection
Both a thermodynamic and mobility database are required to run the Diffusion Module
simulation. If you have a Diffusion Module (DICTRA) license you can run all the examples
because the demonstration database packages are included with your installation.
Select the database packages from the System Definer Configuration window to run a
simulation.
If you are in Demo Mode, see "Demonstration (Demo) Mode" on the next page
to learn more.
EXAMPLE
Demonstration (Demo) Mode
The Diffusion Module and two examples are available to all Thermo-Calc users but only for
simulations with two elements. If you do not have a license for the then you are in Demo
Mode when using the Diffusion Calculator or Diffusion Simulation template.
Diffusion Simulation Template
When you are in DEMO mode, in the Templates area this is indicated by the text under the
logo.
Diffusion Calculator
If you are experimenting with the Diffusion Calculator in Demo Mode, you may have access
to a variety of databases based on your license. However, you can only define two elements
for a demo simulation.
If you define more than two elements on the System Definer, when you go to the Diffusion
Calculator, the Perform button is unavailable and the tooltip explains why.
EXAMPLE
Even if you have more than two elements, the Plot Renderer Perform button is
still available. However, if you click the button and try to run the simulation the
Event Log displays an error message.
Diffusion Calculator Options Settings
The following settings are available on the Options tab for aDiffusion Calculator.
You can edit the defaults for some of these settings by going to Tools →
Options → Graphical Mode → Diffusion. Also see "Global Settings: Diffusion
(Diffusion Calculator)" on page 231.
Simulation Conditions
See also these Console commands for some of the equivalent settings:
HOMOGENIZATION_MODEL, SWITCH_MODEL, SET_SIMULATION_CONDITION,
and SET_NUMERICAL_LIMITS.
Setting Options
Automatic or Homogenization.
Yes, No or Every nth. . Select Every nth to enter a value in the field.
This setting is determine if the results are to be saved on file during the
course of the simulation.
Save results
on file l Yes to always save on file
l No to never save on file
l Every nth. to save every nth time to file. Then enter an integer
value ranging from 0 to 99.
Use forced Select the check box to have these equilibrium calculations performed
Setting Options
starting
values in
using forced starting values.
eq.
calculations
Enter a value in the field. The required driving force (evaluated as DGM
Default (ph)) to be used for determining whether an inactive phase is stable.
driving DGM is the variable for the driving force that is already divided by RT,
force for and it is dimensionless. The default is 0.01.
inactive
phase Also see "Suffixes" on page 341 in the Thermo-Calc Console
Mode Command Reference.
Timestep Control
See also these Console commands for some of the equivalent settings: SET_
ACCURACY, SET_SIMULATION_TIME, and SET_SIMULATION_CONDITION.
Setting Options
Max relative error Enter a value in the field. The default is 0.05.
Max absolute error Enter a value in the field. The default is 1.0E-5.
Time step l Initial. What is used as the initial time step. The
default is 1.0E-7.
l Smallest allowed. The smallest time step
allowed during the simulation. This is required
when using the automatic procedure to
determine the time step. The default is 1.0E-7.
Setting Options
Factor specifying the For example, if 2 is entered the maximum time step is
maximum increase in the twice as long as the previous time step taken.
time step taken from one
time step to another Enter a value in the field. The default is 2.
Setting
Use the [activity or potential] of a component in order to find the correct tieline at the
phase interface.
Determines whether the program should use the potential or the activity of a component
in order to find the correct tie line at the phase interface. The potential or the activity is
varied by the program and is set in order to reduce the degrees of freedom at the local
equilibrium.
Required accuracy during the solution of the flux balance equations. The default is 1.0E-
16.
See also these Console commands for some of the equivalent settings: ENTER_
HOMOGENIZATION_FUN and HOMOGENIZATION_MODEL.
Setting Options
Setting Options
The labyrinth factor functions implies that all diffusion takes place in a single continuous
matrix phase. The impeding effect on diffusion by phases dispersed in the matrix phase is
taken into account by multiplying the flux with either the volume fraction (Labyrinth factor f
with prescribed matrix phase), or the volume fraction squared (Labyrinth factor f**2 with
prescribed matrix phase), of the matrix phase.
The varieties with excluded phases are useful in several respects. First, if a phase is
modelled as having zero solubility for a component, the mobility of that component in that
phase is undefined, which causes a (non-terminal) error. Setting a phase as excluded causes
the mobility of all components in that phase to be set to zero. Second, often there are some
major matrix solid solution phases and some minor precipitate phases. If the mobilities in
the minor precipitate phases are zero the lower Hashin-Shtrikman bound is useless as it
produces a kinetic coefficient of zero. However, using General lower Hashin-Shtrikman
bound with excluded phase(s) the excluded phases are not considered when evaluating what
phase has the most sluggish kinetics.
Precipitation Calculator
The Precipitation Calculator is available with two elements if you do not have
the additional Precipitation Module (TC-PRISMA) license. With the add-on
module you can use all available elements.
A Precipitation Calculator allows you to set the conditions for, and perform, a precipitation
calculation. The Configuration window for a Precipitation Calculator has these tabs where
you define the settings:
l Conditions: Set the conditions for your calculation that define the Matrix and
Precipitate phases. Choose the Calculation Type.
l Options: Modify Numerical Parameters that determine how the conditions are
calculated. The Growth rate model can be set to Simplified or Advanced mode.
Example
You can edit the defaults for some of these settings by going to Tools →
Options → Graphical Mode → Precipitation.
Name Details
Matrix Phase
Phase: Choose a phase from the list. The list is based on the settings for the System
Definer. When setting up your system, choose a matrix phase with kinetic data available
in the database.
Only phases with kinetic data can be selected as the matrix phase. If the list
is empty, go to the System Definer to make sure that both thermodynamic
and kinetic databases are selected and defined. See "System Definer" in the
Thermo-Calc User Guide or search the Online Help.
Click Show details to view these additional settings for the Matrix Phase:
l Molar volume: Choose the default to take the value from the Database or User-
defined to enter another value. Database is available in the list when the molar
volume for the phase is defined in the thermodynamic database.
l Grain radius: Enter a numerical value and choose a unit from the list. The default
is 1.0E-4 m.
l Grain aspect ratio: Enter a numerical value. The default is 1.0.
l Dislocation density: Enter a numerical value. The default is 5.0E12 m-3.
l Mobility enhancement prefactor: Enter a numerical value.
l Mobility enhancement activation energy: Enter a numerical value.
Precipitate Phase
Phase: Choose a phase from the list. The list is based on the settings for the System
Definer.
The phases available to choose have both thermodynamic and kinetic data.
If the list is empty, go to the System Definer to make sure that both types of
databases are selected and defined. See "System Definer" in the Thermo-
Calc User Guide or search the Online Help.
Name Details
Interfacial energy: Choose Calculated to use the estimated value and then enter a
different prefactor value if you want to adjust the estimated value. You can also choose
User defined to enter a value in J/m2.
l Molar volume: Choose the default to take the value from the Database or User-
defined to enter another value. Database is available in the list when the molar
volume for the phase is defined in the thermodynamic database.
l Phase boundary mobility: Enter a numerical value.
l Phase energy addition: Enter a numerical value.
l Approximate driving force: Select the check box to include this if simulations
with several compositions sets of the same phase create problems.
Calculation Type
Name Details
Numerical Parameters
Name Details
Min radius for a nucleus to The cut-off lower limit of precipitate radius. The default is
be considered as a particle 5.0E-10 m.
Max time step during The upper limit of the time step that has been enforced in
heating stages the heating stages. The default is 1.0 s.
Plot Renderer
The Plot Renderer is where you define the settings and output results in a diagram that
displays in the Results window. The available Plot Renderer settings are based on the System
Definer and calculator activity node predecessors (e.g. Equilibrium, Scheil, and Property
Model Calculators). Setting availability is also determined by the calculation type. There are
also other "Plotting Options" on page 114.
Plot Toolbar
Setting/Button Description
Save Diagram
Save the plot diagram.
Show Triangular Display the diagram in triangular form, with the X-axis along
the base and the Y-axis along the left side. Such a diagram is
often useful if you want to plot the fractions of two components
in a ternary diagram.
Show Grid
Overlay a grid on the diagram.
Switch Axes
Show the plotting X axis variable on the diagram’s Y-axis, and
the Y axis variable on the diagram’s X-axis.
Retain Labels
Toggle the default to keep labels displaying on the plot. By
default labels are retained.
Plot Settings
Setting/Button Description
Setting/Button Description
You can select a Legend style for the Stable phases or Axis
quantity selected for Legend option. Choose None, All,
Legend style Constitution description, or Ordering description.
Setting/Button Description
Set the state variable you want plotted along the X-axis and the
Y-axis.
Specify the range along the axis to show in the plot. In the
fields, enter the minimum and maximum values of the axis
variable. You can also determine the step size between the tick
Limits marks along each axis.
Select the Automatic scaling check box to allow the program
to set the limits.
Plotting Options
The "Plot Renderer" on page 108 is a dynamic activity node with options such as being able
to:
l add more than one Plot Renderer to its predecessor node (i.e. one of the calculator
activities),
l add axes to the plots, and
l merge results in one plot.
Also see "Plotting Several Calculations in One Diagram" on page 123 for details.
Also see "Merging Plots into One Diagram" on page 126 for details of how to
combine diagrams.
A contour plot showing both the driving force and interfacial energy calculation results comparing
Mass percent Cr to Mass percent Mn.
Legend Examples
To show the differences between labels, the following uses the same example file that
creates Figure 6 in TCNi8 database extended information document (found on the Thermo-
Calc website).
When All is selected for this specific example the label includes the following:
Specifically:
l There are two disordered FCC phases (matrix and carbide), one ordered FCC
(gamma prime), plus a phase NI3TA_D0A (called Delta in Ni-alloys).
l ORDERING shows the different FCC phases.
l CONSTITUTION shows that FCC_L12#1 is NbC, FCC_L12#2 is matrix with Ni and Cr as
major constituent, FCC_L12#3 is Ni3Al with Nb addition and NI3TA_D0A is Nb-rich
(eg. Ni3Nb).
When you select All the Constitution description and the Ordering description (when
When you select Constitution description, this is added to the standard description.
When you select Ordering description and when there is ordering, this is added to the
standard description.
Label Formatting
You can enter the label as Plain text or in LaTeX-formatted text. For LaTeX-formatted text
enter or edit the text as required. For example, underscores (_) are added before the
numbers to make subscripts in the label.
By default when using LaTeX, you are in math mode and Thermo-Calc
automatically interprets the entered text as math. The above link uses the
dollar sign ($) in all the examples but this is NOT required. For example, if you
enter $E=mc^2$ this is displayed including the $ instead of the equation.
To add a mixture of plain text and equation text, you can exit math mode using the string
\textrm followed by the text to display enclosed in curly brackets. For example \textrm
{Mole-fraction }Al_2O_3 results in the label as shown:
In this example, you need to add a space at the end of fraction in order to
separate the text from the equation part of the label.
When working in Console Mode, you can also use the above windows on the
Console Results window to add and edit labels. In addition, you can use the ADD_
LABEL_TEXT command described in the Thermo-Calc Console Mode Command
Reference.
To prevent unintended edits, hold down <Ctrl> while moving the cursor around
the plot to only display it as a crosshair.
Saving Plots
1. To save a diagram, at the top of the Configuration window click Save Diagram.
Or right-click the diagram in the Results window and select Save As.
2. In the Save window, navigate to where you want to save the plot, enter a File name,
and choose the File type to save it in. Click Save.
For examples where several calculations are plotted in one diagram, see
Graphical Mode example tcex5.
To plot several calculations in one diagram, you must have, in addition to the Plot
Renderer’s original predecessor, at least one available Plot Renderer predecessor in your
project, for example, the additional predecessor can be an Equilibrium Calculator, Binary
Calculator, Ternary Calculator, Scheil Calculator or Experimental File Reader.
3. Select a predecessor. When added, the extra predecessor is linked to the Plot
Renderer. On the Plot Renderer’s Configuration window, the predecessors are shown
as two tabs:
4. Configure how you want each calculation plotted on the tabs in the Configuration
window, then click to Perform the Plot Renderer activity.
The calculations are plotted in the same diagram in a tab in the Results window. If
any of the axis variables of the plots differ, then the label and scale of all calculations
are shown parallel to each other. The following screen shot shows a diagram in which
two calculations with different plotting axes variables have been plotted.
1. In the Project window right-click the calculator node (e.g. an Equilibrium Calculator)
and add a Plot Renderer node from the Create New Successor menu.
2. Click the Plot Renderer node.
3. In the Configuration window, define the plot. Available settings are based on the
calculation type.
4. Click the Add an axis button. A new settings section is added underneath.
5. From the X Axis and/or Y Axis sections define another Axis variable and choose an
Axis type.
6. Click Perform to plot both variables on the selected axis, in this example, the Y-axis.
Axis Example
In this example Amount of phase and Volume are selected as the Y-axis variables and
Temperature as the X-axis variable.
Plot Example
1. In the Project window right-click the calculator node (e.g. Property Model
Calculator) and add a Plot Renderer node from the Create New Successor menu.
2. Click the Plot Renderer node.
3. In the Configuration window, define the plot. Available settings are based on the
calculation type.
Example
In this example the Property Model Calculator is set to a Grid calculation type.
Choose On for the Legend option and Contour as the Plot type.
4. Click the Add an axis button. A new axes settings section is added underneath.
5. From the Z Axis section choose the Axis variable. In this example, Interfacial energy.
Plot Example
In this case, a contour plot showing both the driving force and interfacial energy calculation
l For Distance also choose a unit (m, μm, or nm) and what region to include. The list
contains the regions defined on the Diffusion Calculator or you can choose All
regions.
l For Time choose a unit (Seconds, Minutes, Hours, or Days).
y-axis Variable
Select the variable to plot on the y-axis. The available options are based on choices such as
whether Distance or Time is chosen for the x-axis, whether isothermal or non-isothermal is
selected, whether there is a homogenization solver, or if there is one or more regions.
l From the center list, choose the component to plot, or select All.
l From the next list, choose the unit to be Mass percent, Mole percent, Mass
fraction, Mole fraction, or u-fraction.
l Total phase fraction: By volume or By mass. Then select a phase from the list.
l Total fraction of element: By mole or By mass. Then select a component from the
list.
l Total fraction of element in phase: By mole or By mass. Then select a component
and a phase from the lists.
l For a non-isothermal thermal profile Temperature is available: Kelvin, Celsius, or
Farenheit.
l Choose the component to plot, or select All and the unit Mass percent, Mole
percent, Mass fraction, Mole fraction, or u-fraction.
l Choose By mole or By mass then select a component from the list.
settings:
l Total phase fraction: By volume or By mass. Then select a phase from the list.
l Total fraction of element: By mole or By mass. Then select a component from the
list.
l Total fraction of element in phase: By mole or By mass. Then select a component
and a phase from the lists.
l Composition at interface: Mass percent, Mole percent, Mass fraction, Mole
fraction. Then choose a Region and whether it is Upper or Lower and a component.
l Position of interface: Choose a unit (m, μm, or nm) and the interface.
l Velocity of interface: Choose a unit (m, μm, or nm) and the interface.
l Width of region: Choose a unit (m, μm, or nm) and the interface.
l For a Non-isothermal profile, Temperature is available. Choose a unit Kelvin,
Celsius or Fahrenheit.
Axis Type
Select the type of axis scale: Linear, Logarithmic, Logarithmic 10 or Inverse.
Limits
Specify the range along the axis to show in the plot. In the fields, enter the minimum and
maximum values of the axis variable. You can also determine the step size between the tick
marks along each axis.
Select the Automatic scaling check box to allow the program to set the limits.
Time
When the x-axis variable is Distance, choose a Time unit (Seconds, Minutes, Hours, or
Days).
Add and Remove Axes
Use the Add an axis and Remove this axis buttons to add additional X- and/or Y-axes to
a plot or to merge plots (to overlay one plot with another in the same diagram).
Precipitation Calculator Plot Renderer
The following is information about the settings available for a Plot Renderer when it is a
successor to a "Precipitation Calculator" on page 103. Also see "Plot Renderer" in the
Thermo-Calc User Guide or search for it in the Online Help.
There are also specific settings related to non-isothermal simulations that are detailed in
this topic.
Plot Settings
Setting/Button Description
Set the state variable you want plotted along the X-axis and the Y-
axis.
Axis variable
Select the Separate multimodal PSD check box to enter settings for
Points, Excess kurtosis, Valley depth ratio and Minimum peak.
Specify the range along the axis to show in the plot. In the fields,
enter the minimum and maximum values of the axis variable. You
can also determine the step size between the tick marks along each
Limits axis.
Select the Automatic scaling check box to allow the program to set
the limits.
Unit (Time X
Choose a Unit : Seconds, Hours, or Days.
Axis)
Add an axis
Use these buttons to add additional X- and/or Y-axes to a plot or to
and Remove
merge plots (to overlay one plot with another in the same diagram).
this axis
When merging plots, you define this variable as the Z-axis.
buttons.
Non-Isothermal Simulations
When doing non-isothermal simulations it is common that particles grow in different
generations. This results in multi-modal size distributions. To correctly estimate the
properties of these different generations of particles you need to separate the peaks of
multi-modal distributions.
When the Separate multimodal PSD check box is selected on a Plot Renderer activity for
the Precipitation Calculator, the size distribution is evaluated at the given time steps and
checked for multi-modal peaks. These are separated and used to calculate the specified
property.
l Mean radius
l Size distribution
l Number density
l Volume fraction
Points
This field is available when Mean radius, Number density or Volume fraction is selected as
the Axis variable. Since the evaluation of multi-modality at each time step is costly, you can
specify how many evaluation Points to use. The points are geometrically distributed over
the time scale where nucleated particles are found. The default is 40 points.
Time
This field is available when Size distribution is selected as the Axis variable. Enter one or a
series of numbers in the field, separated by a space, colon (:), semicolon (;) or comma (,).
Example
For example, if you enter 100.0, 1000.0 and 1.0E7 in the field:
Excess Kurtosis
The Excess kurtosis number specifies the sensitivity when the program evaluates whether a
curve is bimodal or not. The evaluation process calculates the excess kurtosis of the given
size distribution and compares it with the input value. If the value is lower than the given
value, the distribution is split. The excess kurtosis is a statistical measure that measures how
peaked and how heavy tail a distribution has. For the definition used see
http://en.wikipedia.org/wiki/Kurtosis. The default is 25.0.
Minimum Separation Limit (Valley Depth Ratio)
The Minimum Separation Limit is a rough method to prevent that noise or wiggles are
interpreted as different distributions. If a local minima is encountered above this value the
following peak is not interpreted as a new distribution. The valley depth ratio is the ratio of
the minimum separation limit to the peak value. The default is 0.01.
Minimum Peak
Any separated peak below the entered Minimum peak value is removed. The default is
100000.0.
Table Renderer
A Table Renderer visualizes calculation results in a table. Several Table Renderer activities
(as well as Plot Renderer activities) can be shown in the Results window as different tabs.
You can only successfully tabulate the results of a single-equilibrium calculation or a
stepping operation. The tabulated data from an equilibrium calculation is different from the
tabulated data from a stepping calculation.
Also see "Creating Activities and Successors" on page 35 for a list of possible
successors and predecessors for this activity.
For each stable phase listed, from the Composition and constitution menu you can select
the information to view. In this example, the maximum amount of information is shown and
includes details about both composition and constitution for BCC_A2#1.
The default for the Phase description detail can be changed globally. From the
main menu select Tools → Options and click the Activities tab. Then click
Tabulation.
The defaults for these settings can be changed globally. From the main menu
select Tools → Options and click the Activities tab. Then click Tabulation.
You can edit the defaults for some of these settings by going to Tools →
Options → Graphical Mode → Tabulation. Also see "Global Settings:
Tabulation (Table Renderer)" on page 232.
The defaults for these settings can be changed globally. From the main menu
select Tools → Options and click the Activities tab. Then click Tabulation.
The data saved is what is shown in the Table Renderer tab. If data is calculated
but not displayed it is not saved.
Also see "Creating Activities and Successors" on page 35 and the DATPLOT User
Guide included with this documentation set.
1. Right-click My Project and from the Create New Activity submenu choose
Experimental File Reader.
2. In the Configuration window in the EXP file field, enter the name of the EXP-file to
plot.
3. Click Create New Successor and select Plot Renderer. Or right-click the
Experimental File Reader node and from the Create New Successor submenu
choose Plot Renderer.
4. In the Configuration window click Perform or right-click the Plot Renderer node
and select Perform.
Binary Calculator
A Binary Calculator can be used for some calculations involving two components. You can
think of this activity as a combination of a System Definer and an Equilibrium Calculator, but
designed to simplify setting up and performing calculations on binary systems.
The Binary Calculator relies on some specifications that are not supported by all databases.
You need a specially designed database for the Binary Calculator such as the TCBIN
database.
Configuration Window
The following shows the Configuration window of a Binary Calculator activity.
Configuration Settings
The table lists the available settings to configure before performing the calculation.
Also see "Creating Activities and Successors" on page 35 for a list of possible
successors and predecessors for this activity.
Setting Description
Elements In the periodic table, select the two elements that make up
(periodic table) the components of the system.
Phases and Phase This tab is the same as for a "System Definer" on page 61.
Constitution See Phases and Phase Constitution for an example.
Setting Description
Calculation Type
Ternary Calculator
A Ternary Calculator is used for some calculations involving three components. You can
think of this activity as a combination of a System Definer and an Equilibrium Calculator, but
designed to simplify setting up and performing calculations on ternary systems.
Also see "Creating Activities and Successors" on page 35 for a list of possible
successors and predecessors for this activity.
Configuration Window
The following shows the Configuration window of a Ternary Calculator activity:
Configuration Settings
The table lists the available settings that must be configured before performing the
calculation.
Setting Description
Elements
In the periodic table, select the three elements that make up the
(periodic
components of the system.
table)
Phases and
This tab is the same as for a "System Definer" on page 61. See Phases
Phase
and Phase Constitution for an example.
Constitution
Data This tab is the same as for a "System Definer" on page 61. See Data
Sources Sources for an example.
Setting Description
Calculation Types
Isothermal Select the Temperature at which the ternary system is calculated for
section the whole composition range.
Monovariant
The variation of the liquid compositions with temperature is calculated.
lines
Select the Temperature range (Min and Max) and an Interval. The
Liquidus
projection liquid surface and the monovariant lines are calculated over
projection
the given temperature range.
Scheil Calculator
The Scheil Calculator activity is used to perform simulations of Scheil (Scheil-Gulliver)
solidification processes. By default, a Scheil calculation results in an estimation of the
solidification range of an alloy. The calculation is based on the assumption that the liquid
phase is homogeneous at all times and that the diffusivity is zero in the solid. However, it is
possible to disregard the latter assumption for selected components.
By default, a Plot Renderer successor has the default plot axes Mole fraction of solid (X-
axis) and Temperature Celsius (Y-axis). When these default axes are used in the Plot
Renderer, the results of normal equilibria calculations are automatically plotted in the same
diagram as the Scheil calculations.
Configuration Window
The main Configuration window of a Scheil Calculator activity is shown below and listed in
the table. These settings must be configured before performing the calculation.
Configuration Settings
You can edit the defaults for some of these settings by going to Tools →
Options → Graphical Mode → Scheil. Also see "Global Settings: Scheil (Scheil
Calculator)" on page 232.
Setting Description
Temperature
Select the Temperature unit: Kelvin, Celsius or Fahrenheit.
unit
Composition Select the Composition unit: Mass percent, Mole percent, Mass
unit fraction or Mole fraction.
Click to select the Fast diffuser check box to allow redistribution of this
Fast diffuser
component in both the solid and liquid parts of the alloy.
Setting Description
By default the Allow BCC → FCC check box is not selected. Select the
Allow check box to allow transformations in the solidified part of the alloy
BCC→FCC caused by each of the components specified to be a fast diffuser. It is
recommended that you only select this for steels.
The default in the list is the Liquid phase already defined in the
Liquid phase
database.
By default, the program tries 500 iterations before it gives up. As some
Max no. of models give computation times of more than 1 CPU second/iteration,
iterations this number is also used to check the CPU time and the calculation stops
if 500 CPU seconds/iterations are used.
Setting Description
The default is 1.0E-12. This is the value assigned to constituents that are
unstable. It is normally only in the gas phase you can find such low
fractions.
The default value for the smallest site-fractions is 1E-12 for all phases
Smallest except for IDEAL phase with one sublattice site (such as the GAS mixture
fraction phase in many databases) for which the default value is always as 1E-30.
Also see "Creating Activities and Successors" on page 35 for a list of possible
successors and predecessors for this activity and "Scheil Simulations" on
page 181 in the Console Mode section.
Also see "The Graphical Mode Interface" on page 31 for information about that
mode.
In this section:
The currently selected window is called the active window. This has a darker title bar than
the other windows. The windows are:
Console Tabs
By default, the tabs are side-by-side:
You can toggle to view the tabs top-to-bottom/stacked (click the button) and back to side-
by-side (click the button) or the button.
Console Window
By default the Console window is on the left-hand side of the console. This is where you
enter commands. The window can have several Console tabs.
To open and close Console tabs:
l To open (or add), click the button, press <Ctrl+T> when the Console window is
active, or right-click a tab header and select New Console.
l To close, click the button, press <Ctrl+W> or <Ctrl+F4>, or right-click the tab
header and select Close.
l To close all tabs except one, right-click the header of the tab you want to keep and
select Close Other.
l To close all tabs and open a new one, right-click the header of any tab and select
Close All.
You can change the tab name, font and colours for an individual Console tab by right-clicking
its header and selecting Properties.
EXAMPLE
The shortcut is only valid throughout the existing session; it is not saved as a
default. Each time you want to use this file path you must launch Thermo-Calc
from the customized shortcut.
2. In the Thermo-Calc 2017a Properties dialog, Target field, add the following to the
end of the string: –r plus the “path to the default directory”. Include a space between
the –r and path, and use quotation marks around the full file path. A simple example:
-r “C:\Thermo-Calc_Macro_Files”
1. Launch Thermo-Calc from the short cut where you added the parameter.
2. In Console Mode, right click the Console window and choose Properties.
3. In the Console Properties window the Default directory section displays the custom
file path.
l To open new Plot tabs press <Ctrl+Shift+T> or click the add button.
l To open a new Plot tab for the currently active Console tab, press <Ctrl+Shift+T>. To
close the Plot tab, press <Ctrl+Shift+W> or <Ctrl+Shift+F4>.
l If you want to perform a calculation using the POLY module, you typically first
retrieve thermodynamic data in the DATA module, perform the calculation in POLY,
and visualize the results in the POST module. It is possible to define a system directly
in POLY using "DEFINE_MATERIAL" on page 200 and "DEFINE_DIAGRAM" on
page 196.
l If you want to calculate and plot a diagram using a response-driven module, such as
POTENTIAL or SCHEIL, then you can go directly to that module. Response-driven
modules prompt you to go through the steps to do the calculation and the required
post-processing. These modules include BIN, TERN, POTENTIAL, POURBAIX, and
SCHEIL. You typically end up in the POST module after having used a response-driven
module. In the POST module you can modify the plots and save the diagram.
l If you want to tabulate a chemical substance, phase, or reaction, go directly to the
TAB module.
1. You are in the SYS module when you start Thermo-Calc in Console Mode.
2. In the DATA module define the system. Before performing a calculation, you must
define the system and retrieve thermodynamic data. The data is retrieved from a
database file (*.TDB or *.TDC).
3. The data needed to describe a system is then sent to the GIBBS module. This data is
accessed by the POLY module when you instruct it to perform calculations.
4. In the POLY module, perform the calculations.
l In POLY, the conditions are set for an equilibrium calculation (temperature, pressure,
system composition, etc.), then an equilibrium calculation is done.
l If you want to make a property or phase diagram, you set the conditions for a
stepping or mapping operation and perform that operation.
l This generates data that can be used to plot a property diagram (if a stepping
operation is performed) or a phase diagram (if a mapping operation is performed).
l To go to the POST module, you must enter the POST command from within the POLY
module or DICTRA module (if you have the add-on license).
l To go to "Experimental Data Files" on page 72, you must enter the ED-EXP command
from within the PARROT module.
To go back to the previous module type Back. For example, if you are in the DATA module
and entered it from the SYS module, when you type Back, you return to the SYS prompt. This
command is also available to exit from the submodules POST and ED-EXP.
Without a valid Thermo-Calc license, you cannot leave the SYS module. To enter
the DICTRA and DIC_PARROT modules, you also need a valid Diffusion Module
(DICTRA) license key.
CALCULATE_EQUILIBRIUM C-E
CALCULATE_ALL_EQUILIBRIA C-A
LIST_EQUILIBRIUM L-E
LIST_INITIAL_EQUILBRIUM LI-I-E
LOAD_INITIAL_EQUILBRIUM LO-I-E
SET_ALL_START_VALUES S-A-SS-AL
SET_START_CONSTITUENT S-S-C
SET_START_VALUE S-S-V
SET_AXIS_PLOT_STATUS S-A-P
SET_AXIS_TEXT_STATUS S-A-T-SS-A-TE
SET_AXIS_TYPE S-A-TY
SET_OPTIMIZING_CONDITION S-O-C
SET_OPTIMIZING_VARIABLE S-O-V
SET_OUTPUT_LEVEL S-O-LS-OU
Specifying Parameters
Running a command typically requires that several parameter values are specified, which
can be done directly in the command line after the command name. For example, to set an
axis variable for a stepping or mapping operation, enter:
SET_AXIS_VARIABLE 1 X(FCC,FE) 0 0.89 0.025
You can also use SET_AXIS_VARIABLE and press <Enter>. At the command line prompt, you
then specify the parameters one at a time.
On all command lines, you can enter a question mark (?) for help. For some parameters,
enter two question marks (??) for more detailed information.
parameter. For the comma to be interpreted correctly, type a blank space on each side of
the comma. However, if you accept the default values for several parameters that follow
each other, then the commas can be typed in without blank spaces separating them: (,,,) is
interpreted in the same way as (, , ,).
For some commands and parameters, Thermo-Calc treats the values previously assigned as
default values if the command is used again. For example, if the first stepping or mapping
axis variable is specified as:
SET_AXIS_VARIABLE 1 X(FCC,FE) 0 0.89 0.025
Then if you want to change a parameter value for this axis variable, type:
SET_AXIS_VARIABLE 1 , 0.1 ,,,
This changes the minimum value from 0 to 0.1 at which a stepping or mapping operation
halts. The other parameter values remain the same. Consequently, what is typed is
equivalent to:
SET_AXIS_VARIABLE 1 X(FCC,FE) 0.1 0.89 0.025
For activity and/or chemical potential properties, the *and $ normally do not
work properly as wild card characters.
Command Action
Command History
l To scroll through the last twenty commands used, type two exclamation marks (!!)
and press <Enter>.
l To repeat the last n commands, type ! followed by the number of previous
commands to be executed again.
l To scroll through previous performed commands, use the Up (↑) or Down arrow (↓)
keys.
l To read more information about the command history functionality in Thermo-Calc,
type ! ? at the command line prompt.
Log Files
Log files with the file extension *.LOG are plain text files used to save a sequence of
commands. Log files can be edited in a text editor.
l To start saving your input into such a file, use SET_LOG_FILE in the SYS module,
followed by the name of the file that you want to save your command sequence to.
l If you want to save the output in the log file as well, use SET_ECHO before the SET_
LOG_FILE command. Doing this is useful if you want use the log file later as a macro
file.
Macro Files
Macro files (with the file extension of either *.TCM or *.LOG) are plain text files used to save
a sequence of commands that can be loaded and executed. Macro files can be edited in a
text editor. When creating a command sequence, you add comments to the file by starting a
line with @@.
Macro files include comments, which you can either run in Thermo-Calc or open and read in
a text editor.
If you only open and read the macro file in a text editor, you do not see the
output that Thermo-Calc gives in response to the commands stored in the
macro file. It is recommended you run the macro to view all the details.
1. Open Thermo-Calc.
2. Confirm you are in Console Mode. If not, click the Switch to Console Mode button.
3. From the main menu, select File → Open Examples or Help → Open Examples. The
Console Mode folder opens with the Thermo-Calc examples in separate folders.
For the Diffusion Module (DICTRA) examples (*.DCM macro files), click the Up
One Level button and then double click the DICTRA folder.
You can also use up to nine variables in your macro file and prompt the user to enter values
that can be assigned to these variables. Use the @#n character when you want to prompt the
user to provide a value to the variable, where the n is a digit between 1 and 9. You can then
use this value by with the ##n character. For example, you can request the user to provide
the first element of a system by entering the following in the macro file:
@#3First-element?
You can then use this variable with the entering the character ##3 later in the macro file.
For example, you can write:
SET_AXIS_VARIABLE 1 x(##3) 0 1,,,
Finally, there is the @& pause character. Thermo-Calc pauses and waits for input from the
user when this pause character is read from a macro file. Inserting pause characters is
useful if you want to allow the user to monitor what is happening when Thermo-Calc is
running the macro.
Workspace Files
Workspaces files allow you to save all the data in your current workspace. A workspace
contains all the data, specified settings and the result of any calculations performed. The
saved data includes original and modified thermodynamic data, the last set of conditions
and options, and the results of any simulations. You use the command SAVE_WORKSPACES to
create this file type, which is available in the POLY, GIBBS and PARROT modules.
When in Thermo-Calc Console Mode:
For DICTRA in Console Mode, the PARROT .POP files have the file extension
*.DOP.
The workspace has all the settings specified and the result of any stepping or mapping
operations performed after using SAVE_WORKSPACES. Consequently, the command opens a
workspace in which all data is saved which is generated after the SAVE_WORKSPACE
command is executed. The saved data includes original and modified thermodynamic data,
the last set of conditions and options, and calculation results.
To load the data and calculation results of a workspace file, use the READ_WORKSPACES
command available in the POLY module. The file can be used for calculation in POLY,
visualization in POST, or data manipulation in GIBBS. You are also given the option in the
POURBAIX and SCHEIL modules to open a previously saved workspace file. This allows you to
make new POURBAIX or SCHEIL calculations on the same chemical system as before but
with different temperature, pressure, and composition conditions, or to plot new property
diagrams based on the previous calculations.
In Console Mode you use commands to access these menu options. The Tools,
Window and Help menus are described in "Main Menu and Toolbar" on
page 37. If there is an equivalent command, it is listed in the table below.
Option Command
In Thermo-Calc, drag and drop the file into the Console window.
Open files In the SYS module: "MACRO_FILE_OPEN" on page 5
In the SYS module: "OPEN_FILE" on page 301
This command depends on the module you are in. Type ? at the
Save (workspace) prompt to look for a command such as "SAVE_GES_WORKSPACE"
on page 128 (GIBBS module)
1. Right-click the Console tab header in the Console window (if this is the first Console tab,
it is labeled Console 1).
2. Click Properties, and increase the Buffer size in the Console Properties window.
The second part of the command prompt indicates the current default database. For
example, if the prompt is TDB_TCFE8, then the current database is TCFE8.
3. Use DEFINE_ELEMENTS followed by a list of the elements that you want in your system.
(To list the elements that are available in your current database, use LIST_DATABASE
and choose Elements). For example, if you want to have Fe and C in your system,
type:
DEFINE_ELEMENTS Fe C
4. Use REJECT and choose Phases if you want to avoid retrieving any phases from the
database. (To list the phases that are available in your current database, use LIST_
DATABASE and choose Phases. To list the phases that can form in the defined system,
use LIST_SYSTEM and choose Constituent.) For example, if you do not want the
graphite phase to be retrieved, you type:
If the number of phases to include is much lower than the total number of phases,
then it can be convenient to first Reject Phases * and then restore the phases to
include using Restore Phases.
5. Use GET_DATA to search the database and send the thermodynamic data about your
system to the GIBBS workspace.
At this point you can proceed to the POLY module (with GOTO_MODULE POLY).
However, you may want to add elements, phases and species to the GIBBS workspace
from other databases. If so, then proceed to the next step.
6. Use APPEND_DATABASE to select the (additional) database from which you want to
retrieve data. This command works exactly in the same way as the SWITCH_DATABASE
command, with the exception that it does not reinitialize the DATA module and the
GIBBS workspace, but instead appends or replaces the data that has already been
retrieved with new data from the additional database.
7. Define your elements and specify whether to reject and restore any phases. Do this
in exactly the same way when using the SWITCH_DATABASE command (see steps 2
and 3).
8. Use GET_DATA to search the database and add the thermodynamic data to the data
that already exists in the GIBBS workspace.
9. Use APPEND_DATABASE again if you want to add data from yet another database.
When you have retrieved all the data you need, you can proceed to the POLY
module.
Equilibrium Calculations
In this section:
Setting Conditions
Setting a condition normally involves giving a single state variable a specific value. For
example, you can set the temperature to 1273.5 Kelvin (T=1273.5). Alternatively, setting a
condition can involve giving a linear expression with more than one state variable a specific
value. For example, you can set the mole fraction of the S component to be the same in the
liquid and the pyrrohotite phases (X(LIQ,S)-X(PYRR,S)=0).
The number of state variables that need to set is determined by the Gibbs Phase Rule.
Typically, the state variables to give values to are:
l temperature (in K)
l pressure (in Pascal)
l system size in number of moles (in mole) or mass (in grams)
l the fraction of each component (in number of moles or mass)
If you fix the phase of the equilibrium and all but one of the state variables, you can discover
the value of the other state variable at equilibrium.
It is possible to specify a set of conditions that does not have any equilibrium and the
program detects this by failing to reach equilibrium during the calculation.
Calculating an Equilibrium
This topic explains how to calculate an equilibrium in POLY. To calculate an equilibrium
means to calculate the equilibrium composition of your system, given a full specification of
conditions that reduce the degrees of freedom of the calculation to zero.
If you are running a network client installation of Thermo-Calc and cannot enter
the POLY module, this may be because all the license instances on that the
license server makes available have been checked out.
Also see "Equilibrium Calculations with the POLY_3 Module" on page 163 in the
Thermo-Calc Console Mode Command Reference.
This sets the temperature (T) to 1200 K, the pressure to 1 bar (100,000 Pascal), the
mass fraction of Cr to 18 mole percent, the mass fraction of C to 0.13 weight percent,
and the total amount of material to 1 mole. The fraction of Fe in the system is
calculated from the fractions of Cr and C. You have to set the fraction of all the
components in your system except one.
You must leave the state variable whose equilibrium value you are interested in unspecified.
However, if you have already specified that state variable, you can make it unspecified again
by using "SET_CONDITION" on page 220 and set that state variable to NONE. For example, if
you have given temperature a value, you can type:
SET_CONDITION T=NONE
The calculated equilibrium includes the value of the unspecified variable at which the
equilibrium enters the phase that is fixed.
For an example where this is done, as well as where the status of phases is set
to be dormant, see Console Mode example tcex10. Go to "About the Thermo-
Calc Console Mode Examples " on page 2in the Thermo-Calc Console Mode
Examples Guide.
Property Diagrams
In this section:
An axis variable must be a state variable that is set when you calculated the
initial equilibrium. For example, if you set the fraction of a component in
number of moles, then you cannot set the mass fraction of this component as an
axis variable. Also, the minimum stepping variable value must be smaller than,
and the maximum value larger than, the value that you set the state variable to
when calculating the initial equilibrium.
Thermo-Calc lists the phase regions along the stepping axis, the phases contained in
each region, and the number of equilibria calculated in that region. Each region is
defined by the phases it contains.
The number of equilibria calculated is not just the number of steps that are
performed according to the step length and the minimum and maximum values
on the axis variable. This is because Thermo-Calc calculates extra equilibria
when a new phase is discovered in order to determine the phase region
boundary more precisely.
EXAMPLE OF STEP WITH OPTIONS
4. To plot the diagram, use POST to open the POST module and then use PLOT_DIAGRAM.
By default, the X-axis represents the stepping axis variable and Y-axis represents the
sum of the mole fractions of all phases (NP(*)).
l Calculate (and then plot) missing parts of a specific property inside the first property
diagram. These parts are calculated inside the range of the stepping variable with a
different control condition.
l Calculate (and then plot) two or more sets of a specific property on the same
property diagram for the same system. These can be calculated under different
control conditions with stepping operations being performed across the same
stepping axis variable range.
l Calculate phase boundary lines and then plot them in a corresponding phase diagram
for the same system. This can be especially useful for some defined secondary phase-
transformations. For example, if you want to find the phase boundary between BCC_
A1 and BCC_B2, or the equal-Gm for two specific phases, or the equal-fraction or
equal-activity for two specific phases of a certain species, then this can be useful.
Unless you have opened a new workspace file previously using SAVE_WORKSPACES , the
results of the stepping calculations are saved in a RESULT.POLY3 file. To save the results of
several stepping calculations in a file different from the workspace file that your results are
currently saved to, then use SAVE_WORKSPACES before you perform the first stepping
calculation.
Phase Diagrams
In this section:
There is no guarantee that the conditions set will result in a calculation that
reaches an equilibrium.
For an example of the calculation and plotting of a phase diagram, see Console
Mode example tcex04. Go to "About the Thermo-Calc Console Mode Examples "
on page 2in the Thermo-Calc Console Mode Examples Guide.
vary between 0 and 0.1, with the length of each incremental step being no more than
0.002. You then enter:
An axis variable must be a state variable that is set when you calculated the
initial equilibrium. For example, if you set the fraction of a component in
number of moles, then you cannot set the mass fraction of this component as an
axis variable.
3. Use SET_AXIS_VARIABLE to set the second axis variable and specify its minimum,
maximum, and step length values. The axis number is set to 2. For example, suppose
you want temperature as your second axis variable and you want it to vary between
900 K and 1900 K, with an incremental step of 25 K. You then enter:
4. If you want more than two axis variables, then use SET_AXIS_VARIABLE until you have
set all the axis variables. You can set up to five axis variables. Axis variables 3, 4 and
5 must be set temperature, pressure or to the chemical potentials of components.
You may want to save your workspace with SAVE_WORKSPACES before you perform the
mapping calculation. This saves the axis variables you have set. However, it
overwrites the results of any previous stepping or mapping calculations done.
5. Use MAP to perform the mapping calculation. The console lists the phase region
boundaries and the phases contained on one side of each boundary.
6. To plot the diagram, use POST to open the POST module and then use PLOT_DIAGRAM.
By default, the X-axis represents mapping axis variable 1 and the Y-axis represents
mapping axis variable 2.
You must also use SET_CONDITION to set the activity of the component whose activity or
chemical potential you have fixed. Do this by assigning a value to the ACR state variable. For
example, if the component is carbon, you might enter
SET_CONDITION ACR(C)=0.002
Scheil Simulations
In this section:
l See Thermo-Calc Console Mode examples tcex15 and tcex30 in the Thermo-Calc
Console Mode Examples Guide to simulate non-equilibrium transformations without
considering fast-diffusion elements.
l See Thermo-Calc Console Mode example tcex48 in the Thermo-Calc Console Mode
Examples Guide to simulate partial-equilibrium transformation with fast-diffusion
elements taken into consideration. This example also shows how you can perform
If you also have a license for the Diffusion Module (DICTRA), you can import a
previously calculated Scheil segregation profile into the software using the
command INPUT_SCHEIL_PROFILE. Search the online help or see the Diffusion
Module (DICTRA) Command Reference.
Simulating a Scheil-Solidification
Simulating a Scheil-Gulliver solidification process involves calculating the liquid composition
of a higher-order multicomponent system at each step of a cooling process, and resetting
the liquid composition as the composition of the entire system (after having removed all
amount of solid phase).
For example, for a steel/Fe-alloy, enter Fe, for an Al-based alloy, enter Al, and for a
Ni-based super alloy, enter Ni.
5. Set whether to specify the Composition input in mass (weight) percent (the
default) or in Mole percent. Enter Y for mass percent and N for mole percent.
6. Specify the name of the 1st alloying element. You can directly specify mass or
mole percent after the name (for example, enter Cr 5). If this is not specified, then
you are prompted to enter it separately.
7. Specify the other alloying elements in the same way as you specify the first (for
example, c 1).
8. After you have specified your last alloying element, press <Enter> when requested to
specify the next element. This ends the process of defining the bulk composition of
the alloy system.
You can also specify all the alloying elements and their corresponding compositions
on the same line when you are prompted to specify your first alloying element in Step
6. For example, you can enter Cr 5 Ni 1 Mo 0.5 C 0.01 N 0.02.
This value should be sufficiently high so that the solidification simulation starts with
the alloy system in the liquid single-phase region.
10. Decide which phases (if any) to reject at the Reject phase(s) prompt. Enter the
name of the phases to reject or press <Enter> for NONE.
11. Decide whether to Restore phase(s). You may want to restore a phase that you
rejected when you ran the simulation earlier, or you may want to restore a phase
that is rejected by default in your database. Enter the name of the phases to restore
or press <Enter> for NONE.
12. When prompted OK? type N to go back to Step 9 to reconsider which phases to reject
or restore. Type Y to continue.
Thermodynamic data about the alloy system you defined is retrieved from the
database.
13. At the Should any phase have a miscibility gap check prompt, press <Enter>
for N or answer Y.
If you answer Y, you are prompted to specify the Phase with miscibility gap.
Answer with a solution phase name(s) (in this example FCC is entered) as well as the
Major constituents for sublattice (for each sublattice site) (for this example,
Cr is entered for sublattice 1 and C for sublattice 2). In this example the Phase with
miscibility gap is LIQUID PHASE NAME: LIQUID.
T Temperature in Celsius
NL/BL Mole/mass fraction of liquid
NS/BS Mole/mass fraction of all solid phases
NS(ph)/BS(ph) Mole/mass fraction of a solid phase
W(ph,el) Weight fraction of an element in a phase
X(ph,el) Mole fraction of an element in a phase
Y(ph,el) Site fraction of an element in a phase
NN(ph,el) Distribution of an element in a phases
T0 Temperature Simulations
In this section:
T0 Temperature Simulations
The T0-temperature is the temperature at which two phases have the same Gibbs energy for
a certain composition in a multicomponent system. The T0-temperature is located within the
two-phase field between the phases and it is the theoretical limit for a transformation
without diffusion. T0-temperatures are often of interest if you want to understand how
diffusionless transformations work. The T0 temperature in a multicomponent system with a
fixed composition is temperature at which the tangent lines of the Gibbs energies of the two
target phases are the same.
If the composition of one or two components varies, the common Gibbs energy for the two
phases in partial equilibrium of a diffusionless transformation becomes a plane or surface,
and the T0 temperature becomes a line or plane.
See Console Mode examples tcex23 and tcex41. Go to "About the Thermo-Calc
Console Mode Examples " on page 2 in the Thermo-Calc Console Mode
Examples Guide.
1. Use SET_CONDITION to set the conditions of your calculation in the same way as when
you calculate an ordinary equilibrium.
2. Use COMPUTE_EQUILIBRIUM to run the calculation. The calculation does not need to
reach an equilibrium in which any of the target phases is stable.
3. When you have calculated your initial equilibrium, use ADVANCED_OPTIONS and
choose T-zero.
4. When prompted, specify the names of the two target phases for which the T0
temperature (where the phases’ Gibbs energies are equal) is to be calculated.
5. If the T0 temperature between the two target phases is calculated, this temperature
(in Kelvin) is shown in the Console window.
6. If you want to do a stepping calculation based on this initial T0 temperature
calculation, then use SET_AXIS_VARIABLE to specify which state variable to use as the
stepping variable. This is done the same way as when you calculate a normal
property diagram.
7. Use STEP_WITH_OPTIONS and choose T-zero to initiate the stepping calculation. You
are prompted to specify the names of the target phases for which the T0
temperature is calculated.
During the STEP T-ZERO calculation procedure, the calculated T0 values are
presented next to the stepping variable.
For example, part of the output might look like this:
Phase Region from 1.000000E-01 for:
BCC_A2
FCC_A1
1.000000E-01 940.24
9.250000E-02 941.20
2.500000E-03 977.61
7.500000E-09 979.34
When the stepping calculation has finished, you can move to the POST module and
plot the T0 line against the stepping composition variable or another varying axis
value. Or you can impose the calculated T0 line onto a normal phase diagram.
Paraequilibrium
In this section:
About Paraequilibrium
A paraequilibrium is a partial equilibrium where one interstitial component (such as carbon
C and nitrogen N) in a multicomponent alloy can diffuse much faster than the other
components (the substitutional elements, including the matrix element and alloying
elements). The chemical potential for the interstitial component in two partially equilibrated
phases is equal in such a case, but this is not true for the other components. In such a
paraequilibrium state, it is possible to have a transformation that is partly without partitions,
where a new phase of the mobile component can form with different content but where the
slowly diffusing components retain their compositions.
A paraequilibrium calculation is useful when, for example, you want to study phase
transformations in systems with large differences in the diffusivities of different elements.
Transformations occurring under paraequilibrium states can be much more rapid than if full
local equilibrium holds at the phase interface.
Calculating a Paraequilibrium
This topic describes both how to calculate an initial paraequilibrium with two target phases,
and how to base a stepping calculation on this initial calculation.
Before you do any paraequilibrium calculations, you must have defined your initial alloy
system and be in POLY. The initial overall composition must have appropriate settings for
the desired paraequilibrium calculation for the two target phases.
1. Use SET_CONDITION to set the conditions of your calculation just like when you
calculate an ordinary equilibrium.
2. Use CHANGE_STATUS to set the status of the chosen interstitial components to
SPECIAL. For example, if C is an interstitial component, enter:
This gives you a clear picture on u-fractions of the substitutional and interstitial
components, which are different from the overall composition in the system. The
SPECIAL status means that the specified components are not included in summations
for mole or mass fractions. Therefore, all the composition variables plotted from
paraequilibrium calculations are u-fraction related quantities.
Both phases must have similar interstitial/vacancy sublattices that the fast-
diffusion interstitial components occupy. Both target phases should have phase
constitution definitions that cover all the defined substitutional and interstitial
components of the current alloy system.
The first two lines show the phase amounts expressed in mole-percent [NP(phase)]
and the contents of the interstitial components C and N in each phase. These contents
are expressed in u-fractions. The third line states that the compositions of the matrix
component and all the remaining compositions (regarding substitutional components)
are equal in the two target phases at the paraequilibrium state.
The stepping calculation is performed, and the different phase regions are listed with
columns for the value of the stepping variable, the amounts of the two target phases,
the u-fractions of interstitial(s) in each of the two phases, and the LNACR value(s) of
the interstitial component(s).
EXAMPLE
It is possible to now move to the POST module and plot some of the results of
the calculation. For an example of a paraequilibrium calculation and how it can
be plotted, see Console Mode example tcex23. Go to "About the Thermo-Calc
Console Mode Examples " on page 2in the Thermo-Calc Console Mode Examples
Guide.
Potential Diagrams
In this section:
A potential diagram with the activities of the two gaseous species as mapping
variables is calculated. These mapping variables are also set as the axis variables in
the plotted diagram.
EXAMPLE
A POLY3-file is also automatically saved in the current working directory with the
default name POT.POLY3.
5. When the diagram is plotted, it opens the POST module where you can modify the
plotted diagram in any way you like.
You must have calculated a potential diagram already, and have the saved POLY3-file
available.
2. Use READ followed by the name of the POLY3-file that contains the results of the
potential diagram calculation that you want to modify.
3. This opens the workspace file and loads the previous settings and results. The
activities of the two gaseous species is now part of the conditions, and these
conditions are set as the mapping variables.
4. Use SET_CONDITION to specify the pressure under which you want the potential
diagram to be calculated. For example, to set the pressure to 1000 bar, enter:
SET_CONDITION P=1e8
Aqueous Solutions
In this section:
See Console Mode examples tcex40 and tcex53. Go to "About the Thermo-Calc
Console Mode Examples " on page 2in the Thermo-Calc Console Mode Examples
Guide.
Key Components
These key components are defined as follows:
Besides the aqueous solution phase, your system may also contain a gaseous mixture phase.
Other neutral and charged gaseous species may also be constituents. For multicomponent
systems there are normally also some interacting solid phases (stoichiometric or solution) as
the so-called secondary phases. These are typically the matrix and/or precipitate phases in
the alloys of interest.
Some databases have been specially developed for the Pourbaix module’s diagram
calculations. Such a database contains all necessary phases, i.e., an aqueous solution phase,
a gaseous mixture phase, some alloy solid solution phases and some secondary solid phases.
Databases developed for the Pourbaix module include PAQ (TCS Public Aqueous Solution
Database) or PAQS (TGG Public Aqueous Solution Database).
3. Press <Enter> at the prompt Enforce a PAUSE after plotting when running a
MACRO?.
4. Press <Enter> to accept the default 1 to Start a completely new POURBAIX
diagram calculation or enter 3 to Open an old file and make another
POURBAIX calculation.
To choose 3, you must have already done a Pourbaix calculation and have it saved in a
POLY3-file. The new calculation uses the same system definition as the previous
calculation, but the other conditions, such as the bulk composition, temperature and
pressure, can be modified in the next step.
5. Type Y or N to set whether to Consider the GAS phase (gaseous mixture phase) in
the calculation.
The gaseous mixture phase should at least contain H2O, O2 and H2. If a GAS phase is
not considered, then only the interactions between the aqueous solution phase and
various solid phases (alloy phases and secondary phases) are calculated. Such a
calculation may not accurately present all the heterogeneous interactions. Some
secondary phases are therefore usually needed. Such phases exist in the PAQ or PAQS
Public Aqueous Solution Databases. They can also be appended from the
SSUB/SSOL/TCFE or other appropriate substances/solutions databases.
6. Type Y or N to set whether to Use single database (Y) or a multiple database (N).
If you choose to use a single database, at the Combined Database: /PAQ2/ prompt
specify a database that is specially developed for the Pourbaix module’s diagram
calculations.
If you choose to use a multiple database, then you are prompted to specify an
aqueous solution database and to append any additional required data and select
necessary phases, such as various interacting alloy (solid) solution phases, and
secondary (solid and liquid) phases, for example.
7. Specify all your solutes and the molality of each solute when prompted to do so. This
can be done in terms of elements (such as Fe, Ni, Na, Cl, C or S) or arbitrary complex
species (such as NaCl, CO2, CoCl3, Fe0.93S, NaSO4-1, or H2SO4). You can enter the
element/species and the molarity on one line (for an example, NaCl 2.5).
The first letter of the element abbreviation must always be upper case. Any
second letters must be lower case. When you have finished your specification,
press <Enter> when asked to specify Next solute.
The definition of your system and its initial bulk composition is now presented.
The thermodynamic data for your system is now retrieved from the database(s)
chosen.
9. Answer the questions that you are prompted regarding various parameters of your
calculation. You are asked to do any of the following:
8. The Pourbaix calculation starts. Answer the question Any missing phase boundary
you could possibly think of? Type Y or N to set whether you want to add
starting points to the calculation. If you suspect that the calculation has missed some
phase boundaries, this may help the program to detect them.
9. Answer questions about how the diagram is plotted and how to save the results of
your calculation. You are asked to do any of the following:
Abbreviation Variable
pH Acidity
Eh Electronic Potential (V)
Ah Electronic Affinity (kJ)
Pe Electronic Activity (log10ACRe)
IS Ionic Strength
TM Total Concentration
Aw Activity of Water
Oc Osmotic Coefficient
Abbreviation Variable
1. Type Y when prompted whether to plot any more diagrams, or select option 2 when
you enter the POURBAIX module.
2. Specify which variable you want the X-axis to represent. Use the abbreviation
specified in the preceding table. When you specify the name of an aqueous species,
you can use the asterisk (*) to select all species.
3. Specify which variable you want the Y-axis to represent. The diagram is then
automatically plotted.
4. Answer questions about how the diagram is plotted and how to save it. You are asked
to do any of the following:
Performing the stepping calculation overwrites all the previous settings and
stepping results on the POLY3-file. To avoid this, use "SAVE_WORKSPACE" on
page 289 to create a new workspace.
When you have calculated a Pourbaix diagram, you can use the saved results of the
calculation (the POLY3-file), and make a property diagram based on stepping calculation.
Since the program normally sets the calculated initial equilibrium point as the starting point,
the minimum value for the stepping variable must be specified as smaller or equal to the
specific initial condition, and the maximum value as larger or equal to that condition. If pH is
set as the stepping variable, the program automatically calculates the equilibrium constant
in logarithmic (log10Ka) of the electrolysis reaction H2O (water) = H+ + OH- for the real
aqueous solution under the current temperature-pressure-composition conditions, and thus
this constant log10Ka value is considered as the highest pH in specifying the maximum value
along stepping. Subsequently, confirm or modify an increment factor with a default value;
for pressure and mole of a component, specify the step in logarithmic (log10P or log10N).
Temperature (K) T
Pressure (bar) P
Acidity pH
Electronic potential (V) Eh
N(Comp)
Mole number of a dissolving component (such as Fe,
Na, Cl, or NaCl) in 1 kg of water. (for example, N
(Fe))
The system definition is the same as in the previous Pourbaix calculation, but you can
modify conditions such as bulk composition, temperature and pressure, and change
some component definitions if necessary.
5. Specify which variable to use as the stepping variable (see the preceding table), its
minimum and maximum value, and the length of each incremental step.
The settings and stepping results are written to the opened POLY3-file, and a first
default property diagram is plotted.
A reaction tabulation presents you with the following properties, on rows representing
different temperature levels:
You can add a 6th column to the table that shows the values of a property or user-defined
function of your choice.
EXAMPLE
Tabulating a Reaction
A tabulation of a given chemical reaction provides you with data about the rate of change of
the standard tabulation properties at various levels of temperature. You can also add a
column for a property of your choice to the table.
You are prompted to enter the name of the column that is given at its head, and the
function itself. The following state variables can be used to define the function: G, H,
S, T, P, V and H298.
TABULATE_REACTION 3H2+N2=2N1H3;
Elements that are designated with a single letter must be followed by a stoichiometry
factor, even if this factor is 1. CO hence be interpreted as Cobalt rather than as carbon
monoxide. Carbon monoxide is entered as C1O1 or O1C1.
4. Set the pressure, the range of temperature that you want the tabulation to cover,
and change in temperature between each row in the table. You can also specify if
you want to output the calculation results to an EXP-file and whether you want any
graphical output, and if so, which column you want to be plotted against
temperature.
The tabulation calculation is performed and you are given a table that shows the
various properties at each temperature level within the range defined.
If you have chosen to receive graphical output, then the Console Results window
presents a graph that plots the column of you chose (on the Y-axis) against
temperature (on the X-axis). When this graph is plotted, you are now in the POST
module, where you can modify the graph in various ways.
You cannot use the default SSUB database when tabulating substances or
solution phases at a fixed composition.
3. If you want to add one thermodynamic function to the tabulation calculation, which is
present in a sixth column in the table, use ENTER_FUNCTION.
You are prompted to specify the column header and the function itself. The following
state variables can be used to define the function: G, H, S, T, P, V and H298.
5. Set the pressure, the range of temperature that you want the tabulation to cover,
and change in temperature between each row in the table. You can also specify if
you want to output the calculation results to an EXP-file and whether you want any
graphical output, and if so, which column you want to be plotted against
temperature.
The tabulation calculation is performed and a table shows the various properties at each
temperature level within the defined range.
If you have chosen to receive graphical output, then the Console Results window presents a
graph that plots the column you chose (on the Y-axis) against temperature (on the X-axis). ).
When this graph is plotted, you end up in the POST module, where you can modify the graph
in other ways.
Plotting Diagrams
Plotting a diagram is to graphically represent how several variables (typically two variables)
co-vary. Each axis in a property diagram or a phase diagram represents the value of one
variable. The default variables represented by the X- and Y-axes are the following:
l If you plot a diagram based on the results of a mapping operation (a phase diagram),
then by default the X- and Y-axes represent the mapping axis variables 1 and 2 (set
using "SET_AXIS_VARIABLE" on page 218 in POLY).
l If you plot a diagram based on the results of a stepping operation (a property
diagram), then by default, the X-axis represents the stepping variable (set using SET_
AXIS_VARIABLE) and the Y-axis represents the sum of the mole fractions of all phases
(that is, NP(*)).
1. If you want to directly plot your diagram with the default variables represented by
the X- and Y-axes, type Plot and press <Enter>. This plots a property or phase
diagram with the default variables represented at each axis. If you do not want to
plot your diagram with these default variables, go to the next step.
2. Use SET_DIAGRAM_AXIS to set which variables to plot on the X-axis and the Y-axis. For
example, if you want to plot a phase diagram with pressure on the Y-axis and
temperature on the X-axis, type:
SET_DIAGRAM_AXIS X T
SET_DIAGRAM_AXIS Y P
Modifying Diagrams
Modifying a diagram amounts to changing the settings that determine how the POST
module presents the calculated results and plots a new diagram. Suppose that you have
already plotted a binary phase diagram with the mapping axis variables temperature and
mole fraction of one of your components (the Fe component, say) on the X- and Y-axes. If
you then want to modify your diagram so that the Y-axis instead represents, say, the mass
fraction of Fe rather than the mole fraction, then you use "SET_DIAGRAM_AXIS" on page 259
to set diagram axis Y to w(Fe), and then use "PLOT_DIAGRAM" on page 253.
There are many ways in which you can modify your diagram and how it is presented. Any
modification made in the plot settings is taken into account the next time you use PLOT.
Modification Examples
l Use "SET_TITLE" on page 270 to set add a title or to change an already existing title.
The title is displayed above the plotted diagram in the Console Results window.
l Use "ADD_LABEL_TEXT" on page 243 to add a label text that starts at a certain X-
and Y-coordinate. If you have plotted a phase diagram, then you can let Thermo-Calc
set the label text that specifies the names of the stable phases at that coordinate.
l Use "SET_AXIS_TYPE" on page 257 to set whether the scale of an axis is linear,
logarithmic or inverse.
SET_SCALING_STATUS X N 0 0.3
The X specifies which axis to change the scaling on, the N turns off Thermo-Calc’s
automatic scaling, and 0 and 0.3 specifies the minimum and maximum values on the
scale. You can turn on automatic scaling again by setting the second parameter to Y.
SET_LABEL_CURVE_OPTION Example
Use "SET_LABEL_CURVE_OPTION" on page 263 to label each set of curves that have the
same stable phases with a certain digit. A legend is also added, where you specify which
phases each digit designates.
existing users who may have plots and files that use the LTEXT format, and
especially when using Console Mode, the following examples show the
command changes from LTEXT and its LaTeX equivalent:
Symbol or text
LTEXT LaTeX
format
Saving Diagrams
When a diagram is plotted, there are several ways in which you can save it:
l Use "DUMP_DIAGRAM" on page 246 to save the diagram image to a PS, PDF, SVG,
EMF, GIF, or PNG file. You are asked what format to save it in.
l To save the diagram image in a variety of image file formats, right click the diagram
and select Save Plot.
l Use "PRINT_DIAGRAM" on page 254 to print a hard copy of the diagram.
Also see the DATAPLOT User Guide included with this documentation set.
In Graphical Mode you can add user databases via the Options → Graphical Mode →
System definer window. Once you have added the user database it is available from the
database list in the System Definer Configuration window. See "Global Settings: System
Definition (System Definer)" on page 227 to add a user database.
In Console Mode, users may decide to add their own user-defined database to the database
initiation file, which then makes it available in the Console window. If you plan to edit this
file, see "Editing the Database Initialization File or Unencrypted Database File" on the next
page for important information.
The first time you open a database in Graphical Mode it can take a little while for it to load,
especially if it is one of the large databases such as TCFE or TCNI. However, the next time
the database opens quickly because now the databases are cached, or stored, in Graphical
Mode.
Think of a cache as an intermediate storage area. Once a database cache is established the
file made easily accessible, even if you close the software program. It is the same concept as
when you load a web page for the first time. The next time the page opens faster. This is
also how it works for the databases in Thermo-Calc Graphical Mode.
Thermo-Calc caches the database files, both encrypted and unencrypted types, at two points
–when you first open a database, sometimes called an in-memory cache, and then later as a
disk-based cache.. The disk-based cache is what speeds up database loading and it is at this
point that Thermo-Calc refers to the database initialization file for information. The disk-
based cache uses a lookup key to find the abbreviated database name (e.g. TCFE8 or TCNI8)
contained in this initialization file.
l If a user database is added to the file, it is subject to the same caching as the
encrypted databases. This means that further changes (to the user database) will not
be detected when you are working with databases in the System Definer in Graphical
Mode.
l If you make changes to a user database, you then need to clear the cache.
l It is recommended that you create a separate directory to store unencrypted
database files.
If you edit an unencrypted database file included with the installation (such as the PURE5
and PG35 files):
l Do not edit the file in the installation folder. Instead make a local copy and load it
into the application as a user database.
Database Checker
The Thermo-Calc software package includes a program to check that the syntax of
unencrypted database files is correct. The program applies the syntax rules set out in the
Database Manager User Guide and reports errors and issues warnings. This program is
intended for advanced users who develop and manage databases.
Thermo-Calc accepts deviations from these syntax rules. This means that a
database can work even if the Database Checker reports errors and warnings.
For example, an error is reported if an abbreviated phase name is found, but
phase name abbreviations are accepted by Thermo-Calc and its add-on
modules.
The executable DatabaseChecker file is found in the Thermo-Calc home directory. The
program can also be launched by selecting Tools→ Database Checker from the main menu.
General 224
General Global Settings 224
Graphical Mode - Default Units 226
Graphical Mode: Activities 227
Global Settings: Graphical and Console Mode-Plotting 233
Global Settings: Console Mode Default Appearance 236
General
These settings are for both Graphical and Console modes. To open this window, from the
main menu select Tools → Options.
Setting Options
To change the Look and feel of the GUI layout, choose Windows
Look and feel
(the default), Metal, Nimbus, CDE/Motif or WindowsClassic.
Setting Options
From the Check update interval list, choose not to check (Don’t
Check update
check, the default) or On startup. You can also manually check
interval
for updates – choose Help→Check for update.
Select the Use GES6 in Graphical Mode check box to enable this
Experimental
functionality.
Setting Options
To open this window, from the main menu select Tools → Optionsand click the Default
Units tab.
Setting Options
Density Kilogram per cubic meter (the default) or Gram per cubic meter
Joules per Kelvin (the default), Calorie per Kelvin or Electron volt per
Entropy
Kelvin
Setting Options
Reset to In the lower corner of the window, click the Reset to original settings
original button to restore the original settings. You may have to expand the
settings window to view the button.
To open this window, from the main menu select Tools → Options and click the Activities
tab.
There are System definition, Calculation, Precipitation, Diffusion, Scheil, Plotting and
Tabulation settings windows.
For Plotting, the default settings are shared with the Graphical and Console
Modes. Any changes you make also apply to the default settings on the Console
Mode → Plotting tab in the Options window (and vice versa). See "Global
Settings: Graphical and Console Mode-Plotting" on page 233 for details.
Global Settings: System Definition (System Definer)
When you create a new System Definer, the default databases are taken from these
defaults. The database selections for each System Definer can then be configured
individually. Once created, the specific (local) settings for a System Definer are not affected
if you later make changes to the global defaults.
To open this window, from the main menu select Tools → Options and click the Activities
tab. Then click System definition.
EXAMPLE
Setting Options
User Databases
Database Packages
Setting Options
The package is available for new System Definer nodes defined after adding the
package.
l Change the newly added database back to the one that matches the database package,
or
l Choose another package from the Package list, then select the package you want.
For example, from the Package list you select Demo: Steels and Fe-alloys.
If you add or remove Databases, in this example MFEDEMO is removed, then this does not
match the Package and the message displays:
To clear the message, click the Add a database button and from the Choose database
list, select the database that belongs with the package, in this example, MFEDEMO. The
message is cleared.
You can also choose another package from the list, which changes the databases, and then
re-select the original package to reset the message.
You can reset the defaults. In the lower corner of the window, click the Reset to
original settings button to restore the original settings. You may have to expand
the window to view the button.
Global Settings: Diffusion (Diffusion Calculator)
When you create a new Diffusion Calculator, its initial settings are taken from these
defaults. The settings for each Diffusion Calculator can then be configured individually. Once
created, the specific (local) settings are not affected if you later make changes to the global
defaults.
To open this window, from the main menu select Tools → Options and click the Activities
tab. Then click Diffusion.
You can reset the defaults. In the lower corner of the window, click the Reset to
original settings button to restore the original settings. You may have to expand
the window to view the button.
You can reset the defaults. In the lower corner of the window, click the Reset to
original settings button to restore the original settings. You may have to expand
the window to view the button.
Global Settings: Scheil (Scheil Calculator)
When you create a new Scheil Calculator, its initial settings are taken from these defaults.
The settings of each Scheil Calculator can then be configured individually. Once created, the
specific (local) settings for a Scheil Calculator are not affected if you later make changes to
the global defaults.
To open this window, from the main menu select Tools → Options and click the Activities
tab. Then click Scheil.
You can reset the defaults. In the lower corner of the window, click the Reset to
original settings button to restore the original settings. You may have to expand
the window to view the button.
Global Settings: Tabulation (Table Renderer)
When you create a new Table Renderer, its initial settings are taken from these default
settings. The settings of each Table Renderer can then be configured individually. Once
created, the settings of a Table Renderer are not affected by changes in the default settings.
To open this window, from the main menu select Tools → Options and click the Activities
tab. Then click Tabulation.
You can reset the defaults. In the lower corner of the window, click the Reset to
original settings button to restore the original settings. You may have to expand
the window to view the button.
To make local changes to the appearance of a specific plot, in the Results window right-click
a plot and select Properties. In the Plot Properties window a variety of settings can be
made.
You can also edit some properties for individual plot lines (the color, the line width and type,
and whether data points are included). In the Results window, hover the mouse over a plot
line. The crosshair cursor turns into a cursor resembling a pointing hand when it is over a
line that can clicked. Alternatively, hold down the <Ctrl> key while you move the cursor
around the plot to only display it as a crosshair and prevent unintended edits.
To globally configure the default settings for plotting, from the main menu select Tools →
Options. Click the Graphical Mode → Activities tabs and then click the Plotting node.
When you create a new Plot Renderer, its initial settings are taken from these default
settings. The settings can then be configured individually. Once created, the settings of a
Plot Renderer are not affected by changes to the default global settings.
To configure the settings of an individual Plot Renderer rather than the default settings,
right-click a plot in the Results window and select Properties from the menu.
Setting Options
Legend
background color,
Background color, Click Modify to choose a color or enter a specific color.
Canvas color,
Border color,
Label format Select Plain text (the default) or LaTeX formatted text.
Retain labels By default the check box is selected. Plot labels are kept
(Graphical Mode (retained) when plots are updated. It can be applied globally or
only) locally to individual plots.
Show header Click to select the Show header check box to display the basic
(Console Mode details about the plot along the top. This includes the date and
only) time the plot is generated, the database used and the properties.
Setting Options
For the plot line colors, choose from the options in the list:
Legacy, Printer friendly, JFree chart, Pastel, Medium dark,
Bright dark, Vivid or Earth.
Color option This option is also available for specific plot lines. To change the
color of an individual plot line double-click it in the Results
window and use the color palette to define it or enter a specific
color.
For the plot line width, choose from the options in the list. These
Line width options are also available for specific plot lines. To change an
individual plot line width double-click it in the Results window.
Click to select the check box to display the data points on the plot
lines. This option is also available for specific plot lines. To show
Show data points
data points on an individual plot line double-click it in the Results
window and select the check box.
Data point marker Choose the data point marker size between 1 (small) and 10
size (large). The default is 3.
The Fit the plot area size to the enclosing window option is
Plot area size selected by default. Excluding triangular plots, click Define the
plot area size to enter a Plot area height and Plot area width.
Setting Options
Set the default directory where log files and workspace files
Default directory
are saved.
Technical Notes
In this section:
For users who want to pipe or redirect data from the Thermo-Calc
Application:
console.exe program.
For Linux and Mac users, the Emacs style editing feature must be
disabled (turned off) using the switch -E in order for redirection and
E
piping to work correctly with Thermo-Calc. For Windows this flag is not
necessary.
The "Property Model Calculator" on page 68 in Thermo-Calc Graphical Mode has predefined
models available for immediate use and new models are being added on a regular basis.
The Property Model Development Framework enables you to create custom property models
that are then able to be included with the Property Model Calculator and ultimately used for
your simulations.
When you use the Property Model Development Framework API, it extends the software to
enable you to create property models. The models are written in the easy-to-learn
programming language Python and the API provides seamless integration into Thermo-
Calc. This includes access to thermodynamic and kinetic calculation routines as well as to
the Thermo-Calc plotting system.
This API is like a plug in to Thermo-Calc. It is not an SDK. That is, you cannot use
this API to build other applications to work with Thermo-Calc like you would use
the TC-API or the TQ-Interface.
The API is based on Jython, which is a Python implementation running in the Java Virtual
Machine. All Python libraries that are compatible to the Jython distribution can be used
within the model (but not libraries based on native C-code).
Predefined models included with the Property Model Calculator are installed in the locations
below based on your operating system. If you create your own models, this is the default
directory where these are saved. You can also use one of these as a template to create your
own property model.
Operating
Property Model installation directory
system
Linux /home/user/Thermo-Calc/2017a/PropertyModels
Mac /Users/Shared/Thermo-Calc/2017a/PropertyModels
If you have the Diffusion Module (DICTRA) also see the Diffusion Module
(DICTRA) Command Reference found in the Diffusion Module
(DICTRA) Documentation Set PDF.
The commands available in all or most modules are described in "General Commands" on
page 3.
The next topics are listed in alphabetical order based on the module names, then in each
subtopic, the module commands.
l For the prompts, Y stands for Yes and N stands for No.
l TC is for Thermo-Calc. For example, default file names often start with tc.ini.
For links to more information about this topic go to "Log, Macro and Workspace
Files" on page 159 in the Thermo-Calc User Guide.
General Commands
In this section:
BACK 4
EXIT 4
GOTO_MODULE 4
HELP (? and ??) 4
HELP 5
INFORMATION 5
MACRO_FILE_OPEN 5
SET_INTERACTIVE 8
BACK
Also see "GOTO_MODULE" below.
Syntax BACK
Switch control back to the most recent module. Going from the POST module
(post-processor), BACK goes only to the TAB or POLY module (from where the
POST module is entered).
EXIT
Syntax EXIT
Exit the program and return to the operating system. Use a save command
before exiting otherwise all data and results are lost (in either the GIBBS, POLY,
PARROT or REACTOR module).
GOTO_MODULE
Switch between modules. The name of the module must be typed. To get a list of available
modules, press the <Enter> key.
Syntax GOTO_MODULE
Syntax ? OR ??
For some commands and prompts, more detailed help is given when two ?? are
entered.
HELP
Lists the available commands or explains a specified command. Specifying a unique
command displays an explanation on screen. Typing a command abbreviation that is not
unique lists all matching commands. Get the command information by typing a unique
abbreviation or the complete command name.
Syntax HELP
Command: <Command name>
INFORMATION
Get basic information about topics related to the module you are in.
Syntax INFORMATION
Which subject /Purpose/: <Topic name>
Prompt Specify a Subject (or its abbreviation as long as it is unique). Enter a question
mark ? for a list of topics.
MACRO_FILE_OPEN
The macro file functionality is a way to predefine sequences of Thermo-Calc commands
stored in a macro file (a basic text file usually with the default extension TCM for the
Thermo-Calc Console Mode or DCM for DICTRA module) and then executing all of the
sequences using this command (preceded by the macro file name). This command can be
used within various modules (i.e. the SYS, POLY, PARROT and TAB modules in the Thermo-
Calc (Console Mode) software; SYS, POLY, PARROT and DICTRA_Monitor).
Syntax MACRO_FILE_OPEN
<Name of a macro file *.tcm>
An Open window displays to specify the filename of the macro file (*.TCM) with
the macro command, so that the path (in the Look in field) and File name can
be specified.
The Files of type *.TCM for Thermo-Calc (Console Mode) calculations and
*.DCM for DICTRA simulations, cannot be changed. Click Open or Cancel to
continue.
If the macro file contains commands to set *.LOG files, to save or read GIBBS,
POLY or PARROT workspaces, switch user databases, compile experiments
(from existing *.POP files), create new *.PAR files, append *.EXP files, plot or
dump diagrams, etc., a window (e.g. Save, Open, Print, etc.) displays on screen.
If required, these windows can be avoided by issuing the file names (preferably
with file-type extensions; if the files are not in the current working area where
the macro is located, the appropriate and complete paths of the files should
also be specified) and sometimes with the required options after the
corresponding commands or parameters/options. For details, see the related
commands and modules.
When using a macro file that intended to plot graphs on screen, but the
command "SET_PLOT_FORMAT" on page 264 is used to alter the plotting
environment from the default value, it is important to first use the command
SET_PLOT_FORMAT again to change back to the default value.
This is useful when the same or similar calculations are made frequently with small changes
[in terms of system definitions, data manipulations, conditions (for single points, stepping or
mapping calculations), plotting settings, etc.). For example, use this feature when calculating
phase/property diagrams during an assessment of thermodynamic data.
A macro file can be automatically generated by the Thermo-Calc (Console Mode) software,
if in the SYS module the "SET_LOG_FILE" on page 303 command is used and a *.LOG file
name is given before any other SYS, DATA, TAB, GIBBS, POLY, POST, PARROT, or ED-EXP
command or any special-module command (e.g. BIN, TERN, POTENTIAL, SCHEIL, POURBAIX,
or REACTION). Such a *.LOG file generated from the Thermo-Calc (Console Mode) software
is a textual file, and using a textual editor (such as Notepad, WordPad, PFE, Emacs, vi, etc.) it
can be edited, for example, by taking away unnecessary command lines, modifying some
commands, settings and definitions, adding some pausing points, adding helpful commenting
lines beginning with @@ signs, and so forth. Then save it as a macro file with the standard
file extension TCM.
Experienced users can also write/edit an appropriate macro file for calculations/simulations,
using any basic textual editor outside the Thermo-Calc program.
All commands can be used in a macro file. The file must be terminated with EXIT or be
interrupted with SET_INTERACTIVE.
Within a macro file you can use comment-lines (for describing the problems and for
explaining commands and inputs/outputs), which should always start with the @@ signs in
the beginning of each comment-line. Such comment-lines help to document the macro file,
while these are not considered as command lines and thus do not affect the proceeding of
all the normal commands in modules of the Console Mode when the file is called by the
Thermo-Calc Console Mode software.
You can put multiple-line comment-blocks in a macro file between the @ (” and “@)” signs.
The former sign indicates where the comment begins and the latter sign indicates where the
comment ends. A comment-block begins from a line started with the begin comment sign @
(and ends with the finish comment sign @); all the lines written in between are ignored, and
the line started with @) is also ignored.
Another use for a macro file is to allow you to interact at some specific points, using the
“@?” sign starting a text line (note that the text describing the expected user-
specification/input should be written as a continuous string without any empty space), for
user’s on-time specifications of arguments/parameters or inputs of parameter-values that
are requested by a certain command. The macro temporally stops at the “@?” sign, prompt
on screen the text given after “@?”, and waits for the specified argument/parameter/value.
The Thermo-Calc (Console Mode) software then uses specified argument/parameter/value
as the input(s) for the associated command. For example, you can input the values of lower
and higher temperature limits for the second axis-variable as follows:
GO POLY-3
SET-AXIS-VAR 2 T @?Low-temperature-limit:
@?High-temperature-limit:
You can have macro-variables denoted by the signs of @#n (for definition) and ##n (for
usage); and up to nine variables inside a single macro file. Such a macro-variable can be
assigned with its desired value, as for example:
@#3First-element?
This writes the text (note that the text describing the expected user specification/input is
written as a continuous string without any empty spaces) after the “@#3” sign as prompted
on screen and then wait for a specification. The input is assigned to the macro-variable ##3,
which is directly called in different parts within the current macro file.
For example, the content of the macro-variable ##3 is inserted in the command:
DEFINE-SYSTEM ##3
SET_INTERACTIVE
Syntax SET_INTERACTIVE
Resets the input and output units to the initial values, i.e. keyboard and screen.
Add this as the last command to the macro files.
BINARY_DIAGRAM Commands
In this section:
BINARY_DIAGRAM Module 10
BINARY_DIAGRAM Module
The BINARY_DIAGRAM module (short name, the BIN module) enables you to quickly
calculate a simple binary phase diagram. Access to specific databases designed for BIN, such
as TCBIN, is required.
To enter the module, at the SYS prompt type GOTO_MODULE BINARY. There are no other
commands for this module. Follow the prompts to plot a diagram.
Also see the Graphical Mode equivalent to this command, "Binary Calculator"
on page 137 in the Thermo-Calc User Guide.
Syntax BINARY_DIAGRAM
Database Commands
These commands are related to the DATABASE_RETRIEVAL module, which is
also known as the TDB module.
Search the online help or see in the Thermo-Calc User Guide for step-by-step instructions to
define a system.
In this section:
AMEND_SELECTION 12
APPEND_DATABASE 12
DATABASE_INFORMATION 14
DEFINE_ELEMENTS 14
DEFINE_SPECIES 14
DEFINE_SYSTEM 15
GET_DATA 16
LIST_DATABASE 16
LIST_SYSTEM 17
NEW_DIRECTORY_FILE 17
REJECT 18
RESTORE 20
SET_AUTO_APPEND_DATABASE 21
SWITCH_DATABASE 22
AMEND_SELECTION
This command is for the DATABASE_RETRIEVAL module (also called TDB
module).
Use this command after defining the elements, species or the system (with the commands
"DEFINE_ELEMENTS" on page 14, "DEFINE_SPECIES" on page 14, or "DEFINE_SYSTEM" on
page 15). The prompts allow changes to the predefined system. By answering Y or N, each of
the selected elements, species or phases can be accepted or rejected (although this is not
the case for the constituents or the entire system).
Syntax AMEND_SELECTION
Keep <Name1> No/Quit /Yes/
Prompt
Keep <Name2> No/Quit /Yes/
APPEND_DATABASE
This command is for the DATABASE_RETRIEVAL module (also called TDB
module).
Append data from a file or additional database to the current set of data already read from
another database. Data already read from another database and stored in the Gibbs energy
system is kept in the GES5 workspace.
This command also enters all additional parameters (phase constituents, G0 and interaction
parameters, etc.) to already existing phases, and all existing parameters (phase constituents,
excess model, G0 and interaction parameters, etc.) in the phase are replaced with the
values retrieved from the appending database.
The command is equivalent to the SWITCH_DATABASE USER command sequence. It is also
similar to "SWITCH_DATABASE" on page 22, but does not reinitialize the DATA module and
GIBBS workspace.
All the directly connected databases as predefined by the original database initiation file
(TC_INITD.TDB file in the /DATA/ area for Windows environments, or the initd.tdb file in
the \data\ area for Linux), or by a user-specified database initiation file after using "NEW_
DIRECTORY_FILE" on page 17, are listed after pressing <Enter> without giving any
argument. You can supply your own database by giving the argument USER, the database
name and the correct path if it is not located in the current working directory.
After the command is executed for the first time, the TDB_XYZ: prompt (XYZ stands for the
name of the primary switched database) is changed to the APP: prompt to go to more
commands related to appending data.
Syntax APPEND_DATABASE
DATABASE_INFORMATION
This command is for the DATABASE_RETRIEVAL module (also called TDB
module).
Syntax DATABASE_INFORMATION
DEFINE_ELEMENTS
This command is for the DATABASE_RETRIEVAL module (also called TDB
module).
Define the system in terms of elements. All possible species that can be formed by the given
elements are retrieved from the database. The names of elements must be separated with a
space or comma. It is possible to use a wildcard * after a common part of element names so
that all the elements, which start with that common part and are available in the currently
switched or appending database, are defined in the system. Up to 40 elements can be
defined into a single system.
Syntax DEFINE_ELEMENTS
Element& <Element1, Element2, …>
Prompt
A list of elements to be defined into the system.
When appending database(s), this command, or "DEFINE_SPECIES"
below or "DEFINE_SYSTEM" on the next page must be repeated
with the same or similar elements as defined in the first switched
database.
DEFINE_SPECIES
This command is for the DATABASE_RETRIEVAL module (also called TDB
module).
Define the system in terms of species. Only those species given are retrieved. The different
names of species must be separated with a space or comma. It is possible to use a wildcard
* after a common part of species names so that all the species, which start with that
common part and are available in the currently switched or appending database, are
defined in the system. Up to 1000 species can be defined in a single system.
Syntax DEFINE_SPECIES
Species& <Species1, Species2, …>
Prompt
A list of species to be defined in the system.
When appending database(s), this command, "DEFINE_ELEMENTS"
on the previous page or "DEFINE_SYSTEM" below must be repeated
with the same or similar elements as defined in the first switched
database.
DEFINE_SYSTEM
This command is for the DATABASE_RETRIEVAL module (also called TDB
module).
Syntax DEFINE_SYSTEM
Elements: <Element1, Element2, …>, or
Prompt
Species: <Species1, Species2, …>
Options Description
Species or Elements Default keyword.
Element& Specify a list of elements for the defining system.
Species& Specify a list of species for the defining system.
GET_DATA
This command is for the DATABASE_RETRIEVAL module (also called TDB
module).
Only after executing this command can you go to any of the application
programs such as GES, POLY or DICTRA and use the retrieved data. When
appending database(s), this command must be repeated in order to obtain the
additional system definitions, parameters and functions.
Syntax GET_DATA
Enter the defined system’s elements, species, phases, and the connected
parameters obtained from either the primary switched or additionally
appending database(s) to the GIBBS and/or DICTRA workspace. This command is
necessary for retrieval of all information concerning a defined system from the
databank.
LIST_DATABASE
This is a DATABASE_RETRIEVAL (TDB) command.
Syntax LIST_DATABASE
Options Description
One of the keywords Elements, Species, Phases or Constituent must be
Keyword
used to indicate what to list
All available elements, the reference state, atomic mass, H298-H0 and
Elements S298. Some elements have spaces in the column for the reference state.
This implies that there are no parameters stored for this element.
Species All available species together with the stoichiometric factors.
All available phases together with the number of sublattices and the
Phases
number of sites in each sublattice.
All available phases, the number of sublattices, the number of sites in
each sublattice and the species dissolved in each phase. Species in
different sublattices are separated with a colon (:). It is important to
realize, for example, a phase can consist of Fe, Mo, V, and Cr, and its
thermodynamic parameters can come from the binary systems Fe-Mo,
Constituent
Fe-V, Fe-Cr, and Mo-Cr. These data can give a relatively good description
of the corners of the Fe-Cr-Mo system, but would most certainly give a
bad one for the system Mo-Cr-V, due to the fact that the interaction
parameters are, by default, set to zero, which originates from binary
systems not included in the database.
LIST_SYSTEM
This is a DATABASE_RETRIEVAL (TDB) command.
List all elements, species, phases or phase constituents in the defined system. It works only
after a system is defined.
Syntax LIST_SYSTEM
NEW_DIRECTORY_FILE
This command is for the DATABASE_RETRIEVAL module (also called TDB
module).
Open a new database initiation file (or called database directory file) generated by a local
database manager or user, for accessing additional databases not predefined in the original
database initiation file.
The original database initiation file is automatically copied by the installation script to the
main database area, on a local computer for an independent installation locates or a
connected server for a server installation.
l For Windows this is the TC_INITD (or TC_INITD.TDB) file in the \DATA\ area under
the directory defined by the TCPATH parameter.
l For Linux, it is the initd.tdb file in /data/ area that is under the directory defined by
the TC_DATA parameter. If the Thermo-Calc (Console Mode) is run on a Linux
platform, the new database initiation file must be located in the current working
directory.
If there are too many databases at one installation or if there are some user-specified
databases for a particular purpose, a local database manager can generate additional
database initiation files, or each user can have their own initiation file.
The command switches the working initialization of database groups in the DATA module
among the original and additional database initiation files. The Thermo-Calc (Console Mode)
can use additional database initiation files that define accessing paths to database groups
(databases located in different subdirectories under the directory defined by the TCPATH or
TC_DATA parameter). All directly accessible databases remain as in the same group, until
this command is called or recalled.
Syntax NEW_DIRECTORY_FILE
File with database directory /tc_initd/: <Database-initiation-
file name>
REJECT
This command is for the DATABASE_RETRIEVAL module (also called TDB
module).
Reject elements, species, phases or phase constituents that can form from the defined
elements and species. Phases/species/constituents that are possible to form in the defined
system are removed from the list of system phases/species/constituents (shown by the
command "LIST_SYSTEM" on page 17). Phases/species/constituents that are not included in
the list cannot be entered without first being restored. The different names must be
separated with a space or comma. You can use a wildcard * after a common part of names
so that all the elements/species/phases/constituents that start with that common part and
are available in the currently switched or appending database, are rejected from the
defined system.
This command can also reject a defined system, and thus reinitiate the entire DATA module
memory and GES5 workspace.
Syntax REJECT
If keyword = SYSTEM the DATA module is reset to its initial state; GIBBS is
Prompt 3
reinitiated and data already entered to GES5 is lost.
Options Description and additional information
One of the keywords Elements, Species, Phases, Constituent or
Keyword
System must be used to indicate what is rejected.
Syntax REJECT
RESTORE
This command is for the DATABASE_RETRIEVAL module (also called TDB
module).
Syntax RESTORE
Syntax RESTORE
SET_AUTO_APPEND_DATABASE
This command is for the DATABASE_RETRIEVAL module (also called TDB
module).
Enforce an automatic action that appends thermodynamic data from a chosen database
regarding the system to the data you already have about the system from the current
database (that is, the default database or the database last chosen with "SWITCH_
DATABASE" on the next page or "APPEND_DATABASE" on page 12).
This command should be used before defining a system (with the commands "DEFINE_
ELEMENTS" on page 14, "DEFINE_SPECIES" on page 14, or "DEFINE_SYSTEM" on page 15)
and retrieving the data with the "GET_DATA" on page 16 command from the primary
switched database.
Syntax SET_AUTO_APPEND_DATABASE
Syntax SET_AUTO_APPEND_DATABASE
SWITCH_DATABASE
This command is for the DATABASE_RETRIEVAL module (also called TDB
module).
Switch (or change) from the current database to a new one, and reinitialize the entire DATA
module for defining a system and the GES5 workspace for storing retrieved data. All the
directly connected databases as predefined by the original database initiation file, or by a
user-specified database initiation file after using "NEW_DIRECTORY_FILE" on page 17, are
listed by pressing the <Enter> key without giving any argument. You can also supply your
own database by giving the argument USER and then the database name and its correct path
if it is not located in the current working directory. The second part of the prompt TDB_XYZ
indicates the present database XYZ.
Syntax SWITCH_DATABASE
Database name /xyz/: <new database name>
The new database is specified by typing the abbreviation given in the front of
one of the available predefined databases. When switching/appending
databases or additionally purchased databases you can add these to the
Database predefined database list in the database initiation file TC_INITD.TDB or
name initd.tdb of your installed software.
When this command is used in a macro (*.TCM) file, if the USER option is
selected, the database setup file name (*setup.TDB) that contains the setup
definitions of the USER database, and its correct path, must be provided.
In Linux, the filename of a USER database, or one of the predefined names,
can be used under this prompt. A valid filename for the USER database
Filename
definition file (***setup.tdb) or a predefined database name, with the
correct path. The default filename extension is .tdb.
If a USER database name or its path is not given on the same line of the
SWITCH_DATABASE command, or if it is incomplete or incorrect, an Open
window is displayed for the to-be-switched database.
The USER database is used without reinitiating the Gibbs energy system, data
from different databases can thus be combined. Therefore, the SWITCH_
DATABASE USER command sequence is equivalent to the APPEND_DATABASE
Notes USER command sequence. The result of a combination must be examined
carefully, because differences in standard states, phase models and names
can be disastrous. If the same parameters occur in several such switched or
appended databases, the last one retrieved is used in the calculations. It is
not advisable to use this method for large databases since these load slowly.
After this command, those commands for defining system (in terms of either
elements or species), rejecting/restoring phases or species, retrieving data,
Syntax SWITCH_DATABASE
EDIT_EXPERIMENTS Commands
These commands are accessed through the PARROT module.
Some special commands are designed only for the ED_EXP module and can also be used in
*.POP or *.DOP files.
In this section:
LIST_SYMBOL 51
MAKE_POP_FILE 52
READ 53
READ_WORKSPACES 53
REINITIATE_MODULE 54
RESTORE_ALL_WEIGHTS 54
SAVE_WORKSPACES 54
SELECT_EQUILIBRIUM 55
SET_ALL_START_VALUES 55
SET_ALTERNATE_CONDITION 57
SET_CONDITION 60
SET_NUMERICAL_LIMITS 62
SET_REFERENCE_STATE 63
SET_START_CONSTITUTION 65
SET_START_VALUE 66
SET_WEIGHT 66
SHOW_VALUE 68
STORE_ALL_WEIGHTS 68
TABLE_HEAD, TABLE_VALUES and TABLE_END 68
TRANSFER_START_VALUES 70
l The first necessary command after entering the ED_EXP module for the first time
(with "EDIT_EXPERIMENTS" on page 139 in the PARROT module) should always be
READ_BLOCK in order to load the experimental data block from the current work
*PAR-file for editing. Also, the read command must also be used prior to any other
ED_EXP command if the module is reinitiated, or if no experimental data block has
not previously been read from a work file compiled with a proper experimental data
.POP/.DOP file, or if you want to change to another data block for editing.
l If any change is made in the ED_EXP module remember to use the command "SAVE_
WORKSPACE" on page 289 before going BACK to the PARROT module.
ADVANCED_OPTIONS
Syntax ADVANCED_OPTIONS
The integer number determines how often the Global Minimization should be used during
An integer for how many intervals of initial equilibrium points to be added along an edge in
the diagram. For example, if set to 2 (two), initial equilibrium points are added at the
beginning, center, and end of each axis-variable forming 2 intervals.
Use inside meshing points /N/: <Y or N>
If N the INITIAL_EQUILIBRIUM mesh consists of initial equilibrium points added only along
the edge/border of the diagram defined by the axis-variables. If Y, the initial equilibrium
points added are also added inside edge.
NONE
Take away any set advanced option in all subsequent single-point equilibrium and MAP/STEP
calculations.
If there is any convergence problem in finding a stable solution, at any stage of an advanced
option calculation conducted by an ADVANCED_OPTIONS command-sequence, these
messages display:
Convergence problems, increasing smallest site-fraction from 1.00E-30 to hardware
precision 2.00E-14. You can restore using SET-NUMERICAL-LIMITS
The smallest site fraction in the current POLY3 workspace is automatically increased from
the default value 1.00E-30 to the hardware-dependent precision (under Linux, as 2.00E-14).
For other subsequent POLY-module calculation in the current TC run, you can use the POLY
command "SET_NUMERICAL_LIMITS" on page 296 to restore or reset the smallest site
fraction to the previous or another preferred value, as well as to reset other numerical
limits.
EQUILIBRIUM_CALCULATION
The following prompts affect the ways how the POLY optimization does the Ordinary POLY
Minimization to reach the minimum of an equilibrium state.
Settings for the minimization of an equilibria:
Force positive definite phase Hessian /Y/: <Y or N>
Control stepsize during minimization /Y/: <Y or N>
Force positive definite phase Hessian /Y/: <Y or N>
Compute a Hessian matrix as which describes the curvature of the Gibbs energy curve of this
phase at the defined composition X:
Diagonalize this matrix and call the Eigenvalues as e1,e2,...,en . The QF(phase) quantity for
this phase is the lowest of these eigenvalues divided by the same values for a corresponding
ideal (stoichiometric) phase:
Here, se1,se2,...,sen are the eigenvalues for the ideal phase. Therefore, for an ideal
(stoichiometric) phase, the QF(phase) should always be 1.0.
Control stepsize during minimization /Y/: <Y or N>
GLOBAL_MINIMIZATION
The following prompts affect how the Global Minimization is done. Settings for global
minimization:
Use global minimization as much as possible /Y/: <Y or N>
Use global minimization for test only? /N/: <Y or N>
Maximum number of gridpoints per phase /2000/: <Integer number>
Use global minimization as much as possible /Y/: <Y or N>
Choose Y or N to decide if using the Global Minimization Technique from start of calculation
or not. The default value on start-up may be changed by SET_TC_OPTIONS in the SYS module.
If Y the calculation is done when possible (depending on the condition settings), and a Global
Minimization test is always performed when an equilibrium is reached. This costs more
computer time but the calculations are more accurate.
If N the calculation is not used to reach the equilibrium state. Use global minimization
for test only? determines if the Global Minimization test is made against the calculated
equilibrium states obtained by the Ordinary POLY Minimization calculation.
Use global minimization for test only? /N/: <Y or N>
Specify the maximum number of grid points that are computed for each of the phases in the
currently defined system, during the calculations enforced by the global minimization. More
grid points give a higher robustness and take more computation time. The total number of
computed grid points in all phases is limited to 2E6.
IGNORE_COMPOSI_SET_ORDER
Ignore composition set order /N/
NEW_COMPOSITION_SET
The following prompts are to specify the additional composition set(s) to handle possible
miscibility gap(s) of a certain solution phase:
Phase with miscibility gap: <Name of a phase>
The default value is usually one higher than the current value. Each phase has initially one
composition set. If a lower value is given, composition sets are deleted. You cannot take
away the first composition set.
A message displays to show that you need to specify the composition for the composition set
# (2,3,…).
Major constituent(s) for sublattice 1: /XX/: <YY>
The major constituents (YY) in each sublattice can be given. This may simplify giving start
values when calculating the equilibrium as phases with miscibility gaps should have different
major constituents for each composition set.
This prompt is repeated for each sublattice in the phase, sometimes even for all sublattices
in the first composition set if such major constituents have not been specified.
MAJOR_CONSTITUENT
The following prompts are to specify the major constituent(s) on each of the sublattice sites
for a composition set of a certain solution phase:
Phase name: <name of a phase>
Specify the name of the solution phase with a new set of major constituents.
Composition set number /1/: <#>
The default value for the composition set number (#) is usually /1/ as the other composition
sets are given major constituents when creating them. Each phase has initially one
composition set.
Major constituent(s) for sublattice 1: /XX/: <YY>
The major constituents (YY) on each sublattice of a solution phase can be given. This may
simplify giving start values when calculating the equilibrium as phases with miscibility gaps
should have different major constituents for each composition set.
This question is repeated for each sublattice in the phase.
PHASE_ADDITION
The following prompts are to specify the additional energy term (always being a constant) of
a given phase.
Phase name: <Name of a phase>
Specify the name of the (stoichiometric or solution) phase with the addition.
Addition to G per mole formula unit: <xxxxx>
The value (xxxxx) given is added to the Gibbs energy of the (stoichiometric or solution)
phase. It can represent a nucleation barrier, surface tension, elastic energy or whatsoever.
PRESENT_PHASE
Specify the name of the present phase a the name of the phase that should be present at all
calculated equilibria:
Present phase:
Phase name: <Name of a phase>
Console Mode examples tcex45, tcex46 and tcex47 use this advanced option.
T-ZERO_TEMPERATURE
Name of first phase: <Phase A>
Name of second phase: <Phase B>
The names of phases A and B must be given, for which the T0 temperature (where the Gibbs
energies are equal) is to be calculated.
If the T0 temperature between the two specified phases is successfully calculated, a
message displays, e.g.
The T0 temperature is 840.82 K. Note: LIST-EQUILIBRIUM is not relevant
The first message shows the calculated T0 temperature between the two specified phases.
The second message indicates that after this option calculation with LIST_EQUILIBRIUM is
irrelevant and does not list the equilibrium for the system at the T0-temperature.
PARAEQUILIBRIUM
Name of first phase: <Phase A>
Name of second phase: <Phase B>
The names of the two target phases A and B, between which the paraequilibrium state is to
be calculated, must be entered subsequently or on the same (first) line at once then
separated by an empty space, e.g. FCC#1 BCC or FCC#2 M23C6.
You need to understand what you are dealing with in terms of calculating a
paraequilibrium state between the two specified phases.
Specifically, there are four distinguished cases to understand: (1) both chosen phases must
have similar interstitial/vacancy sublattices where the fast-diffusion interstitial component
(s) occupy; (2) the choice on the target phase pair must be reasonable for the defined
system and specified initial overall composition; (3) both target phases should have phase
constitution definitions that cover all the defined substitutional and interstitial components
of the current alloy system; or (4) it is impossible to calculate the paraequilibrium state
between the target phase pairs with given interstitial component(s) in the currently defined
system.
Fast diffusing component: /c/: <interstitial component(s)>
Fast diffusing component: /none/: <interstitial component(s)>
The name(s) of the fast-diffusing component(s) (C as the default single component) must be
given at the above prompts subsequently or at the same (first) prompt. It is possible to
specify more than one interstitial component as fast diffusion species.
Note the following:
Such specified interstitial component(s) must be appropriately defined according to the
phase constitution definitions of the two selected phases: these must be located on the
interstitial/vacancy sublattices in both chosen phases;
If there is only one fast-diffusing component which is carbon, press the <Enter> key to accept
the default input at the first prompt; if the single fast-diffusing component is another
element (e.g. N), type its name at the first prompt;
If there are two or more fast-diffusing components (e.g. C and N), type their names at the
above prompts subsequently or at the same (first) prompt (separated by an empty space,
such as C N);
To finish the input of fast-diffusing elements, accept NONE at a repeated prompt, i.e. by
pressing <Enter> key to start the paraequilibrium point calculation;
If NONE or a non-existing component name is typed at the first prompt, it means no back
diffusion is to be considered, and the para-equilibrium calculation is thus canceled entirely.
If the paraequilibrium state between the two specified phases is successfully calculated, the
messages displays e.g.
NP(FCC) = 0.3586 with U-fractions C = 2.71821E-02 N = 4.1548129E-03
NP(BCC) = 0.6414 with U-fractions C = 7.10061E-04 N = 2.3781027E-04
All other compositions the same in both phases
Note: LIST-EQUILIBRIUM is not relevant
The first and second lines list the phase amounts expressed in mole-percent [NP(phase)] and
the contents of the interstitial components C and N in a specific phase expressed in the so-
called u-fractions [u-f(phase,C) and u-f(phase,N)], for the phase A (in this case as FCC) and
phase B (in this case as BCC), respectively. The third line states that the compositions of the
matrix component and all the remaining compositions (regarding substitutional
components) in both the target phase A and target phase B are the same at the current
paraequilibrium state, while these are not shown on screen. The last line indicates that after
this advanced-option calculation the LIST_EQUILIBRIUM command is irrelevant and does not
list the paraequilibrium state for the system at the current condition.
However, if the single-point calculation of the paraequilibrium state between the two
specified phases has failed, these messages display:
*** Error 4 in ns01ad
*** Numerical error
This implies that the chosen target phase pair may be unreasonable for the defined alloy
system or for the defined initial overall composition, or one or both phases may have
inappropriate phase constitution definitions regarding the specified interstitial component
(s). Then, you must either modify the settings of initial overall composition or specify the
reasonable target phase pair with an appropriate choice of the fast diffusion interstitials in
the defined alloy system.
STABILITY_CHECK
Stability check on? /y/: <y or n>
The default is Y to switch on the automatic stability check during all subsequent single-point
equilibrium and MAP/STEP calculations. By answering N, there is no stability check in various
calculations.
Check also for unstable phases? /Y/: <Y or N>
If the automatic stability-check option is switched on choose to also check the stability for
unstable phases. The default is Y and if an unstable phase is found to be located in a
miscibility gas during a subsequent single-point equilibrium or MAP/STEP calculation, a
warning message informs you to selectively make adjustments in the calculation settings
[e.g. suspending the unstable phase, or using FORCED automatic start values for phase
constituents by the S_A_S_V F command-sequence, or creating other composition sets, etc.].
By answering N the stability check is enforced only to stable phases in the system.
TOGGLE_ALTERNATE_MODE
Set alternate toggle to DEFAULT, ALWAYS, or NEVER?
Set global toggle to DEFAULT, ALWAYS, or NEVER?
DEFAULT means that the experiment points are calculated according to the Alternate
SHOW_FOR_T=
Temperature (K) /298.15/: <temperature_in_K>
Specify the new temperature condition (in K) under which the values of some specific state
variable(s) or derived/partial variable(s) or defined symbol(s) for various thermodynamic
properties of the entire system, of components, or of phases) in the currently-defined system
(being in a frozen state) is shown on screen.
State Variable or symbol /VM/: <state variable or symbol name(s)>
Specify the name(s) of the desired state variable(s) or derived/partial variable(s) or defined
symbol(s) for various thermodynamic properties of the entire system, of components, or of
phases) in the currently-defined system. More than one state variable or symbol of interest
can be simultaneously specified on the same line. For example, you can choose to show the
values of VM or GM (i.e. molar volume or molar Gibbs energy of the entire system), or of
VM(*) or HM(*).T (i.e. molar volumes or isobaric heat capacity of all phases), or of ACR(*),
DGM(*) and LNACR(*,FCC) [i.e. activities of all system components, driving forces for all
phases, and activities (in logarithm) of all system components in the FCC solution phase],
under the new temperature condition (being in a frozen state).
OUTPUT_FILE_FOR_SHOW
A window opens with a default name for the file tc_show.dat. Choose a location to save the
file and click Open.
COMPUTE_ALL_EQUILIBRIA
Syntax COMPUTE_ALL_EQUILIBRIA
With COMPUTE-ALL-EQUILIBRIA, all equilibria from the current to the last experimental
points are calculated. If an equilibrium calculation fails, the calculation is stopped at that
equilibrium. Equilibria with weight zero is skipped.
COMMENT
This command is only used in the *.POP/*.DOP files to write brief comments or descriptive
information on a newly created equilibrium (experimental) data point or a set of points
given in a table.
Syntax COMMENT
COMPUTE_ALL_EQUILIBRIA
Syntax COMPUTE_ALL_EQUILIBRIA
With COMPUTE-ALL-EQUILIBRIA, all equilibria from the current to the last experimental
points are calculated. If an equilibrium calculation fails, the calculation is stopped at that
equilibrium. Equilibria with weight zero is skipped.
COMPUTE_EQUILIBRIUM
The full equilibrium state is calculated for the given set of conditions. The Global
Minimization Technique is by default enforced in this command (C_E), while it can be
disabled temporarily (for the current single-point equilibrium calculation) if using C_E – or
C_E * command-combination, or permanently (for all the sub sequential single-point
calculations or stepping/mapping calculations within the current TCC run) if having
decisively switched it off by a user (or possibly in some special modules) through changing
the minimization option using the "ADVANCED_OPTIONS" on page 174 → MINIMIZATION_
OPTION command-sequence.
Syntax COMPUTE_EQUILIBRIUM
The C_E command can be used, in order to enforce the ordinary POLY
minimization routines in an equilibrium calculation; this is because of that the
ordinary C_E command is now associated with the Global Minimization
Technique, and only after the Global Minimization
If technique is permanently switched off the C_E command makes no
difference from the C_E – command-combination.
Only certain types of equilibrium conditions [e.g. T, P, N, N(<component>), X
(<component>), B, B(<component>), and W(<component>)] are fully supported in
the Global Minimization mode (called Direct Global Minimization); and when
other types of equilibrium conditions are used, after the initial POLY, a Global
Minimization test and corrections are performed until the lowest minimum is
found (called Indirect Global Minimization).
If there is any problem with convergence, you may try the C_E * command-
combination. The character * enforces the command to use an advanced
technique to obtain a complex equilibrium. However, after a successful C_E
*calculation, you may repeat the C_E command and can check the status of
phases, species or components (with "LIST_STATUS" on page 210 → CPS
command-sequence) and equilibrium conditions (with "LIST_CONDITIONS" on
Prompt page 209) and list out the calculation results (with "LIST_EQUILIBRIUM" on
page 209), because such actions may tell you how to further modify various
settings for your current calculation. This command-combination is not that
useful anymore, because the Global Minimization Technique that is always
associated with the C_E command is even more powerful and more precise in
finding the most-stable equilibrium state in a complex heterogeneous
interaction system; therefore, the C_E * command-combination is functional
and can be used only after the Global Minimization mode has already been
disabled temporarily or permanently.
Some phases that are not stable in the current equilibrium state may not have
their most favorable composition after this command, and thus their driving
forces may not be correct. You can force the program to correctly calculate the
driving forces of metastable phases, by giving repeated C_E commands until
the number of iterations (that is shown on screen after this command) is
reduced to 2.
Syntax COMPUTE_EQUILIBRIUM
CREATE_NEW_EQUILIBRIUM
During data-assessments using the PARROT/ED_EXP modules, you can, in the POLY module,
create several equilibria with different sets of conditions and phases (but normally with the
same set of components). By default, there is one equilibrium. To keep the set of conditions
and phase for this equilibrium, create another one using this command, and use another set
of conditions for that. Two equilibria may be useful to calculate easily the enthalpy
difference between two states. In the PARROT module, the experimental information is
stored as a sequence of equilibria.
Syntax CREATE_NEW_EQUILIBRIUM
Equilibrium number /2/: <A new equilibrium number>
DEFINE_COMPONENTS
Change the set of components. By default, the elements are used as components. The set of
components can be important because some conditions are set using components, for
example, the amounts, activities or chemical potentials.
For example, in the system Fe-Si-O, you can define FEO, FE2O3 and SIO2 as components,
thus replacing the default FE, SI and O.
Syntax DEFINE_COMPONENTS
Give all new components / existing components/: <New components>
The new components must be specified all on one line. These replace the
Prompt existing component definitions.
The number of components cannot be changed with this command.
Use "CHANGE_STATUS" on page 100 instead.
To keep some existing components, it is recommended that you also enter
these on the line. Otherwise, the added new components may not be defined
correctly. This is especially important if some components are built out of
several elements.
DELETE_SYMBOL
This is a POLY3 module command.
Delete symbols (i.e. constants, variables, functions or tables. These symbols are entered with
"ENTER_SYMBOL" on page 113.
Syntax DELETE_SYMBOL
Name: <Name of a symbol>
Prompt Specify the name of the symbol to be deleted. Only one symbol can be deleted
each time.
ENTER_SYMBOL
This command is specific to the ED-EXP module.
Also see "ENTER_SYMBOL" on page 113 for the GIBBS Module and "ENTER_
SYMBOL" on page 247 for the POLY and POST Modules.
Symbols are a useful feature modules to define quantities that are convenient. Symbols can
be constants, variables, functions or tables.
Syntax ENTER_SYMBOL
Constant, Variable, Function or Table? /Function/: <keyword>
Each symbol has a unique name that must start with a letter and can have
maximum 8 characters.
Legal characters include letters (either UPPER or lower case), digits and
underscore _. Any other special character, such as parentheses ( and ), plus +,
minus -, slash / or \, full stop (.), are illegal for symbol names.
You can enter the symbol name and the value or function on the same line,
Syntax ENTER_SYMBOL
The ampersand & means that you can continue to write the function on the
new line if one line is not enough for the function. If you finish the function
press <Enter> again.
Value: <Value for a constant>
Syntax ENTER_SYMBOL
Variable(s): <Variable(s) in a table>
Which means that the table called K contains four columns, i.e. the
temperature, the mole fractions of C and Cr in the LIQUID phase, and the
activity of C.
To show the temperature in Celsius in a table, give the command ENTER
FUNCTION TC=T-273; and then use the symbol TC in the table.
& <Continuation of the definition for the table>
The ampersand & means that you can continue to write the table on the new
line if one line is not enough for the table. If you finish the table press <Enter>
again.
EVALUATE_FUNCTIONS
The value of one or more or all entered functions or variables are evaluated and listed.
Syntax EVALUATE_FUNCTIONS
Name(s): <Name(s) of defined function(s)>
EXPERIMENT
This command is used in original experimental data files (*.POP or *.DOP), but can also be
given interactively inside the ED-EXP module, to change the value or uncertainty of an
experiment or to add more experimental information.
An experiment usually consists of two parts with a colon (:) separating them:
Syntax EXPERIMENT
The experiment must be typed after the command. Several experiments can be
given on the same line.
The syntax of EXPERIMENT is similar to a CONDITION. Usually, a state variable
set equal to a value with a given uncertainty is specified after the colon (:). For
example, T=1273.15:5.
An inequality, < or >, can also be used. For example:
ACR(C)<-0.01:0.001, W(BCC,AG)>0.05:10%
DGM is the POLY variable for the driving force that is already divided by RT, and
it is dimensionless. Only dormant phases can have driving forces larger than
zero, as this indicates that these would be stable if allowed to form. The
experiment in the above case tries to modify the model parameters to make the
HCP phase unstable.
More general examples of experiment definitions:
EXPERIMENT X(LIQ,PB)=.10:.01 X(FCC,PB)=0.02:.01
EXPERIMENT ACR(PB)=0.8:5%
EXPERIMENT T=700:5
The first experiment above describes a tie-line where the experimentally measured mole
fraction of Pb is 0.1 in the liquid phase and 0.02 in the FCC phase, and its uncertainty is 0.01
for both measurements. The second experiment is that the activity of Pb should be 0.8 with
an uncertainty of 5 percent.
The reference state of the component Pb must be set with the command "SET_
REFERENCE_STATE" on page 224. The final one is that the temperature should
be 700 K with an uncertainty of 5 degrees.
Experiments that are functions of states variable(s) must be described as the defined
functions. For example:
ENTER_FUNCTION HTR=HM(LIQUID)-HM(FCC);
EXPERIMENT HTR=7000:1000
EXPORT
This command is for the ED-EXP module.
Syntax EXPORT
Function name: <Function name>#<n>
Specify the name of the function, the value of which should be transferred to a
V variable. The number (n) of the V variable must be given after the function
Prompt name, separated by hash character #.
Example
Enter_function strngy=gm(fcc).x(cu);
Export strngy#6
This transfers the value of the partial derivative of the Gibbs energy of the FCC
phase with respect to the mole fraction of Cu to the optimizing variable 6 (i.e.
V6).
FLUSH_BUFFER
This command is only used in the *.POP/*.DOP files. It is needed if the number of
experiments require more space than can be fitted into one buffer. When the PARROT
program compiles experiments, it informs if any FLUSH commands are needed. The FLUSH_
BUFFER command terminates the current block, save it to the work file and starts a new
block. With the READ command in the EDIT-EXP module, you can select the block to edit.
Syntax FLUSH_BUFFER
GRAPHICS_PLOT
This command can help create a experimental data file from the *.POP/*.DOP file. Several
data sets and different symbols are allowed.
Syntax GRAPHICS_PLOT
IMPORT
Transfer/import the value of one of the optimizing variables to a constant. Normally, it is
directly used inside an experimental data (*.POP or *.DOP) file. It is the inverse of "EXPORT"
on the previous page.
This is useful if several experiments are done at the same activity of a component, but this
activity is not known. The activity should then be optimized and all equilibria with the same
activity should use the same value. In this case the variable must be set as an optimizing
variable, and an initial guess of the activity should be given. During the optimization, the
PARROT program tries to find the activity that gives the best fit.
Syntax IMPORT
Constant name: <Constant name>#<n>
The value of the V variable must be assigned a symbolic constant. The number
(n) of the V variable must be given after the constant name, separated by hash
Prompt character #.
Example
Enter_constant acu=0.1
Import acu#2
This transfers the value of the optimizing variable 2 (i.e. V2) to the constant
ACU.
LABEL_DATA
Add a label to the experimental equilibrium point, either as a single point or several points
given individually or in a table. The label is maximum four characters and must start with
the letter A. Normally, it is directly used inside an experimental data (*.POP or *.DOP) file.
Several experimental equilibria can be given the same label, and the label can be used in
the command "SET_WEIGHT" on page 66 to assign the same weight to all equilibria with the
same label.
Syntax LABEL_DATA
Label? /A1/: a<bcd>
Prompt Specify a textual label (as maximum characters and must start with the letter
A) for the current experimental equilibrium point(s).
LIST_ALL_EQUILIBRIA
This is an EDIT_EXPERIMENTS command.
Syntax LIST_ALL_EQUILIBRIA
List all the details (including equilibrium indicators, labels, iteration numbers,
weight, and fixed phases or comments) of all equilibrium points from the
current one to the last one on screen. You can always use "SELECT_
EQUILIBRIUM" on page 216 to select a specific point as the current equilibrium
point for such a list.
LIST_CONDITIONS
This is a PARROT module command.
Syntax LIST_CONDITIONS
Output to screen or file /Screen/: <File name>
Prompt
Press <Enter> to output to screen or on the list file under a specific file name.
LIST_EQUILIBRIUM
This is a POLY3 module command.
The result (always in SI units) from the last calculated equilibrium is listed on screen or in a
textual file.
Syntax LIST_EQUILIBRIUM
Output to screen or file /Screen/: <File name>
Prompt The name of the text file where the list of the calculation results shall be
written.
Options /VWCS/: <Option(s)>
Syntax LIST_EQUILIBRIUM
Default options are VWCS. If the output fraction type should be in mole fraction
(rather than mass fraction), then give VXCS or type X (implying that in this case
the options V, C and S are accepted as the listing manners for fraction order,
composition and phase).
If accepting all the default options, or if accepting all the altered options that
had already changed when using this command previously, you can type L_
E,,, or LIST_EQUILIBRIUM ,,,
LIST_STATUS
This command is for the POLY and ED-EXP modules.
Syntax LIST_STATUS
Default is CPS.
The results depend on the key word specified in the options for "CHANGE_
STATUS" on page 100, a table with the current status of phases or species or
components, or the combinations, is shown:
LIST_SYMBOL
This is a GIBBS_ENERGY_SYSTEM (GES) command.
List the symbols available in the current GIBBS workspace, which are defined (retrieved
from database in the DATA module, or directly entered in the GIBBS module) and used in TP-
functions for the entered model parameters for various phases in the defined system.
For encrypted commercial databases you may not be able to use this command
to list any retrieved symbol.
Syntax LIST_SYMBOL
Name: <Symbol name>
MAKE_POP_FILE
It is possible in the ED_EXP module to make interactive changes and additions to the original
experimental data file (the *.POP or *.DOP file).
To document or transfer the current or final experimental data to a *.POP/*.DOP file, you
can use this command to write it to a new *.POP/*.DOP file or overwrite it on an old one.
Check this output carefully for errors. Tables in original *.POP/*.DOP files are written as
individual experimental points. The output can be shown on screen or be saved as a new
*.POP file where to write or overwrite the edited experimental information in a simple text
format.
Syntax MAKE_POP_FILE
Output to screen or file /Screen/: <POP/DOP-file name>
Prompt Specify a name of the new *.POP/*.DOP file where to write or overwrite the
edited experimental information in a simple text format.
READ
This command must be given each time the ED_EXP module is entered, unless it
is already given once in ED_EXP and does not use "LIST_RESULT" on page 149 or
"OPTIMIZE_VARIABLES" on page 154 in PARROT in between.
Syntax READ
Block number /#/: <n>
Prompt The number of data block that should be edited must be given. If there is no
command "FLUSH_BUFFER" on page 77 in the original POP or DOP file, then
there is only one data block with the number 1.
READ_WORKSPACE = READ
This command (previously named READ_BLOCK) is equivalent to "READ_
WORKSPACE" on page 288 in the POLY module, but it only reads the POLY3
workspace from the work file set by "SET_STORE_FILE" on page 162 in the
PARROT module.
READ_WORKSPACES
This command is used in both the POLY and GES (GIBBS) modules.
The POLY3 and GIBBS workspaces and the calculated results from the MAP and STEP
commands can be READ from a file where they are saved with "SAVE_WORKSPACES " on the
next page. Such an *.POLY3 file is not printable.
Syntax READ_WORKSPACES
File nameis the name of a saved POLY3-file where the POLY3 and GIBBS
workspaces shall be read from must be specified. You do not need to type the
extension if it is the default *.POLY3 (Windows) or *.poly3 (Linux), otherwise
Options type the whole POLY-file name.
A window opens so that the path (in the Look in field) and File name can be
specified. The Files of type (i.e. POLY3) cannot be changed. Click Open to open
the POLY3 and GIBBS workspaces from the saved *.POLY3 file.
When reading back an original POLY3 workspace that has already been saved
as an *.POLY3 file in the current Thermo-Calc (Console Mode) run or had been
Syntax READ_WORKSPACES
read from an existing POLY3 file under the current work area, while some
additional changes in the settings may be made but do not need to be kept in
further steps in the current Thermo-Calc (Console Mode) run or any diagram is
plotted in the POST module, you can type READ,, or READ_WORKSPACE ,,
REINITIATE_MODULE
Ensures that the whole POLY module (and thus the entire POLY workspace) is reinitiated to
the state as it was when first entered.
Syntax REINITIATE_MODULE
RESTORE_ALL_WEIGHTS
Restore a specific weight-set (previously saved by "STORE_ALL_WEIGHTS" on page 68) and
assign all the different experimental points in the current data block with the previously-set
weights in the sequential assessments.
Syntax RESTORE_ALL_WEIGHTS
Set number (0 for list) /0/: <weight-set number>
Prompt
The default value 0 is for a list on screen.
SAVE_WORKSPACES
This command is for the ED-EXP module.
In the PARROT workspace this command saves the current status of the EDIT_EXPERIMENT
submodule before you switch back to the PARROT module. This is required when you want to
save equilibria changes, including changes to conditions, experimental data, and/or
computed equilibria results, as well as any newly added equilibria.
With this command all the changes made in the EDIT_EXPERIMENT submodule are saved in
the PARROT workspace. This means you do not need to execute "SAVE_PARROT_
WORKSPACES" on page 156 in the PARROT module.
However, when in the PARROT module, additional changes can only be saved with the SAVE_
PARROT_WORKSPACES command even if they have been made prior to executing SAVE_
WORKSPACES in the EDIT_EXPERIMENT module.
When you exit the EDIT_EXPERIMENT module (or Thermo-Calc), the next time the file is
opened it is in the same state as when you executed the SAVE_WORKSPACES command.
However, if you use "OPTIMIZE_VARIABLES" on page 154 the computed results are
automatically updated.
Syntax SAVE_WORKSPACES
<File name> <Y or N>
SELECT_EQUILIBRIUM
If you create more than one initial equilibrium (during data-assessments using the
PARROT/ED_EXP modules), you can switch between them using this command.
Syntax SELECT_EQUILIBRIUM
Number /Next/: <Choice on equilibrium>
SET_ALL_START_VALUES
Set start values, e.g. if the calculation fails or if you have a miscibility gap or ordering. If
temperature and pressure are not conditions, you are asked for values of them. Then for
each phase prompt on if it should be stable and on its constitution.
Syntax SET_ALL_START_VALUES
T /XXXX/: <Temperature in K>
If the temperature is not a condition, supply a guess of its final value (in K).
P /100000/: <Pressure in Pa>
If the pressure is not a condition supply a guess of its final value (in pa).
Automatic start values for phase constitutions? /N/: <Y, N or F>
You cannot have more phases stable than you have components,
but at least one (which dissolves all constituents) must be set as
stable. For backward compatibility, this question can be answered
by 1 (for Yes) or 0 (for No).
The phase name may have a hash sign # followed by a digit, e.g. BCC_A2#2.
For phases with miscibility gaps, there should be two phases with the same
name but with different numbers after the hash sign.
Major constituent(s): <Name of major constituent(s) in the
phase>
The constituent with the largest fraction in the phase should be specified. If
Syntax SET_ALL_START_VALUES
there are more than one constituent with a large fraction, give them all on the
same line. If the default major constituents should be used answer with an
asterisk (*). By giving $ the constitution is not changed. If there should be no
major constituent give NONE and or if the major constituent(s) are improperly
specified, you are asked for individual fractions in the phase.
Y(<phase>,<constituent>) /.XXXXXXXXXX/: <.YYYYY>
The current value (.XXXXXXXXXX) is default. You can accept the default by
pressing <Enter> or give a new value (.YYYYY).
The phase name or constituent name may have a hash sign # followed by a
digit, e.g. Y(BCC_A2#2,FE), Y(BCC_A2#2,C#2). For phases with miscibility
gaps, there should be two phases with the same name but with different
numbers after the hash sign. For phases with sublattices, the constituents in
sublattice 2 or higher is also be suffixed with a hash sign # followed by a digit.
SET_ALTERNATE_CONDITION
A special command used in the experimental data *.POP/*.DOP file but also possible in the
ED_EXP module. It is used only when you have specified that the alternate mode is set in the
PARROT module.
The command syntax is almost the same as for the POLY command "SET_CONDITION" on
page 220 while the uncertainty should also be specified.
Syntax SET_ALTERNATE_CONDITION
State variable expression: <State variable name or linear
expression>
Prompt
Give either a state variable or a linear expression of state variables.
Options Description and Information
Some of the state variables that can be used in conditions are:
Syntax SET_ALTERNATE_CONDITION
This question means that the previous question was not answered. The
program is then expecting a single state variable or a complete state
variable expression, or the numeric factor in an expression with only one
Additional state variable. In a state variable expression a state variable may be
prompts preceded by a constant factor. An example of this is:
2*MUR(FE)+3*MUR(O)=-35000
This means that it should be a condition that two times the chemical
potential of FE plus three times the chemical potential of O should be -35000
J/mol.
State variable: <A specified state variable, or a
continuation>
This question is prompted if a single state variable name has not given in
either the prompt State variable expression or Factor, or a state
variable expression is given but the expression is incomplete, for example,
T- or 2*MUR(FE)+, for which the program is then expecting a continuation of
the unfinished expression. You need to specify a state variable or a complete
state variable expression, or complete the unfinished state variable
expression. If a numeric factor is given before this prompt, only one state
variable can be specified; otherwise, the program only takes the first state
variable to complete the expression (i.e. the factor times the state variable).
Syntax SET_ALTERNATE_CONDITION
Value /X/: <A numeric value, a constant or a variable>
For example:
T=1273.15 P=1E5
X(C)=.002
W(CR)=1.5
ACR(CR)=0.85
X(FCC,C)=.001
H=-250000
Notes
HM(BCC)=-225000
For example:
X(LIQ,S)-X(PYRR,S)=0
This means that it is a condition that the mole fraction of S should be the
same in the LIQUID and PYRRHOTITE phases. In practice that should be the
congruent melting point.
SET_CONDITION
Specify the equilibrium conditions for the calculation. All kinds of state variables, as well as
most of the M/W/V/F-suffixed state variables (for normalization) and R-suffixed state
variables (with respect to chosen reference states), can be used as conditions. Beside
temperature and pressure conditions, a multicomponent system can have mixed types of
conditions; this brings the extreme flexibility and powerfulness to the complex calculations
with the Thermo-Calc software system. You should repeat this command for a
multicomponent system, till the degree of freedom in the defined system becomes zero.
When a FIXED phase status is used on a specific phase (use "CHANGE_STATUS" on page 186),
it is equivalent to one condition (implying that particular phase is stable in the defined
system).
Syntax SET_CONDITION
Each condition must be given explicitly, but can be given on the same line
(separated by a comma (,) or an empty space) or on separate lines with each
one started with the command.
Example
SET_COND T=1273, P=1E5, W(C)=.0015, X(LIQ,CR)=.22, ACR(N)=.2
or
SET_COND T=1273, P=1E5
SET_COND W(C)=.0015, X(LIQ,CR)=.22 ACR(N)=.2
In this example, the temperature is set to 1273 K, the pressure to 1 bar (1E5
Pascal), the mass (weight) fraction of C to 0.0015 and the mole fraction of Cr to
0.22 and the activity of N to 0.2.
State variable expression: <State variable name or linear
expression> or a linear expression of state variables.
Syntax SET_CONDITION
There are many state variables that can be used in conditions. For more
information, enter an INFO STATE_VARIABLES command. A condition is
normally a value of a single state variable with its value.
Example
T=1273.15 P=1E5
X(C)=.002
W(CR)=0.5
ACR(CR)=0.85
X(FCC,C)=.001
H=-250000
HM(BCC)=-225000
A condition can also be a value of a linear expression involving more than one
state variable. For example,
X(LIQ,S)-X(PYRR,S)=0
This means that it is a condition that the mole fraction of S component should
be the same in the LIQUID and PYRRHOTITE phases. In practice, that should be
the congruent melting point.
This question means you did not answer the previous question. The program is
Syntax SET_CONDITION
This means that it should be a condition that two times the chemical potential
of FE plus three times the chemical potential of O should be -35000 J/mol.
State variable: <A specified state variable, or a continuation>
This question is prompted if a single state variable name has not given in either
the prompt State variable expression or Factor, or a state variable
expression is given but the expression is incomplete, for example, T- or 2*MUR
(FE)+, for which the program is then expecting a continuation of the unfinished
expression. You need to specify a state variable or a complete state variable
expression, or complete the unfinished state variable expression. If a numeric
factor is given before this prompt, only one state variable can be specified;
otherwise, the program only takes the first state variable to complete the
expression (i.e. the factor times the state variable).
Value /X/: <A numeric value, a constant or a variable>
SET_NUMERICAL_LIMITS
Change the criteria for convergence. This is to speed up a calculation in a complex system.
If there is any convergence problem in finding a stable solution at any stage during a
calculation procedure enforced by "COMPUTE_EQUILIBRIUM" on page 190, "STEP_WITH_
OPTIONS" on page 227, "MAP" on page 212 or "ADVANCED_OPTIONS" on page 174), this
message displays:
Convergence problems, increasing smallest site-fraction from 1.00E-30 to hardware
precision 2.00E-14. You can restore using SET-NUMERICAL-LIMITS
This implies that smallest site fraction in the current POLY3 workspace is automatically
increased from the default value 1.00E-30 to the hardware-dependent precision (under
Linux, as 2.00E-14). For other subsequent POLY-module calculation in the current Thermo-
Calc (Console Mode) run, you can use this command to restore or reset the smallest site
fraction to the previous or another preferred value, as well as to reset other numerical
limits.
Syntax SET_NUMERICAL_LIMITS
Maximum number of iterations /200/: <xxx>
By default, the program tries 500 iterations before it gives up. As some models
Prompt give computation times of more than 1 CPU second/iteration, this number is
also used to check the CPU time and the calculation stops if 500 CPU
seconds/iterations are used.
Required accuracy /1E-6/: <yyy>
This is a relative accuracy, and the program requires that the relative
difference in each variable must be lower than this value before it has
converged. A larger value normally means fewer iterations but less accurate
solutions. The value should be at least one order of magnitude larger than the
machine precision.
Smallest fraction /1E-12/: <zzz>
This is the value assigned to constituents that are unstable. It is normally only in
the gas phase you can find such low fractions.
The default value for the smallest site-fractions is 1E-12 for all phases, except
for IDEAL phase with one sublattice site (such as the GAS mixture phase in
many databases) for which the default value is always as 1E-30 (unless you
have used the SET_NUMERICAL_LIMITS command to reset an even-lower value
(e.g. 1E-45, that is naturally enforced to all the phases in the system).
Approximate driving force calculation for metastable phases /Y/:
<Y or N>
Normally the POLY module only requires that the set of stable phases is in
equilibrium in order to terminate the iterations. The metastable phases are
included in all iterations but these may not have reached their most favourable
composition and thus their driving forces may be only approximate
[corresponding to Y]. You can also force the calculation to converge for the
metastable phases by answering N if it is important that these driving forces
are correct, which may require more iterations, and the STEP and MAP
command may also terminate due to bad convergence in a metastable phase.
SET_REFERENCE_STATE
The reference state for a component is important when calculating activities, chemical
potentials and enthalpies. The reference state for a component is determined by the
database. For each component the data must be referred to a selected phase, temperature
and pressure, i.e. the reference state. All data in all phases where this component dissolves
must use the same reference state. However, different databases may use different
reference states for the same element. Thus you must be careful when, for example, mixing
data from different databases.
By default, activities, chemical potentials, etc. are computed relative to the reference state
used by the database and this may thus differ depending on the database. With this
command select the reference state for a component if the reference state in the database
does not suit.
You can set the reference state for a component as SER, i.e. the Stable Element Reference
(which is usually set as default for a major component in alloys that is dominated by the
component). Under such a case, the temperature and pressure for the reference state is not
needed and thus is not prompted.
In order to specify conditions in the specified reference state, you can append an R to the
state variables. Thus, AC is the activity (of a system component or of a species in a phase)
with respect to the default reference state, and ACR is the activity with respect to the
selected reference state; MU is the chemical potential of a system component with respect
to the default reference state, and MUR stands for the chemical potential with respect to
the selected reference state. The AC and ACR variables, for both components in a system
and species in a phase, can be specified in natural logarithm, e.g. LNAC(Fe), LNACR(C), LNAC
(O2,GAS), LNACR(O2,GAS).
Syntax SET_REFERENCE_STATE
Component: <Name of the component>
Prompts
The name of the component must be given.
Reference phase: <Name of a phase used as the new reference
state>
Syntax SET_REFERENCE_STATE
O1, O2 and O3 results in O2 being the reference state if, at the present
temperature, pure O2 has the lowest energy of O1, O2 and O3. If the
reference state is set above a critical higher temperature, then O1 has the
lowest energy and consequently become the reference state.
Select the temperature (in K) for the reference state. The wildcard value *
means the current temperature is used for the calculation.
Pressure /1E5/: <Pressure for the reference state>
Select the pressure (in Pa) for the reference state. The wildcard value * means
the current pressure is used for the calculation.
Examples
S-R-S Fe SER
S-R-S Cr FCC * 100000
S-R-S H2O AQUEOUS * 100000
S-R-S ZE REF_ELECTRODE * 100000
SET_START_CONSTITUTION
This command is similar to "SET_ALL_START_VALUES" on page 217, but is used for an
individual phase that may have a wrong constitution.
Syntax SET_START_CONSTITUTION
Phase name: <Name of a phase, and possible major
constituent(s)>
Specify the name of a phase for which the constitution shall be set.
Prompts
If there is a major constituent of the phase, you must specify this on
the same line as the phase name. By giving an*, select the default
major constituents. A $ means keeping the same constitution, and
NONE means to give individual site-fractions.
Y(<Phase>#<Composition_set>,<Constituent>#<Sublattice>)
/xxx/: <SF>
The site fraction (SF) of the constituent shall be given. The default
value xxx is the last calculated one.
SET_START_VALUE
Set a start value of an individual variable.
This command is not often required as the automatic start values can be
handled for most problems.
Syntax SET_START_VALUE
State variable: <Name of a state variable>
Prompts
The state variable must be given.
Value
SET_WEIGHT
Each experimental value has an uncertainty associated with it, specified by the value after
the colon (:) with the command "EXPERIMENT" on page 44. During an optimization the
absolute difference between the experimental and calculated values gives a contribution to
the sum of error.
With the SET_WEIGHT command, you can change the scale of such a contribution (the
uncertainty) for a single experimental point, or the contributions (all uncertainties) for a set
of equilibria. The default weight is always unity. A value smaller than one means that the
experiments should have less weight. A value larger than one that these should have higher
weight. The special value zero means that the set of equilibria should be ignored in editing
Syntax SET_WEIGHT
Value /1/: <Weight value>
The weight is squared, thus use 0.7 to make the error half (0.49)
as big, and 1.4 to make it twice (1.96) as large.
Equilibria (range) or label(s) /Present/:<Selection>
Define the equilibria. These are available in the read data block from the
current work file and are given the above-defined weight.
The selection may be given as a range but the equilibrium numbers must then
be separated only by a minus sign.
SHOW_VALUE
Show the current value of any state variable, function or variable.
Syntax SHOW_VALUE
State variable or symbol: <Name(s) of state variable(s) or
symbol(s)>
Prompt
A single or several state variables or symbols (entered functions or variables)
can be specified.
The wildcard * can be used to denote all phases or all components.
You can use the dollar-sign $ to denote all stable phases. Thus, the command
SHOW W(*,*)lists the mass fraction of all phases, whereas SHOW W($,*)lists the
mass fraction of all stable phases.
STORE_ALL_WEIGHTS
Store a new weight-set that is the current situation of specified weights for all the different
experimental points read from the currently-selected experimental data block in an
assessment. This is useful when you want to try various weight-settings for some
experimental points or for all the points, and then compare the assessment results from
different weight-sets. Such a saved weight-set can be recalled and restored for all
experimental data point with"RESTORE_ALL_WEIGHTS" on page 54 sequentially.
Syntax STORE_ALL_WEIGHTS
Command line: <Weight-set name>
Prompt Give a weight-set name (comment line texts) for the current weight set for all
experimental points.
TABLE_HEAD
Syntax TABLE_VALUES
TABLE_END
Prompt
After the TABLE-HEAD command, there must be an equilibrium description
similar to a single experimental equilibrium but with some special notation.
Then, there is always a TABLE-VALUES command, after which the actual data is
given in columns. At the end of each table, there must be a TABLE-END
command.
The TABLE-HEAD command must be followed by a numeric value. This is used to
generate unique numeric identifiers for all the equilibria in the table. The
numeric identifier is incremented by one for each experimental (equilibrium)
point in the table.
Example
An example of the use of a table for enthalpy measurements in the liquid is
given here. Much more elaborate tables can be used
$ Enthalpies of mixing, Topor and Kleppa, Met Trans 1984 TABLE-HEAD 1
CREATE—NEW @@ 1
CHANGE-STATUS PHASE LIQ=FIX 1
SET-REFERENCE-STATE AU LIQ * 1E5
SET-REFERENCE-STATE CU LIQ * 1E5
SET-CONDITION P=1E5 T=1379 X(LIQ,AU)=@1
LABEL ALH
EXPER HMR=@2:5%
TABLE—VALUES
0.0115 -322
TABLE_HEAD
Syntax TABLE_VALUES
TABLE_END
0.0563 -1520
0.8499 -2976
0.9002 -2114
TABLE—END
TRANSFER_START_VALUES
In the ED_EXP module it is time consuming to calculate all equilibria when the optimization
is sensitive to start values of the composition of the phases. Usually in one data block there
are several experimental points with the same kind of equilibrium and each must have its
start value set. When you manage to calculate equilibriums of such experimental points, this
command is useful to transfer the site fractions from a successfully-calculated equilibria to
the present experimental point.
Syntax TRANSFER_START_VALUES
From equilibrium /Previous/: <Equilibrium number>
Prompt The equilibrium number is the numeric identifier for the equilibrium from
which the start values should be copied to the present experimental point.
Previous is the default if you press <Enter>.
l "CREATE_NEW_EQUILIBRIUM" on page 195
l "CHANGE_STATUS" on page 186
l "SET_CONDITION" on page 220
l "SET_REFERENCE_STATE" on page 224
l "ENTER_SYMBOL" on page 247
l "SAVE_WORKSPACES " on page 54
As the last command in an *.POP or *.DOP file, you must always have the SAVE
command.
Other Commands
Other legal commands from the POLY module that are used less often are:
l "DEFINE_COMPONENTS" on page 196
l "EVALUATE_FUNCTIONS" on page 208
l "SET_ALL_START_VALUES" on page 217
l "SET_NUMERICAL_LIMITS" on page 296
l "SET_START_VALUE" on page 226
l "ADVANCED_OPTIONS" on page 174
Most of the special commands for the ED_EXP module are also often used in an *.POP or
*.DOP file. For example:
l "EXPERIMENT" on page 44
l "EXPORT" on page 46
l "IMPORT" on page 47
l "LABEL_DATA" on page 48
l "SET_ALTERNATE_CONDITION" on page 57
l "SET_WEIGHT" on page 66
The following special ED_EXP commands are illegal and should not be used in
any *.POP or *.DOP file:
l COMPUTE-ALL-EQUILIBRIA
l MAKE-POP-FILE
l READ (READ-BLOCK OR READ-WORKSPACE)
l TRANSFER-START-VALUES
The special commenting identifier, i.e. a single dollar sign $ which starts a line, is used to
document comment lines at any position in an *.POP or *.DOP file. You may remember that
this feature is universally the same as in almost all kinds of text files in Thermo-Calc
software, e.g. in *.TDB, *.DAT, *.TCM, *.POP/*.DOP and *.EXP files. Such a sign and all
information after wards in the same comment line is skipped and ignored by the syntax
checker. Therefore, you shall feel free to write such comment lines in any of these types of
text files.
TABLE_HEAD
Syntax TABLE_VALUES
TABLE_END
Prompt
After the TABLE-HEAD command, there must be an equilibrium description
similar to a single experimental equilibrium but with some special notation.
Then, there is always a TABLE-VALUES command, after which the actual data is
given in columns. At the end of each table, there must be a TABLE-END
command.
The TABLE-HEAD command must be followed by a numeric value. This is used to
generate unique numeric identifiers for all the equilibria in the table. The
numeric identifier is incremented by one for each experimental (equilibrium)
point in the table.
Example
An example of the use of a table for enthalpy measurements in the liquid is
given here. Much more elaborate tables can be used
$ Enthalpies of mixing, Topor and Kleppa, Met Trans 1984 TABLE-HEAD 1
CREATE—NEW @@ 1
CHANGE-STATUS PHASE LIQ=FIX 1
SET-REFERENCE-STATE AU LIQ * 1E5
SET-REFERENCE-STATE CU LIQ * 1E5
SET-CONDITION P=1E5 T=1379 X(LIQ,AU)=@1
LABEL ALH
EXPER HMR=@2:5%
TABLE—VALUES
0.0115 -322
0.0563 -1520
0.8499 -2976
0.9002 -2114
TABLE—END
TABLE_HEAD
Syntax TABLE_VALUES
TABLE_END
COMMENT
This command is only used in the *.POP/*.DOP files to write brief comments or descriptive
information on a newly created equilibrium (experimental) data point or a set of points
given in a table.
Syntax COMMENT
FLUSH_BUFFER
This command is only used in the *.POP/*.DOP files. It is needed if the number of
experiments require more space than can be fitted into one buffer. When the PARROT
program compiles experiments, it informs if any FLUSH commands are needed. The FLUSH_
BUFFER command terminates the current block, save it to the work file and starts a new
block. With the READ command in the EDIT-EXP module, you can select the block to edit.
Syntax FLUSH_BUFFER
ADD_COMMENT 81
AMEND_ELEMENT_DATA 81
AMEND_PARAMETER 82
Solution Models in the GIBBS Module 85
AMEND_PHASE_DESCRIPTION 93
AMEND_SYMBOL 97
CHANGE_STATUS 100
ENTER_ELEMENT 101
About the ENTER_PARAMETER Command 101
Defining the Parameter 102
ENTER_PARAMETER 105
About the ENTER_PHASE Command 107
ENTER_PHASE 110
ENTER_SPECIES 112
ENTER_SYMBOL 113
LIST_CONSTITUENT 119
LIST_DATA 120
LIST_PARAMETER 121
LIST_PHASE_DATA 122
LIST_STATUS 122
LIST_SYMBOL 126
READ_GES_WORKSPACE 126
REINITIATE 127
SAVE_GES_WORKSPACE 128
SET_R_AND_P_NORM 128
ADD_COMMENT
Syntax ADD_COMMENT
AMEND_ELEMENT_DATA
The data for an element (in the SER, the Stable Element Reference, state) can be changed by
this command. It should only be used for the elements that do not have any data in the
database because the element data available in the database is set by the database-
developer for the purpose of internal consistency. Except for the mass, the other values have
no influence on the calculations.
Syntax AMEND_ELEMENT_DATA
Element name: <Element name>
Prompts
Specify the name of the element for which you want to change the data.
New stable element reference /ABCD/: <Name of ser>
Press <Enter> to accept the default SER or specify a new SER for the element.
Important: The default name should not be changed if this data is retrieved
from a database. This name is used when parameters for a phase are listed
and the database assumes that the stable element reference is the same as in
the database. Only if the element's data have not been fetched from a
database, e.g. entered manually, can you enter a new SER.
New atomic mass /xx.xxxx/: <yyyyyy>
Press <Enter> to accept the default atomic mass or specify a new value for the
element. The atomic mass of the element is given in g/mol.
New h(298.15)-h(0) /xxx.xxx/: <yyyyy>
Press <Enter> to accept the default H(298.15)-H(0) or specify a new value for
the element. H(298.15)-H(0) is the enthalpy difference between 298.15 K and
0 K for the element in its SER state.
New s(298.15) /xx.xxxx/: <yyyyy>
Press <Enter> to accept the default S(298.15) or specify a new value for the
element. S(298.15) is the absolute value of the entropy at 298.15 K for the
element in its SER state.
Default element reference state symbol index /#/: <index>
Syntax AMEND_ELEMENT_DATA
The index only changes the symbol, not any value. Normally the
index is set correctly by the database. Only when manually
entering data, you must set the index to get the correct symbol.
Specify an index for the default listing parameters (symbol), or press <Enter>
to accept the pre-set index. 0 is for G, 1 is for H298 and 2 is for H0.
The index is to define the symbol printed in parameter listings. The symbol can
be:
AMEND_PARAMETER
This AMEND_PARAMETER command is for the GES module. There is also a
PARROT module command with the same name ("AMEND_PARAMETER" on
page 132).
Syntax AMEND_PARAMETER
Parameter: <Parameter name>
The program prompts for separate input for each part for a parameter name.
Identifier (/X/): <G or L, or TC, or BM, or V0 or Va or Vb or Vc
or Vk>
Syntax AMEND_PARAMETER
If there are more than one interacting constituents, specify them; otherwise
press <Enter>.
Degree /#/: <Degree>
Then you are prompted to change the parameter definition, as shown below:
Do you want to change the number of ranges /NO/: <Y or N>
If you want to change the number of ranges for the chosen function, or change
some of the temperature limits in the definition, for Y, retype both the
low/high temperature limits and functions.
If you do not want to change the number of ranges but want to change the
function(s) in one or more ranges, press <Enter> to accept the default N, then
the whole definition of the chosen parameter in all ranges (if any) is listed on
screen, such as:
DIFFERENT FUNCTIONS IN THESE RANGES
Syntax AMEND_PARAMETER
298.15<T<2000.00
2000.00<T<4500.00
4500.00<T<6000.00
If there is more than one range, this question is prompted press <Enter>.
Range number (0 to exit) /0/: <Range number>
The previous function is available for editing. The editing is performed within
the general subroutine FOOLED, as described in "AMEND_SYMBOL" on
page 134. This routine prompts as follows:
1:+:>
The prompt consists of the current position in the string and the character at
that position between colons, (::).
Commands
These commands can be given:
l Help: ?
l Move CP to last or first character: <+/-> A
l Delete characters from CP: <+-#characters> D
l Exit: E
l Find: <#occurrences> F<string>@
l Insert: I<string>@
l Move: <+-#positions> M
l Restore string: R
l Substitute: S<OLD>@<NEW>@
l Type string: T
Syntax AMEND_PARAMETER
l The first models the non-ideality as excess parts, i.e. by amending the phase’s
EXCESS_MODEL and/or TERNARY_EXTRAPOLAT models.
l The second models the non-ideality as ADDITIONAL parts, i.e. by amending the
phase’s other subjects in this command, e.g. MAGNETIC_ORDERING for the Magnetic
Ordering Model, DISORDERED_PART for the CVM Approach in modelling chemical
ordering/disordering phenomenon, QUASICHEM_IONIC for using a quasi-chemical
entropy term for an ionic two-sublattice liquid solution phase, QUASICHEM_FACT00
or QUASICHEM_IRSID for describing a substitutional liquid solution phase, DEBYE_
HUCKEL for the DHLL/SIT Model in describing a dilute aqueous solution phase, etc.
l The third implements the model entirely or partially into the GIBBS module and
related database(s), such as for the electrostatic contribution in an AQUEOUS
solution phase by the Complete Revised_HKF Model, the Murngham Model, Birch-
Murngham Model or Generalized PVT Model for high-pressure/temperature volume
contribution in a solid or liquid phase, the SUPERFLUID Model for the non-ideal EOS
and non-ideal mixing in a gaseous mixture.
NEW_CONSTITUENT
Use this if you want to add a new constituent to a phase. It is illegal to add new constituents
RENAME_PHASE
Use this to change the names of some specific phases. For example, a phase called FE3O4_S
may be better named Magnetite to help identify it during the calculations and
postprocessing. This is also a way to delete a phase by hiding it under a new name.
SITE_RATIOS
Use this to change the number of sites (i.e. the stoichiometric coefficients of various
sublattices) in a sublattice phase.
COMPOSITION_SETS
Use this for solution phases that may have miscibility gap(s). However, this is less important
today and often unnecessary to define additional composition set(s), since the implemented
Global Minimization Technique can usually detect and add such composition set(s) in an
automatic manner where it is really necessary during equilibrium calculations (of single-
points, stepping or mapping).
MAJOR_CONSTITUENT
Use this to set major constituent(s) on each sublattice in each composition set for a solution
phase. This is useful to make calculations converge faster because it may simplify giving
start values when calculating the equilibrium as those phases with miscibility gaps should
have different major constituents for each composition set. The databases often set major
constituents for several phases automatically when data are retrieved.
FRACTION_LIMITS
Use this to limit the application range (in terms of mole-fractions of all the involved
elements) of a particular solution phase. This is useful to avoid automatic creations
(enforced by the Global Minimization Technique) of additional composition sets for some
solution phases (such as AQUEOUS solutions or dilute Fe-based liquid mixtures) of which the
used models [e.g. the SIT Model or the Complete Revised_HKF Model for AQUEOUS
solution, or the modified dilute solution parameters (plus a quadratic term, according to
Hillert (1986) based on the SigworthElliot Model (Sigworth and Elliot, 1974) for Fe-rich liquid
mixture] cannot be appropriately applied on a full scale.
Globally set the composition limits (in terms of mole fractions of various elements) in a
specific solution phase, so that whenever the program finds a potential phase composition or
a new composition set of possible miscibility gap(s) but that is out of this globally-set
composition range, the program automatically ignores such a phase composition in an
equilibrium calculation. This can be done either permanently inside a database (by enforcing
this option for amending the phase-description of the solution phase) or temporarily within
the GIBBS module (by using this phase-description amendment option).
This is important for solution phases for which the thermodynamic models and assessed data
for the phases are for specific composition ranges, for example, the FE_LIQUID phase in the
SLAG database is only applicable for Fe-rich liquid mixture, and the AQUEOUS phase in the
TCAQ/PAQ and AQS/PAQS databases is only applicable for H2O-dominant aqueous solution
phase.
Specify the low and high mole-fraction limits for each of the elements possibly available
within the considered phase (in the currently defined system, or in a certain database). Do
this for all the possible elements (defined in the phase) in a single AMEND_PHASE_
DESCRIPTION FRACTION_LIMITS command-sequence, for example:
TYPE_DEFINITION R GES AM_PH_DES FE_LIQUID FRACTION_LIMITS Fe 0 0.6
Ag 0 0.01 Al 0 0.05 Ca 0 0.05 Co 0 0.01 Cr 0 0.01
Cu 0 0.02 Mg 0 0.05 Mn 0 0.05 Mo 0 0.05 Nb 0 0.05
Ni 0 0.05 Pb 0 0.05 Si 0 0.10 Sn 0 0.02 Ti 0 0.05
U 0 0.01 V 0 0.02 W 0 0.02 Zr 0 0.03
B 0 0.01 C 0 0.01 H 0 0.01 N 0 0.01 O 0 0.01
P 0 0.01 S 0 0.01 !
DISORDERED_PART
This command is needed for the special treatment of chemically-ordered phases where the
contributions from the disordered state are described by a phase without ordering
sublattices (the disordered phase name must be specified).
Several checks are made that the ordered and disordered phases are compatible
(sublattices, sites and constituents). A link is then created between the phases, and the
disordered phase is hidden from application programs. The Gibbs energy for the ordered
phase also includes the Gibbs energy for the disordered phase.
Phases which can have an order/disorder transformation have parameters split on two
phases and are referred to as the two phase description in the GIBBS module. One of them
has sublattices for chemical ordering, the other one represents the disordered state.
Normally, the ordered BCC and FCC or HCP phases may have either 2 or 4 substitutional
sublattice (plus one additional interstitial site), that are handled by the Two Substitutional-
Sublattice Ordering Model or Four Substitutional-Sublattice Ordering Model, respectively.
Two phase means that the ordered phase has parameters that describe the ordering. The
disordered phase has all parameters for the reference state and those for describing the
disordered phase. The ordered phase may occur only is some systems whereas the
disordered phase may occur frequently, typical examples are the disordered FCC and BCC
which may become ordered as L12 or B2 in certain systems. In order to treat
multicomponent systems where some subsystems have ordering it would be necessary to
transform all parameters of BCC into a B2 model.
The parameters describing the disordered phase are not changed but the Gibbs Energy
system is informed that the Gibbs Energy for the two phases should be added.
The method used calculates the Gibbs Energy of a two phase model with two or four
substitutional sublattices for ordering.
The mole fractions xi are calculated from the site fractions yi. The last term
means that the contribution from Gmord in a disordered state (same site
fraction, equal to the mole fraction, on both sublattices) is subtracted. The
effect of this is that the parameters in the ordered phase have no contribution
to the disordered state.
MAGNETIC_ORDERING
Change the magnetic ordering parameter for a certain phase with magnetic ordering
contribution, in terms of its anti-ferromagnetic factor. By default this is –1 for BCC phase
and –3 for all other phases (FCC, HCP, etc.). The fraction value of the total enthalpy (due to
short-range ordering above the magnetic transition temperature) is by default 0.40 for BCC
phase and 0.28 for all other phases (FCC, HCP, etc.).
EXCESS_MODEL
Use this to change the default Excess Model (for interaction energies) from the default
(REDLICH-KISTER_MUGGIANU). The model handles the excess interaction energies in a
solution phase is chosen from:
H)
l MIXED-EXCESS-MODELS: (R-K default) for mixed binary excess model (R-K, Legendre
& Polynom) of a substitutional solution phase
l HKF: for interaction in an AQUEOUS solution phase (HKF)
l PITZER: for interaction in an AQUEOUS solution phase (PIT)
l CENTRAL_ATOM_MODEL: for interaction in a liquid slag solution phase (C-A-M)
For extrapolations of excess energies from related binary systems to ternary or higher-order
systems, the Redlich-Kister binary excess interaction parameters may be extrapolated with
either a Muggianu extension (i.e. the default REDLICH-KISTER_MUGGIANU model) and a
Kohler extension (i.e. the alternative REDLICH-KISTER_KOHLER model), where there is no
ternary, quaternary or higher-order interaction parameter.
TERNARY_EXTRAPOLAT
Use this to change the extrapolation method from the default REDLICH-KISTER_MUGGIANU to
another extrapolation model. This method extrapolates from binary to ternary (and higher-
order) excess interaction parameters in a solution phase and is chosen from:
Only when all the relevant binary excess energies in the current solution phase
are treated by the default Redlich-Kister Model (i.e. the Mixed-Excess-Model
should have not been used), the MUGGIANU_RESTOR method for ternary
extrapolations is equivalent to the Redlich-Kister_Muggianu Model, or the
KOHLER-ALL method to the RedlichKister_Kohler Model.
The default ternary extrapolation method MUGGIANU_RESTOR applies to a solution phase as a
whole, whatever the binary excess model(s) enforced to each of individual binary pairs in
the phase. In case that all the binary pairs in the phase use the default binary excess model
REDLICH-KISTER, then the ternary extrapolation method becomes the so-called Redlich-
Kister_Muggianu Model (in short as R-K-M), for extrapolations from binary parameters to
ternary (and higher-order) excess energy terms; when no ternary L parameter is entered for
that, such a default R-K-M Model is always used.
The KOHLER-ALL ternary extrapolation method can be turned on also for a solution phase as
a whole, whatever the binary excess model(s) enforced to each of individual binary pairs in
the phase. In case that all the binary pairs in the phase use the default binary excess model.
REDLICH-KISTER, then the ternary extrapolation method becomes the so-called Redlich-
Kister_Kohler Model (in short as R-K-K), for extrapolations from binary parameters to
ternary (and higher-order) excess energy terms; when no ternary L parameter is entered for
that, such an R-K-K Model is used.
The TOOP-KOHLER ternary extrapolation method is applied in a special way: for a specific
ternary system (e.g. A-B-C) in a solution phase, specify which two constituents as the so-
called Kohler constituents and the remaining constituent as the so-called Toop constituent on
a given sublattice. If for the A-B-C ternary system you have specified A and B, or B and A, as
the Kohler constituents (entered as the basis constituent and first interacting constituent)
and C as the Toop constituent, only the A-B binary interaction parameters are used in
accordance with the Kohler ternary extrapolation formula for A-B-C ternary interaction,
while any other binary interaction parameters involving the Toop species C (i.e. of A-C and
B-C binaries) are used in line with the Toop-Kohler ternary extrapolation formula (for the A-
C-B and B-C-A ternary interactions).
DEBYE_HUCKEL
To use the DHLL (Debye-Hückel Limiting Law) model and SIT (Specific Ionic Interaction
Theory) model for a dilute AQUEOUS solution phase, switch the DEBYE_HUCKEL part on, and
it removes previously set (if any) ADDITIONAL part on the non-ideality for the chosen
AQUEOUS phase.
HKF_ELECTROSTATIC
To use the hypothetical electrostatic contribution for the chosen phase (it must be an
aqueous solution phase using the Complete Revised_HKF Model). It removes previously set
(if any) ADDITIONAL part on the non-ideality for the chosen AQUEOUS solution phase.
QUASICHEM_IONIC
To use the Quasichemical-Ionic model for the chosen liquid phase, you must have already
entered/retrieved a liquid phase as an ionic two-sublattice liquid solution phase (normally,
that is the IONIC_LIQ phase), and then use this amending option to switch QUASICHEM_
IONIC on. It creates a completely new liquid solution phase [namely the QUAS_IONIC phase
which uses the Quasichemical Model for the entropy, according to Mats Hillert (2001: J of
Alloys and Compounds, 320, 161-176)], while the original IONIC_LIQ phase remains in the
system and is not changed by this option.
QUASICHEM_FACT00
To use the Quasichemical Model developed by Kongoli et al. in the F*A*C*T group in
Montreal, you must have entered/retrieved a liquid phase using a normal substitutional
liquid model with specified associates or species (on a single lattice site), and then turn on
the option QUASICHEM_FACT00. This removes the previously-set (if any) ADDITIONAL part
on the non-ideality for the chosen liquid phase.
See examples tcex49 and tcex50 in the Thermo-Calc Console Mode Examples
Guide.
QUASICHEM_IRSID
To use the Kapoor-Frohberg-Gaye Quasichemical Cell Model (i.e. the Quasichemical Model
developed by ISRID, France) for a liquid SLAG solution phase, you can use a normal liquid
model with specified associates or species.
GLASS_TRANSITION
To use the special model for glass transition of a liquid phase. It removes previously set (if
any) ADDITIONAL part on the non-ideality for the chosen liquid phase.
REMOVE_ADDITION
To remove all the selected ADDITIONAL part from the Gibbs energy description for the
chosen phase. If preferred, set a specific phase-status bit for a phase, use the PHASE_BITS
option as long you know the restrict meaning of each part of a phase- status bits.
DEFAULT_STABLE
Set phases as default-stable, which helps you to have a better guess of which phases that
AMEND_PHASE_DESCRIPTION
Specify/amend phase descriptions if a phase has a miscibility gap, uses a special excess
energy model, or has a specific additional contribution to its Gibbs energy, for example.
Also see "Solution Models in the GIBBS Module" on page 85 for detailed
information about this command and its options.
Syntax AMEND_PHASE_DESCRIPTION
Phase name: <Phase name>
Several subjects for the phase can be amended but most often this
Prompts command is used to enter two or more composition sets for a phase. If
a phase has a miscibility gap it is necessary to have two composition
sets, one for each possible composition that can be stable
simultaneously.
Enter a question mark at the prompt to get a list of all possibly
amended subjects for a phase.
There are no additional prompts for DEBYE_HUCKEL, HKF_ELECTROSTATIC,
GLASS_TRANSITION, QUASICHEM_FACT00, QUASICHEM_ISRID, REMOVE_
ADDITION, and DEFAULT_STABLE.
New phase name /ABCD/: <Phase name>
RENAME_PHASE Give a new phase name for the chosen phase, or press <Enter> to keep
the default shown.
Sites in first sublattice /XX/ : <YY> Sites in second
sublattice /XX/ : <YY>
Site_ratios
Specify the site numbers for each of the prompted sublattices for the
current phase. Press <Enter> to accept the previous definitions.
Sublattice /#/: <Sublattice number>
New_ Specify the sublattice where the new constituents are located.
constituent Species: <Species name>
Syntax AMEND_PHASE_DESCRIPTION
New highest set number /#/: <Set number n>
The default value (#) is usually one higher than the current value. All
phases have initially one composition set. If a lower value (i.e. lower
than the default one) is given, that specific composition sets are
deleted.
Give the composition set (digit number) for the chosen phase, or press
<Enter> if you want to set major constituents for the specified
composition set.
Major constituent(s) for sublattice #: /AB/: <Major
constituent(s)>
Syntax AMEND_PHASE_DESCRIPTION
Element : <el1>
Low fraction limit /0/ : <Appropriate low limit>
High fraction limit /1/ : <Appropriate high limit >
Element : <el2>
Fraction_
Low fraction limit /0/ : <Appropriate low limit>
limits
High fraction limit /1/ : <Appropriate high limit>
Element : <eln>
Low fraction limit /0/ : <Appropriate low limit>
High fraction limit /1/ : <Appropriate high limit >
Specify the anti-ferromagnetic factor for the chosen phase. This should
be –1 for BCC phase and –3 for all other phases (FCC, HCP, etc.).
Short range order fraction of the enthalpy /XX/: <YY>
Magnetic_
ordering
The magnetic ordering is a second-order transformation and part of the
enthalpy due to this transformation is due to short-range order. This
value is the fraction of the total enthalpy that is due to short-range
ordering above the magnetic transition temperature.
The default value (xx) is 0.40 for BCC phase, and 0.28 for all other
phases (FCC, HCP, etc.).
Disordered phase name: <Phase name>
Disordered_
part Give the disordered phase name for which there is no ordering
sublattice.
Model name /ABCDEFG/: <Model name>
The default model is the pre-set model for the solution phase, normally
the REDLICH-KISTER_MUGGIANU model, or choose another model for
the phase to be amended:
Excess_model
l REDLICH-KISTER_MUGGIANU
l REDLICH-KISTER_KOHLER
l FLORY-HUGGINS POLYMER MODEL
l MIXED-EXCESS-MODELS (R-K default)
Syntax AMEND_PHASE_DESCRIPTION
l HKF
l PITZER
l CENTRAL_ATOM_MODEL
For the currently-specified binary pair, choose one the legal binary
excess models: LEGENDRE, POLYNOM or REDLICH-KISTER. If the default
binary excess model REDLICH-KISTER is used for a certain binary pair,
you can either specify the model name (or in short as R-K) or press
<Enter>. After this sub-option, it returns to the first sub-option First (the
independent) constituent: either for further change(s) of binary excess
model of any other binary pair(s) or for termination (by pressing
<Enter>) in the MIXED-EXCESS-MODELS option.
Extrapolation method: /Toop-Kohler/: <Ternary model>
Syntax AMEND_PHASE_DESCRIPTION
AMEND_SYMBOL
This command is for the GES (GIBBS) and PARROT modules.
Interactively calculate the current values of a function or table (predefined by the switched
database or previously entered with "ENTER_SYMBOL" on page 113) at the current
temperature and pressure condition, and also possible to modify the definitions of variables
or functions.
The current values of the temperature and pressure used to calculate the
functions or tables are the ones listed with "LIST_STATUS" on page 122. There is
no way to change the current temperature and pressure values interactively.
To modify the definitions of entered symbols (variable, functions or parameters), the
performance of this command is slightly different one from another, as described below:
Syntax AMEND_SYMBOL
Name: <Symbol name>
For variables and functions (or parameters), there are additional prompts and
depend on the symbol type.
For a variable, its current value is displayed, and you can change it to a new
value:
Value /Current value/: <New value>
To change the number of ranges for the function, or change some of the
temperature limits in the definition, For Y, you must retype both the low/high
temperature limits and functions (see all the remaining details in the ENTER_
Syntax AMEND_SYMBOL
SYMBOL command.
If you do not want to change it, press <Enter> to accept the default. The
definition of the chosen function in all ranges (if any) is listed, for example:
DIFFERENT FUNCTIONS IN THESE RANGES
298.15<T<2000.00
2000.00<T<4500.00
4500.00<T<6000.00
The previous function is available for editing. The editing is performed within
the general subroutine FOOLED. This routine prompts as follows:
1:+:>
The prompt consists of the current position in the string and the character at
that position between colons (::).
Commands
These commands can be given:
l Help: ?
l Move CP to last or first character: <+/-> A
l Delete characters from CP: <+-#characters> D
l Exit: E
l Find: <#occurrences> F<string>@
l Insert: I<string>@
l Move: <+-#positions> M
l Restore string: R
Syntax AMEND_SYMBOL
l Substitute: S<OLD>@<NEW>@
l Type string: T
where CP denotes the current position in the string, # means number of, @ is a
terminator of an input or search string.
CHANGE_STATUS
For the GIBBS_ENERGY_SYSTEM module, the status of an element or species or phase can
be either ENTERED or SUSPENDED. The suspended status can be either implicit or explicit.
The implicitly suspended status can be set e.g. for a species if any of the elements in its
chemical formula is explicitly suspended. A species that is implicitly suspended becomes
entered automatically if all its elements are set entered. After this command, a message
shows which elements/species/phases are suspended or restored (entered). Consequently,
the status bits for the specified elements or species or phases are changed, as listed with
"LIST_STATUS" on page 122.
Syntax CHANGE_STATUS
For Element, Species or Phase /Species/: <Keyword>
Prompts
Specify the keyword (element, species or phase).
Suspend /Y/: <Y or N>
The status is changed from ENTERED to SUSPENDED (Y), or vice versa (N).
If an element is suspended all species with this element become implicitly
SUSPENDED too. A phase may become implicitly suspended if all its
constituents or all constituents in a sublattice are suspended.
List of elements/species/phases: <Name of elements or species
or phases>
Specify the names or indices of those elements or species or phases that shall
become suspended or active. For names, these should be separated by a space
and terminated with a semicolon (;) or an empty line. For indices it is possible
to give a range by separating two numbers by a hyphen (-). The list should be
terminated by a semicolon (;). Example: 5 1 7-12 FE;
ENTER_ELEMENT
Specify a system interactively. The program searches the currently switched or preset
database for data for the given elements. The data for the elements in the database are the:
l mass in g/mol
l name of the Selected Element Reference State (SER) which normally is the stable
phase for the element at 298.15 K
l enthalpy difference for the element in the SER state at 298.15 K and zero K
l absolute entropy for the element in the SER state at 298.15 K.
The two predefined elements, i.e. electrons and vacancies, have the chemical symbols /-
and VA, respectively. Initially, these are suspended but can be entered either by this
command or "CHANGE_STATUS" on the previous page.
If an aqueous solution phase is involved, in the GIBBS module you enter a special aqueous
electron called, ZE. This is specially designed for appropriately calculating the standard
electric potential in the aqueous solution system.
Syntax ENTER_ELEMENT
Element name: <Element name>
Prompt Specify several elements on one line. The name of an element is its chemical
symbol. The chemical symbols must be separated by spaces. Fictitious element
names are legal but naturally no data are found in the database for them.
An element name (maximum 2 characters) can either have its first
letter in upper and the second (if any) in lower case (i.e. Lower
Case Mode) or both letters can be in upper or lower case (i.e.
Upper Case Mode). The Upper or Lower Case Mode is selected by
the command "REINITIATE" on page 127, which removes all data,
and should be executed before any other command.
TP-functions. Identical parameters (in terms of parameter-names) are stored only once in
the GIBBS workspaces.
The composition-dependence of the Gibbs energy is described in the GIBBS module by the
internal data structure, which is created when the phase is entered (see "Gibbs Energy
System (GES) Commands" on page 79). The Gibbs energy of a phase is always referred to
one formula unit of the phase, i.e. the amount derived from the number of sites (i.e. the
stoichiometric coefficient) for each sublattice. If vacancy is a constituent of a sublattice, the
amount of matter per formula unit of the phase may vary with composition.
The identifier must be followed by an opening parenthesis, a phase name, a comma and a
constituent array. Optionally, the constituent array can be followed by a semicolon and a
digit. The parameter name is terminated by a closing parenthesis. The parameter form is
defined as:
PARAMETER NAME
The GES parameter name has a general form of:
<identifier>(<phase>,<constituent array>;<digit>)
The parameter name consists of several parts. The first is a type-identifier and these can be
used:
PHASE NAME
Specifying the PHASE NAME in uppercase is recommended; however, if you prefer to write it
as a mixture of uppercase and lowercase, it automatically converts all lowercase to
uppercase, as the GIBBS module only recognises uppercase phase names. It is important that
if a phase bears a legal phase-type (among G, A, Y, L, I, F and B) in its phase definition
(already by the PHASE keyword; such as GAS:G, LIQUID:L,SLAG:L, IONIC-LIQ:Y, SPINEL:I, FCC_
L12:F, HCP_D021:F, BCC_B2:B, AQUEOUS:A), such a valid phase-type code should not be
CONSTITUENT ARRAY
The constituent array consists of a list of constituent names. Interaction parameters have
two or more constituents from the same sublattice separated by a comma. If the phase has
sublattices, at least one constituent in each sublattice must be specified. The constituents in
different sublattices must be given in sublattice order and are separated by a colon.
After the component array, a sub-index digit can be specified after a semicolon. This digit
must be in the range 0 to 9. The interpretation of the sub-index depends on the excess
energy model used for the phase. If no semicolon and digit are given, the sub-index value is
assumed to be as zero.
The excess energy parameters, e.g. the regular/subregular (binary) parameter or ternary
parameters, are multiplied with two or more fractions of the constituents from the same
sublattice of the solution phase. These additional constituents must be given as interacting
constituents (as the following prompt).
INTERACTION PARAMETER
An interaction parameter, which is used to describe the excess term of a quantity, must have
two or more constituents that interact with each other on a specified sublattice site of the
given phase. It is arbitrary which of these constituents is given as the first constituent and
what is given as the interacting constituents. The software always sorts the constituents (in
each sublattice) in alphabetical order when the parameter name is written as a prompt (for
entering its parameter value) and when the parameter is listed (using the GIBBS commands
"LIST_PARAMETER" on page 147 or "LIST_PHASE_DATA (from GIBBS)" on page 148). This is
important for all asymmetric interaction parameters where the sign of the interaction
parameter must depend on the appearance order.
Use an asterisk* to denote that the excess interaction parameter is independent of the
constituents of a specific sublattice. For example, L(FCC_L12,AL,NI:*) means that the
interaction parameter is for the binary interaction between constituents AL and NI on the
first sublattice in the FCC_L12 solution phase, while it is independent of all constituents on
the second sublattice. An interaction parameter in the list of constituents is always added to
the Gibbs energy and the asterisk * is calculated with the term of [1∑y(specified
constituents)], which implies that in an A-B binary system these L parameters are identical
(but in higher-order systems, these are different):
If you press <Enter> when you are asked for a parameter name or if you have improperly
input the entire parameter name, you are asked for each of these items in the name.
ENTER_PARAMETER
This command is for both the GES and PARROT modules.
Use this command to enter TP-function(s) for a specific parameter for a phase interactively
with this command. If there is already a parameter expression defined (for this parameter),
that is deleted and replaced with newly entered one.
The entered TP-Function(s) for the parameter can be changed later with the command
"AMEND_PARAMETER" on page 82.
Syntax ENTER_PARAMETER
Parameter: <Parameter name>
and you are prompted for input for each required part for a parameter
name.
Options Description or Information
Identifier (/X/): <G or L, or TC, or BM, or V0 or VA or VB
or VC or VK>
Identifier
If this command is used one or more times, the previous value on this
prompt is set as default. Press <Enter> for the same type identifier or
Syntax ENTER_PARAMETER
Phase name Each parameter is valid for a specific phase only. The name of that phase
must be supplied (maximum 24 characters). The name can be
abbreviated.
Constituent (in sublattice # /ABC/): <Species name>
If this command is used one or more times, the previous value on this
Interacting prompt is set as default. Press <Enter> to accept it if the constituent is
constituent the same, or specify a new species name.
Syntax ENTER_PARAMETER
For binary interaction parameters, the degree is usually the power in the
Redlich-Kister expression. For ternary interaction parameters, it is usually
the Hillert ternary index.
For a standard G parameter for a pure component (end-member) its
degree should be always 0 and this prompt should not display.
After this prompt, the program echoes on the screen the full TP-Function
of the phase parameter.
Low temperature limit /298.15/: <Lowest temperature limit
in K>
Specify the high temperature limit (in Kelvin), or the high-pressure limit
(in Pascal; only if the lowest limit is entered as a negative number) for
the current TP-Function.
Any more ranges /N/: <Y or N>
system with a uniform composition and structure). In the GIBBS module, any number of
phases can be entered for a system and for each phase there must be a description of how
its Gibbs energy varies with temperature, pressure and composition. A phase has a large
amount of data connected to it, e.g. it starts with a phase name:
clarified: An A-B binary solution phase (with the element A locates on one sublattice site and
B on three sublattice sites) treated by the Normal 4-Sublattice Model has to have 4 G
parameters for 4 end-members, i.e. G(phase,A:B:B:B), G(phase,B:A:B:B), G(phase,B:B:A:B)
and G(phase,B:B:B:A), because of that in the general case these G parameters can be
different from each other. But for the FCC and HCP orderings, these are identical and thus
all G parameters of such end-members need be given only once, and the possible
permutations are then automatically handled by the GIBBS module. This significantly
simplifies the usage of this model (Four Substitutional-Sublattice Ordering Model) in
multicomponent alloys.
There are restrictions on the excess parameters allowed with the phase-type option F. You
can only have excess parameters of these types:
L(phase,A,B:*:*:*;0…9)
L(phase,A,B:C,D:*:*;0…9)
The asterisk * means that the interaction parameter is independent on the constituents on
its corresponding sublattice. No ternary interaction parameters (i.e. with three elements on
one sublattice site) are allowed. The reason for this restriction is that it would be too
complicated to handle all possible permutations. In the current Four Substitutional Sublattice
Ordering Model, the binary interaction between A and B atoms is thus independent of the
constituents on the other sublattices, where there are many other parameters to model the
composition-dependence of the Gibbs energy (both in the ordered and disordered parts of
the phase). The model for these ordered phases are always partitioned in a disordered part
(with a single substitutional sublattice) and an ordered part (with four substitutional
sublattices for ordering).
For ordered BCC phases, the phase-type option B means the same thing but the situation is
more complicated, as the 4-sublattice ordering phase represents an irregular tetrahedron
with two pairs of sites that are next nearest neighbours. Thus, for an A-B binary solution
phase (with the element A locates on two sublattice site and B on other two sublattice sites)
treated by the Normal 4-Sublattice Model, the end-member described by the G
(phase,A:A:B:B) term has four nearest neighbour bonds between A and B atoms, whereas the
end-member described by the G(phase,A:B:A:B) term has two nearest neighbour bonds
between A and B atoms and two next nearest neighbour bonds
For detailed reference visit the Crystal Lattice Structure web page
http://www.nrl.navy.mil/mstd/branches/6390.
The first end-member (described by the G(phase,A:A:B:B) term) represents B2- ordering and
the second (described by the G(phase,A:B:A:B) term) stands for B32-ordering. There are two
permutations of the G(phase,A:A:B:B) term and four permutations of the G(phase,A:B:A:B)
term, automatically conducted in the Four Substitutional-Sublattice Ordering Model. And
there are also two kinds of reciprocal interaction parameters, i.e.
L(phase,A,B:C,D:*:*;0…9) L(phase,A,B:*:C,D:*;0…9)
An advanced feature with the phase-type options F and B is that a composition set that
represents the solution phase has a suffix (indicating that it is really as an ordered or
disordered phase) that is automatically added to its phase name in some listings of
equilibrium calculations (when performing either single-point or stepping or mapping
calculations, and when plotting the calculated property diagrams or phase diagrams). Such
suffix indications can be:
Solution Phase Suffix for Disordered Phase Suffix for Ordered Phase
PHASE_L12
FCC PHASE PHASE_A1
PHASE_L10
PHASE_B2
PHASE_B32
BCC PHASE PHASE_A2
PHASE_D03
PHASE_L21
PHASE_D019
HCP PHASE PHASE_A3
PHASE_B19
ENTER_PHASE
See "About the ENTER_PHASE Command" on page 107 for details about the
phase-type and other prompts.
With this command, the phase name, phase-type, sublattice number, and constituents or
constituent array(s) for the phase are entered into the GIBBS workspaces. However, for the
remaining parts of thermodynamic descriptions (i.e. thermochemical and physical
parameters, excess model, and possibly additional contribution term) for the phase, the
GIBBS commands "ENTER_PARAMETER" on page 143 and "AMEND_PHASE_DESCRIPTION"
on page 93, should be used sequentially.
Normally, data for a system are retrieved from the preset database after the elements and
species are specified. This is automatically done through "GET_DATA" on page 16. In some
cases, specify a phase interactively.
Syntax ENTER_PHASE
The phase name is any string starting with a letter and containing only
letters, digits or the underscore character. The phase name must be
Phase name unique.
type code: <Phase-type code>
Syntax ENTER_PHASE
Number of sites on sublattice # /1/: <Site number>
For phases with sublattices, the ratio of the sites on each sublattice
(donated with #) must be given. The program asks for values for all
sublattices (by repeating this question for each sublattice), but these
may have a common factor extracted. It is recommended to use integer
numbers as sites if possible. For substitutional phases with no
sublattices, this question does not show up.
Name of constituent: <Constituent name(s)>
Constituents For Y add other constituents to the phase by specifying new components
in e.g. an ENTER_PARAMETER command. The default is N or press
<Enter>.
If illegal constituents are used, you get a message e.g. when parameters
are entered.
Do you want a list of possible parameters /N/: <Y or Nn>
ENTER_SPECIES
Specify a species from the already entered elements. The stoichiometry of the species is the
chemical formula of the species. For each species, its name and chemical formula must be
given.
Syntax ENTER_SPECIES
Species name: <Species name>
Enter a unique species name. This is usually its chemical formula but it can be
any string which starts with a letter and contains only letters or digits.
Parenthesis () and an underscore _ are permitted. The combination /- or /+
used to denote charge.
Prompt
Species Names Examples
NACL2, FE2O3, FEO3/2, FE1O1.5, CA.5MG.5SI1O3,
AL1H1O1_Al(OH) , AL1H1O1_HAlO, C2H4O3_124TRIOXOLANE, NA+, SIO4-4,
H1/+1, H1O1/-1, AGC2N2-1.
The species name can be used to separate isomers with the same
stoichiometry, e.g. C2H2Cl2, (CHCl)2_cis, (CHCl)2_trans, CH2_CCl2.
Stoichiometry /Species name/: <Chemical formula>
ENTER_SYMBOL
This command is for the GES ( GIBBS) module.
In the GIBBS module, a symbol can be used to represent a numeric quantity (e.g. a variable),
a function, or a table. The entered symbol (with a symbol name of maximum eight
characters) can be used later when parameters are entered, and this is a flexible way to
manipulate thermodynamic functions. Symbols are especially useful if the same function or
table is used in several thermochemical parameters. A parameter symbol is used to assign
the values of phase parameters (which are defined with the command "ENTER_
Symbols entered in the GIBBS module are not the same symbols as defined in
the POLY and POST modules.
Syntax ENTER_SYMBOL
Variable, function, table or parameter? /Function/: <Keyword>
Each symbol has a unique name that must start with a letter and can have
maximum 8 characters.
The following prompts are based on the type of symbol.
Value: <Numeric value of a variable>
Variable
symbol Only a constant numeric value, not an expression, is accepted.
Enter the lower-temperature limit, the expression, an upper-temperature
limit and if there is another expression above this upper limit:
Low temperature limit /298.15/: <Lowest temperature limit in
K>
Syntax ENTER_SYMBOL
This is for a continuation of the definition for the current TP-Function. The
ampersand & means that you can continue to write the function on the new
line if one line is not enough for the current TP-Function. If you are finished
the current TP-Function, press <Enter> again.
High temperature limit /6000/: <High temperature limit in K>
Syntax ENTER_SYMBOL
The step in temperature between each value in the table. This step must be
constant for the whole table. If a table cannot be described with a single
Syntax ENTER_SYMBOL
step it must be divided into several tables for different temperature ranges.
The upper and lower limits are truncated to give reasonable values where
the table values must be specified.
Table value at XX /YY/: <Table value>
The value of the table at the specified temperature (xx) must be given. The
default value (yy) is the last value.
Input the correct name of a phase parameter (including its identifier, phase
name, constituent and interacting constituent(s) in various sublattices (if
exist), and degree of the parameter. Most of the settings are the same as in
the "ENTER_PARAMETER" on page 143 command or the Function symbol
prompts above.
Parameter: <Parameter name>
Specify a correct and complete parameter name, which should contain all
the necessary parts of the general form:
<Identifier>(<Phase>,<Constituent array>;<Digit>)
Parameter The program prompts for separate input for each required part for a
symbol parameter name.
Identifier (/X/): <G or L, or TC, or BM, or V0 or VA or VB or
VC or VK>
Specify the constituent name on the specified sublattice site of the given
phase.
Interacting constituent (in sublattice # /XYZ/): <Species
name>
Syntax ENTER_SYMBOL
Specify an integer number (a value from 0 through 9) as the degree for the
phase parameter.
Low temperature limit /298.15/: <Lowest temperature limit in
K>
Specify the desired TP-Function for the current temperature range (or
current pressure range; only if the lowest limit is entered as a negative
number).
& <Continuation of the definition for the current TP-
function>
Specify the high-temperature limit (in Kelvin), or the high-pressure limit (in
Pascal; only if the lowest limit is entered as a negative number) for the
current TP Function.
Any more ranges /N/: <Y or N>
LIST_CONSTITUENT
This is a GIBBS_ENERGY_SYSTEM (GES) command.
Syntax LIST_CONSTITUENT
List all the constitutions (as site-fractions) for all the phases in the defined
system.
This is mainly for software managers. There are no commands in
the GIBBS monitor to set the constitution.
LIST_DATA
This is a GIBBS_ENERGY_SYSTEM (GES) command.
All data for the current system that is defined (retrieved from database in the DATA module,
or directly entered in the GIBBS module) within the current GIBBS workspace is written in a
readable manner on the output file. If no output file is specified, the data display on screen.
The output data consists of a list of all elements and their data followed by a list of all
phases and the data associated with each phase. The thermochemical parameters listed for
each phase are always in SI units.
For encrypted commercial databases you may not be able to use this command
to list any retrieved data. However, it can be used to list some basic definitions
(such as phase models and phase-constituents) retrieved from an encrypted
database, as well as all the references related to original assessments (but not
thermodynamic parameters) for the currently-defined system.
Syntax LIST_DATA
Output to screen or file /Screen/: <File name>
Prompts Specify the name of a file in which the data shall be written in a readable
manner. The default value is the screen (by pressing <Enter>).
Options?: <Option(s)>
LIST_PARAMETER
This command is for both the GIBBS and PARROT modules.
List the TP-function(s) of a specific parameter for a phase. You must supply the name of the
phase parameter:
The parameter name: <Identifier>(<Phase>,<Constituent array>;<Digit>)
For encrypted commercial databases, you may not be able to use this command
to list any retrieved parameter.
Syntax LIST_PARAMETER
Parameter: <Parameter name>
Specify a correct and complete parameter name, which should contain all the
necessary parts of the general form: <identifier>(<phase>,<constituent
array>;<digit>)
The program prompts for separate input for each required part for a
parameter name.
Identifier (/X/): <G or L, or TC, or BM, or V0 or VA or VB or VC
or VK>
Specify the constituent name on the specified sublattice site of the given
phase.
Interacting constituent (in sublattice # /XYZ/): <Species name>
Specify the interacting constituent name on the specified sublattice site of the
given phase; if there is no interacting constituent, press <Enter>.
Syntax LIST_PARAMETER
Interacting constituent (in sublattice # /XYZ/): <Species name>
LIST_PHASE_DATA
This is a GIBBS_ENERGY_SYSTEM (GES) command.
All data for a specific phase are written in a readable manner on screen. The
thermochemical parameters listed for the phase are always in SI units.
For encrypted commercial databases you may not be able to use this command
to list any phase data. However, this command can be used for listing some
basic definitions (such as phase model and phase-constituents) for the specified
phase, as well as all the references related to original assessments (but not
thermodynamic parameters) for the currently-defined system.
Syntax LIST_PHASE_DATA
Phase name: <Phase name>
Prompt
Specify a phase name (if abbreviated, it should be unique).
LIST_STATUS
This is a GIBBS_ENERGY_SYSTEM (GES) command.
Syntax LIST_STATUS
For the GIBBS module, list the entered elements, phases and species with the
status word. The command is included for system managers.
Each element, species, phase and symbol has a set of status bits.
The values of these bits are listed with this command.
The bits are listed as hexadecimal, i.e. four bits are written as a hexadecimal
number. Two hexadecimal numbers make a byte. In hexadecimal, 0 to 9 mean
normal digits. A to F means values 10 to 15. The number E4000000 has thus bit
1, 2, 3 and 6 equal to one. The bits are numbered starting with 1 for the most
significant (leftmost) bit.
1. Constant
2. Variable
3. Function
4. Table
5. Value must not be amended
6. Undefined
LIST_SYMBOL
This is a GIBBS_ENERGY_SYSTEM (GES) command.
List the symbols available in the current GIBBS workspace, which are defined (retrieved
from database in the DATA module, or directly entered in the GIBBS module) and used in TP-
functions for the entered model parameters for various phases in the defined system.
For encrypted commercial databases you may not be able to use this command
to list any retrieved symbol.
Syntax LIST_SYMBOL
Name: <Symbol name>
READ_GES_WORKSPACE
This command is specific to the GES (GIBBS) module.
The data area saved onto a *.GES5 file with "SAVE_GES_WORKSPACE" on page 128 is read
back into the GIBBS workspace.
Syntax READ_GES_WORKSPACE
Enter a File name and specify the working directory where to save the file in the
Look in field. Normally the default file-type in the Files of type field is the
correct one for the GIBBS workspace format (i.e. *.GES5 file).
The saved *.GES5 files are unique for each CPU type, and therefore
a *.GES5 file saved on one CPU type cannot be read and used on
another CPU type.
REINITIATE
All data in the stored GIBBS workspace are erased, and all variables are initiated to their
default values.
Syntax REINITIATE
Upper case only /Y/: <Y or N>
The name of elements and species can be either in only UPPER case (by typing
Y or pressing <Enter>), or the elements with two letter names have the first
Prompts letter in Upper and the second in lower case (by typing N).
This value is used as the lower temperature limit when data are entered
interactively.
Upper temperature limit /6000/: <Highest t in K>
This value is used as the upper temperature limit when data are entered
interactively.
Default element reference state symbol index /1/: <1 or 2 or 3>
Specify a proper index for the default listing parameters (symbol), or press
<Enter> to accept the preset index 1.
The index is for defining the symbol printed in listings of parameters. The
symbol can be:
Syntax REINITIATE
l H298: the data are referred to the enthalpy of the element at 298.15 K
and 1 bar.
l H0 is the same as H298 but at the temperature 0 K.
The index only changes the symbol, not any value. Normally the
index is set correctly by the database. Only when manually
entering data must you set the index to get the correct symbol.
Set the index value to 0 to get the symbol G, to 1 to get the symbol
H298 and to 2 to get H0.
SAVE_GES_WORKSPACE
This command is for the GES (GIBBS) module.
The data area used by the GIBBS workspace can be saved on a file (with a default extension
GES5 under MS-Windows, or ges5 under Linux). The default file name is RESULT.GES5 or
equal to the one used in a previous "READ_GES_WORKSPACE" on page 126 command.
Syntax SAVE_GES_WORKSPACE
Enter a File name and specify the working directory where to save the file in the
Save in field. Normally the default file-type in the Files of type field is the
correct one for the GIBBS workspace format (i.e. *.GES5 file).
SET_R_AND_P_NORM
The value of the gas constant (R) is used to define the energy units that are used for input of
data. On output, all data are in SI units. The value of the pressure 1 atm is used to interpret
values of the pressure given by application programs.
Syntax SET_R_AND_P_NORM
Value of gas constant in your energy units /8.31451/: <New
value>
Prompts The default value of the gas constant is in SI units (i.e. 8.31451). If you change
this value, it only affects the interpretation of energy data given interactively
from the terminal, e.g. if the value is set to 1.98717 you can give values in
Calories.
Value of one bar in your presure units /100000/: <New value>
The value of the pressure given in application programs is divided by this value
and then multiplied with the value of one bar expressed in Pascal before it is
used inside the GIBBS module.
AMEND_PARAMETER 132
AMEND_SYMBOL 134
COMPILE_EXPERIMENTS 137
CONTINUE_OPTIMIZATION 138
CREATE_NEW_STORE_FILE 139
EDIT_EXPERIMENTS 139
About the ENTER_PARAMETER Command 139
Defining the Parameter 140
ENTER_PARAMETER 143
LIST_ALL_VARIABLES 145
LIST_CONDITIONS 147
LIST_PARAMETER 147
LIST_PHASE_DATA (from GIBBS) 148
LIST_RESULT 149
LIST_STORE_FILE 153
LIST_SYMBOL_IN_GES 154
OPTIMIZE_VARIABLES 154
READ_PARROT_WORKSPACES 154
RECOVER_VARIABLES 155
REINITIATE 155
RESCALE_VARIABLES 156
SAVE_PARROT_WORKSPACES 156
SET_ALTERNATE_MODE 156
SET_EXTERNAL_PARAMETER 157
SET_FIX_VARIABLE 158
SET_OPTIMIZING_CONDITION 158
SET_OPTIMIZING_VARIABLE 159
SET_OUTPUT_LEVELS 160
SET_SCALED_VARIABLE 161
SET_STORE_FILE 162
AMEND_PARAMETER
This AMEND_PARAMETER command is for the PARROT module. There is also a
GES module command with the same name ("AMEND_PARAMETER" on
page 82).
Interactively modify the TP-function(s) for a specific parameter for a phase with this
command. This is useful in order to correct typing errors because the old function is made
available for interactive editing on the terminal.
Syntax AMEND_PARAMETER
Parameter: <Parameter name>
The program prompts for separate input for each part for a parameter name.
Identifier (/X/): <G or L, or TC, or BM, or V0 or VA or VB or
VC or VK>
Syntax AMEND_PARAMETER
To change the number of ranges for the chosen function, or change some of
the temperature limits in the definition, by typing Y you have to retype both
the low/high temperature limits and functions
If you do not want to change the number of ranges but want to change the
function(s) in one or more ranges, press <Enter> to accept the default N the
whole definition of the chosen parameter in all ranges (if any) is listed such
as:
DIFFERENT FUNCTIONS IN THESE RANGES
298.15<T<2000.00
2000.00<T<4500.00
4500.00<T<6000.00
If there is more than one range, this question is prompted. Press <Enter>.
range number (0 to exit) /0/: <Range number>
The previous function is available for editing. The editing is performed within
the general subroutine FOOLED, as described in "AMEND_SYMBOL" on the
next page. This routine prompts as follows:
1:+:>
Syntax AMEND_PARAMETER
The prompt consists of the current position in the string and the character at
that position between colons, (::).
Commands
These commands can be given:
l Help: ?
l Move CP to last or first character: <+/-> A
l Delete characters from CP: <+-#characters> D
l Exit: E
l Find: <#occurrences> F<string>@
l Insert: I<string>@
l Move: <+-#positions> M
l Restore string: R
l Substitute: S<OLD>@<NEW>@
l Type string: T
Give a range number to edit that function, or press <Enter> or type 0 to exit
this command.
AMEND_SYMBOL
This command is for the GES (GIBBS) and PARROT modules.
Interactively calculate the current values of a function or table (predefined by the switched
database or previously entered with "ENTER_SYMBOL" on page 113) at the current
temperature and pressure condition, and also possible to modify the definitions of variables
or functions.
The current values of the temperature and pressure used to calculate the
functions or tables are the ones listed with "LIST_STATUS" on page 122. There is
no way to change the current temperature and pressure values interactively.
To modify the definitions of entered symbols (variable, functions or parameters), the
performance of this command is slightly different one from another, as described below:
Syntax AMEND_SYMBOL
Name: <Symbol name>
For variables and functions (or parameters), there are additional prompts and
depend on the symbol type.
For a variable, its current value is displayed, and you can change it to a new
value:
Value /Current value/: <New value>
To change the number of ranges for the function, or change some of the
temperature limits in the definition, For Y, you must retype both the low/high
temperature limits and functions (see all the remaining details in the ENTER_
SYMBOL command.
If you do not want to change it, press <Enter> to accept the default. The
Syntax AMEND_SYMBOL
definition of the chosen function in all ranges (if any) is listed, for example:
DIFFERENT FUNCTIONS IN THESE RANGES
298.15<T<2000.00
2000.00<T<4500.00
4500.00<T<6000.00
The previous function is available for editing. The editing is performed within
the general subroutine FOOLED. This routine prompts as follows:
1:+:>
The prompt consists of the current position in the string and the character at
that position between colons (::).
Commands
These commands can be given:
l Help: ?
l Move CP to last or first character: <+/-> A
l Delete characters from CP: <+-#characters> D
l Exit: E
l Find: <#occurrences> F<string>@
l Insert: I<string>@
l Move: <+-#positions> M
l Restore string: R
l Substitute: S<OLD>@<NEW>@
l Type string: T
Syntax AMEND_SYMBOL
where CP denotes the current position in the string, # means number of, @ is a
terminator of an input or search string.
COMPILE_EXPERIMENTS
The descriptions of the experimental equilibria saved on a textual *.POP file, given as
commands in the POLY and ED_EXP syntax, is compiled by this command into the PARROT
structured data, i.e. stored into the current work *.PAR file which is created with "CREATE_
NEW_STORE_FILE" on page 139, set by "SET_STORE_FILE" on page 162 , or opened with
"READ_PARROT_WORKSPACES" on page 154, all done before COMPILE_EXPERIMENTS.
This command also lists the compilation details on screen or onto a listing file (*.TXT).
Also see the DATAPLOT User Guide included with this documentation set.
Syntax COMPILE_EXPERIMENTS
A window displays to open the original experimental data file (*.POP). Enter a
*.POP File name box, and specify the working directory in the Look in box.
Normally the default file-type in the Files of type field is the correct one for
the experimental data format (i.e. *.POP file). Click Open or Cancel button as
applicable.
Output to screen or file /Screen/: <*.pop file name>
Prompts A list of the source code in the *.POP file and error messages during
compilation is written on screen (by pressing <Enter>) or on a list *.TXT file
under a specific file name which can later on be opened and edited by any
Syntax COMPILE_EXPERIMENTS
CONTINUE_OPTIMIZATION
This command continues the optimization using the same Hessian matrix.
Syntax CONTINUE_OPTIMIZATION
Are you sure? /N/: <N or Y>
You can accept the default (N) in order to cancel this special attempt.
Number of iterations /N/: <Integral number of iteration>
CREATE_NEW_STORE_FILE
This file is hardware dependent and cannot be read by any text editor.
Create a binary file to be used as a work file (also called store file) before any optimization
can be done. The workspace used by the GIBBS, POLY and PARROT modules is stored
automatically on the work file but not any experimental information. The binary work file
has a default extension of PAR under MS-Windows or par under Linux/UNIX.
A work file that is created at a previous run can be used in the PARROT module with the
other command SET-STORE-FILE.
Syntax CREATE_NEW_STORE_FILE
EDIT_EXPERIMENTS
Initialize and make available the sub-module for editing experimental equilibria, i.e. the ED_
EXP module. All experimental equilibria compiled from the *.POP file can be accessed in the
ED_EXP module.
The ED_EXP module is similar to the normal POLY module, but some commands are special
and some POLY commands are not available. In the ED_EXP module, you can calculate each
equilibrium separately or together, provide start values for equilibria which failed to
converge, set weights, and modify the values of experiments or conditions.
Syntax EDIT_EXPERIMENTS
The identifier must be followed by an opening parenthesis, a phase name, a comma and a
constituent array. Optionally, the constituent array can be followed by a semicolon and a
digit. The parameter name is terminated by a closing parenthesis. The parameter form is
defined as:
PARAMETER NAME
The GES parameter name has a general form of:
<identifier>(<phase>,<constituent array>;<digit>)
The parameter name consists of several parts. The first is a type-identifier and these can be
used:
PHASE NAME
Specifying the PHASE NAME in uppercase is recommended; however, if you prefer to write it
as a mixture of uppercase and lowercase, it automatically converts all lowercase to
uppercase, as the GIBBS module only recognises uppercase phase names. It is important that
if a phase bears a legal phase-type (among G, A, Y, L, I, F and B) in its phase definition
(already by the PHASE keyword; such as GAS:G, LIQUID:L,SLAG:L, IONIC-LIQ:Y, SPINEL:I, FCC_
L12:F, HCP_D021:F, BCC_B2:B, AQUEOUS:A), such a valid phase-type code should not be
attached to the phase name when ENTER_PARAMETER is executed.
CONSTITUENT ARRAY
The constituent array consists of a list of constituent names. Interaction parameters have
two or more constituents from the same sublattice separated by a comma. If the phase has
sublattices, at least one constituent in each sublattice must be specified. The constituents in
different sublattices must be given in sublattice order and are separated by a colon.
After the component array, a sub-index digit can be specified after a semicolon. This digit
must be in the range 0 to 9. The interpretation of the sub-index depends on the excess
energy model used for the phase. If no semicolon and digit are given, the sub-index value is
assumed to be as zero.
The excess energy parameters, e.g. the regular/subregular (binary) parameter or ternary
parameters, are multiplied with two or more fractions of the constituents from the same
sublattice of the solution phase. These additional constituents must be given as interacting
constituents (as the following prompt).
INTERACTION PARAMETER
An interaction parameter, which is used to describe the excess term of a quantity, must have
two or more constituents that interact with each other on a specified sublattice site of the
given phase. It is arbitrary which of these constituents is given as the first constituent and
what is given as the interacting constituents. The software always sorts the constituents (in
each sublattice) in alphabetical order when the parameter name is written as a prompt (for
entering its parameter value) and when the parameter is listed (using the GIBBS commands
"LIST_PARAMETER" on page 147 or "LIST_PHASE_DATA (from GIBBS)" on page 148). This is
important for all asymmetric interaction parameters where the sign of the interaction
parameter must depend on the appearance order.
Use an asterisk* to denote that the excess interaction parameter is independent of the
constituents of a specific sublattice. For example, L(FCC_L12,AL,NI:*) means that the
interaction parameter is for the binary interaction between constituents AL and NI on the
first sublattice in the FCC_L12 solution phase, while it is independent of all constituents on
the second sublattice. An interaction parameter in the list of constituents is always added to
the Gibbs energy and the asterisk * is calculated with the term of [1∑y(specified
constituents)], which implies that in an A-B binary system these L parameters are identical
(but in higher-order systems, these are different):
If you press <Enter> when you are asked for a parameter name or if you have improperly
input the entire parameter name, you are asked for each of these items in the name.
ENTER_PARAMETER
This command is for both the GES and PARROT modules.
Use this command to enter TP-function(s) for a specific parameter for a phase interactively
with this command. If there is already a parameter expression defined (for this parameter),
that is deleted and replaced with newly entered one.
The entered TP-Function(s) for the parameter can be changed later with the command
"AMEND_PARAMETER" on page 82.
Syntax ENTER_PARAMETER
Parameter: <Parameter name>
and you are prompted for input for each required part for a parameter
name.
Options Description or Information
Syntax ENTER_PARAMETER
Identifier (/X/): <G or L, or TC, or BM, or V0 or VA or VB
or VC or VK>
Identifier If this command is used one or more times, the previous value on this
prompt is set as default. Press <Enter> for the same type identifier or
specify a new type.
Phase name (/ABCD/): <Phase name>
Phase name Each parameter is valid for a specific phase only. The name of that phase
must be supplied (maximum 24 characters). The name can be
abbreviated.
Constituent (in sublattice # /ABC/): <Species name>
If this command is used one or more times, the previous value on this
Interacting prompt is set as default. Press <Enter> to accept it if the constituent is
constituent the same, or specify a new species name.
Syntax ENTER_PARAMETER
Specify the high temperature limit (in Kelvin), or the high-pressure limit
(in Pascal; only if the lowest limit is entered as a negative number) for
the current TP-Function.
Any more ranges /N/: <Y or N>
LIST_ALL_VARIABLES
This is a PARROT module command.
Create a list of the values and status of all variables in the PARROT workspace on screen or
in a text file. After an optimization some statistical information is also written. The
correlation matrix is written if that option is chosen.
Syntax LIST_ALL_VARIABLES
Output to screen or file /Screen/: <File name>
A list of the current values and status, as well statistical information (if after
Prompt optimization) and the correlation matrix (optionally), for all variables is written
on screen (by pressing <Enter>) or on the list file under a specific file name
which can later on be opened and edited by basic text editor.
Example Output
The following is the listed variables for the example TCEX36, after the first
optimization when having set all variables available for optimization.
== OPTIMIZING VARIABLES ==
AVAILABLE VARIABLES ARE V1 TO V00
VAR. VALUE START VALUE SCALING FACTOR
REL.STAND.DEV
V1 2.03729090E+04 2.03688352E+04 2.03688352E+04
3.41524152E+00
V2 -2.94286372E+01 -2.94286372E+01 -2.94286372E+01
2.37944771E+00
V11 -2.17373936E+04 -2.18095983E+04 -2.18095983E+04
3.97086303E-02
V12 1.52107184E+01 1.51660547E+01 1.51660547E+01
5.84552327E-02
V15 2.42082351E+04 2.45139169E+04 2.45139169E+04
5.00914471E+00
V16 -8.38723972E+00 -8.83460472E+00 -8.83460472E+00
1.60961318E+01
V17 3.08916533E+03 3.15802558E+03 3.15802558E+03
9.63738108E+00
V19 2.20292586E+04 2.21385673E+04 2.21385673E+04
4.14274011E+01 V20 -7.04217974E+00 -7.22424882E+00 -
7.22424882E+00 1.00561540E+02
NUMBER OF OPTIMIZING VARIABLES : 9
ALL OTHER VARIABLES ARE FIX WITH THE VALUE ZERO
THE SUM OF SQUARES HAS CHANGED FROM 8.00002729E+04 TO
8.00002719E+04
Syntax LIST_ALL_VARIABLES
DEGREES OF FREEDOM 45. REDUCED SUM OF SQUARES 1.77778382E+03
LIST_CONDITIONS
This is a PARROT module command.
Syntax LIST_CONDITIONS
Output to screen or file /Screen/: <File name>
Prompt
Press <Enter> to output to screen or on the list file under a specific file name.
LIST_PARAMETER
This command is for both the GIBBS and PARROT modules.
List the TP-function(s) of a specific parameter for a phase. You must supply the name of the
phase parameter:
The parameter name: <Identifier>(<Phase>,<Constituent array>;<Digit>)
For encrypted commercial databases, you may not be able to use this command
to list any retrieved parameter.
Syntax LIST_PARAMETER
Parameter: <Parameter name>
Specify a correct and complete parameter name, which should contain all the
necessary parts of the general form: <identifier>(<phase>,<constituent
array>;<digit>)
The program prompts for separate input for each required part for a
parameter name.
Identifier (/X/): <G or L, or TC, or BM, or V0 or VA or VB or VC
or VK>
Specify the constituent name on the specified sublattice site of the given
phase.
Interacting constituent (in sublattice # /XYZ/): <Species name>
Specify the interacting constituent name on the specified sublattice site of the
given phase; if there is no interacting constituent, press <Enter>.
Interacting constituent (in sublattice # /XYZ/): <Species name>
All data for a specific phase are written on screen. The thermochemical parameters listed
for each phase are always in SI units.
Syntax LIST_PHASE_DATA
Phase name: <Phase name>
Prompt
Specify a phase name.
LIST_RESULT
This is a PARROT module command.
List the result of the current optimization run on screen or in a specified file. The level of
detail listed can be prescribed by the command "SET_OUTPUT_LEVELS" on page 160.
The LIST_RESULT command has an option G for creation of an experimental data file with
two columns, one for the experimental value and the other for the calculated value. It allows
plotting a diagram and visualizing the fitting results. The plot is automatically plotted and
you can scale it giving commands in the POST module. The option D lists all experiments,
including those with fulfilled inequalities which are suppressed with the default option C.
Syntax LIST_RESULT
Full, condensed, detailed or graphic format: /C/: <C or D or F
Prompt or G>
Choose a format.
A list of the current optimization results are written on screen (by pressing
<Enter>) or on the list file under a specific file name which can later on be
opened and edited by basic text editor.
Syntax LIST_RESULT
Example Output
The following is the listed result in the example tcex36 ( in the Thermo-Calc Console Mode
Examples Guide), after the first optimization based on the prescribed definitions in the
TCEX36a.TCM and TCEX36b.TCM, but having set all variables available for optimization.
=====================================================
OUTPUT FROM P A R R O T.
=====================================================
*** SUCCESSFUL OPTIMIZATION. *** NUMBER OF ITERATIONS: 10
== OPTIMIZING CONDITIONS ==
RELATIVE STANDARD DEVIATIONS FOR EXPERIMENTS: N
MINIMUM SAVE ON FILE: Y
ERROR FOR INEQUALITIES = 1.00000000E+00
RELATIVE STEP FOR CALCULATION OF DERIVATIVES = 1.00000000E-04
ARGUMENTS FOR SUBROUTINE VA05AD (HSL)
MAXFUN = 1 DMAX = 1.00000000E+02 H = 1.00000000E-04 ACC = (INITIAL
SUM OF SQUARES) * 1.00000000E-03
== OPTIMIZING VARIABLES ==
AVAILABLE VARIABLES ARE V1 TO V00
VAR. VALUE START VALUE SCALING FACTOR REL.STAND.DEV
V1 2.03749463E+04 2.03729090E+04 2.03729090E+04 3.41455863E+00
V2 -2.94286372E+01 -2.94286372E+01 -2.94286372E+01 2.37944774E+00
V11 -2.17395673E+04 -2.17373936E+04 -2.17373936E+04 3.98405298E-02
V12 1.52107184E+01 1.52107184E+01 1.52107184E+01 5.82861832E-02
V15 2.42106560E+04 2.42082351E+04 2.42082351E+04 5.07239609E+00
V16 -8.38723972E+00 -8.38723972E+00 -8.38723972E+00 1.69546796E+01
V17 3.08947424E+03 3.08916533E+03 3.08916533E+03 9.85220694E+00
V19 2.20314615E+04 2.20292586E+04 2.20292586E+04 4.16329629E+01 V20
-7.04217974E+00 -7.04217974E+00 -7.04217974E+00 1.03161466E+02
NUMBER OF OPTIMIZING VARIABLES : 9
ALL OTHER VARIABLES ARE FIX WITH THE VALUE ZERO
THE SUM OF SQUARES HAS CHANGED FROM 8.00002719E+04 TO 8.00002709E+04
DEGREES OF FREEDOM 45. REDUCED SUM OF SQUARES 1.77778380E+03
Number of alternate equilibria 14
SYMBOL STATUS VALUE/FUNCTION
R 80000000 8.3145100E+00
RTLNP 20000000 +R*T*LN(1E-05*P)
V1 48000000 2.0374946E+04
V2 48000000 -2.9428637E+01
V11 48000000 -2.1739567E+04
V12 48000000 1.5210718E+01
V15 48000000 2.4210656E+04
V16 48000000 -8.3872397E+00
LIST_STORE_FILE
This is a PARROT module command.
Syntax LIST_STORE_FILE
Displays the name of the store file and its full path.
LIST_SYMBOL_IN_GES
This is a PARROT module command.
Lists TP-function(s) for the entered model parameters for phases in the system on screen. In
many cases, the optimizing variables are parts of the TP-functions which in turn are entered
in model parameters for various phases in the GIBBS workspace.
This command is a way to find out how the functions depend on the optimizing variables. In
the PARROT module the list is only shown on screen, not written to any file (which the LIST_
SYMBOL command in the GIBBS module does).
Syntax LIST_SYMBOL_IN_GES
Name: <Symbol name>
OPTIMIZE_VARIABLES
Perform variable optimization. All system-definition data needed for the optimization is read
from the current work file (*.PAR). The result of the optimization is automatically stored in
the current work file.
Syntax OPTIMIZE_VARIABLES
Number of iteration /N/: <Integral number of iteration>
READ_PARROT_WORKSPACES
This command is used in the PARROT module.
Syntax READ_PARROT_WORKSPACES
RECOVER_VARIABLES
Syntax RECOVER_VARIABLES
The values of all variables are set back to the start values.
REINITIATE
This command should not be used unless you want to destroy the current
PARROT workspace. However, this PARROT command does not reinitiate the
GIBBS/POLY3 workspaces.
Syntax REINITIATE
The workspace used by the PARROT program is reinitiated. All output and
optimizing conditions are given their default values. All variables are set fixed
with their value equal to zero.
RESCALE_VARIABLES
Syntax RESCALE_VARIABLES
The current values of all the parameters are copied to their start values and the
scaling factors for further optimization. Thus it should be done now and again,
in particular if you think the optimization results are improved after the
previous run(s), or if any variable changes more than a factor of 10.
SAVE_PARROT_WORKSPACES
This command is used in the PARROT module.
Syntax SAVE_PARROT_WORKSPACE
SET_ALTERNATE_MODE
Turn the alternate mode on or off. The alternate mode is described in "Optimizing with the
PARROT Module" on page 130. It should be used only to optimize start values of the model
parameters in the beginning of the assessment.
With the ALTERNATE mode is possible to include functions to be evaluated together with an
alternate calculation and to select ALTERNATE mode for each experimental equilibrium.
Syntax SET_ALTERNATE_MODE
On /Y/: <Y or N>
Prompt
The default Y turns on the alternate mode.
SET_EXTERNAL_PARAMETER
This is a PARROT module command.
Optimize model parameters of the so-called external models, which may not be as fully-
implemented/integrated parts inside the GIBBS system and thus are independently defined
within user-specified/written source codes. This command makes links between the PARROT
optimizing variables and external model parameters.
In order to be able to build the specified external model and to use this SET_
EXTERNAL_PARAMETER command, it requires you to first write codes for a
preferred external model (as it is not within the standard GIBBS system of the
Thermo-Calc software) and then provide it to the consultancy team
([email protected]) of Thermo-Calc Software Company in Stockholm for
the purpose of including the external model in a separate DLL that is
interactively connected to the Thermo-Calc software. Such a special service
can/should only be provided under the restrictive condition that a specific
Consultancy Project Contract is bilaterally agreed and signed in advance
between users and Thermo-Calc Software.
Syntax SET_EXTERNAL_PARAMETER
External name: <Parameter name in the external model>
Prompt Correctly specify the parameter name defined within a specified/written
external model.
As optimizing variable number: <n>
Give the number of the PARROT optimizing variable, which should have a
unique link to the specified parameter name of the external model.
For example, @@ Link PARROT variables to CAM parameters:
SET-EXTER-PAR GT(SLAG_A,O-2,SI+4,CA+2) 1
SET-EXTER-PAR ET(SLAG_A,O-2,SI+4,CA+2) 2
SET-EXTER-PAR EXT(SLAG_A,O-2,SI+4,CA+2) 3
SET_FIX_VARIABLE
Prescribe a fixed value to a variable. The variable is considered as a constant at the
optimization, usually after successful optimization runs for some specific variables (for some
of the phases in the system). Such fixed variables can also be set back for further
optimization run by using "SET_OPTIMIZING_VARIABLE" on the next page.
Syntax SET_FIX_VARIABLE
Variable number: <Variable number(s)>
Specify the number of the variable. It is possible to give a range by giving two
Prompts numbers with a hyphen in between (no spaces allowed), e.g. l. The
parameters within the limits are set fixed to their current values (no question
of values).
Start value /xxxx.xxxxx/: <A value to be fixed>
Specify a numerical value to be fixed for the selected variable (only when one
variable number is specified at the previous prompt). The current value for the
selected variable is shown as default.
If a range of variable numbers is specified at the previous prompt, this
question is not prompted, and the current values are used as fixed values.
SET_OPTIMIZING_CONDITION
Specify the conditions for the optimization. The default values are chosen automatically by
the PARROT program, and in most cases these should not be changed.
The optimization stops when the sum of errors decreases by this value, even
though it might be possible to increase it further with a new OPTIMIZE
command.
Syntax SET_OPTIMIZING_CONDITION
Relative standard deviation for experiments? /N/: <Y or N>
Syntax SET_OPTIMIZING_CONDITION
In the calculation of the correlation matrix for equilibria with inaccuracy in the
independent state variables, some numerical derivatives might have to be
calculated.
Specify the relative step (xxx) for the calculation of these derivatives.
Maxfun (va05ad): /100/: <n>
The maximum number of iterations in the optimization. The same value set by
the OPTIMIZE command.
Dmax (va05ad): /100/: <n>
An estimate of the maximum distance between the start and the final values of
the variables. A smaller value makes the program vary the parameters with
smaller factors.
h (va05ad): /1e-04/: <xxx>
The step used in the scaled variables for calculating numerical derivatives
during the optimization.
acc/(initial sum of squares) (va05ad): /.001/: <xxx>
The break condition for the optimization. The accepted value is the difference
between the true minimum and the calculated one.
SET_OPTIMIZING_VARIABLE
Specify which variable value should be estimated at the optimization. Such a variable can
have a value of zero or another start value, or is fixed by "SET_FIX_VARIABLE" on the
previous page prior to the previous optimization run.
For a good reference prior to this command, a list of all variables (which are used to define
various parameters for phases in the optimizing system, as pre-entered in the *SETUP.TCM
file or interactively entered in the GIBBS module) are obtained by using "LIST_ALL_
VARIABLES" on page 145.
Syntax SET_OPTIMIZING_VARIABLE
Variable number: <Variable number(s)>
Specify the number(s) for the variable(s) to be set. Any non-zero parameter
within the range is allowed to be optimized. A parameter with a current value
Prompts equal to zero must be specified explicitly here in order to be optimized.
Specify a range by giving two numbers connected by a hyphen (no space
allowed!), e.g. 2-8. Under this circumstance, no question of start values are
asked.
Start value /xxxx.xxxxx/: <A guess value>
Specify a start guess of the optimum value (only when one variable number is
specified at the previous prompt). The current numerical value for the
selected variable is shown as default.
SET_OUTPUT_LEVELS
Choose the type of information the PARROT module gives during the optimization procedure
and when listing results.
Syntax SET_OUTPUT_LEVELS
List increment /1/: <Increment in iteration number>
Prompts Specify the increment in iteration number for which information is listed on
screen during the optimization. By giving a larger number it shortens the list.
List sum of squares: /Y/: <Y or N>
Choose whether the sum of squares is listed on screen during the optimization
Syntax SET_OUTPUT_LEVELS
procedure.
List scaled variables: /Y/: <Y or N>
Choose whether the scaled variable values are listed on the terminal during
the optimization procedure.
List weightened residuals: /N/: <N or Y>
Choose whether the weighted residuals are listed on the terminal during the
optimization procedure.
List all parameters: /N/: <N or Y>
Choose whether the correlation matrix of the variables are listed with the
commands LIST_RESULT and "LIST_ALL_VARIABLES" on page 145.
SET_SCALED_VARIABLE
This command is similar to "SET_OPTIMIZING_VARIABLE" on page 159 in that it specifies
start values for optimizing variables. The difference being it is functional for only one
optimizing variable at one time. It also prescribes a minimum and maximum value for the
variable. During the optimization runs, the variable value is limited within this min-max
range.
Such a variable may have a value of zero or another start value, or may be fixed by "SET_
FIX_VARIABLE" on page 158 prior to the previous optimization run. For a good reference
prior to using this command, a list of all variables (which are used to define various
parameters for phases in the optimizing system, as entered in the *SETUP.TCM file or
interactively entered in the GIBBS module) is obtained by using "LIST_ALL_VARIABLES" on
page 145.
Syntax SET_SCALED_VARIABLE
Variable number: <Variable number(s)>
Prompts Specify the number for an optimizing variable to be set. Any non-zero
parameter is allowed to be optimized, and a parameter with a current value
equal to zero must be specified explicitly here in order to be optimized.
Start value /xxxx.xxxxx/: <A guess value>
Syntax SET_SCALED_VARIABLE
Specify a start guess of the optimum value. The current numerical value for
the selected variable is shown as default.
SET_STORE_FILE
Specify a store file (work file) to be used for compilation and optimization. The *.PAR work
file must be created ("CREATE_NEW_STORE_FILE" on page 139) as a store file. The GIBBS,
POLY and PARROT workspaces are read from the specified store file (with a default
extension of PAR).
Syntax SET_STORE_FILE
Enter an *.PAR file name in the File name field and specify the working
directory in the Look in field. Normally the default file-type in the Files of type
Prompt
field is the correct one for the PARROT workspace format (i.e. *.PAR file). Click
Open or Cancel as applicable.
MAP 212
POST 214
READ_WORKSPACES 214
RECOVER_START_VALUES 215
REINITIATE_MODULE 215
SAVE_WORKSPACES 215
SELECT_EQUILIBRIUM 216
SET_ALL_START_VALUES 217
SET_AXIS_VARIABLE 218
SET_CONDITION 220
SET_INPUT_AMOUNTS 222
SET_NUMERICAL_LIMITS 223
SET_REFERENCE_STATE 224
SET_START_CONSTITUTION 226
SET_START_VALUE 226
SHOW_VALUE 227
STEP_WITH_OPTIONS 227
TABULATE 239
l Direct Global Minimization: From the mesh of Gibbs energy, find the set of grid
points that gives the lowest energy solution under the specified conditions. This set of
grid points provides starting combination of phases and their constitutions for regular
minimization to find the exact equilibrium solution. This solution is then subject to a
global test as described below.
l Indirect Global Minimization: Under certain conditions, a direct approach is
impossible. In this case, regular minimization is performed first and then a check is
performed in order to see if the found local minimum is a global one by checking if
all grid points are above the equilibrium Gibbs energy plane. If not, then recalculate
by including these grid points until no grid point is above the equilibrium Gibbs
energy plane from the previous step.
The full-scale and full-scope usage of the Global Minimization Technique has been extended
from for only single-point calculations for all types of calculations (of single-points, property
diagram stepping and phase diagram mapping)in Thermo-Calc.
The use of Global Minimization Technique may increase the computation time. The main
cost in time comes from the calculation of Gibbs energy at each grid point generated by
properly meshing the composition space for each entered phase. An additional (but much
smaller) cost in time comes from finding the set of grid points in the above mesh that give
the lowest energy solution. This solution is where POLY starts its ordinary minimization.
When POLY has found an equilibrium, the equilibrium Gibbs energy surface is compared to
the mesh to assure that no grid point is below the surface, i.e. a global minimization has
been reached.
Global Minimization is performed by default in single-point or stepping or mapping
equilibrium calculations.
Together with the PARROT module, the POLY module is also used for critical assessment of
experimental data in order to develop thermodynamic databases. The POLY module uses the
Gibbs Energy System (GES) for modeling and data manipulations of the thermodynamic
properties of each phase.
ADD_INITIAL_EQUILIBRIUM
Add initial equilibrium points from which a phase diagram is calculated (through the "MAP"
on page 212 command).
Syntax ADD_INITIAL_EQUILIBRIUM
Direction /Default/: <Direction code>
Normally, this command is not needed to calculate a property diagram (with the "STEP_
WITH_OPTIONS" on page 227 → NORMAL command-sequence). In many cases, the ADD_
INITIAL_EQUILIBRIUM command is not required for MAP commands either, as the mapping
procedure starts from the current equilibrium state already calculated. In order to calculate
a simple phase diagram, set the equilibrium conditions and the mapping axis variables, and
then give a MAP command. But if a phase diagram has disconnected lines, the ADD_
INITIAL_EQUILIBRIUM command may still be needed to add two or more initial equilibria so
that the MAP calculation starts from such initial equilibria at the specified directions to find
all phase boundary lines.
This command becomes unnecessary in most cases, as the MAP routines that by default use
the Global Minimization Technique handles all the initial equilibrium points in a robust and
automatic way. Therefore, you do not need to have a good guess of the starting point and to
add any initial equilibrium point prior to the calculations of various types of phase diagrams.
However, if preferred, use this command to add any initial equilibrium points in certain
directions, the POLY module uses the specified starting point(s) and corresponding user-
added initial equilibrium point(s) for a mapping calculation; in such a case, the automatic
procedure in the rewritten MAP routines are not enforced while the Global Minimization
Technique can still be applied. Similar situations occur when a specific database, in which
there are some definitions of initial-equilibrium adding direction(s) for accessed binary
and/or ternary subsystems in its ACCESSED_SYSTEM section, is used in the BINARY or
TERNARY module for calculating a binary or ternary phase diagram.
The ADD_INITIAL_EQUILIBRIUM command with the default direction scans along the axis
variables and generates start points each time the scanning procedure crosses a phase
boundary. In addition, it generates four start points, scanning cross the middle of each axis,
if there is any solubility line that does not reach the axes. At the MAP command, a search for
lines in the diagram is made along each direction of the axis variables in the diagram. In this
way, it should guarantee that all possible phase boundary lines in a phase diagram are
found. Of course, it may take a little longer time to execute than using the minimum
number of start points, as some lines may be calculated more than once. But the POLY
module remembers all node points and subsequently stops calculations along a line when it
finds a known node point.
It is also possible to create a sequence of start points from one initial equilibria by
appending a > after the direction at the ADD command. For example:
Direction /Default/: 2>
Direction /Default/: -2>
This generates one start point for each set of phase change in the positive direction of the
axis 2 (or negative direction of the axis 2); this ensures finding all possible phase boundary
lines (not just the first one) along such an axis direction.
This is particularly useful when you have a phase diagram with several lines with no
intersection. It is thus possible to calculate e.g. an isopleth for a much more limited
composition range. It is also useful for calculating CVD diagrams and Pourbaix diagrams.
All the initial equilibrium points generated by the ADD_INITIAL_EQUILIBRIUM command
(previously and presently; saved in the current POLY workspace) can be easily listed out on
screen with "LIST_INITIAL_EQUILIBRIA" on page 210. A certain initial equilibrium point
(including its conditions and equilibrium results) can be loaded into the current equilibrium,
if needed, with "LOAD_INITIAL_EQUILIBRIUM" on page 212. Any specific or all of the initial
equilibrium points can be deleted from current POLY workspace, if desired, with "DELETE_
INITIAL_EQUILIBRIUM" on page 204.
ADVANCED_OPTIONS Descriptions
Also see "ADVANCED_OPTIONS" on page 174 for information about the
command.
EQUILIBRIUM_CALCUL
Designed to decide how to perform the Ordinary POLY Minimization (i.e. the traditional
Gibbs Energy Minimization) in the POLY module. By default, the Global Minimization
Technique for various single point equilibrium calculations and for stepping or mapping
calculations is used. You can use the advanced option "GLOBAL_MINIMIZATION" on
page 295 to permanently turn off (for all sequential calculations throughout the current TCC
run) the Global Minimization Technique and consequently use only the Ordinary POLY
Minimization, and additionally adjust the ways to proceed the normal minimization (mainly
in terms of how to control the steps in reaching Gibbs energy minima in an equilibrium
state). When enforcing the Global Minimization Technique in the equilibrium calculations,
you can further adjust the manners for assigning grid-points and for handling new possible
compositional set(s) for solution phases during stepping/mapping; since the Global
Minimization Technique also uses the normal POLY optimization routine for some
calculations, it is also possible to change the ways on how to control the steps in reach Gibbs
energy minima in an equilibrium state, in order to improve convergence.
GLOBAL_MINIMIZATION
Designed to decide how to perform the so-called Global Minimization in the POLY module.
By default, the POLY module uses the Global Minimization Technique for various single-point
equilibrium calculations and for stepping or mapping calculations. You can use this to
permanently (for all sequential calculations throughout the current TCC run) turn off the
Global Minimization Technique and consequently use only the Ordinary POLY Minimization,
and additionally adjust the ways to proceed the normal minimization (mainly in terms of
how to control the steps in reaching Gibbs energy minima in an equilibrium state). When
enforcing the Global Minimization Technique in the equilibrium calculations, you can adjust
the manners for assigning grid-points and for handling new possible compositional set(s) for
solution phases during stepping/mapping; since the Global Minimization Technique also uses
the normal POLY optimization routine for some calculations, it is also possible to change the
ways on how to control the steps in reach Gibbs energy minima in an equilibrium state, in
order to improve convergence.
LIST_PHASE_ADDITION
The values set as additional contributions (given by PHASE_ADDITION) to Gibbs energy Gm
(J/mol formula unit) to all the phases (stoichiometric or solution) are listed at the current
calculated equilibrium.
MAJOR_CONSTITUENTS
Use this to set the major constituent(s) of a composition sets in a miscibility gap of a solution
phase. Normally, the major constituents are specified when a new composition set is created
by the NEW_COMPOSITION_SET option; but for the first composition set, this option may be
needed before using NEW_COMPOSITION_SET.
NEW_COMPOSITION_SET
A solution phase that can exist with two (or more) different compositions simultaneously
must have two (or more) composition sets in its phase descriptions. Normally the database
creates as many composition sets as is necessary but use this command to add or delete
more composition sets. A complex solution phase in a defined multicomponent system can
have up to 9 different composition sets for the purpose of appropriately handling its possible
miscibility gap(s) under various temperature-pressure-composition conditions.
This option is unnecessary if the Global Minimization Technique is in use, as it can
automatically detect all possible miscibility gap(s) for complex solution phases (normal or
disordered/ordered phases) and then automatically add required composition sets for such
phases in the defined system.
This option can automatically create composition sets also for disordered phase when it is
executed for the ordered phase.
If you have your own data file, this option must be used to indicate that a solution phase can
have a miscibility gap (or may exhibit some complex phase separations as to more than two
composition sets), unless that the possibly-additional composition set(s) for the solution
phase must have already been added inside the TDB file (through a TYPE_DEFINITION
command to amend composition-set) or been manipulated through the GIBBS module (using
the AMEND_PHASE_DESCRIPTION COMPOSITION_SET command-sequence). This option asks
for default major constituents for the new sets and it is important that this is set correctly,
otherwise the test for miscibility gaps may fail.
OUTPUT_FILE_FOR_SHOW
The name of a text file is asked for and all the results output from the command SHOW_
VALUE is written to this file.
PARAEQUILIBRIUM
This calculates a paraequilibrium between two specific phases in an alloy system with one or
more interstitial component(s) as fast diffusion species. Under the paraequilibrium state,
two partially-equilibrated phases have the same chemical potential (but different contents)
for one or more interstitial components (such as C, N, O, S, etc., as individual or combined)],
along varied temperature or along a composition variable (of the matrix or one
substitutional component) which has already set as the stepping variable with "SET_AXIS_
VARIABLE" on page 218.
To ensure a successful point calculation of paraequilibrium state between two specific
phases in a defined alloy system, it is important that you first have made a single-point
equilibrium calculation with an initial overall composition in the current system before
performing this advanced-option calculation; however, it is unnecessary to obtain an
equilibrium in which either one or both of the target phases is stable. The initial overall
composition must have a reasonable setting for the desired paraequilibrium calculation for
the two target phases. This is especially true for cases where there are more than one
interstitial components to be considered in the paraequilibrium state, because different
interstitial components (for example C and N combined) may have significant different
behaviors as partitioning into different structured phases; otherwise, for one chosen
interstitial component the initial overall composition is OK for the paraequilibrium
calculation between the specified two phases, but for other chosen interstitial component(s)
it might be impossible to calculate the paraequilibrium state.
Note the following:
Always check if the chosen phases A and B have the exactly same definition of elements and
if the chosen interstitial components are all in the vacancy sublattice sites of the two phases;
otherwise the program cannot find the paraequilibrium state (as it is impossible to correctly
calculate u-fractions).
Always have a comprehensive understanding of the normal phase diagram for the currently
investigated system, so that you make the appropriate choice of the phase pair and staring
bulk composition for the system.
Always set the status of the chosen interstitial components as SPECIAL using the POLY
command: "CHANGE_STATUS" on page 186 Component <interstitial component> =
SPECIAL. By doing this, you get a clear picture of u-fractions of various substitutional and
interstitial components, which are different from the overall composition in the system. The
SPECIAL status means that specified component(s) are not included in summations for mole
or mass fractions. Therefore, all the composition variables plotted from paraequilibrium
calculations are u-fraction related quantities.
PHASE_ADDITION
Sometimes it is interesting to add a constant contribution to the Gibbs energy of a phase
(stoichiometric or solution). This can be done in the Database Module (DATA) or Gibbs
Energy Module (GIBBS), for a stoichiometric phase, or for a pure end-member in a solution
phase. However, if the addition is related to the equilibrium state, for example, strain
energies or surface energies, interfacial energies or deformation energies, it may be more
convenient to have this quantity related to the equilibrium state rather than the
thermodynamic data.
Give a value of an addition to the Gibbs energy of a phase. The value should always be
constant (implying that the addition is not a function of phase composition or temperature-
pressure conditions in the equilibrium state) and always be given in the unit of J/mol
formula unit of the phase.
PRESENT_PHASE
The phase specified must be stable at all equilibria calculated during a "MAP" on page 212
command. It is a way to limit the calculations of the monovariant lines in a ternary system to
those in the liquidus surface. Normally such a calculation would have two compositional axes
and a temperature axis and all monovariant lines, also those between 3 solids, would be
mapped. If the liquid is set as PRESENT, only those with the liquid is mapped.
SHOW_FOR_T=
Display various thermodynamic properties (state variables, derived/partial variables or
entered symbols) of the currently calculated (stable/meta-stable) equilibrium state but
under a different temperature condition. This is useful for knowing, for example, a volume-
related property of a frozen (stable/meta-stable) equilibrium state at a certain temperature,
where the equilibrated phase assemblage and all the phase compositions are not adjusted
while only the temperature condition is changed.
Use this option carefully. You must have successfully calculated a real equilibrium state
under one temperature condition (normally the temperature for the last heat treatment).
This can then be used to obtain the value(s) of any specified state variable(s) or
derived/partial variable(s) or defined symbol(s) for thermodynamic properties of the entire
system, of components, or of phases for the currently-defined system (being in a frozen
state) under another temperature (normally at room temperature). No real equilibrium is
re-calculated through this option, and thus the phase amounts and compositions in the
system are the same as at the last real equilibrium calculation.
STABILITY_CHECK
In some composition ranges of a multicomponent system, it often happens that an unstable
solution phase region locates inside a miscibility gap, and the stability limit (the spinodal
curve or spinodal) may be not easy to find. A system inside a spinodal is thermodynamically
unstable with respect to compositional fluctuations, and the system may experience the
spinodal decomposition (i.e. decomposing to a mixture of regions with the two stable
compositions, one on each side of the miscibility gap).
This option makes it possible to automatically check internal stability of both stable and
unstable phases in all subsequent single-point equilibrium and MAP/STEP calculations. It can
find out if any phase is subject to spinodal decomposition during the subsequent calculations.
If there is an unstable phase located inside a miscibility gap in a calculation, it gives a
warning so that you suspend the unstable phase, or use FORCED automatic start values for
phase constituents (i.e. "SET_ALL_START_VALUES" on page 217 → FORCE command-
sequence), or create other composition sets; you can also ignore the warning message if you
know that the unstable phase is not formed in the current calculations.
STEP_AND_MAP
This is the default and is used to determine how to perform Global Minimization test and
how to handle initial equilibrium points.
T-ZERO_TEMPERATURE
This calculates the temperature when two specific phases have the same Gibbs energy, i.e.
the so-called T0 temperature. You must calculate an equilibrium state at an estimated
temperature before performing this advanced-option calculation; however, it is unnecessary
to obtain an equilibrium state in which either one or both of the target phases is stable.
TOGGLE_ALTERNATE_MODE
Toggle the ALTERNATE mode for experimental equilibrium calculation between DEFAULT,
ALWAYS and NEVER, during data-assessments using the PARROT optimization.
ADVANCED_OPTIONS
Syntax ADVANCED_OPTIONS
The integer number determines how often the Global Minimization should be used during
STEP_WITH_OPTIONS and MAP calculations. If it is set to 0 (zero), the recommended global
test interval is used: i.e. every tenth step and at each phase change during STEP calculations,
and only at node points during MAP calculations. Any other positive integer number, n,
suggests it performs a Global Minimization test at every n-th step during STEP and MAP
calculations. Of course, the Global Minimization test is always carried out at a phase change
or a node point. The Thermo-Calc software is installed with 0 (zero) as the default value, but
such a configuration for the default value can be changed by using SET_TC_OPTIONS in the
SYS module.
Automatically add initial equilibria /Y/: <Y or N>
An integer for how many intervals of initial equilibrium points to be added along an edge in
the diagram. For example, if set to 2 (two), initial equilibrium points are added at the
beginning, center, and end of each axis-variable forming 2 intervals.
Use inside meshing points /N/: <Y or N>
If N the INITIAL_EQUILIBRIUM mesh consists of initial equilibrium points added only along
the edge/border of the diagram defined by the axis-variables. If Y, the initial equilibrium
points added are also added inside edge.
NONE
Take away any set advanced option in all subsequent single-point equilibrium and MAP/STEP
calculations.
If there is any convergence problem in finding a stable solution, at any stage of an advanced
option calculation conducted by an ADVANCED_OPTIONS command-sequence, these
messages display:
Convergence problems, increasing smallest site-fraction from 1.00E-30 to hardware
precision 2.00E-14. You can restore using SET-NUMERICAL-LIMITS
The smallest site fraction in the current POLY3 workspace is automatically increased from
the default value 1.00E-30 to the hardware-dependent precision (under Linux, as 2.00E-14).
For other subsequent POLY-module calculation in the current TC run, you can use the POLY
command "SET_NUMERICAL_LIMITS" on page 296 to restore or reset the smallest site
fraction to the previous or another preferred value, as well as to reset other numerical
limits.
EQUILIBRIUM_CALCULATION
The following prompts affect the ways how the POLY optimization does the Ordinary POLY
Minimization to reach the minimum of an equilibrium state.
Settings for the minimization of an equilibria:
Force positive definite phase Hessian /Y/: <Y or N>
Control stepsize during minimization /Y/: <Y or N>
Force positive definite phase Hessian /Y/: <Y or N>
Compute a Hessian matrix as which describes the curvature of the Gibbs energy curve of this
phase at the defined composition X:
Diagonalize this matrix and call the Eigenvalues as e1,e2,...,en . The QF(phase) quantity for
this phase is the lowest of these eigenvalues divided by the same values for a corresponding
ideal (stoichiometric) phase:
Here, se1,se2,...,sen are the eigenvalues for the ideal phase. Therefore, for an ideal
(stoichiometric) phase, the QF(phase) should always be 1.0.
Control stepsize during minimization /Y/: <Y or N>
GLOBAL_MINIMIZATION
The following prompts affect how the Global Minimization is done. Settings for global
minimization:
Use global minimization as much as possible /Y/: <Y or N>
Use global minimization for test only? /N/: <Y or N>
Maximum number of gridpoints per phase /2000/: <Integer number>
Use global minimization as much as possible /Y/: <Y or N>
Choose Y or N to decide if using the Global Minimization Technique from start of calculation
or not. The default value on start-up may be changed by SET_TC_OPTIONS in the SYS module.
If Y the calculation is done when possible (depending on the condition settings), and a Global
Minimization test is always performed when an equilibrium is reached. This costs more
computer time but the calculations are more accurate.
If N the calculation is not used to reach the equilibrium state. Use global minimization
for test only? determines if the Global Minimization test is made against the calculated
equilibrium states obtained by the Ordinary POLY Minimization calculation.
Use global minimization for test only? /N/: <Y or N>
Specify the maximum number of grid points that are computed for each of the phases in the
currently defined system, during the calculations enforced by the global minimization. More
grid points give a higher robustness and take more computation time. The total number of
computed grid points in all phases is limited to 2E6.
IGNORE_COMPOSI_SET_ORDER
Ignore composition set order /N/
NEW_COMPOSITION_SET
The following prompts are to specify the additional composition set(s) to handle possible
miscibility gap(s) of a certain solution phase:
Phase with miscibility gap: <Name of a phase>
The default value is usually one higher than the current value. Each phase has initially one
composition set. If a lower value is given, composition sets are deleted. You cannot take
away the first composition set.
A message displays to show that you need to specify the composition for the composition set
# (2,3,…).
Major constituent(s) for sublattice 1: /XX/: <YY>
The major constituents (YY) in each sublattice can be given. This may simplify giving start
values when calculating the equilibrium as phases with miscibility gaps should have different
MAJOR_CONSTITUENT
The following prompts are to specify the major constituent(s) on each of the sublattice sites
for a composition set of a certain solution phase:
Phase name: <name of a phase>
Specify the name of the solution phase with a new set of major constituents.
Composition set number /1/: <#>
The default value for the composition set number (#) is usually /1/ as the other composition
sets are given major constituents when creating them. Each phase has initially one
composition set.
Major constituent(s) for sublattice 1: /XX/: <YY>
The major constituents (YY) on each sublattice of a solution phase can be given. This may
simplify giving start values when calculating the equilibrium as phases with miscibility gaps
should have different major constituents for each composition set.
This question is repeated for each sublattice in the phase.
PHASE_ADDITION
The following prompts are to specify the additional energy term (always being a constant) of
a given phase.
Phase name: <Name of a phase>
Specify the name of the (stoichiometric or solution) phase with the addition.
Addition to G per mole formula unit: <xxxxx>
The value (xxxxx) given is added to the Gibbs energy of the (stoichiometric or solution)
phase. It can represent a nucleation barrier, surface tension, elastic energy or whatsoever.
PRESENT_PHASE
Specify the name of the present phase a the name of the phase that should be present at all
calculated equilibria:
Present phase:
Phase name: <Name of a phase>
Console Mode examples tcex45, tcex46 and tcex47 use this advanced option.
T-ZERO_TEMPERATURE
Name of first phase: <Phase A>
Name of second phase: <Phase B>
The names of phases A and B must be given, for which the T0 temperature (where the Gibbs
energies are equal) is to be calculated.
If the T0 temperature between the two specified phases is successfully calculated, a
message displays, e.g.
The T0 temperature is 840.82 K. Note: LIST-EQUILIBRIUM is not relevant
The first message shows the calculated T0 temperature between the two specified phases.
The second message indicates that after this option calculation with LIST_EQUILIBRIUM is
irrelevant and does not list the equilibrium for the system at the T0-temperature.
PARAEQUILIBRIUM
Name of first phase: <Phase A>
Name of second phase: <Phase B>
The names of the two target phases A and B, between which the paraequilibrium state is to
be calculated, must be entered subsequently or on the same (first) line at once then
separated by an empty space, e.g. FCC#1 BCC or FCC#2 M23C6.
You need to understand what you are dealing with in terms of calculating a
paraequilibrium state between the two specified phases.
Specifically, there are four distinguished cases to understand: (1) both chosen phases must
have similar interstitial/vacancy sublattices where the fast-diffusion interstitial component
(s) occupy; (2) the choice on the target phase pair must be reasonable for the defined
system and specified initial overall composition; (3) both target phases should have phase
constitution definitions that cover all the defined substitutional and interstitial components
of the current alloy system; or (4) it is impossible to calculate the paraequilibrium state
between the target phase pairs with given interstitial component(s) in the currently defined
system.
Fast diffusing component: /c/: <interstitial component(s)>
Fast diffusing component: /none/: <interstitial component(s)>
The name(s) of the fast-diffusing component(s) (C as the default single component) must be
given at the above prompts subsequently or at the same (first) prompt. It is possible to
specify more than one interstitial component as fast diffusion species.
Note the following:
Such specified interstitial component(s) must be appropriately defined according to the
phase constitution definitions of the two selected phases: these must be located on the
interstitial/vacancy sublattices in both chosen phases;
If there is only one fast-diffusing component which is carbon, press the <Enter> key to accept
the default input at the first prompt; if the single fast-diffusing component is another
element (e.g. N), type its name at the first prompt;
If there are two or more fast-diffusing components (e.g. C and N), type their names at the
above prompts subsequently or at the same (first) prompt (separated by an empty space,
such as C N);
To finish the input of fast-diffusing elements, accept NONE at a repeated prompt, i.e. by
pressing <Enter> key to start the paraequilibrium point calculation;
If NONE or a non-existing component name is typed at the first prompt, it means no back
diffusion is to be considered, and the para-equilibrium calculation is thus canceled entirely.
If the paraequilibrium state between the two specified phases is successfully calculated, the
messages displays e.g.
NP(FCC) = 0.3586 with U-fractions C = 2.71821E-02 N = 4.1548129E-03
NP(BCC) = 0.6414 with U-fractions C = 7.10061E-04 N = 2.3781027E-04
All other compositions the same in both phases
Note: LIST-EQUILIBRIUM is not relevant
The first and second lines list the phase amounts expressed in mole-percent [NP(phase)] and
the contents of the interstitial components C and N in a specific phase expressed in the so-
called u-fractions [u-f(phase,C) and u-f(phase,N)], for the phase A (in this case as FCC) and
phase B (in this case as BCC), respectively. The third line states that the compositions of the
matrix component and all the remaining compositions (regarding substitutional
components) in both the target phase A and target phase B are the same at the current
paraequilibrium state, while these are not shown on screen. The last line indicates that after
this advanced-option calculation the LIST_EQUILIBRIUM command is irrelevant and does not
list the paraequilibrium state for the system at the current condition.
However, if the single-point calculation of the paraequilibrium state between the two
specified phases has failed, these messages display:
*** Error 4 in ns01ad
*** Numerical error
This implies that the chosen target phase pair may be unreasonable for the defined alloy
system or for the defined initial overall composition, or one or both phases may have
inappropriate phase constitution definitions regarding the specified interstitial component
(s). Then, you must either modify the settings of initial overall composition or specify the
reasonable target phase pair with an appropriate choice of the fast diffusion interstitials in
the defined alloy system.
STABILITY_CHECK
Stability check on? /y/: <y or n>
The default is Y to switch on the automatic stability check during all subsequent single-point
equilibrium and MAP/STEP calculations. By answering N, there is no stability check in various
calculations.
Check also for unstable phases? /Y/: <Y or N>
If the automatic stability-check option is switched on choose to also check the stability for
unstable phases. The default is Y and if an unstable phase is found to be located in a
miscibility gas during a subsequent single-point equilibrium or MAP/STEP calculation, a
warning message informs you to selectively make adjustments in the calculation settings
[e.g. suspending the unstable phase, or using FORCED automatic start values for phase
constituents by the S_A_S_V F command-sequence, or creating other composition sets, etc.].
By answering N the stability check is enforced only to stable phases in the system.
TOGGLE_ALTERNATE_MODE
Set alternate toggle to DEFAULT, ALWAYS, or NEVER?
Set global toggle to DEFAULT, ALWAYS, or NEVER?
DEFAULT means that the experiment points are calculated according to the Alternate
Technique depending on the SET_ALTERNATE command.
ALWAYS means the experiment points are always calculated according to the Alternate
Technique even if the Alternate Mode is switched off in the PARROT module.
NEVERmeans the experiment points are calculated as normal equilibria even if you SET_
ALTERNATE in the PARROT module.
SHOW_FOR_T=
Temperature (K) /298.15/: <temperature_in_K>
Specify the new temperature condition (in K) under which the values of some specific state
variable(s) or derived/partial variable(s) or defined symbol(s) for various thermodynamic
properties of the entire system, of components, or of phases) in the currently-defined system
(being in a frozen state) is shown on screen.
State Variable or symbol /VM/: <state variable or symbol name(s)>
Specify the name(s) of the desired state variable(s) or derived/partial variable(s) or defined
symbol(s) for various thermodynamic properties of the entire system, of components, or of
phases) in the currently-defined system. More than one state variable or symbol of interest
can be simultaneously specified on the same line. For example, you can choose to show the
values of VM or GM (i.e. molar volume or molar Gibbs energy of the entire system), or of
VM(*) or HM(*).T (i.e. molar volumes or isobaric heat capacity of all phases), or of ACR(*),
DGM(*) and LNACR(*,FCC) [i.e. activities of all system components, driving forces for all
phases, and activities (in logarithm) of all system components in the FCC solution phase],
under the new temperature condition (being in a frozen state).
OUTPUT_FILE_FOR_SHOW
A window opens with a default name for the file tc_show.dat. Choose a location to save the
file and click Open.
AMEND_STORED_EQUILIBRIA
This command gives information about the calculated blocks (and phase regions included in
blocks) after the STEP or MAP calculation(s). It allows you to list all or part of the calculation
results, to suspend all or parts of the calculation results that are redundant or where
metastable equilibria are calculated, and to restore all or parts of the calculation results (if
having been suspended by another AMEND_STORED_EQUILIBRIA command).
The workspace for storing equilibria may overflow during stepping or mapping, and is then
written to a file as blocks. Each block usually contains one or more ranges of equilibrium
regions.
Use one these options:
Syntax AMEND_STORED_EQUILIBRIA
Name: <Name of a defined table>
Prompts List (L) the calculated equilibria, suspend everything (S) or suspend each set of
equilibria individually (Q), or restore everything (R).
Block /*/: <Block number>
Syntax AMEND_STORED_EQUILIBRIA
For S or R, if a block is specified, you are asked what region in the block should
be suspended or restored. However, if the wildcard * is accepted/used, you
are asked the following:
Really suspend all /N/: <Y or N>
Really restore all /N/: <Y or N>
If the answer is N, the program asks for which block(s) and which region(s) in a
certain block to execute the S or R action.
Really suspend all /N/: <Y or N>
Y suspends everything.
Really restore all /N/: <Y or N>
Y restore everything.
Range: <Range(s) of region>
The Query suspend option (Q) asks for each region in a certain block if it
should be suspended or kept. Suspended regions are not included on
sequentially generated plots.
Output file: /Screen/: <File name>
This prompt is only for listing (the L option), and after it the command is
terminated. The file name must be given here; or accept the default Screen
(terminal) by pressing <Enter>. A list of stored equilibria as various blocks
(with all their ranges) are shown out on screen or the file.
CHANGE_STATUS
In the POLY module, set the status for components, species and phases in the defined system
for all the sequential calculations (single-point, stepping and mapping) in equilibrium or
local/partial equilibrium state. Each component, species and phase has a status. The default
status is ENTERED.
The most important use is to calculate metastable equilibria and metastable phase diagrams
by setting some phases (that would otherwise be stable) to the SUSPENDED or DORMANT
phase-status. Another important applications is to calculate paraequilibria by setting some
components to the SPECIAL component-status.
For a component and for a species, the status can be one of the following:
l ENTERED - the component(s) or species are included in the calculation. This is the
default status.
l SUSPENDED - the component(s) or species are not considered in the calculation.
l SPECIAL means - specified component(s) are not included in summations for mole or
mass fractions. It only works for component(s).
Only component(s) can have the status SPECIAL, which implies that these are
not included in summations for mole or mass fractions.
For example, for the u-fractions or other normalized fractions, when one or more of the
components are excluded from the summation, you must specify which component(s) should
be excluded from the calculation of mole or mass fraction. This component status is
particularly useful when calculating paraequilibrium states. Such component(s) are normally
interstitial component, and must have the status SPECIAL. This is assigned by the CHANGE_
STATUS command.
Syntax CHANGE_STATUS
For phases, species or components? /Phases/: <keyword>
Prompts
Keyword = phase or species or components
Phase name(s): <Name(s) of the phase(s)>
For phase as the keyword, the names of the phases that have their status
changed must be given (all on one line). A comma or space must be used as
separator. The status to be assigned to the phases can also be given on the
same line if preceded with an equal sign =.
Syntax CHANGE_STATUS
Syntax CHANGE_STATUS
Number of moles /0/: <Equilibrium amount>
For FIXED phases, the equilibrium amount of the phase [always using an
initial estimation being the NPF(phase) value which it is the normalized mole
number of components (per mole formula unit) of the specific status-fixed
phase] must be given. If the equilibrium amount is zero, then the phase is at its
stability limit.
Special attentions should be paid when specifying a FIXED phase status in
equilibrium calculations (for single points, stepping or mapping calculations),
as described below:
The phase amount variables, NP(phase), BP(phase) and VP(phase), as well as
all their M/W/V-suffixed quantities, should not be used as conditions. Instead,
use the CHANGE_STATUS command to set a relevant condition, e.g. CHANGE_
STATUS phase <phase>=fix <amount> where the fixed <amount> is roughly
the same as the F-suffixed quantity NPF(phase).
The NPF(phase) quantity is the normalized mole number of components (per
mole formula unit) of the specific phase in the defined system, which unlike
other F-suffixed state variables [e.g. GF(phase), HF(phase) and DGF(phase)]
cannot be directly applied in any POLY command, implying that it cannot be
directly evaluated or listed/shown. If intended to shown such a normalized
phase amount value in an equilibrium state, you should use a properly-entered
symbol (function or variable), for example: NPFabc = NP(abc)/NA or NPFabc
= NPM(abc)/NA*N. N is the total system size (in mole). The NA value is a
quantity that is phase-dependent (and sometimes also equilibrium-dependent
for ionic solution phases), and is the total atomic number in a mole-formula-
unit of the specific phase abc (excluding interstitial component and, of course,
vacancy). For example, the SIGMA, FCC, BCC and LIQUID phases (among
others) in a defined Fe-Cr-Ni-C-N-O system (retrieved from a specific
database) may be modeled by certain models, and their NA values must be
evaluated in different ways, as described below:
LIQUID (C,Cr,CrO3/2,Fe,FeO,FEO3/2,N,Ni,NiO)1 NA = 1
FCC_A1 (Cr,Fe,Ni)1(Va,C,N,O)1 NA = 1
BCC_A2 (Cr,Fe,Ni)1(Va,C,N,O)3 NA = 1
SIGMA (Fe,Ni)8(Cr)4(Cr,Fe,Ni)18 NA = 30
Syntax CHANGE_STATUS
where the stoichiometric coefficients p and q are also dependent upon the
real equilibrium state (rather than having fixed values in the system). Similar
situations occur for other (solid) phases which are described by a multiple
sublattice model with ionic constituents, such as SPINEL and HALITE phases in
some databases.
There is no strange thing when using a zero value [i.e. 0] in a FIXED phase-
status, since it means the specified phase is stable in equilibrium state but has
a zero-amount of mass in the equilibrium calculations; in other words, on a
phase diagram, the specific phase is on a zero-fraction line (ZFL), i.e. it starts
becoming stable on one side of a corresponding phase-boundary line or
unstable on the other side of the same boundary. It is often and efficient to do
so when calculating e.g. solidus equilibrium states.
However, when a non-zero value [it must always be positive; e.g. 1 or 0.5 or
0.3 or 1.5] is to be specified in a FIXED phase-status, it is unnecessarily the
exactly same stable amount of the specific FIXED-status phase in a calculated
equilibrium state any longer; instead, the <equilibrium amount> value is the
NPF(phase) value that is only roughly used as the estimated starting-value of
the FIXED-status phase in the equilibrium calculations.
Therefore, a FIXED-status for a liquid phase being unity does not necessarily
imply that it is a liquidus equilibrium state (where the liquid phase is in
equilibrium with some solid phases but the liquid phase takes all the mass in
the defined system). A unity value for setting the liquid phase status in
calculating liquidus equilibrium state can only be used when the liquid mixture
phase is predefined as a single-sublattice solution phase (such as metallic
liquid phase in multicomponent alloy systems) and the total system size as one
mole (i.e. N=1).
When a phase is described by a solution model in which two or more
sublattices are considered and these sublattice sites may also have different
stoichiometric coefficients [meaning that the mixture phase could have more
than one atom in formula [NA>1; see some examples above], the unity value
should not be used when setting the FIXED status for the phase; instead, you
should use an appropriate value that ranges from 0 to a NPF(phase) value that
equals to or is smaller than 1/NA (if the total system size N=1) or 1/NA*N (if N
differs from unity). For this reason, if a multicomponent system bears an
IONIC_LIQUID phase that is described by the Two-Sublattice Ionic Liquid Model
Syntax CHANGE_STATUS
Examples
For example, to obtain the metallic fraction in a system with carbon as an interstitial
component, you can set the component status for carbon as SPECIAL:
Change_Status comp C=special
The SUSPENDED status for components and species does not always work as
expected.
For a phase, it may have one of these statues:
l ENTERED - the phase(s) are included in the equilibrium calculations and these are
stable if that minimizes the total Gibbs energy in the defined system. This is the
default status for all phases already retrieved from the chosen database(s). An
ENTERED phase-status is always associated with an initially-estimated amount [in
mole number; normally, as 0 if the phase is not likely to be stable, and as 0.5 or 1 or
any positive number if the phase could be stable] but it is only used as the rough
starting value in the equilibrium calculations.
l DORMANT - the phase(s) are not considered in the equilibrium calculations but their
driving forces for precipitation are calculated.
l FIXED - it is an equilibrium condition that the status-fixed phase must be stable, and
be in equilibrium at a specified amount [always using an initial estimation being the
NPF(phase) value which it is the normalized mole number of components (per mole
formula unit) of the specific status-fixed phase]. See more descriptions at the end of
this command.
COMPUTE_EQUILIBRIUM
The full equilibrium state is calculated for the given set of conditions. The Global
Minimization Technique is by default enforced in this command (C_E), while it can be
disabled temporarily (for the current single-point equilibrium calculation) if using C_E – or
Syntax COMPUTE_EQUILIBRIUM
The C_E command can be used, in order to enforce the ordinary POLY
minimization routines in an equilibrium calculation; this is because of that the
ordinary C_E command is now associated with the Global Minimization
Technique, and only after the Global Minimization
If technique is permanently switched off the C_E command makes no
difference from the C_E – command-combination.
Only certain types of equilibrium conditions [e.g. T, P, N, N(<component>), X
(<component>), B, B(<component>), and W(<component>)] are fully supported in
the Global Minimization mode (called Direct Global Minimization); and when
other types of equilibrium conditions are used, after the initial POLY, a Global
Minimization test and corrections are performed until the lowest minimum is
found (called Indirect Global Minimization).
If there is any problem with convergence, you may try the C_E * command-
combination. The character * enforces the command to use an advanced
technique to obtain a complex equilibrium. However, after a successful C_E
*calculation, you may repeat the C_E command and can check the status of
phases, species or components (with "LIST_STATUS" on page 210 → CPS
command-sequence) and equilibrium conditions (with "LIST_CONDITIONS" on
Prompt page 209) and list out the calculation results (with "LIST_EQUILIBRIUM" on
page 209), because such actions may tell you how to further modify various
settings for your current calculation. This command-combination is not that
useful anymore, because the Global Minimization Technique that is always
associated with the C_E command is even more powerful and more precise in
finding the most-stable equilibrium state in a complex heterogeneous
interaction system; therefore, the C_E * command-combination is functional
and can be used only after the Global Minimization mode has already been
disabled temporarily or permanently.
Some phases that are not stable in the current equilibrium state may not have
their most favorable composition after this command, and thus their driving
forces may not be correct. You can force the program to correctly calculate the
driving forces of metastable phases, by giving repeated C_E commands until
the number of iterations (that is shown on screen after this command) is
reduced to 2.
Syntax COMPUTE_EQUILIBRIUM
COMPUTE_TRANSITION
This command is a combination of the CHANGE_STATUS, SET_CONDITION and COMPUTE_
EQUILIBRIUM commands. It allows a direct calculation when a new phase may form by
varying one of the already-set conditions. It can be used only after at least one equilibrium is
calculated successfully; otherwise, you are informed on the necessity of first making an
equilibrium calculation to find out the stable phases under the current conditions.
When this command is used, the program calls the command "CHANGE_STATUS" on
page 100 to temporarily change the phase status of a specified phase as FIXED at the zero
amount, and at the same time to temporarily release one of the existing equilibrium
conditions (which is chosen by you). The program calculates a new equilibrium in which that
specific phase is stable but its equilibrium amount in the system is zero. The released
condition is then assigned with a calculated value that ensures the calculated equilibrium.
After wards, the program automatically changes the phase status of that specific phase back
to ENTERED, and resets the temporarily released condition as one of the conditions and
assigns it with the value that is calculated to ensure the zero-amount formation of that
specific phase.
This command is useful to find melting temperature, boiling temperature, or solubility
limits, and generally when you want to set the most optimal conditions for calculating an
equilibrium where a specific phase becomes stable. It can also be used when you want to
know exactly how far away the defined conditions are from the value that can ensure a zero-
amount of a specific phase in the system when other conditions remain the same.
After a successful COMPUTE_TRANSITION calculation, you can issue a "COMPUTE_
EQUILIBRIUM" on page 190 calculation to assure the calculated transitional equilibrium is a
really stable one, and can also use "LIST_EQUILIBRIUM" on page 209 to see the details of
transitional equilibrium state.
Syntax COMPUTE_TRANSITION
Phase to form: <Phase name>
A new phase name, e.g. BCC that is expected to form, is specified here. This
changes the status of this new phase to be FIXED as 0 amount, and the
program shows the information such as:
You must remove one of the these conditions
P=100000, T=800, N=1, X(FE)=.5 DEGREE OF FREEDOM 0
If the key word ANY is used when prompted for Phase to form (instead of a
Prompts specific phase name), it is possible to find out any new phase to be formed, in
a given varying direction sign and at an estimated change of the released
condition: a negative sign means at a lower value of the released condition
any new phase is to be found, and a positive sign at a higher value; an
estimated change of the released condition implies where any new phase is
expected (but it is only estimated value, so any value within its reasonable
scale would be enough). Such calculations can be repeated if required. This
feature is useful to find out all possible phase transformations along a certain
released condition.
Give the state variable to be removed /T/: <One condition>
If the key word ANY (instead of a specific phase) is given as the phase name
when it is prompted for Phase to form, the line is prompted for a given varying
direction sign and an estimated change of the released condition before the
calculation of transition equilibrium:
Estimated change (with sign) /1/: <+/-#>
Syntax COMPUTE_TRANSITION
CREATE_NEW_EQUILIBRIUM
During data-assessments using the PARROT/ED_EXP modules, you can, in the POLY module,
create several equilibria with different sets of conditions and phases (but normally with the
same set of components). By default, there is one equilibrium. To keep the set of conditions
and phase for this equilibrium, create another one using this command, and use another set
of conditions for that. Two equilibria may be useful to calculate easily the enthalpy
difference between two states. In the PARROT module, the experimental information is
stored as a sequence of equilibria.
Syntax CREATE_NEW_EQUILIBRIUM
Equilibrium number /2/: <A new equilibrium number>
Syntax CREATE_NEW_EQUILIBRIUM
DEFINE_COMPONENTS
Change the set of components. By default, the elements are used as components. The set of
components can be important because some conditions are set using components, for
example, the amounts, activities or chemical potentials.
For example, in the system Fe-Si-O, you can define FEO, FE2O3 and SIO2 as components,
thus replacing the default FE, SI and O.
Syntax DEFINE_COMPONENTS
Give all new components / existing components/: <New components>
The new components must be specified all on one line. These replace the
Prompt existing component definitions.
DEFINE_DIAGRAM
This allows automatic calculation and plotting of a diagram with a single command. It is the
same as the DEFINE_MATERIAL command up to when the first equilibrium is calculated. The
alloy OPTION feature is also available in this command to specify alloying compositions for a
special alloy predefined by the OPTION keyword in a selected database (e.g. the TCNI Ni-
based Superalloys Database).
Use this command to calculate all types of phase diagrams after specifying all composition
value and an initial temperature (if temperature is used as an axis). However, for binary and
ternary diagrams, the special BIN and TERN modules may be preferred.
It then lists all the independent variables for the defined system (i.e. temperature and the
components) and asks for a variable as the X-axis. You must also specify a maximum and
minimum for the X-axis. The second axis (Y-axis) can be another composition (or the
temperature if that is not on the X-axis) from the independent variable list. The program
then calculates and plots a phase diagram, as there are two independent quantities on the
axes.
Alternatively, select a dependent quantity as the Y-axis variable from the second list on
screen (e.g. the amount of all phases, composition of a specific phase, or fractions of a
component in all phases), and the program calculates and plots how this quantity depends
on the condition on the X-axis. This is a property diagram.
This command ends up within the POST module monitor. You can refine the calculated
phase diagram or property diagram.
Moreover, many more property diagrams with axes other than compositions can also be
plotted (after the calculation), using "SET_AXIS_VARIABLE" on page 218 in the sequent POST
monitor.
Syntax DEFINE_DIAGRAM
or
Mass percent of <Element> /##/: <Value>
Database /ABCDE/: <Database name>
Major element or alloy: <Element name>
Composition in mass (weight) percent? /Y/: <Y or N>
1st alloying element: <Element name>
Mass (weight) percent: <Amount of the above specified element>
2nd alloying element: <Element name>
This question is asked only when the axis variables are already defined, or if
the command DEFINE_DIAGRAM is used. It then offers an opportunity to quit
(Y) the calculation or to continue (N) the calculation but by defining other axes.
Give the number of the condition to vary /1/: <a condition
index>
Syntax DEFINE_DIAGRAM
Select one of the independent conditions by giving its index on the condition
list as the X-axis variable.
Minimum value /XXX/: <minimum value for X-axis>
Specify the minimum value of the chosen X-axis variable. A default value is
shown automatically by the program; press <Enter> to accept it or input
another value.
Maximum value /YYY/: <maximum value for X-axis>
Specify the maximum value of the chosen X-axis variable. A default value is
shown automatically by the program; press <Enter> to accept it or input
another value. Then another list with some dependent quantities is given by
the program, which can be selected as the Y-axis variable.
Give the number of the quantity on the second axis /#/: <##>
Syntax DEFINE_DIAGRAM
diagram.
Save file /RESULT/: <file name>
The file name where the calculations are stored (saved as a *.POLY3 file)
should be specified; the default file name is RESULT.POLY3 (Windows) or
RESULT.POLY3 (Linux).
DEFINE_MATERIAL
Read data for a system from a database in the POLY module. It is convenient to use for
alloys when there is a major component and the amount of the other elements is known in
mass (weight) fraction. The command reads the system from the specified database, sets
the composition and temperature (and pressure equal to 1 bar) and calculates the
equilibrium state before the prompting for a new command. You can list the results with
"LIST_EQUILIBRIUM" on page 209 or set a new composition or set axis for a STEP or MAP
command.
You cannot append data from different databases in this way. Use this command
with data from a USER database.
Syntax DEFINE_MATERIAL
Same elements as before /Y/? <Y or N>
This question is asked only if some data is already read from the database, or
if the command DEFINE_MATERIAL or DEFINE_DIAGRAM is used. It then offers
a convenient way to change the composition and temperature with one
Prompts command.
or
Mass percent of <Element> /##/: <Value>
If you have decided to use the same materials system (available in the current
POLY3 workspace) by accepting the default answer (Y) to the previous prompt
Same elements as before /Y/?, one of the alternative prompts display for
each of the components in the defined system, depending on how the
composition is defined (either in mole-percent, or in mass-percent).
Syntax DEFINE_MATERIAL
Prompts are repeated until all the defined components are completed. Then,
the program prompts to specify the temperature condition.
Database /ABCDE/: <Database name>
The database with the description for the material must be given, or press
<Enter> if using the current database. It is possible to give a USER database.
Major element or alloy: <Element name>
The material must have a major element, usually the element which is present
in the largest amount. The fraction of this element is not set but is the rest.
In some databases there are the alloys predefined. An alloy has a default
major element and have limits of the amounts of the alloying elements. If you
stay within these limits the calculation gives reasonable results.
Composition in mass (weight) percent? /Y/: <Y or N>
The default is that input is taken as mass percent, but it is possible to change
to mole percent by answering N.
The amount of the alloying element in mass (weight) percent. Using the
DEFINE_MATERIAL command you cannot use the normal flexibility of Thermo-
Calc for conditions, but all must be given in mass percent. However, you can
after wards change the conditions using the SET_CONDITION command.
Syntax DEFINE_MATERIAL
2nd alloying element: <Element name>
The second alloying element must be given. If only one, press <Enter>. If an
element name is given then the program asks for its mass fraction.
Mass (weight) percent: <Amount of the above specified element>
The amount of the above specified alloying element in mass (weight) percent.
Next alloying element: <Element name>
Continue giving elements and mass (weight) fractions until all elements
specified. When all alloying elements and their compositions (as in the above
prompt) are specified, press <Enter> as answer to this question to finish the
materials definition.
Temperature (C) /1000/: <Temperature of interest in oC>
POLY makes the first calculation after retrieving the data for this temperature.
By pressing <Enter> to accept the default temperature. The value should be
given in Celsius (oC).
This is a question generated by the database allowing you to select the phases.
Normally, all phases should be included when you press <Enter>. If a phase is
to be rejected, the name of the phase must be supplied. Several phase names
can be specified in one line. It is possible to reject all phase by giving an
asterisk *. If the number of phases to be included is much smaller than the
total number of phases, it may be convenient to first reject all phases and then
restore those that should be included. The question is repeated until you press
<Enter> after rejecting all unwanted phases or an asterisk *.
Restore phase(s) /None/: <List of phase(s) to be restored>
You can restore phases that are accidentally or deliberately rejected. It may
also be possible to restore some hidden phases.
If phases are to be restored the name of the phases must be supplied. Several
phase names can be specified in one line. It is possible to restore all phase by
giving an asterisk *. The question is repeated until you press <Enter> after
restoring all desired phases.
OK? /Y/: <Y or N>
Syntax DEFINE_MATERIAL
All phases to be selected from the database are listed and the selection
confirmed. If there are any errors or you want to amend the selection, answer
N and you are returned to the question about rejecting phase(s).
The database usually creates two or more composition sets for phases that can
have miscibility gaps. However, for some phases this is not done
automatically, for example the miscibility gap in the bcc phase in Fe-Cr is
usually ignored. But if it is important to include a Cr-rich bcc phase, specify
this here. It costs some computation time and may make the subsequent MAP
or STEP more difficult to converge.
If you do not want to have any phase with a miscibility gap in the calculation,
press <Enter>. Then, the DEFINE_MATERIAL command starts calculating the
equilibrium, and is terminated.
To set such a phase with miscibility gaps in the calculation, answer Y. Then the
software asks questions about the phase names and their constitutions, such
as:
Phase with miscibility gap: <Phase name>
You must supply the phase name, which has a miscibility gap under the
specified system and conditions.
Major constituent(s) for sublattice #: /AA/: <Constituent(s)>
You can supply another phase name with a miscibility gap under the specified
system and conditions, and answer the questions concerning the major
constituent(s) in associated sublattice(s).
By pressing <Enter>, the command starts calculating the equilibrium, and then
terminates.
Syntax DEFINE_MATERIAL
You can only specify alloying elements and the compositions (weight percent
or mole percent). Typing a ? at any of the prompts for the alloying element
names, e.g. 1st alloying element, 2nd alloying element, lists all the
alloying elements and the composition limits in the alloy. If the composition of
an alloying element is outside of its limit, there is a message (such as Amount
above limit: 30.0000) and a prompt Override limit ? /N/. If you decide
to enforce the override by answering Y on this prompt (i.e. accepting the over-
limit alloying composition), another warning message (such as Amount of
major element below limit: 70.0000) and prompt Override limit ?
/N/. Then further decide if enforcing the overriding: if Y then accepting the
major element’s composition below the limit; if N then using the predefined
major element composition limit.
DELETE_INITIAL_EQUILIBRIUM
Delete ONE specific initial equilibrium point or ALL of the initial equilibria. The initial
equilibria are used as starting points for all the sub-sequential MAP and STEP calculations.
Syntax DELETE_INITIAL_EQUILIBRIUM
Syntax DELETE_INITIAL_EQUILIBRIUM
POLY commands) and stored in the current POLY3 workspace. By default, ALL
the initial equilibrium points are deleted.
DELETE_SYMBOL
This is a POLY3 module command.
Delete symbols (i.e. constants, variables, functions or tables. These symbols are entered with
"ENTER_SYMBOL" on page 113.
Syntax DELETE_SYMBOL
Name: <Name of a symbol>
Prompt Specify the name of the symbol to be deleted. Only one symbol can be deleted
each time.
ENTER_SYMBOL
This command is for both the POST and POLY modules in Console Mode.
Symbols are a useful feature of the POLY and POST modules to define quantities that are
convenient. Symbols can be constants, variables, functions or tables.
Functions or tables (with defined functions as values) can be entered in the POST module
after a stepping or mapping calculation, for purposes of plotting such entered functions or
tables as axis variables.
Within the POLY module, symbols are normally defined prior to an equilibrium calculation
(enforced by a C_E command), stepping calculation (enforced by the command "STEP_
WITH_OPTIONS" on page 227) or mapping calculation (enforced by "MAP" on page 212).
These can be entered after an equilibrium calculation; however, for defined functions,
variable or tables, it requires using "EVALUATE_FUNCTIONS" on page 208 before showing
the corresponding values in the calculated equilibrium state.
The symbols entered in the POST module are not saved in the currently-loaded POLY3
workspaces. Therefore, if you want to apply such symbols in other similar calculations for
the same defined system, you must use the ENTER_SYMBOL command prior to the
STEPPING or MAPPING calculation in the POLY module.
Syntax ENTER_SYMBOL
Constant, Variable, Function or Table? /Function/: <keyword>
Each symbol has a unique name that must start with a letter and can have
maximum 8 characters.
Legal characters include letters (either UPPER or lower case), digits and
underscore _. Any other special character, such as parentheses ( and ), plus +,
minus -, slash / or \, full stop (.), are illegal for symbol names.
You can enter the symbol name and the value or function on the same line,
Syntax ENTER_SYMBOL
The ampersand & means that you can continue to write the function on the
new line if one line is not enough for the function. If you finish the function
press <Enter> again.
Value: <Value for a constant>
Syntax ENTER_SYMBOL
Variable(s): <Variable(s) in a table>
Which means that the table called K contains four columns, i.e. the
temperature, the mole fractions of C and Cr in the LIQUID phase, and the
activity of C.
To show the temperature in Celsius in a table, give the command ENTER
FUNCTION TC=T-273; and then use the symbol TC in the table.
& <Continuation of the definition for the table>
The ampersand & means that you can continue to write the table on the new
line if one line is not enough for the table. If you finish the table press <Enter>
again.
EVALUATE_FUNCTIONS
The value of one or more or all entered functions or variables are evaluated and listed.
Syntax EVALUATE_FUNCTIONS
Name(s): <Name(s) of defined function(s)>
LIST_AXIS_VARIABLE
This is a POLY3 module command.
Syntax LIST_AXIS_VARIABLE
Lists all the axis variables for a stepping or mapping calculation that have
already been set by "SET_AXIS_VARIABLE" on page 218.
LIST_CONDITIONS
This is a POLY3 module command.
All the conditions that are set by the command SET_CONDITION and the command-sequence
CHANGE_STATUS PHASE =FIXED <0 or 1 or alike>, are listed. The current conditions are also
listed by the command LIST_EQUILIBRIUM. The degree of freedom in the defined system is
also shown up. If this is zero, you can perform a COMPUTE_EQUILIBRIUM command. If it is
larger than zero, some more conditions are required, and you must further set additional
ones, using "SET_CONDITION" on page 220 or "CHANGE_STATUS" on page 186. If it is
negative, a user has defined too many conditions and needs to take away the unnecessary
ones, using the SET_CONDITION command (with a value of NONE for the to-be-deleted
condition) or CHANGE_STATUS command (i.e. changing a FIXED status of a phase to another
type of phase status, ENTERED or DORMANT or SUSPENDED).
Syntax LIST_CONDITIONS
P=100000, T=800, N(NI)=1E-1, N=1
LIST_EQUILIBRIUM
This is a POLY3 module command.
The result (always in SI units) from the last calculated equilibrium is listed on screen or in a
textual file.
Syntax LIST_EQUILIBRIUM
Output to screen or file /Screen/: <File name>
Prompt The name of the text file where the list of the calculation results shall be
written.
Options /VWCS/: <Option(s)>
Syntax LIST_EQUILIBRIUM
Default options are VWCS. If the output fraction type should be in mole fraction
(rather than mass fraction), then give VXCS or type X (implying that in this case
the options V, C and S are accepted as the listing manners for fraction order,
composition and phase).
If accepting all the default options, or if accepting all the altered options that
had already changed when using this command previously, you can type L_
E,,, or LIST_EQUILIBRIUM ,,,
LIST_INITIAL_EQUILIBRIA
This is a POLY3 module command.
All the initial equilibria are used for the MAP (and STEP) calculations.
LIST_STATUS
This command is for the POLY and ED-EXP modules.
Syntax LIST_STATUS
Default is CPS.
The results depend on the key word specified in the options for "CHANGE_
STATUS" on page 100, a table with the current status of phases or species or
components, or the combinations, is shown:
LIST_SYMBOLS
For both the POLY and POST modules, list the definitions for all constants,
functions, variables and tables.
Syntax LIST_SYMBOLS
The defined variables are listed up together with the defined functions, but
variable names are followed by a percentage sign %.
LOAD_INITIAL_EQUILIBRIUM
Copies all conditions and calculated results from a specific added initial equilibrium to the
current equilibrium. The current conditions and calculation results are lost, and the newly
loaded initial equilibrium point gets into the POLY workspace.
Syntax LOAD_INITIAL_EQUILIBRIUM
Number: <Number of an initial equilibrium>
Prompt Specify the number of an initial equilibrium to be loaded as current. The
number can be found with "LIST_INITIAL_EQUILIBRIA" on page 210.
MAP
This command starts the mapping procedure for making a calculation of phase diagrams in
a defined multicomponent heterogeneous system, from one or more initial equilibria. A
phase diagram is usually mapped within a specific space that is constructed by two (or
more) defined independent mapping axis-variables.
Syntax MAP
Normally, you need to have calculated at least one initial equilibrium point and have also
defined at least two independent varying variables (i.e. the controlling conditions in the
system) that are set with "SET_AXIS_VARIABLE" on page 218. You can also have three, or
four or maximum five independent varying variables that are defined by the SET_AXIS_
VARIABLE command).
This lists the current values of each of the independent axis variables for each of the
calculated equilibrium points along each of the mapped phase boundaries, and also lists the
corresponding information when the set of stable phases changes.
The Global Minimization Technique is by default enforced in this command while it can be
disabled if having decisively switched it off (or possibly in some special modules) through
changing the minimization option using the "ADVANCED_OPTIONS" on page 174 →
MINIMIZATION_OPTION command-sequence. You can choose how often to do a Global
Minimization test (via the Global Test Interval option) in the ADVANCED_OPTIONS STEP_
AND_MAP command-sequence.
During a MAP calculation, the values of mapped axis-variables for presenting each phase
boundary (lines/points) of the calculated phase-regions are listed, and the corresponding
stable-phase sets are shown up. You can terminate the mapping of a line by pressing a single
<Ctrl-A> (Windows) or <Ctrl-C> (Linux). This can be useful in order to stop a longish
calculation without losing what is already calculated.
If there is any convergence problem in finding a stable solution at a certain stage during a
calculation procedure enforced by this command, these messages display on screen:
Convergence problems, increasing smallest site-fraction from 1.00E-30 to hardware
precision 2.00E-14. You can restore using SET-NUMERICAL-LIMITS
This implies that smallest site fraction in the current POLY3 workspace is automatically
increased from the default value 1.00E-30 to the hardware-dependent precision (under
Linux, as 2.00E-14). For other subsequent POLY-module calculation in the current TC run,
you can use the POLY command "SET_NUMERICAL_LIMITS" on page 296 to restore or reset
the smallest site fraction to the previous or another preferred value, as well as to reset
other numerical limits.
In particular, for phase diagrams with tie-lines in the plane (i.e. most binary systems and
ternary isotherms), there is a MAP procedure which checks for the best phase to use as axis
variables in order to ensure reasonable increments between the tie-lines. This produces
smoother curves and also gives a better stability in finding adjacent phase-regions.
Complex miscibility gaps of various solution phases are automatically detected during a
mapping calculation, and two or more composition sets for each of such solution phases are
automatically generated as well, through an automatic Global Minimization Test procedure
(by specifying a Global Test Interval value and confirming the Automatically add initial
equilibria in the ADVANCED_OPTION STEP_AND_MAP command-sequence). As a
particular case, such an automatic Global Minimization Test ensures that you can start
calculating from high temperatures in an austenitic steel (metallic FCC_A1 solution phase)
where the MC carbides/nitrides/carbonitrides (i.e. the C-/N-rich sides of the FCC_A1
miscibility-gap, often (while not always) being referred to as FCC_A1#2, FCC_A1#3, etc.)
are not stable, and during the MAP command the MC carbides/nitrides/carbonitrides may
first become metastable with a composition different from the metallic FCC_A1 phase and
later also stable. The advanced mapping procedure (enforced by the Global Minimization
Technique) inside the Thermo-Calc software (both the Console Mode and Graphical Mode)
can efficiently and effectively handle complex miscibility gaps in multicomponent
heterogeneous systems.
To get a complete phase diagram, sometimes it may be necessary to have multiple starting
equilibrium-points, and/or to have added multiple initial-equilibrium points (through "ADD_
INITIAL_EQUILIBRIUM" on page 166) inside various phase-region boundaries under certain
direction(s).
POST
Syntax POST
Switches to the post-processor (the POST module), which has its own command
set.
See "Plotting and Visualization with the POST Module " on page 240
for all details.
READ_WORKSPACES
This command is used in both the POLY and GES (GIBBS) modules.
The POLY3 and GIBBS workspaces and the calculated results from the MAP and STEP
commands can be READ from a file where they are saved with "SAVE_WORKSPACES " on
page 54. Such an *.POLY3 file is not printable.
Syntax READ_WORKSPACES
RECOVER_START_VALUES
Syntax RECOVER_START_VALUES
REINITIATE_MODULE
Ensures that the whole POLY module (and thus the entire POLY workspace) is reinitiated to
the state as it was when first entered.
Syntax REINITIATE_MODULE
SAVE_WORKSPACES
This command is for both the POLY3 and GES (GIBBS) modules.
Thermo-Calc allows saving the current status and workspaces of the program, including
thermodynamic data, conditions, options and results from a single, stepping or mapping
calculation on an *.POLY3 file. Do this for later use or when you need to terminate the
current Thermo-Calc (Console Mode) run.
The POLY3 and GIBBS workspaces are saved on a file with this command. In the GIBBS
workspace, all thermochemical data are stored. In the POLY3 workspace, all
thermochemical data, all the last set of conditions and equilibrium state, changed status,
entered symbols, advanced options, defined stepping/mapping variables, added initial
equilibria, stepped/mapped results, etc., are stored, so it also contain the GIBBS workspace.
After a SAVE_WORKSPACE command, you can always come back to exactly the state you
had when you issued the SAVE_WORKSPACE command by giving a READ_WORKSPACE
command.
After saving the POLY3 and GIBBS workspaces on a file, you can leave the program and at a
later time READ the file and continue from the saved state.
A STEP or MAP command automatically saves the work file with the most lately
specified name. Do not SAVE after a MAP or STEP.
The results from the STEP or MAP commands are destroyed by the SAVE_WORKSPACE
command. You may append several results obtained by sequential STEP or MAP calculations
without destroying the previous results, whilst SAVE_WORKSPACE erases them all. Keeping
this in mind is important and useful particularly for calculating various isothermal (or
isoplethal) sections and plotting them on the same diagram in a single Thermo-Calc run.
You may append several results by STEP or MAP without destroying the previous results but
the SAVE command erases them all. To suspend some of the STEP or MAP results, use the
AMEND_STORED_EQUILIBRIA command.
When you go to a response-driven module such as POTENTIAL or SCHEIL for example, a
workspace file is automatically opened. In the workspace file, system definitions, conditions
for the calculation, calculation results, and plot settings is saved. The file is saved in the
current working directory, and is named after the name of the module that created it. For
example, the POTENTIAL module saves a workspace file called POT.POLY3 (or POT.poly3 in
Linux); the POURBAIX module saves a file called POURBAIX.POLY3; etc.
Syntax SAVE_WORKSPACES
A file name must be specified. The default extension of the POLY workspace
file is *.POLY3 (Windows) or *.poly3 (Linux), while you can have any other
extension.
A Save window displays, so that the path (in the Save in field) and File name
can be specified. The file type (i.e. POLY3) in the Files of type cannot be
changed.
Options When saving a POLY3 workspace under a name that already exists
under the current work area, which is saved by default (after
running a special module, e.g. BIN, TERN, POT, SCHEIL and
POURBAIX) or in an earlier stage of the current Thermo-Calc
(Console Mode) run or in a previous run (which is READ into the
current POLY3 workspace), you can type SAVE,,y or SAVE_
WORKSPACE ,,y. However, this must also be avoided if some
results from previous MAP or STEP calculations shall not be
destroyed.
SELECT_EQUILIBRIUM
If you create more than one initial equilibrium (during data-assessments using the
PARROT/ED_EXP modules), you can switch between them using this command.
Syntax SELECT_EQUILIBRIUM
Number /Next/: <Choice on equilibrium>
SET_ALL_START_VALUES
Set start values, e.g. if the calculation fails or if you have a miscibility gap or ordering. If
temperature and pressure are not conditions, you are asked for values of them. Then for
each phase prompt on if it should be stable and on its constitution.
Syntax SET_ALL_START_VALUES
T /XXXX/: <Temperature in K>
If the temperature is not a condition, supply a guess of its final value (in K).
P /100000/: <Pressure in Pa>
If the pressure is not a condition supply a guess of its final value (in pa).
Automatic start values for phase constitutions? /N/: <Y, N or F>
Syntax SET_ALL_START_VALUES
You cannot have more phases stable than you have components,
but at least one (which dissolves all constituents) must be set as
stable. For backward compatibility, this question can be answered
by 1 (for Yes) or 0 (for No).
The phase name may have a hash sign # followed by a digit, e.g. BCC_A2#2.
For phases with miscibility gaps, there should be two phases with the same
name but with different numbers after the hash sign.
Major constituent(s): <Name of major constituent(s) in the
phase>
The constituent with the largest fraction in the phase should be specified. If
there are more than one constituent with a large fraction, give them all on the
same line. If the default major constituents should be used answer with an
asterisk (*). By giving $ the constitution is not changed. If there should be no
major constituent give NONE and or if the major constituent(s) are improperly
specified, you are asked for individual fractions in the phase.
Y(<phase>,<constituent>) /.XXXXXXXXXX/: <.YYYYY>
The current value (.XXXXXXXXXX) is default. You can accept the default by
pressing <Enter> or give a new value (.YYYYY).
The phase name or constituent name may have a hash sign # followed by a
digit, e.g. Y(BCC_A2#2,FE), Y(BCC_A2#2,C#2). For phases with miscibility
gaps, there should be two phases with the same name but with different
numbers after the hash sign. For phases with sublattices, the constituents in
sublattice 2 or higher is also be suffixed with a hash sign # followed by a digit.
SET_AXIS_VARIABLE
In order to calculate a diagram, set at least one axis variable in a stepping calculation, or at
least two axis variables in a mapping calculation. For property diagrams, one axis is enough;
for phase diagrams two or more are necessary. Any condition that can be set to calculate an
equilibrium can be used as an axis variable (with its lower and upper limits and step length)
by using the SET_AXIS_VARIABLE command, and the POLY program does, after a STEP or
MAP command, vary the value of the condition between the limits set on its related axis
variable. As an extraordinarily unique and powerful feature of the Thermo-Calc software,
up to five independent axis variables can possibly be used in a mapping calculation of a
multicomponent heterogeneous system; however, the axis numbers 3, 4 and 5 must have
chemical potentials of components (or temperature or pressure) as conditions.
Syntax SET_AXIS_VARIABLE
Axis number /#/: <An axis number>
Specify a number between 1 and 5. The axis numbers 3, 4 and 5 must have
chemical potentials of components (or temperature or pressure) as conditions.
Condition /None/: <One condition>
Prompts Here the condition that should be varied along the axis must be given. The
condition is specified as in "SET_CONDITION" on the next page, for example W
(C) for mass fraction of carbon. By accepting NONE, the axis is removed.
Specify the maximum step length. By default, this is 1/40 of the total axis
length.
You can give the SET_AXIS_VARIABLE command without having set a condition on the axis
variable. Under such circumstances, the relevant condition is automatically created and the
value set between the minimum and maximum axis limits; however, as a side effect, the
POLY module creates two conditions, P=1e5 and N=1 (these have not been defined as a
condition yet), in case you set an axis variable which is not already a condition.
You can use a logarithmic axis during calculations. This is useful for low fractions like in a
gas phase where 1e-7 to 1e-2 might be an interesting range. The pressure is also suitable
for logarithmic step. You specify the logarithmic axis by giving an asterisk * after the
increment value.
This makes axis 1 a logarithmic axis where the difference between two calculated values
makes a factor 5.
In some cases, such as when the DEFINE_DIAGRAM command is used or a special advanced
module (e.g. BIN, TERN, POT, SCHEIL or POURBAIX) is called, some axis variables are
automatically set by the program, not necessarily by this command.
SET_CONDITION
Specify the equilibrium conditions for the calculation. All kinds of state variables, as well as
most of the M/W/V/F-suffixed state variables (for normalization) and R-suffixed state
variables (with respect to chosen reference states), can be used as conditions. Beside
temperature and pressure conditions, a multicomponent system can have mixed types of
conditions; this brings the extreme flexibility and powerfulness to the complex calculations
with the Thermo-Calc software system. You should repeat this command for a
multicomponent system, till the degree of freedom in the defined system becomes zero.
When a FIXED phase status is used on a specific phase (use "CHANGE_STATUS" on page 186),
it is equivalent to one condition (implying that particular phase is stable in the defined
system).
Syntax SET_CONDITION
Each condition must be given explicitly, but can be given on the same line
(separated by a comma (,) or an empty space) or on separate lines with each
one started with the command.
Example
SET_COND T=1273, P=1E5, W(C)=.0015, X(LIQ,CR)=.22, ACR(N)=.2
or
SET_COND T=1273, P=1E5
SET_COND W(C)=.0015, X(LIQ,CR)=.22 ACR(N)=.2
In this example, the temperature is set to 1273 K, the pressure to 1 bar (1E5
Pascal), the mass (weight) fraction of C to 0.0015 and the mole fraction of Cr to
0.22 and the activity of N to 0.2.
State variable expression: <State variable name or linear
expression> or a linear expression of state variables.
Syntax SET_CONDITION
There are many state variables that can be used in conditions. For more
information, enter an INFO STATE_VARIABLES command. A condition is
normally a value of a single state variable with its value.
Example
T=1273.15 P=1E5
X(C)=.002
W(CR)=0.5
ACR(CR)=0.85
X(FCC,C)=.001
H=-250000
HM(BCC)=-225000
A condition can also be a value of a linear expression involving more than one
state variable. For example,
X(LIQ,S)-X(PYRR,S)=0
This means that it is a condition that the mole fraction of S component should
be the same in the LIQUID and PYRRHOTITE phases. In practice, that should be
the congruent melting point.
Syntax SET_CONDITION
This question means you did not answer the previous question. The program is
then expecting a single state variable or a complete state variable expression,
or the numeric factor in an expression with only one state variable. In a state
variable expression a state variable may be preceded by a constant factor. An
example of this is:
2*MUR(FE)+3*MUR(O)=-35000
This means that it should be a condition that two times the chemical potential
of FE plus three times the chemical potential of O should be -35000 J/mol.
State variable: <A specified state variable, or a continuation>
This question is prompted if a single state variable name has not given in either
the prompt State variable expression or Factor, or a state variable
expression is given but the expression is incomplete, for example, T- or 2*MUR
(FE)+, for which the program is then expecting a continuation of the unfinished
expression. You need to specify a state variable or a complete state variable
expression, or complete the unfinished state variable expression. If a numeric
factor is given before this prompt, only one state variable can be specified;
otherwise, the program only takes the first state variable to complete the
expression (i.e. the factor times the state variable).
Value /X/: <A numeric value, a constant or a variable>
SET_INPUT_AMOUNTS
Specify how a system is made up from mixing of various substances. It is useful with a
substance database. In the C-H-O-N system, you can, for example, give:
S-I-A N(H2)=10, N(H2O)=25, N(C1O2)=5, N(N2)=100
The POLY module automatically converts this into conditions for the current set of
components. In the case when the elements are defined as the components, the command
above is equivalent to
SET-CONDITION N(H)=70, N(O)=35, N(C)=5, N(N)=200
Syntax SET_INPUT_AMOUNTS
Quantity: <N(<specie>) or B(<specie>)>
Prompts You can give the amount also preceded with an equal sign = [e.g. N(H2)=10
or B(H2O)=1000], or press <Enter> for the next prompt on the amount of the
quantity.
Amount: <Value of the quantity>
SET_NUMERICAL_LIMITS
Change the criteria for convergence. This is to speed up a calculation in a complex system.
If there is any convergence problem in finding a stable solution at any stage during a
calculation procedure enforced by "COMPUTE_EQUILIBRIUM" on page 190, "STEP_WITH_
OPTIONS" on page 227, "MAP" on page 212 or "ADVANCED_OPTIONS" on page 174), this
message displays:
Convergence problems, increasing smallest site-fraction from 1.00E-30 to hardware
precision 2.00E-14. You can restore using SET-NUMERICAL-LIMITS
This implies that smallest site fraction in the current POLY3 workspace is automatically
increased from the default value 1.00E-30 to the hardware-dependent precision (under
Linux, as 2.00E-14). For other subsequent POLY-module calculation in the current Thermo-
Calc (Console Mode) run, you can use this command to restore or reset the smallest site
fraction to the previous or another preferred value, as well as to reset other numerical
limits.
Syntax SET_NUMERICAL_LIMITS
Maximum number of iterations /200/: <xxx>
By default, the program tries 500 iterations before it gives up. As some models
Prompt give computation times of more than 1 CPU second/iteration, this number is
also used to check the CPU time and the calculation stops if 500 CPU
seconds/iterations are used.
Required accuracy /1E-6/: <yyy>
This is a relative accuracy, and the program requires that the relative
difference in each variable must be lower than this value before it has
converged. A larger value normally means fewer iterations but less accurate
Syntax SET_NUMERICAL_LIMITS
solutions. The value should be at least one order of magnitude larger than the
machine precision.
Smallest fraction /1E-12/: <zzz>
This is the value assigned to constituents that are unstable. It is normally only in
the gas phase you can find such low fractions.
The default value for the smallest site-fractions is 1E-12 for all phases, except
for IDEAL phase with one sublattice site (such as the GAS mixture phase in
many databases) for which the default value is always as 1E-30 (unless you
have used the SET_NUMERICAL_LIMITS command to reset an even-lower value
(e.g. 1E-45, that is naturally enforced to all the phases in the system).
Approximate driving force calculation for metastable phases /Y/:
<Y or N>
Normally the POLY module only requires that the set of stable phases is in
equilibrium in order to terminate the iterations. The metastable phases are
included in all iterations but these may not have reached their most favourable
composition and thus their driving forces may be only approximate
[corresponding to Y]. You can also force the calculation to converge for the
metastable phases by answering N if it is important that these driving forces
are correct, which may require more iterations, and the STEP and MAP
command may also terminate due to bad convergence in a metastable phase.
SET_REFERENCE_STATE
The reference state for a component is important when calculating activities, chemical
potentials and enthalpies. The reference state for a component is determined by the
database. For each component the data must be referred to a selected phase, temperature
and pressure, i.e. the reference state. All data in all phases where this component dissolves
must use the same reference state. However, different databases may use different
reference states for the same element. Thus you must be careful when, for example, mixing
data from different databases.
By default, activities, chemical potentials, etc. are computed relative to the reference state
used by the database and this may thus differ depending on the database. With this
command select the reference state for a component if the reference state in the database
does not suit.
You can set the reference state for a component as SER, i.e. the Stable Element Reference
(which is usually set as default for a major component in alloys that is dominated by the
component). Under such a case, the temperature and pressure for the reference state is not
needed and thus is not prompted.
In order to specify conditions in the specified reference state, you can append an R to the
state variables. Thus, AC is the activity (of a system component or of a species in a phase)
with respect to the default reference state, and ACR is the activity with respect to the
selected reference state; MU is the chemical potential of a system component with respect
to the default reference state, and MUR stands for the chemical potential with respect to
the selected reference state. The AC and ACR variables, for both components in a system
and species in a phase, can be specified in natural logarithm, e.g. LNAC(Fe), LNACR(C), LNAC
(O2,GAS), LNACR(O2,GAS).
Syntax SET_REFERENCE_STATE
Component: <Name of the component>
Prompts
The name of the component must be given.
Reference phase: <Name of a phase used as the new reference
state>
Syntax SET_REFERENCE_STATE
Select the temperature (in K) for the reference state. The wildcard value *
means the current temperature is used for the calculation.
Pressure /1E5/: <Pressure for the reference state>
Select the pressure (in Pa) for the reference state. The wildcard value * means
the current pressure is used for the calculation.
Examples
S-R-S Fe SER
S-R-S Cr FCC * 100000
S-R-S H2O AQUEOUS * 100000
S-R-S ZE REF_ELECTRODE * 100000
SET_START_CONSTITUTION
This command is similar to "SET_ALL_START_VALUES" on page 217, but is used for an
individual phase that may have a wrong constitution.
Syntax SET_START_CONSTITUTION
Phase name: <Name of a phase, and possible major
constituent(s)>
Specify the name of a phase for which the constitution shall be set.
Prompts
If there is a major constituent of the phase, you must specify this on
the same line as the phase name. By giving an*, select the default
major constituents. A $ means keeping the same constitution, and
NONE means to give individual site-fractions.
Y(<Phase>#<Composition_set>,<Constituent>#<Sublattice>)
/xxx/: <SF>
The site fraction (SF) of the constituent shall be given. The default
value xxx is the last calculated one.
SET_START_VALUE
Set a start value of an individual variable.
This command is not often required as the automatic start values can be
handled for most problems.
Syntax SET_START_VALUE
State variable: <Name of a state variable>
Prompts
The state variable must be given.
Value
SHOW_VALUE
Show the current value of any state variable, function or variable.
Syntax SHOW_VALUE
State variable or symbol: <Name(s) of state variable(s) or
symbol(s)>
Prompt
A single or several state variables or symbols (entered functions or variables)
can be specified.
The wildcard * can be used to denote all phases or all components.
You can use the dollar-sign $ to denote all stable phases. Thus, the command
SHOW W(*,*)lists the mass fraction of all phases, whereas SHOW W($,*)lists the
mass fraction of all stable phases.
STEP_WITH_OPTIONS
The STEP_WITH_OPTIONS (short name, STEP) command initiates the stepping procedure to
make a calculation of property diagrams in a multicomponent heterogeneous system. A
property diagram is usually stepped under one defined independent stepping axis-variable,
and is often constructed by the defined independent mapping axis-variable against a chosen
property (for the system, or for a specific phase, or for a certain species).
In the POLY module, it is possible to compute a series of equilibria with one condition as the
stepping axis variable. This is achieved by first calculating a single equilibrium, and then
selecting one of the conditions as the axis variable. The minimum and maximum value and
the incremental step along the axis must also be given. By default, the global minimization
technique is used .
A property diagram consists of property lines that change (normally) along with
the stepping axis-variable. From a single STEP calculation, many different types
of property diagrams in the defined multicomponent heterogeneous systems
can be plotted. Various types of property diagrams are generated by the
stepping calculations. Also see "About Property Diagrams" on page 174 in the
Thermo-Calc User Guide.
Normally, before the command can be invoked, you need to have already calculated an
initial equilibrium point and set one independent variable (i.e. the controlling condition in
the system) . This is done using "SET_AXIS_VARIABLE" on page 218. You then list the current
values of the axis variable for each calculated equilibrium, as well as the corresponding
information when the set of stable phases changes.
By default, the global minimization technique is enabled, You can turn this off by using the
command-sequence "ADVANCED_OPTIONS" on page 174 → GLOBAL_MINIMIZATION.
You can choose how often to do a global minimization test using the command-
sequence ADVANCED_OPTIONS → STEP_AND_MAP → GLOBAL TEST INTERVAL.
Syntax STEP_WITH_OPTIONS
Option? /Normal/: <a chosen option, N, I, S, O, E, M, T, or P>
Prompt N = Normal, I = Initial equilibria, S = Separate phases, O = One phase at a time,
E = Evaluate, M = Mixed Scheil, T= T0, and P = Paraequilibrium
Normal (N)
When you accept the default, Normal (N), it allows a stepping calculation with the chosen
independently-varying equilibrium condition (axis-variable). Only the step axis value is
changed between each step.
When you repeat the STEP → NORMAL command-sequence, you can make several stepping
calculations while still keep all the stepping-calculation results in the current POLY3
workspaces.
The calculation results are saved in the default RESULT.POLY3 file or you can
specify to save it in the <MyName>.POLY3 file. This is as long as there is no SAVE_
WORKSPACES command before the second set of command sequences (STEP →
NORMAL). Repeated stepped results can be restored into the same current
POLY3 workspaces/file.
The addition of several steps enables you to generate special types of property diagrams and
to calculate and plot special phase boundary lines on phase diagrams, such as:
l The missing part(s) of a specific property [that are calculated under another
controlling condition inside the range of the stepping-variable] on the same property
diagram.
l Two or more sets of a specific property [that are calculated under different
controlling conditions and stepped over the same stepping-variable range] on the
same property diagram for the same system.
l Calculate some special phase-boundary lines [especially for some defined secondary
phase transformations or alike, e.g. the BCC_A1 <--> BCC_B2 phase-boundary, or
equal-Gm for two specific phases, or equal-fraction or equal-activity for a certain
species in two specific phases, that shall be calculated under different controlling-
conditions and also be stepped over different stepping variable(s)], and then plot (or
impose) them onto a corresponding phase diagram (which can be resulted from
several such STEP → NORMAL calculations or even from a separate MAP
calculation) for the same system.
Initial_Equilibria (I)
An initial equilibria is added at each calculated point. This can be useful, for instance, to
generate a set of isothermal calculations.
When you choose I, an initial equilibrium is stored at each calculated equilibria. It is
intended to generate a matrix of calculated initial equilibria, first stepped under a STEP
INITIAL_EQUILIBRIA command-sequence and then repeated by another STEP NORMAL
command-sequence (or even continued by a MAP command).
For example, you can first use the temperature condition as the stepping axis-variable with
this option, which calculates a number of initial equilibrium points and automatically adds
each one as an initial equilibria for another STEP → NORMAL command-sequence (or even
for a MAP command). Before the second STEP command (i.e. the STEP → NORMAL
command-sequence), you can chose a compositional condition as the new stepping axis-
variable; then the STEP → NORMAL command-sequence uses those created starting
equilibrium points (at different temperatures) and steps in such a new compositional
variable. As a result, these two STEP commands together give a matrix of values.
Separate_Phases (S)
In this way, you can calculate how the Gibbs energy for a number of phases varies for
different compositions. This is particularly useful to calculate Gibbs energies for complex
phases with miscibility gaps and for an ordered phase that is never disordered (e.g.
One_Phase_at_Time (O)
This option is recommended for STEPPING heterogeneous systems with both ordered phases
and the disordered pairs.
When you choose O, the stepping calculation is conducted individually for one phase at a
time. That is, it is stepped over the whole stepping variable range, but the stepping is
repeated for all the entered phases in the defined system. This is particularly useful to
properly step in composition for an equilibrium heterogeneous system with both ordered
phases and the disordered pairs. Thus, instead of calculating for the same composition for
each of the phases at each composition step, it starts the stepping in each of the phases in
the default most-stable compositions (the major constitutions).
Evaluate (E)
Evaluate E is an advanced option and is useful when additional conditions (instead of the
stepping variable) require changing during a stepping calculation. It allows a stepping
calculation in a single axis with simultaneous evaluation of one or more variables after each
step. As variables can be used as conditions, it means that you can change the conditions
during the stepping. After a successful EVALUATE calculation, you can go to the POST
module to manually define and plot property diagrams.
The variables given are evaluated after each step, which may change other
conditions. This can be useful to perform the Ordinary ScheilGulliver Approach
(non-equilibrium transformations) for simulating alloy solidification without
back diffusion of fast-diffusing interstitial components in solid phases. However,
it is recommended you use the "SCHEIL Module" on page 293.
Specify the prompt:
Variable name(s): <Variable name>
The names of the variables that shall be evaluated after each step must be typed here.
The miscibility gap test is automatically used during stepping (see "ADVANCED_
OPTIONS" on page 174) if a phase has two or more composition sets.
The miscibility gap test means that you can start calculating from high temperatures in a
steel where the MC carbide is not stable. During the calculation, the MC carbide first
becomes metastable with a composition different from the metallic FCC phase and later
also becomes stable.
Mixed_Scheil (M)
This is an advanced stepping calculation designed for the Extended Scheil-Gulliver Approach
(partial-equilibrium transformations) to simulate alloy solidifications with back-diffusion of
one or more fast-diffusing interstitial components (such as C, N, O, S, etc.) in solid phases is
performed. It also will consider BCC-->FCC phase transformation (practically for steels)
along the alloy solidification process.
To ensure a successful stepping calculation of mixed Scheil-Gulliver simulation of
solidification process of a defined alloy system with a certain initial overall composition, it is
important to note the following:
l For solution phases with possibility of miscibility gap existence, you have
appropriately added the necessary composition set(s);
l You have already set the temperature condition as the stepping SET_AXIS_VARIABLE
command, with minimum and maximum temperature points as well as an
appropriate s temperature step for the cooling process).
l There must be a composition condition for each of the back-diffusion components
(i.e. fast-diffusing interstitial components, such as C, N and/or other elements) that
are already defined in terms of mole-fraction or mass-fraction, e.g. X(C) and W(N).
Otherwise, a stepping calculation with this option can fail.
l An initial equilibrium in which the LIQUID mixture phase is the only stable must be
calculated. This is why it is good to start with a relatively high temperature condition
for the initial equilibrium calculation. It is always necessary to reject or suspend the
GAS mixture phase (if it exists) before the C-E and STEP commands, to avoid its
formation along with LIQUID.
l In cases where fast-diffusing interstitial components are specified as back-diffusion
components, you can choose to allow BCC>FCC phase transformation (practically for
steels) during the alloy solidification process.
l If there is only one fast-diffusing interstitial component (e.g. C or N), type its name;
l If there are two or more fast-diffusing interstitial components (e.g. C, N and S),
always type the names on the same line at once (separated by an empty space in
between, e.g. C N S);
l If there is no fast-diffusing interstitial component to be considered, type NONE to
ignore back diffusion entirely, meaning a normal Scheil-Gulliver simulation is
performed.
Type Y or N to allow or not allow the BCC-->FCC phase transformation (which is usually a
typical phenomenon along the cooling processes of steels/Fe-alloys).
During the calculation the simulated solidification path, including the locally-equilibrated
phase assemblage (region), captured temperature condition (T in K), remaining liquid phase
(NL, mole fraction), overall formed solid phases (NS, mole fraction) and latent heat
formation (NH, J/mol) along the cooling process are shown after the information on starting
temperature point of the alloy solidification process, e.g.
Solidification starts at 1743.15 K
Phase Region from 1.744150E+03 for: LIQUID
Phase Region from 1.742525E+03 for:
LIQUID
FCC_A1#1
1742.5250 0.9960 0.0040 -1.1824
1742.4000 0.9795 0.0205 -202.1585 . . . . . .
Phase Region from 1.733150E+03 for:
LIQUID
BCC_A2
FCC_A1#1
1733.1500 0.3294 0.6707 -8032.6240
After a successful calculation, you can go to the POST module to manually define and plot
property diagrams for the alloy solidification process according to the chosen Scheil-Gulliver
model, or to impose existing relevant experimental information or other types of calculated
solidification results [e.g. Scheil-Gulliver simulation with or without considering fast-diffusing
interstitial component(s), full-equilibrium approach, or Diffusion Module (DICTRA)-type
simulation with moving-boundary conditions] onto the same plotted property diagrams.
Normally, the solidus temperature (T in Celsius) is set as one of the axis variables (usually as
Y-axis in most cases), while the other plotted quantity on the other axis can be the amount of
overall formed solid alloy phases (NS in mole-fraction or BS in mass-fraction), the amount of
remaining liquid phase (NL in mole-fraction or BL in mass fraction), the heat of latent along
the solidification process (NH in J/mol or BH in J/gram), among many other properties in the
solidified alloy phases or in the whole alloy system.
T-zero (T)
This advanced option allows a stepping calculation of the so-called T0 (T-zero) line in a
diffusionless transformation (where two specific partially-equilibrated phases have the same
Gibbs energy) along a composition variable which has already set as the stepping variable
with "SET_AXIS_VARIABLE" on page 218.
The temperature condition cannot be set as the stepping variable if you want to
make a STEP T-ZERO calculation.
The names of the target phases, for which the Gibbs energies equal to each other at each
point on the T0 line, must be entered.
During the calculation, the T0 values are shown after the corresponding scanned conditions
After a successful calculation, you can go to the POST module to plot the T0 line against the
stepping composition variable or another varying axis, or to impose the calculated T0 line
onto a normal phase diagram [normally plotted as a T-X isopleth].
Paraequilibrium (P)
This is an advanced option. Select P to calculate the paraequilibrium state between two
specific phases (the paraequilibrium lines). It allows a stepping calculation of
paraequilibrium lines where the chemical potential for one or more interstitial components
(that are considered as back-diffusion elements, such as C and N) but not for the other (s) in
two partially equilibrated phases are equal.
More than one interstitial component can be treated as fast-diffusion species (such as C, N,
O, S, etc., as individual or combined) in a paraequilibrium stepping calculation.
The composition condition for the interstitial components cannot be set as the
stepping variable if you want to make this calculation.
To ensure a successful stepping calculation of paraequilibrium states between two specific
By doing this, you get a clear picture on u-fractions of various substitutional and interstitial
components, which are different from the overall composition in the system. The SPECIAL
status means that specified component(s) are not included in summations for mole or mass
fractions. Therefore, all the composition variables plotted from the paraequilibrium
calculations are u-fraction related quantities.
Always make a single-point paraequilibrium calculation by the command-sequence of
ADVANCED_OPTIONS → PARAEQUILIBRIUM, prior to performing this STEP →
PARAEQUILIBRIUM command-sequence, although this might not be always necessary for
some systems.
With this stepping calculation specify the following:
Name of first phase: <Phase A>
Name of second phase: <Phase B>
The names of the two target phases A and B, between which the paraequilibrium states
establish, must be typed at the above two prompts subsequently or on the same (first) line at
once (separated by an empty space, e.g. FCC BCC, FCC#2 M23C6).
1. Both chosen phases must have similar interstitial/vacancy sublattices where the fast-
diffusion interstitial component(s) occupy.
2. The choice on the target phase pair must be reasonable for the defined system and
specified initial overall composition.
3. Both target phases should have phase constitution definitions that cover all the
defined substitutional and interstitial components of the current alloy system; or
4. It is impossible to calculate the paraequilibrium state between the target phase pairs
with given interstitial component(s) in the currently defined system.
After a successful STEP → PARAEQUILIBRIUM calculation, you can go to the POST module to
plot a paraequilibrium phase diagram, or to impose the calculated paraequilibrium states
onto a normal phase diagram [normally plotted as a T-X isopleth with one of the considered
interstitial component(s) as the x-axis variable].
However, the stepping calculation procedure for the currently specified paraequilibrium
states between the two specified phases may find difficulties at some steps due to some
possible numerical problems (normally regarding to the u-fractions of the interstitial
components under some composition ranges), or it may completely fails. In the latter case,
it implies that the chosen target phase pair may be unreasonable for the defined alloy
system or for the defined initial overall composition, or one or both phases may have
inappropriate phase constitution definitions regarding the specified interstitial component(s)
and substitutional components. Then, you must either modify the settings of initial overall
composition or specify the reasonable target phase pair with an appropriate choice of the
fast diffusion interstitials in the defined alloy system.
The figure above shows the plot of a paraequilibrium calculation of isopleths: Formation of
para-pearlite in two Fe-based alloys, with equilibrium results appended.
The calculated paraequilibrium phase boundaries (black lines) are shown with
tie-lines (in green-colour). In the Fe-2.5Mn-C alloy system, C is considered as
fast diffusing interstitial component in the BCC+FCC and FCC+Cementite
paraequilibrium stepping calculations; while in the Fe-3Cr-N alloy system, N is
treated as fast diffusing interstitial components in the BCC+FCC and FCC+FCC_
M1N (i.e. FCC#1+FCC#2) paraequilibrium stepping calculations.
During a STEP calculation, the value of the stepping axis variable for each
calculated equilibrium is listed and also the set of stable phases.
You can stop the mapping of a line by pressing a single <Ctrl-A> (Windows) or <Ctrl-C>
(Linux). This can be useful in order to stop a longish calculation without losing what is
already calculated.
If there is any convergence problem in finding a stable solution at any stage during a
calculation procedure enforced by a STEP_WITH_OPTIONS command-sequence, this message
displays:
Convergence problems, increasing smallest site-fraction from 1.00E-30 to hardware
precision 2.00E-14. You can restore using SET-NUMERICAL-LIMITS
This implies that smallest site fraction in the current POLY3 workspace is automatically
increased from the default value 1.00E-30 to the hardware-dependent precision (under
Linux, as 2.00E-14). For other subsequent POLY-module calculation in the current TC run,
you can use the POLY command "SET_NUMERICAL_LIMITS" on page 296 to restore or reset
the smallest site fraction to the previous or another preferred value, as well as to reset
other numerical limits.
Complex miscibility gaps of various solution phases are automatically detected during a
stepping calculation, and two or more composition sets for each of such solution phases are
automatically generated as well, through an automatic Global Minimization Test procedure
(by specifying a Global Test Interval value and confirming the Automatically add
initial equilibria in the ADVANCED_OPTION STEP_AND_MAP command-sequence). As a
particular case, such an automatic Global Minimization Test ensures that you can now start
calculating from high temperatures in an austenitic steel (metallic FCC_A1 solution phase)
where the MC carbides/nitrides/carbonitrides (i.e. the C-/N-rich sides of the FCC_A1
miscibility-gap, often (while not always) being referred to as FCC_A1#2, FCC_A1#3, etc.) are
not stable, and during the MAP command the MC carbides/nitrides/carbonitrides may first
become metastable with a composition different from the metallic FCC_A1 phase and later
also stable.
Occasionally, it may be necessary to have a specified increment other than the default value
TABULATE
For any entered table, this command gives a table of values from equilibria calculated with
a STEP command. It works only for a table that is entered in either the POLY or POST
module.
Syntax TABULATE
Name: <Name of a table entered in either POLY or POST>
Prompts
Specify a table name that is entered in either the POLY or POST module.
Output on screen or file /Screen/: <File name or return>
Specify a file name if you want to save on a file the table values along the
defined STEP calculation, or press <Enter> if want to see the table values
displayed.
SET_COLOR 257
SET_CORNER_TEXT 259
SET_DIAGRAM_AXIS 259
SET_DIAGRAM_TYPE 261
SET_FONT 262
SET_INTERACTIVE_MODE 263
SET_LABEL_CURVE_OPTION 263
SET_PLOT_FORMAT 264
SET_PLOT_OPTIONS 264
SET_PLOT_SIZE 266
SET_PREFIX_SCALING 267
SET_RASTER_STATUS 267
SET_REFERENCE_STATE 267
SET_SCALING_STATUS 268
SET_TIC_TYPE 269
SET_TIELINE_STATUS 269
SET_TITLE 270
SET_TRUE_MANUAL_SCALING 270
SUSPEND_PHASE_IN_PLOT 270
TABULATE 271
l POLY
l TAB
l BIN
l TERN
l POT
l SCHEIL
l POURBAIX
Within the POST module, you can choose any state variable, any derived variable, or any
entered symbol (functions or variable) as the X/Y-axis.
When a diagram is plotted, appearance parameters for defining a high-standard graph can
be further specified, e.g. curve labelling options, diagram titles and subtitles, plot size, axis
length, axis types, axis-tic type, tie-line status, automatic or manual scaling and zooming,
semi-automatic or manual labelling on phase boundaries and phase regions, graphic
formats, text fonts, colours, raster plot, etc.
You can append experimental data onto a plotted diagram. You can also save the
coordinates onto a textual file, which can be edited and used as an experimental data file to
be merged onto another diagram or as a part of a setup file for PARROT-module
assessment.
Phases can be suspended or restored in a plotted diagram. The reference states for
components can also be modified for the resulted diagrams. Moreover, you can translate a
plotted property diagram (after a stepping calculation) into a tabulated form, such as a
simple list on screen or a textual file, and a spreadsheet .
ADD_LABEL_TEXT
Add a text to an area in a phase diagram or a property diagram. The label is written starting
from the specified coordinates. Optionally, you can also let the program automatically add
the text by first calculating an equilibrium state at the specified coordinates and then
making a label out of the stable phase names.
The label texts and coordinates, either added by this command or modified with "MODIFY_
LABEL_TEXT" on page 252 (or manually edited in the Console Results window), are stored in
the workspace, and these may later be saved onto an *.EXP file (with "MAKE_
EXPERIMENTAL_DATAFILE" on page 252).
In some cases such an optional calculation for automatic phase region labeling
may not work. It is not possible to automatically add labels for certain sets of
axes, like entropy, enthalpy, pH, Eh, etc.
"Adding and Editing Plot Labels " on page 119 in the Thermo-Calc User Guide.
Syntax ADD_LABEL_TEXT
Give X coordinate in axis units: <Value of the X coordinate>
Prompts
Specify the value of the X coordinate where the label is to start.
Give Y coordinate in axis units: <Value of the X coordinate>
If you answer N enter text at the prompt. You can enter simple text, use
LaTeX, rotate the text, as well as adjust the font size.
Syntax ADD_LABEL_TEXT
LaTeX: You can use LaTeX commands to enter text and symbols. First enter the
command followed by the expression or string, for example to display Al2O3
as subscripts:
\latex Mole-fraction Al_2O_3
To add a mixture of plain text and equation text, you can exit
math mode using the string \textrm followed by the text to
display enclosed in curly brackets. For example \latex \textrm
{Mole-fraction }Al_2O_3 displays this label .
Rotate the text: If you want to rotate the label, start a text string with the
rotation command (which is case sensitive and must be in lower case letters)
then enter the number of degrees to rotate the label. For example, to rotate
the label 45 degrees enter:
\rotation 45
To rotate the text and use LaTeX, the rotation command must be used first.
For example:
\rotation 45 \latex Mole-fraction Al_2O_3
Rotates the text 45° and includes subscripts in the title Mole-fraction Al2O3.
Text size: /.35/: <Size for the label>
A smaller size of the text may be necessary to fit the label text into the
diagram. A default size is given using the latest size in adding label texts, or
.35 if the command is called for the first time. A recommended size is e.g.
0.25.
Syntax ADD_LABEL_TEXT
APPEND_EXPERIMENTAL_DATA
Add experimental data and text onto a calculated diagram. This is done by placing the
experimental data and text on a formatted textual file (always having an extension of EXP)
that is prepared outside of Thermo-Calc software (Console Mode and Graphical Mode),
according to the syntax of the DATAPLOT Graphical Language.
The picture generated from the data is superimposed on the ordinary graphical output from
the postprocessor. Such an experimental data file (*.EXP) may be created by an ordinary
textual editor.
Another important usage of this command is to superimpose plots from several independent
calculations. For this purpose, there is a command "MAKE_EXPERIMENTAL_DATAFILE" on
page 252, which dumps a calculated diagram on an EXP file according to the DATAPLOT
syntax. With the aid of a normal text editor, many such files may be merged together.
Remember that you can only have one prologue section on each such EXP file.
Also see the DATAPLOT User Guide included with this documentation set.
Syntax APPEND_EXPERIMENTAL_DATA
Use experimental data (Y or N) /N/: <Y or N>
Specify whether the data from an experimental data file should be included in
Prompts the next plot. If the answer is c, no experimental data are plotted.
An Open window displays to specify the name of the file with the
experimental data.
Prologue number: /0/: <Prologue number>
Select which prologue to use. In a prologue, you can, for example, give the
scaling of an axis, the axis texts, and so on.
Select from which dataset(s) data should be read. Several datasets may be
given separated with commas or spaces. By answering -1, a list of all datasets
on the file is given; and by 0, no experimental data are appended.
CHANGE_LEGEND
When there is a legend in the diagram you can append constitution and/or ordering
descriptions to the phase name.
In some cases the legend only shows the phase name for a line when the "SET_
LABEL_CURVE_OPTION" on page 263 option is set to F.
Syntax CHANGE_LEGEND
Set suffix for phase names in legend? (All, None, Constitution,
Ordering)/None/:
When you select None the legend includes the standard information about the
phases.
Prompt When you select All the Constitution description and the Ordering description
(when there is ordering) are also included.
When you select Constitution, this is added to the standard description.
When you select Ordering and when there is ordering, this is added to the
standard description.
Also see "About Legend Styles" on page 117 in the Thermo-Calc
User Guide for examples of these labels.
DUMP_DIAGRAM
After a Thermo-Calc graph is created (and displays with the PLOT_DIAGRAM command) you
can save (dump) a diagram to a file so you can quickly print it. It is similar to the PRINT_
DIAGRAM command.
Syntax DUMP_DIAGRAM
Output format/: <Format or return>
Prompt Specify an appropriate graphic format for dumping the graph or pressing
<Enter> to accept the default format.
A Save window opens if you have not specified a file name. Select a directory
path and enter a File name. If a file with the specified name already exists,
then you are prompted whether to overwrite the old file or not. The third
argument of the command allows you to specify whether to overwrite (Y) the
old file or not (N).
After the printing process is finished, the temporarily set graphic device for
conversion and printing is switched back to the one set by the command "SET_
PLOT_FORMAT" on page 264, so that you can save the graph in file(s) using
"PLOT_DIAGRAM" on page 253.
ENTER_SYMBOL
This command is for both the POST and POLY modules in Console Mode.
Symbols are a useful feature of the POLY and POST modules to define quantities that are
convenient. Symbols can be constants, variables, functions or tables.
Functions or tables (with defined functions as values) can be entered in the POST module
after a stepping or mapping calculation, for purposes of plotting such entered functions or
tables as axis variables.
Within the POLY module, symbols are normally defined prior to an equilibrium calculation
(enforced by a C_E command), stepping calculation (enforced by the command "STEP_
WITH_OPTIONS" on page 227) or mapping calculation (enforced by "MAP" on page 212).
These can be entered after an equilibrium calculation; however, for defined functions,
variable or tables, it requires using "EVALUATE_FUNCTIONS" on page 208 before showing
the corresponding values in the calculated equilibrium state.
The symbols entered in the POST module are not saved in the currently-loaded POLY3
workspaces. Therefore, if you want to apply such symbols in other similar calculations for
the same defined system, you must use the ENTER_SYMBOL command prior to the
STEPPING or MAPPING calculation in the POLY module.
Syntax ENTER_SYMBOL
Constant, Variable, Function or Table? /Function/: <keyword>
Each symbol has a unique name that must start with a letter and can have
maximum 8 characters.
Legal characters include letters (either UPPER or lower case), digits and
underscore _. Any other special character, such as parentheses ( and ), plus +,
minus -, slash / or \, full stop (.), are illegal for symbol names.
You can enter the symbol name and the value or function on the same line,
Syntax ENTER_SYMBOL
The ampersand & means that you can continue to write the function on the
new line if one line is not enough for the function. If you finish the function
press <Enter> again.
Value: <Value for a constant>
Syntax ENTER_SYMBOL
Variable(s): <Variable(s) in a table>
Which means that the table called K contains four columns, i.e. the
temperature, the mole fractions of C and Cr in the LIQUID phase, and the
activity of C.
To show the temperature in Celsius in a table, give the command ENTER
FUNCTION TC=T-273; and then use the symbol TC in the table.
& <Continuation of the definition for the table>
The ampersand & means that you can continue to write the table on the new
line if one line is not enough for the table. If you finish the table press <Enter>
again.
FIND_LINE
Identifies various property curves on a plotted property diagram (after a stepping
calculation); it also works well in find stable phase regions on a phase diagram (after a
mapping calculation).
Syntax FIND_LINE
X coordinate /.484623611/: <Value of the X coordinate>
Prompts Specify the value of the X coordinate where you want to find the details
of property curve (or phase region).
Y coordinate /.5153737962/: <Value of the Y coordinate>
Specify the value of the Y coordinate where you want to find the details
of property curve (or phase region).
The POST module displays the identified property (for a property curve on a
property diagram), or the identified stable phase-assemblage (for a phase
region on a phase diagram).
LIST_DATA_TABLE
This is a POST module command.
This command is used for listing various properties (i.e. the Y-axis variable on a property
diagram) that change with an independent variable (i.e. the X-axis variable on a property
diagram), which have already been defined in the POST module (and often are plotted on
the Console Results window), but only after a STEP calculation.
The listing output can be either on screen or in a spreadsheet file in the MS Excel format
(under specified file name with the default file extension of XLS), which can be further
edited or used for graphical handling by opening the file (using the MS-Excel program)
outside of the Thermo-Calc software system.
Syntax LIST_DATA_TABLE
Output to screen or file /Screen/: <File name or return >
Specify a file name if you want to save on a spreadsheet file (in the MS Excel
format, with the default extension of XLS) on which the already-defined
properties on a property diagram (after a STEP calculation) is saved, or press
Prompt <Enter> if want to see a simple textual table on screen (for the already-defined
properties that change alone with an independent variable).
LIST_PLOT_SETTINGS
This is a POST module command.
Syntax LIST_PLOT_SETTINGS
Lists the present values of most parameters specifying the type of diagram to be
plotted.
LIST_SYMBOLS
For both the POLY and POST modules, list the definitions for all constants,
functions, variables and tables.
Syntax LIST_SYMBOLS
The defined variables are listed up together with the defined functions, but
variable names are followed by a percentage sign %.
MAKE_EXPERIMENTAL_DATAFILE
Write the graphical information onto screen or a formatted text file (always having an
extension of .EXP) using the DATAPLOT graphical format. In order to merge two or more
diagrams from separate calculations, you can write them out on files with this command,
and then add/edit them together with a normal text editor.
Also see the DATPLOT User Guide included with this documentation set.
Syntax MAKE_EXPERIMENTAL_DATAFILE
Output to screen or file /Screen/: <Name of a file or return>
Specify the name of the desired file. Accept SCREEN (press <Enter>) for a list
Prompt Otherwise, a file name where the graphical information is written must be
given here. The default file extension is EXP (under MS Windows) or exp (under
Linux).
MODIFY_LABEL_TEXT
Move a label created with the command "ADD_LABEL_TEXT" on page 243 to another
position, or replace its text with another one.
The label texts and the coordinates, either added by ADD_LABEL_TEXT command or
modified by this command or manually edited on the Console Results window, are stored in
the workspace, and can be saved onto an *.EXP file (through "MAKE_EXPERIMENTAL_
DATAFILE" above).
Syntax MODIFY_LABEL_TEXT
Which label to modify? /#/: <number of the label>
Prompts Before this prompt, all the labels created by the ADD_LABEL_TEXT command
is listed with an identifying number. Specify the number of the label you
want to modify. The default one (#) is the last added label.
New X coordinate: /xxx/: <new X position>
Specify the new labeling text. The previous text is displayed. Press <Enter>
to accept.
The new label text must not be longer than the previous text.
PLOT_DIAGRAM
With this command, a calculated/plotted diagram is displayed if the default graphic device
has already been defined by the "SET_PLOT_FORMAT" on page 264 command. It can also be
saved onto a file.
Syntax PLOT_DIAGRAM
Output to screen or file /Screen/: <Name of a file or return for
Prompt screen>
Specify the name of the desired file (Note that under Linux, the prompt is
PLOTFILE /SCREEN/). Consequently, a file with a proper extension for the
selected graphic format (set by the SET_PLOT_FORMAT command) is saved
under the current working directory. If no extension is given in the file name,
the default extension e.g. ps for Postscript portrait/landscape modes, P7 or p7
for HPGL landscape, P8 or p8 for HPGL portrait, etc.) is automatically given to
the file name.
If the default device is set (by the command SET_PLOT_FORMAT), you can
either accept SCREEN to plot the graph in the Thermo-Calc Graph window on
screen by pressing <Enter>, or save it on a file by giving a file name.
PRINT_DIAGRAM
Syntax PRINT_DIAGRAM
Print with high quality to a file after a Thermo-Calc graph is created (and is
displayed with "PLOT_DIAGRAM" on the previous page). It has the same
function as the Print Plot option on the Console Results windows.
QUICK_EXPERIMENTAL_PLOT
This is similar to "APPEND_EXPERIMENTAL_DATA" on page 245 but can be used when there
is no graphical information to be plotted in the POLY3 workspace. It defines a pair of axis,
sets the axis labels to X and Y, and scales both X- and Y-axes between 0.0 and 1.0 unless a
prologue is read from the DATAPLOT (*.EXP) data file.
Also see the DATPLOT User Guide included with this documentation set.
Syntax QUICK_EXPERIMENTAL_PLOT
Prologue number: /0/: <Prologue number>
An Open window displays. Select the prologue to use. In a prologue, you can,
Prompts for example, give the scaling of an axis, the axis texts, and so on. By answering
-1, a list of all prologues on the file is given; and with 0, no experimental data
are appended.
Dataset number(s) /-1/: <Dataset number(s)>
Syntax QUICK_EXPERIMENTAL_PLOT
Select from which dataset(s) data should be read. Several datasets may be
given separated with commas or spaces. By answering -1, a list of all datasets
on the file is given; and with 0, no experimental data are appended.
REINITIATE_PLOT_SETTINGS
All parameters describing the diagram are given default values.
Syntax REINITIATE_PLOT_SETTINGS
All plot settings made in the POST module are deleted, and it returns to the
initial settings when the POST module is entered.
RESTORE_PHASE_IN_PLOT
Restores a phase previously suspended from the plot with "SUSPEND_PHASE_IN_PLOT" on
page 270. It works only after at least one phase is suspended.
Syntax RESTORE_PHASE_IN_PLOT
Phase name: <Name of a phase>
Prompt
Give the name of the phase to be restored.
SELECT_PLOT
Select a plot within the current Results tab in the Console Results window.
Syntax SELECT_PLOT
Plot <N/New>
Where N is a positive integer. Enter the number of the plot that is selected in
the Console Results window (in the currently selected Results tab). If a plot
Prompt with that number does not exist, it is created.
The default parameter value is NEW. If this is entered, then a new plot is
created. Create a new plot can also be done by pressing <Ctrl+Shift+T>.
SET_AXIS_LENGTH
Change the real length of an axis in inches. The default number of tic-marks on an axis is 10
when the relative length is 1. The number and units per tic-mark must be a multiple of 1, 2
or 5 to obtain a reasonable scaling of an axis.
Syntax SET_AXIS_LENGTH
Axis (X, Y or Z): <Name of an axis>
Prompts
Specify which axis to set the length.
Axis length /11.5/: <New relative axis length>
Specify the new real axis length in inches. The relative length 1 corresponds to
10 tic-marks on the axis.
SET_AXIS_PLOT_STATUS
Specify whether the axis title texts and axis label texts are to be plotted or not on a diagram.
It does not work for the axis lines and tic-marks. If you want to plot a diagram without tic-
marks, use "SET_TIC_TYPE" on page 269 first.
This can be used to merge different diagrams on a pen-plotter or to obtain the diagram
faster. The default status is that all the set axes are to be plotted.
Syntax SET_AXIS_PLOT_STATUS
Axis plot (Y or N) /Y/: (Y or N)
Prompt
Specify to plot axis texts (Y) or no (N).
SET_AXIS_TEXT_STATUS
Change the axis text from the automatic text given by the axis specification to a text.
Syntax SET_AXIS_TEXT_STATUS
Axis (X, Y or Z): <Name of an axis>
Prompts
Specify which axis text status to change.
Automatic axis text (Y or N) /N/: <Y or N>
Specify if automatic axis text is to be used (Y) or (N). If you answer N, enter axis
text.
Syntax SET_AXIS_TEXT_STATUS
Axis text: <Enter axis text>
You can enter simple text, use LaTeX, rotate the text, as well as adjust the font
size.
Also see "ADD_LABEL_TEXT" on page 243.
SET_AXIS_TYPE
Change the axis type among linear, logarithmic and inverse axis.
Syntax SET_AXIS_TYPE
Axis (X, Y or Z): <Name of an axis>
Prompts
Specify which axis to change the axis type.
Axis type /Linear/: <New axis type>
Specify which new axis type to set. Select LINear (default), LOGarithmic or
INVerse. Only the three first characters are relevant.
SET_COLOR
Some devices support colours or line thickness. With this command, select different colors or
line types on some types of information on a diagram.
This command can fail if a chosen device does not support colors or line
thickness.
This command gives four sequential prompts (i.e. Text and axis, Invariant equilibria, Tie-
lines, and All other lines), with the Keyword and default option (both listed below).
Depending on if the switched-on graphic device (by the SET_PLOT_FORMAT command)
supports colors or line types, the POST automatically switches on the appropriate Keyword.
Syntax SET_COLOR
Text and axis keyword /Default option/
<Return or new option>
Invariant equilibria keyword /Default option/: <Return or new
option>
Prompt
Tie-lines color keyword /Default option/: <Return or new option>
Keyword of all other lines /Default option/: <Return or new
option>
Color Options
The options for Color are:
LineType Options
The options for LineType are:
THICK VERY_THIN
DASHED DOTTED
SET_CORNER_TEXT
Adds text to the corners on a plotted diagram. Normally, you can write such texts as a
subtitle.
The primary database (not the appended ones) used in calculations and the calculated
conditions are automatically plotted at the upper-left corner as a part of the header on all
plotted diagram. Unless the plotting option WRITE CONDITIONS is switched off by the
command "SET_PLOT_OPTIONS" on page 264, the calculated conditions are always written
on plotted diagrams; and only when the plotting option PLOT HEADER is switched off by the
command SET_PLOT_OPTION, the used database also always appear. Under such
circumstance, avoid writing texts at the UPPER_LEFT corners.
Syntax SET_CORNER_TEXT
Corner/Lower_Left/: <Return or new option>
Choose an option:
l LOWER_LEFT
Prompt l UPPER_LEFT
l UPPER_RIGHT
l LOWER_RIGHT
l TOP_OF_TRIANGLE
Write the texts that are to be written on the specified diagram corner.
SET_DIAGRAM_AXIS
Specify an axis variable for a plot or a listing. To be able to plot a diagram, at least two axis
variables (X and Y) must be specified. In the Thermo-Calc Console Mode, three axes (X, Y
and Z) can be specified for a diagram.
The axis variables in the plot can be different from the number of axis used for
the mapping.
If you want to plot a phase diagram with tie-lines in the plane after a MAP calculation, then
the composition axis must be mole-fraction or weight-fraction, or mole-percent or
weight-percent of one specific component. You must not use the stable variable x(comp)
or w(comp) even if that is what you used when calculating the diagram, because that only
gives one side of the two-phase region. It may be sufficient to indicate that mole-fraction is
the same as the stable variable x(*,comp), and weight-fraction is the same as the stable
variable w(*,comp).
If you plot a phase diagram where the tie-lines are not in the plane after a MAP calculation,
then mole-fraction and x(comp) are identical.
When you plot a property diagram after a STEP calculation and want a composition axis
variable, you should normally use x(comp) and not mole-fraction.
The axis must have exactly the same number of columns, or one axis must have one column.
In the first case the columns are plotted matching them one by one; in the latter all columns
on one axis is plotted against the single column. For example, you can have the temperature
on one axis and the amount of each phase on the other. The amount of each phase is the
state variable NP(*) in mole fraction or BPW(*) for mass fractions of phases.
Automatic diagram axis: The POST module can set automatic diagram axis identical to
those used in the "MAP" on page 212 command.
If the state variable x(comp) is used in a MAP calculation, then mole-fraction of the
component is used as diagram axis; if a potential or some other state variables are used,
then that is used as a diagram axis.
After a STEP calculation, automatic diagram axis is not set as there is only one axis used in
the calculation.
Syntax SET_DIAGRAM_AXIS
Axis (X, Y or Z): <Axis name>
Syntax SET_DIAGRAM_AXIS
l PRESSURE as pressure in Pa
l ACTIVITY for a component
l LNACTIVITY for a component [ln(ACR(component)]
l MOLE-FRACTION for a component
l MOLE-PERCENT for a component
l WEIGHT-FRACTION for a component
l WEIGHT-PERCENT for a component
l NONE to clear the axis
l Any valid state variable including those with wildcards, e.g. NP(*) or x
(*,component). Due to the use of wildcard * in such a state variable,
the program asks for a column number.
l Any entered function or variable.
l Any entered table.
If you specify an entered table as the variable, then you are given these
prompts:
For component: <Component name>
Specify the column number(s) in the chosen table that are to be plotted onto
the earlier specified axis. For example:
l 1 for column 1
l 2,3 for columns 2 and 3
l 2,3 >5 for column 2,3 and all columns above column 5
l * for all columns
SET_DIAGRAM_TYPE
Choose the diagram type as perpendicular plot or triangular plot (Gibbs triangle, especially
for ternary systems). The default is with a perpendicular axes.
In order to create a 3D-plot file (in the VRML format, *.WRL) for a tetrahedron
diagram, this command in the sequence SET_DIAGRAM_TYPE N Y should be
used first.
Syntax SET_DIAGRAM_TYPE
Triangular diagram (Y or N) /N/: <Y or N>
Prompts Specify a triangular plot Y. Otherwise (by pressing <Enter> to accept N),
perpendicular axis is set and this command is terminated. By default,
perpendicular diagrams have (almost) the same scaling on both axes.
Create tetrahedron WRML file (Y or N) /N/: <Y or N>
If a triangular plot is not selected (at the above prompt), answer Y in case a
tetrahedron diagram is used to generate VRML (*.WRL) file by sequentially
using the CREATE_3D_PLOTFILE command.
Plot 3rd axis (Y or N) /N/: <Y or N>
If a triangular plot is selected, all lines outside the region limited by a line
joining the end points of the X- and Y-axis are removed by answering Yes (Y).
SET_FONT
Select the font to use for labels and numbers when plotting the diagram under the currently
selected graphic device ("SET_PLOT_FORMAT" on page 264). For some devices there may
be other fonts available and these are selected by the SET_PLOT_FORMAT command.
Syntax SET_FONT
Select font number /1/: <#>
Syntax SET_FONT
SET_INTERACTIVE_MODE
Syntax SET_INTERACTIVE_MODE
Resets the input and output units to their initial values, i.e. keyboard and screen.
SET_LABEL_CURVE_OPTION
Identify the curves drawn in the post-processor by marking each curve with a digit and then
list the meaning of these digits beside the plot.
The number of digits can be quite large in some cases. If so, use the SET_FONT
command and reduce the font size; usually, 0.2 is sufficient.
Syntax SET_LABEL_CURVE_OPTION
This question is rather cryptic but usually the option B or E is good for phase
diagrams (after a MAP command) and option D or F for property diagrams
(after a STEP command). Those interested can try out the option A and C by
themselves.
Syntax SET_LABEL_CURVE_OPTION
This means that for curve 1 the X-axis is T-273.15 (the same for all curves, of
course) and NP(LIQUID) on the Y-axis. Curve 2 has the same X-axis but NP
(FCC_A1) on the Y-axis.
SET_PLOT_FORMAT
Set the format of the graphical output to different graphical devices. The default graphic
device is normally for screen output (number 22 - TCUNITE Driver). Legacy devices can still
be used (1 for Windows and 9 for XWindow for Linux). This default graphic device value may
also be altered with "SET_PLOT_ENVIRONMENT" on page 303 in the system monitor or by
your TC.INI file.
Syntax SET_PLOT_FORMAT
Graphic device number /#/: <Number of the device>
SET_PLOT_OPTIONS
You are prompted for and can toggle on (Y) or off (N) the plotting of some options on all
subsequently generated diagrams.
For the Always initiate POST on re-entering prompt, the default is Y which implies
that the POST module automatically reinitiates whenever the POLY3 workspace is changed
upon re-entering. If answered N the same diagram axis variables are kept even if the
workspaces in the POLY module are read from or written to an *.POLY3 file. The N answer is
useful when there are several sets of *.POLY3 files with the same calculation but for
different sets of model parameters.
For the Always solid line prompt, the default answer is N which means that the POST
module plots solid lines for stable phases but dashed lines for metastable phases. This is
normally for plotting property diagram after a STEPPING calculation; however, when there is
a metastable extrapolation in a phase region on a phase diagram after a MAPPING
calculation, this is also enforced. When the alternative answer Y is chosen, all the lines are
always plotted in solid lines.
Syntax SET_PLOT_OPTIONS
Plot header /Y/: <Y or N>
Prompts Toggle the plotting of the Thermo-Calc header text above a
diagram.
Plot logo /Y/: <Y or N>
Toggle the plotting of the footer identifier text at the right margin
of a diagram.
White-Contoured-PS-CHARS /Y/: <Y or N>
This sets (Y) or removes (N) the plotting of the remote exponent on
the axis.
Plot symbols at node points /0/: <#>
Set the size of symbols which are plotted at the node points.
Syntax SET_PLOT_OPTIONS
Write condition? /Y/: <Y or N>
N allows the POST module to plot solid lines for stable phases but
dashed lines for metastable phases. This is normally for plotting
property diagram after a STEPPING calculation; however, when
there is a metastable extrapolation in a phase region on a phase
diagram after a MAPPING calculation, this is also enforced. When
answered Y all the lines are always plotted in solid lines.
SET_PLOT_SIZE
Change the size of the diagram by specifying a global plot size (as a relative scaling factor).
The default value of the relative scaling factor is 1, while the real size of the plotted diagram
depends on what output device is chosen with "SET_PLOT_FORMAT" on page 264. The
default plot size (corresponding to the default global plot size 1) is adjusted to the chosen
device.
Syntax SET_PLOT_SIZE
Global plot size /1/: <Relative scaling factor>
Prompt Enter the relative scaling factor as a numerical number (e.g. 0.5, 0.8, 1.0,
1.5, etc.). By pressing <Enter>, the default relative scaling factor (1) is
accepted.
SET_PREFIX_SCALING
Set the prefix scaling of remote exponents with certain powers (default is 3), by taking as
argument with an axis name and a YES, or NO, or an integer number # (as the powers for
the remote exponents):
NO switches off its action.
YES arranges the prefix scaling so that the axis scaling is done with the remote exponents
being powers of three, i.e. ...,-6,-3,0,3,6,...
# sets the remote exponents as being powers of #.
Syntax SET_PREFIX_SCALING
Axis (X, Y or Z): <Name of an axis>
Prompt
Specify which axis is to have a prefix scaling.
Use prefix scaling /Y/: (Y or N or #)
SET_RASTER_STATUS
Plot a raster (i.e. with gridlines on both axis directions) in the diagram. The default status is
no raster plotted.
Syntax SET_RASTER_STATUS
Raster plot (Y or N) /N/: <Y or N>
Prompt
Enable (Y) or disable (N) the raster plot.
SET_REFERENCE_STATE
The reference state for a component is important when calculating activities, chemical
potentials and enthalpies. After calculating with "STEP_WITH_OPTIONS" on page 227 or
"MAP" on page 212, the reference state for a component can also be changed for plotting
various properties of the component in the entire system or in a specific phase by using this
command. Afterwards, you can set diagram axes as chemical potential or activity quantities
with the R suffix, i.e. MUR(comp), MUR(comp,ph), ACR(comp), ACR(comp,ph) or their
common logarithms [e.g. LNACR(comp,ph)].
Syntax SET_REFERENCE_STATE
Component: <Name of the component>
Prompts
The name of the component must be given.
Reference state: <Name of a phase used as the new reference
state>
Select the temperature (in K) for the reference state. The value * means the
current temperature is used for the calculation.
Pressure /1E5/: <Reference pressure>
Select the pressure (in Pa) for the reference state. The value * means the
current pressure is used for the calculation.
SET_SCALING_STATUS
When an axis variable is selected by "SET_DIAGRAM_AXIS" on page 259, the scaling status
for the axis is always set to automatic scaling. By this command, choose between manual or
automatic scaling on a specified axis. If manual scaling is chosen, specify a minimum and a
maximum value. Manual scaling can be used to magnify interesting parts of a diagram.
Syntax SET_SCALING_STATUS
Axis (X, Y or Z): <Name of an axis>
Prompts
Specify which axis that you want to set the scaling status.
Automatic scaling (Y or N) /N/: <Y or N>
Choose between automatic (Y) and manual scaling (N). For manual
scaling specify these parameters:
Min value: <Minimum value>
SET_TIC_TYPE
Change the drawing of the axis tics. You may alter the placement of tic marks on the axis,
e.g. inside or outside or no tic marks. The size of tic marks cannot be altered by this
command, but these are adjusted based on the selected graphic device and the defined
relative scaling factor (global plot size).
Syntax SET_TIC_TYPE
TIC Type /1/: <1 or -1 or 0>
Prompt The tic type 1 is default, i.e. the tics are drawn outside the diagram. -1 means
that the tics are inside the diagram and 0 means no tics.
SET_TIELINE_STATUS
If the tie-lines are in the plane of the calculation, you can select to plot the tie-lines in two-
phase fields with this command.
Syntax SET_TIELINE_STATUS
Plotting every tie-line no. /0/: <Number of tie-lines>
The tie-lines plotted are not equally spaced by the graphics software. Instead,
Prompt you can select to plot a subset of the calculated tie-lines, i.e. every one (1),
every second (2), every three (3), etc. By accepting the default value 0, no tie-
line is plotted.
SET_TITLE
Specify a title that displays on all listed tables and plotted diagrams from the POST module
in the same run of Console Mode.
Syntax SET_TITLE
Ttitle <Title>
Enter the title you want to appear on all tabulation or graphic outputs.
Prompt
There is a maximum length of about 60 characters for the title.
You can enter simple text, use LaTeX, rotate the text, as well as
adjust the font size.
Also see "ADD_LABEL_TEXT" on page 243.
SET_TRUE_MANUAL_SCALING
The tic-marks on the axes are normally placed in even intervals using the whole axis length.
The scaling routine adjusts the given minimum and maximum values slightly to accomplish
this. If such an automatic adjustment behaviour is unwanted, it can be avoided by using this
command (followed by a message showing the TRUE MANUAL SCALING set for a specific
axis).
The command works like a toggle. To reset the automatic scaling behaviour, repeat the
command a second time for that specific axis (followed by a message saying the SEMI_
MANUAL SCALING set for the specific axis.
Syntax SET_TRUE_MANUAL_SCALING
Axis (X, Y or Z): <Name of an axis>
SUSPEND_PHASE_IN_PLOT
Specify that lines originating from the presence of a certain phase shall not be plotted on a
diagram. If you want to bring the suspended phase back to the diagram, use "RESTORE_
PHASE_IN_PLOT" on page 255.
Syntax SUSPEND_PHASE_IN_PLOT
Phase name: <Name of a phase>
Prompt
Specify the name of the phase to be suspended from the diagram.
TABULATE
For any entered table, this command gives a table of values from equilibria calculated with
a STEP command. It works only for a table that is entered in either the POLY or POST
module.
Syntax TABULATE
Name: <Name of a table entered in either POLY or POST>
Prompts
Specify a table name that is entered in either the POLY or POST module.
Output on screen or file /Screen/: <File name or return>
Specify a file name if you want to save on a file the table values along the
defined STEP calculation, or press <Enter> if want to see the table values
displayed.
POTENTIAL_DIAGRAM Module
In this section:
POTENTIAL_DIAGRAM 273
POTENTIAL_DIAGRAM
The POTENTIAL_DIAGRAM module (short name, the POTENTIAL module) is a potential phase
diagram calculation module.
If you have a metal-oxide/sulphide-gas interaction system, you might want to calculate a so-
called potential phase diagram given certain temperature and pressure. A potential diagram
uses the activities of two major species in the gaseous mixture phase as mapping variables.
The activities (that is, the fugacities at 1 bar) of these two species are typically set as the X-
and Y-axis when the diagram is plotted. The phase relations between the gaseous mixture
and various metal forms, metal-oxides, metal-sulphides, or other metal-bearing solids, are
represented by different fields controlled by these two potential quantities.
To enter the module, at the SYS prompt type GOTO_MODULE POTENTIAL.
There are no commands for this module. Follow the prompts and see "About
Potential Diagrams" on page 195 in the Thermo-Calc User Guide for details
about how to calculate using potential diagrams.
Syntax POTENTIAL_DIAGRAM
Database: /POT/
Prompts Press <Enter> and the program lists the available databases. Type one of the
database names and press <Enter> to select. The following default elements
are then based on the chosen database.
Matrix element: /Fe/
Temperature: /1000/
POURBAIX_DIAGRAM Commands
Also search the online help or see the Pourbaix diagrams educational material
and the Thermo-Calc User Guide.
In this section:
POURBAIX_DIAGRAM Commands
Also search the online help or see the Pourbaix diagrams educational material
and the Thermo-Calc User Guide.
See examples tcex40 and tcex53 in the Thermo-Calc Console Mode Examples
Guide.
After you enter the POURBAIX_DIAGRAM module, you are prompted with the following:
Need any instruction on the Pourbaix module? /N/:Y
the same heterogeneous interaction system that has been defined in a previous
POURBAIX or TDB-GES5-PLOY3-POST calculation.
Pause Options
After this information is displayed, you are prompted:
Enforce a PAUSE after plotting when running a MACRO? /N/:
where RNF is the Faraday constant (96485.309 C/mol), and AH2O is the molecular weight of
H2O (55.508435 g). MUR(ZE) is the electrochemical potential (ECP; in the unit of J/mol;
w.r.t. the standard hydrogen electrode). ACR(H+1,AQUEOUS) is the site-fraction-based
activity of the H+1 aqueous species in AQUEOUS solution phase, but AI(H+1,AQUEOUS) [that
equals ACR(H+1,AQUEOUS)*AH2O] is the molality-based activity of the H+1 aqueous species
that should be used for defining the pH quantity.
Within an aqueous-bearing heterogeneous interaction system, the fundamental system-
components must be H2O, H+1 and ZE, which are corresponding to the basic elements O &
H and the hypothetical electron (ZE) in the aqueous solution phase. For the additional
chemical elements in the system, their corresponding system-components shall be defined
as in their element forms (such as Fe, Cr, Mn, Ni, Na, Cl, S) or (for some) in their molecular
forms (e.g., NaCl, H2S). The reference state for the H2O component must always be defined
as the solvent species H2O in the AQUEOUS solution phase under the current temperature
(*) and 100000 Pascal (i.e., 1 bar). The reference states for the H+1 and ZE components are
by default set as their SER.
Various conventional properties of aqueous solute species I are converted in the following
manners:
ML = Y(AQUEOUS,I)*AH2O/YH2O
RC = ACR(I,AQUEOUS)*YH2O/Y(AQUEOUS,I)
AI = RC*ML
= ACR(I,AQUEOUS)*AH2O
where YH2O [i.e., Y(AQUEOUS,H2O)] and Y(AQUEOUS,I) are the site-fractions of solvent
H2O and solute species I.
LIST THE DEFINED AXIS-VARIABLES:
Axis No 1: LNACR(H+1)Min: -34.532525Max: 2.3025851 Inc: 0.8
Axis No 2: MUR(ZE) Min: -150000 Max: 200000 Inc: 7718.85
NOTE: The default settings (listed above) for two mapping variables [in terms of lnACR(H+1)
and MUR(ZE), and their minimum/maximum values and increment steps] are covering the
following pH-Eh ranges/steps:
pH: 0.00 -> 14.00, at a step of 0.35
Eh: -1.55 -> 2.07, at a step of 0.08 (V)
The maximum pH limit has been calculated precisely and determined automatically by the
POURBAIX-Module, as a function of the temperature-pressure conditions and initial bulk
compositions of the current defined interaction system.
Accept the default settings for two mapping variables? /Y/:
Any missing phase boundary you could possibly think of? /N/:
Change the pH/Eh steps for smoother curves? /N/:
Zoom in? /N/:
Change curve-label option for the diagram? /N/:
Add label-texts onto the Pourbaix diagram? /N/:
Change the subtitle of the diagram? /N/:
Change axis-texts? /N/:
Further refine the diagram in POST module? /N/:
Hard copy of the diagram? /N/:
Save X-Y coordinates of curve on text file? /N/:
Modify the diagram? /N/:
Any more diagram? /N/:
The following parameters are suitable for a STEPPING calculation for the defined aqueous-
bearing system. Choose one of them as the stepping variable:
T Temperature (C)
P Pressure (bar)
pH Acidity
where "Comp" is the name of a specific component as listed below. One should not use any
key component (H2O or H+1 or ZE) as such a stepping variable, because of that their
compositional definitions and variations are determined by the AQUEOUS solution phase in
the POURBAIX Module.
An interacting component defined as an element (such as Fe or Na or Cl) can be selected as
a stepping variable.
However, if you want to make a stepping calculation with a non-element chemical formula
(such as NaCl or CaS2) as the stepping variable, one must have made some necessary
modifications in the POLY3 Module, before reaching this point, by conducting some POLY3
commands as given below (as an example for the system Fe-Na-Cl-H-O):
POLY_3: def-component H2O H+1 ZE Fe NaCl Cl
POLY_3: set-ref-state H2O AQUEOUS * 1E5
POLY_3: set-ref-state ZE REF_ELEC * 1E5
POLY_3: change-status phase REF-ELEC=SUSPEND
POLY_3: set-cond b(H2O)=1000 n(H+1)=0 n(ZE)=0
POLY_3: set-cond P=1E5 T=298.15**
POLY_3: set-cond n(Fe)=1E-3 n(Cl)=0 n(NaCl)=3 **
** Here the P-T-n(Fe) conditions can be set as what you wanted, while the initial n(NaCl)
value must be set as between its minimum and maximum values that you are interested in.
Later on, it will be prompted for specifying the n(NaCl) Min-Max-Step values of the stepping
calculation.
Stepping variable: /T/:
Minimum temperature (C) /15/:
Maximum temperature (C) /35/:
Increment in temperature (C) /1/:
Change axis type? /N/:
Zoom in? /N/:
Change curve-label option for the diagram? /N/:
Add label-texts onto the specified diagram? /N/:
Change the subtitle of the diagram? /N/:
Change axis-texts? /N/:
Further refine the diagram in POST module? /N/:
REACTOR_SIMULATOR_3 Commands
In this section:
CREATE_DIVIDERS 285
CREATE_PIPES 285
CREATE_STAGE_BOXES 286
EXECUTE_POLY3_COMMAND 288
LIST_RECORDS 288
READ_WORKSPACE 288
SAVE_WORKSPACE 289
START_SIMULATION 290
CREATE_DIVIDERS
This is a command used with the REACTOR module.
Define the segment boundaries and the ways on how to distribute phases between various
segments and to split the feeds of heat and mass.
Syntax CREATE_DIVIDERS
Number of dividers /4/: <The number of dividers>
CREATE_PIPES
This is a command used with the REACTOR module.
Define the pipes between various segments and the ways on how the mass and heat
transport between the surroundings (with the record number as 0) and the reactor, among
various segments in the reactor, and along various dividers (segment boundaries in the
reactor).
Syntax CREATE_PIPES
From record: <A record number>
Specify a record number. If there are four segments in the reactor, these
records are available:
Prompts
l 0 surroundings
l 1-4 stage boxes (segments)
l 5-9 dividers (segment boundaries)
Specify another record number to which the mass or heat flows from the
current record (specified above). Before this prompt, a message shown on the
screen indicates what kind of mass or heat flow (according to the definitions of
stage boxes and dividers, which have already been created prior to this
command) should be specified in the pipe. This is repeated for all inputs
and/or outputs for mass and/or heat in current record.
CREATE_STAGE_BOXES
This is a command used with the REACTOR module.
Create several reaction stages as boxes (segments), where the you define the feed in either
mass input and initial temperature or heat input from surroundings, as well as the mass out
and initial temperature in each of the segments.
Syntax CREATE_STAGE_BOXES
Number of stage boxes /4/: <The number of stage boxes>
Prompts Specify the number of stage boxes in the reactor. Then define the feed of mass
and/or energy (from surroundings to) the rector.
Give feed to system: <Feed>
One feed (of mass or heat) to the reactor must be specified here. Two types of
feeds can be used:
Syntax CREATE_STAGE_BOXES
Specify other feeds (mass or energy) to the reactor. Press <Enter> to finish the
feed inputs, and then:
Give for stage box #
Now start to define the type of stage box (segment is specifically numbered as
#), and to specify a guess of initial temperature and an output for each phase
in the segment.
Type of box/Equilibrium/: <Type of box>
Give a guess of initial temperature (in K) for the current segment; press
<Enter> to accept the default.
Give initial amount: <Initial amount of mass or heat>
The initial amount of mass and/or heat in the current segment can be
specified here. Two types of initial amount can be used:
Specify initial amount (mass or energy) in the current segment. Press <Enter>
to finish the initial amount inputs, and then this message displays:
Each phase may have a separate output, give these
Syntax CREATE_STAGE_BOXES
Specify a phase that has a separate output, e.g. GAS; by pressing <Enter> to
accept that all REST phases do not have separate outputs. Then the program
asks for further definitions of all the other segments (one by one), repeating
some of the above questions, till the last segment in the reactor is defined.
EXECUTE_POLY3_COMMAND
This is a command used with the REACTOR module.
Syntax EXECUTE_POLY3_COMMAND
To directly use all kinds of POLY commands inside the REACTOR module. Any
legal "Equilibrium Calculations with the POLY_3 Module" on page 163 can be
entered.
LIST_RECORDS
This is a REACTOR_SIMULATOR_3 module command.
Syntax LIST_RECORDS
Lists all the already-created records for the reactor (including stage boxes,
dividers, pipes, etc.).
READ_WORKSPACE
This is a command used with the REACTOR module.
The REACTOR workspace (along with the related POLY3 and GIBBS workspaces) and the
simulated results from the SIMULATE command can be read by this command from a binary
file where they must be saved with "SAVE_WORKSPACE" on the next page. The *.RCT file is
not printable.
Syntax READ_WORKSPACE
SAVE_WORKSPACE
This command is for the POLY3, GES (GIBBS), and REACTOR_SIMULATOR_3
modules.
The REACTOR (and POLY3/GIBBS) workspaces are saved on a file with this command. In the
GIBBS workspace, all thermochemical data are stored. In the POLY3 workspace, all
thermochemical data, all conditions, changed status, entered symbols, etc., are stored. In
the REACTOR workspace, all definitions of multi-stage steady-state rector and its distribution
coefficients are saved, together with the GIBBS and POLY3 workspaces. After a SAVE
command, you can always return to the state when you issued the SAVE command by giving
a READ command.
After saving the REACTOR (and POLY3/GIBBS) workspaces on a file, you can leave the
program and at a later time READ the file and continue from the saved state.
Syntax SAVE_WORKSPACE
File name
A file name must be specified. The default extension of the RCT file is .RCT,
while or any other extension as required.
A Save window displays if a file name is not given after the command, so that
the path (in the Save in field) and File name can be specified. The Files of type
(i.e. RCT) cannot be changed. If there is already a file with the same file name
Syntax SAVE_WORKSPACE
START_SIMULATION
This is a command used with the REACTOR module.
Start the reactor simulation, and list the results for all iterations. The output for each
iteration consists of the conditions set in each segment, and you can also select some state
variables to list. After each loop, the temperatures in all segments are listed.
Syntax START_SIMULATION
Max number of loops /10/: <The max number of loops>
Prompts Give the max number of loops. The REACTOR module repeats the reactor
simulation until this loop number is reached.
Output to screen or file /Screen/: <File name or return>
Decide on either listing simulation results on the screen (by pressing <Enter>)
or saving them on an experimental file (with the default extension .EXP).
The conditions in each segment are not saved in the file, only on
the screen.
Output variables /T BP($)/: <Variable name(s)>
Specify the variable name(s) that is also listed on the screen together with the
conditions in each segment, or in the output experimental file.
Example Output
For a four-stage reactor, the output at a certain iteration may look like this:
H=-991745.1, P=100000, N(C)=2.8468936, N(N)=6.78399966E-4, N(O)=3.8171615,
N(SI)=1.77031
DEGREE OF FREEDOM 0
BP(GAS)=43.464341, BP(C1SI1_BETA)=25.175981, BP(C_S)=8.1588099,
BP(QUARTZ_S3)=68.193896
1.78803E+03
BP(GAS)=61.971213, BP(C1SI1_BETA)=38.144346, BP(QUARTZ_L)=66.230717 2.06569E+03
BP(GAS)=67.66262, BP(C1SI1_BETA)=35.480983, BP(QUARTZ_L)=58.219292
2.08691E+03
BP(GAS)=71.23129, BP(SI_L)=22.471787
2.20831E+03
H=-924751,87, P=100000, N(C)=2.0594558, N(N)=5.17999978E-4, N(O)=4.0142358,
N(SI)=2.7551438
DEGREE OF FREEDOM 0
BP(GAS)=43.464341, BP(C1SI1_BETA)=25.175981, BP(C_S)=8.1588098,
BP(QUARTZ_S3)=68.193896
1.78803E+03
BP(GAS)=61.971213, BP(C1SI1_BETA)=38.144346, BP(QUARTZ_L)=66.230717 2.06569E+03
BP(GAS)=67.66262, BP(C1SI1_BETA)=35.480983, BP(QUARTZ_L)=58.219292
2.08691E+03
BP(GAS)=71.23129, BP(SI_L)=22.471787
2.20831E+03
H=-813239., P=100000, N(C)=1.6592668, N(N)=3.59999988E-4, N(O)=3.7549293,
N(SI)=2.896635
DEGREE OF FREEDOM 0
BP(GAS)=43.464341, BP(C1SI1_BETA)=25.175981, BP(C_S)=8.1588098,
BP(QUARTZ_S3)=68.193896
1.78803E+03
BP(GAS)=61.971213, BP(C1SI1_BETA)=38.144346, BP(QUARTZ_L)=66.230717 2.06569E+03
BP(GAS)=67.66262, BP(C1SI1_BETA)=35.480983, BP(QUARTZ_L)=58.219292
2.08691E+03
BP(GAS)=71.23129, BP(SI_L)=22.471787
2.20831E+03
H=7374.6403, P=100000, N(C)=8.84911857E-1, N(N)=1.99999996E-4, N(O)=1.9379203,N
(SI)=1.853872
DEGREE OF FREEDOM 0
BP(GAS)=43.464341, BP(C1SI1_BETA)=25.175982, BP(C_S)=8.1588097,
BP(QUARTZ_S3)=68.193896
1.78803E+03
BP(GAS)=61.971213, BP(C1SI1_BETA)=38.144346, BP(QUARTZ_L)=66.230717 2.06569E+03
SCHEIL Module
Search the online help or see the Thermo-Calc User Guide included with this
PDF documentation set for details about how to calculate using Scheil either in
Graphical Mode (the Scheil Calculator) and Console Mode (the wizard Scheil
module).
If you also have a license for the Diffusion Module (DICTRA), you can import a
previously calculated Scheil segregation profile into the software using the
command INPUT_SCHEIL_PROFILE. Search the online help or see the Diffusion
Module (DICTRA) Command Reference Guide.
In this section:
BCC_TO_FCC_TRANSFORMATION 294
EVALUATE_SEGREGATION_PROFILE 294
GLOBAL_MINIMIZATION 295
LIQUID_PHASE_NAME 295
SAVE_FILE_NAME 295
SET_INTERACTIVE 295
SET_NUMERICAL_LIMITS 296
START_WIZARD 297
TEMPERATURE_STEP 298
TERMINATION_CRITERIA 298
BCC_TO_FCC_TRANSFORMATION
Use this command for the Scheil module to allow transformations in the solidified part of the
alloy caused by each of the components specified to be Fast Diffuser. It is recommended that
you only select this for steels.
Syntax BCC_TO_FCC_TRANSFORMATION
Allow bcc → fcc ? /N/
Prompt
The default is N. Enter Y to allow transformations.
EVALUATE_SEGREGATION_PROFILE
Use this command in order to evaluate a segregation profile while performing the Scheil
calculation. The Scheil calculation itself does not contain a spatial dimension. However, if it
is assumed that the molar volume is constant and equal for all elements, and if a length is
provided over which solidification occurs (for example the secondary dendrite arm spacing)
then the generated profile corresponds to the segregation that would be obtained under the
assumptions of a Scheil calculation. The grid is then equidistant and can be used as input for
a DICTRAsimulation.
The generated text file contains, on each line, the mole fractions of all elements in
alphabetical order at a certain grid point. If the composition is the same on several
consecutive lines it means that the composition of the then remaining liquid has reached a
state in which there are no degrees of freedom.
Syntax EVALUATE_SEGRATION_PROFILE
Evaluate segregation profile? /N/
GLOBAL_MINIMIZATION
Use this command for the Scheil module to use global minimization.
Syntax GLOBAL_MINIMIZATION
Use global minimization? /N/
LIQUID_PHASE_NAME
Use this command for the Scheil module to use the liquid phase name from the database
definitions or enter another phase name.
Syntax LIQUID_PHASE_NAME
Liquid phase name /Default/
Prompt Default selects the liquid phase from the database definitions, otherwise enter
a phase name.
SAVE_FILE_NAME
Use this command for the Scheil module to save the file. The files get the console number
added to this name, e.g. 005.->Scheil_006.poly3 and Scheil_segregation_profile.txt).
Syntax SAVE_FILE_NAME
SET_INTERACTIVE
Syntax SET_INTERACTIVE
Resets the input and output units to the initial values, i.e. keyboard and screen.
Add this as the last command to the macro files.
SET_NUMERICAL_LIMITS
Change the criteria for convergence. This is to speed up a calculation in a complex system.
If there is any convergence problem in finding a stable solution at any stage during a
calculation procedure enforced by "COMPUTE_EQUILIBRIUM" on page 190, "STEP_WITH_
OPTIONS" on page 227, "MAP" on page 212 or "ADVANCED_OPTIONS" on page 174), this
message displays:
Convergence problems, increasing smallest site-fraction from 1.00E-30 to hardware
precision 2.00E-14. You can restore using SET-NUMERICAL-LIMITS
This implies that smallest site fraction in the current POLY3 workspace is automatically
increased from the default value 1.00E-30 to the hardware-dependent precision (under
Linux, as 2.00E-14). For other subsequent POLY-module calculation in the current Thermo-
Calc (Console Mode) run, you can use this command to restore or reset the smallest site
fraction to the previous or another preferred value, as well as to reset other numerical
limits.
Syntax SET_NUMERICAL_LIMITS
Maximum number of iterations /200/: <xxx>
By default, the program tries 500 iterations before it gives up. As some models
Prompt give computation times of more than 1 CPU second/iteration, this number is
also used to check the CPU time and the calculation stops if 500 CPU
seconds/iterations are used.
Required accuracy /1E-6/: <yyy>
This is a relative accuracy, and the program requires that the relative
difference in each variable must be lower than this value before it has
converged. A larger value normally means fewer iterations but less accurate
solutions. The value should be at least one order of magnitude larger than the
machine precision.
Smallest fraction /1E-12/: <zzz>
This is the value assigned to constituents that are unstable. It is normally only in
the gas phase you can find such low fractions.
The default value for the smallest site-fractions is 1E-12 for all phases, except
for IDEAL phase with one sublattice site (such as the GAS mixture phase in
many databases) for which the default value is always as 1E-30 (unless you
have used the SET_NUMERICAL_LIMITS command to reset an even-lower value
(e.g. 1E-45, that is naturally enforced to all the phases in the system).
Syntax SET_NUMERICAL_LIMITS
Approximate driving force calculation for metastable phases /Y/:
<Y or N>
Normally the POLY module only requires that the set of stable phases is in
equilibrium in order to terminate the iterations. The metastable phases are
included in all iterations but these may not have reached their most favourable
composition and thus their driving forces may be only approximate
[corresponding to Y]. You can also force the calculation to converge for the
metastable phases by answering N if it is important that these driving forces
are correct, which may require more iterations, and the STEP and MAP
command may also terminate due to bad convergence in a metastable phase.
START_WIZARD
Use this command for the Scheil module to use the wizard with step-by-step prompts to
create a Scheil simulation.
This wizard walks you through a basic Scheil simulation. You are prompted for settings
including the major element or alloy, composition input in mass (weight) percent, the
alloying elements, the temperature, fast diffusing components, and whether any phase
should have a miscibility gap check.
Use the other commands to make changes to settings that are not included in this wizard.
l BCC_TO_FCC_TRANSFORMATION
l EVALUATE_SEGREGATION_PROFILE
l GLOBAL_MINIMIZATION
l LIQUID_PHASE_NAME
l SAVE_FILE_NAME
l STORED_COMPOSITION_TYPE
l TEMPERATURE_STEP
l TERMINATION_CRITERIA
Syntax START_WIZARD
Database /<Default>/:
Major element or alloy:
Composition input in mass (weight) percent? /Y/:
1st alloying element: Cr 10 C 1
Prompt
Next alloying element:
Temperature (C) /2000/:
Fast diffusing components: /None/: C
Should any phase have a miscibility gap check? /N/:
TEMPERATURE_STEP
Use this command for the Scheil module to define a temperature step.
Syntax TEMPERATURE_STEP
TERMINATION_CRITERIA
Use this command for the Scheil module to define the termination criteria for the fraction of
liquid or temperature.
Syntax TERMINATION_CRITERIA
ABOUT 300
CLOSE_FILE 300
DISPLAY_LICENSE_INFO 300
HP_CALCULATOR 300
OPEN_FILE 301
SET_COMMAND_UNITS 301
SET_ECHO 302
SET_GES_VERSION 302
SET_INTERACTIVE_MODE 302
SET_LOG_FILE 303
SET_PLOT_ENVIRONMENT 303
SET_TC_OPTIONS 304
STOP_ON_ERROR 305
ABOUT
Syntax ABOUT
Lists basic information about the development history and ownership of the
Thermo-Calc software as well as version information.
CLOSE_FILE
Close an opened text file.
Syntax CLOSE_FILE
Unit number: <Unit number>
Prompt
A unit number given in an OPEN_FILE command must be specified.
DISPLAY_LICENSE_INFO
Use this command to launch a license diagnostics program implemented in the SYS module.
It detects the license information for the Thermo-Calc installations on the current client
computer (and on the connected license server), and lists the details, including the current
status of available license file and all its included license features for the current installation
(s), as well as the Safenet Environment Variables and detailed Local (Client) Information, on
screen or into a textual file (*.TXT).
This is useful for a list of license details, and to obtain basic technical support by sending the
*.TXT file to [email protected]. If you are running a network client installation of
Thermo-Calc, you can see how many of the client example licenses that are currently
checked out and how many of them are left. You can also see which clients computers it is
that have checked these client example licenses out.
Syntax DISPLAY_LICENSE_INFO
Output to screen or file /Screen/: <Mylicenseinfo.txt>
Prompt Press <Enter> to display a list of license information or into a *.TXT file under a
specific file name which can later on be opened and edited by any basic text
editor.
HP_CALCULATOR
This is the QBA simple interactive calculator using reverse Polish notations.
Syntax HP_CALCULATOR
Available OPCODEs (HPC codes) are listed by entering the command HELP.
Use the BACK command to quit the HP_CALCULATOR and go back to the SYS
module.
Input are numbers, + - * / and ^ and OPCODEs. Several numbers an operations
can be given on one line. The content of the X register is displayed after each
operation.
For example, to compute 2*EXP(1.5**3-30000/(8*1273)), you should input the
following: 30000 8/1273/chs 1.5 3 ^ + exp 2 *
OPEN_FILE
A text file is opened for use in other commands where a unit number is necessary. The
program automatically assigns a unit number.
Syntax OPEN_FILE
File name: <File name>
Prompt
A legal file name must be specified.
SET_COMMAND_UNITS
This command is useful for reading inputs already prepared by a textual editor on a file.
Such inputs can be a table of values or a large number of parameters. The file must be
opened with "OPEN_FILE" above.
The first two lines of an input file are skipped before any input is read.
Syntax SET_COMMAND_UNIT
Input unit number /5/: <Input unit number>
Specify the input unit number returned from an OPEN_FILE command. The next
Prompt command is taken from the file connected to this unit number. The last
command on such a file must be EXIT or SET_INTERACTIVE when you are in
POLY, POST or SYS module, in order to go back to read input from the
keyboard. The default value is the current input unit.
Output unit number /6/: <Output unit name>
SET_ECHO
Syntax SET_ECHO
Add this command at the beginning of a Console Mode MACRO *.TCM file (or
to the primary MACRO file on the top level if any sub-level(s) of MACRO files
are used).
Automatically displays on screen the complete details of various commands in
all the sequential operations in the software, that are enforced according to the
MACRO file(s).
SET_GES_VERSION
This command enables switching between the default standard version (5) Gibbs Energy
System (GES) calculation engine and an experimental version (6).
Syntax SET_GES_VERSION
USE GES VERSION 5 OR 6 /5/:
Prompt
The default is version 5.
SET_INTERACTIVE_MODE
Syntax SET_INTERACTIVE_MODE
Resets the input and output units to their initial values, i.e. keyboard and screen.
SET_LOG_FILE
Use it to save, in a basic text file, everything typed in the Thermo-Calc software. When
having problems executing a command sequence, this command can be used to save the
command typed onto a log file. The manager can then check what the problem might be.
This command also makes the system echo the full command for all commands typed. This
feature is useful when demonstrating the system since the abbreviated commands are often
difficult.
The saved log file can then be edited as a MACRO file by using a basic text editor. This is
useful to run the MACRO file(s) for similar calculations (the same system but slightly varied
temperature-pressure-composition conditions), or run the example MACRO files.
Syntax SET_LOG_FILE
A Save window opens to specify a file name for the *.LOG file, so that the path
(in the Save in field) and File name can be specified. If an *.LOG file with the
Prompt
same name exists in the current working directory, it is overwritten. The Files
of type (i.e. LOG) cannot be changed. Click Save or Cancel as applicable.
SET_PLOT_ENVIRONMENT
Allows you, preferably in the initiation file tc.ini, to set the plot devices you normally have
access to as this can vary for different Thermo-Calc installations.
Syntax SET_PLOT_ENVIRONMENT
Default plotdevice number /Default number/: <Device number>
The number given is unique for each type of graphical device. For plotting
Prompts various types of Thermo-Calc graphs on screen, the default graphical device
number should normally be selected. A question mark ? gives you a list of all
available graphical devices used in the Thermo-Calc Console Mode.
Pseudo file name: <Pseudo-file name>
The name given here is a symbol which can be used to refer to a physical
graphics device when asked for graphical output file.
Syntax SET_PLOT_ENVIRONMENT
Plotdevice number /1/: <Device number>
The name of the graphical device on system level (name of file or printer).
Example
SET_PLOT_ENVIRONMENT 1 lasp 5 a0tr,,
This example sets the default plot device number to 1, and defines an alias
named lasp with plot device 5 and connected to a printer named a0tr.
SET_TC_OPTIONS
Predefine the default values of three general Thermo-Calc options for performing all the
sequential single-points, stepping and mapping calculations.
Syntax SET_TC_OPTIONS
Use_global_minimization /Y/: <Y or N>
The integer number determines how often the Global Minimization should be
used during calculations with "STEP_WITH_OPTIONS" on page 227 and "MAP"
on page 212. If it is set to 0 (zero), the recommended global test interval is
used: i.e. every tenth step and at each phase change during STEP calculations,
and only at node points during MAP calculations. Any other positive integer
number, n, suggests it performs Global Minimization tests at every nth step
during STEP and MAP calculations. Of course, the Global Minimization test is
always carried out at a phase change or a node point. The Thermo-Calc
Console Mode is initially configured with 0 (zero) as the default value, but such
a configuration for the default value can be changed by this option.
Automatically_add_initial_equilibria /Y/: <Y or N>
Syntax SET_TC_OPTIONS
the mapping procedure itself takes place. This mesh is only available when the
two independent axis-variables have already been defined by the POLY
command.
Set_axis_variable
For Y the POLY module always enforces the automatic procedures for adding
initial equilibrium points during mapping. For N no initial equilibrium points
are then added during mapping.
STOP_ON_ERROR
Useful for batch jobs in order to prevent that an erroneous sequence of commands to the
program causes waste of computer activity.
Syntax STOP_ON_ERROR
Give the preferred argument (ON or OFF) after the STOP command. If the
default argument ON is given, the program terminates after an illegal or
ambiguous command. It is possible to reset the effect of this command by giving
the argument OFF.
TABULATION_REACTION Commands
"Tabulation of Chemical Substances, Phases or Reactions" on page 209 in the
Thermo-Calc User Guide.
In this section:
ENTER_FUNCTION 307
ENTER_REACTION 308
LIST_SUBSTANCES 310
SET_ENERGY_UNIT 312
SET_PLOT_FORMAT 312
SWITCH_DATABASE 313
TABULATE 315
TABULATE_DERIVATIVES 315
TABULATE_REACTION 320
TABULATE_SUBSTANCE 322
ENTER_FUNCTION
Used to define a new thermodynamic function to be included in the sixth column of tabular
output. The last entered function is listed in the 6th column of all tables, and can be plotted
(if choosing the Plot Column value 6) in all graphs, for all subsequently tabulated substances
or reactions.
Syntax ENTER_FUNCTION
Name: <Name>
Prompt
Function: <Definition>
Example Output
For the pure substance Fe (using the SSUB database), by entering a function as G+T*S-P*V,
the following table is obtained by typing <Enter> in the prompt Output file /SCREEN/:,
and the figure by typing 6 in the prompt Plot column /2/:
TAB: ENTER-FUNCTION
Name: InEnergy
Function: G+T*S-P*V;
TAB: TABULATE_SUBSTANCE
Substance (phase): Fe
Pressure /100000/: <Enter>
Low temperature limit /298.15/: <Enter>
High temperature limit /2000/: <Enter>
Step in temperature /100/: <Enter>
Output file /try1/: try2
Graphical output? /Y/: <Enter>
Plot column? /2/: 6
ENTER_REACTION
This is the same as "TABULATE_REACTION" on page 320 in that both the chemical reaction
can be specified and the thermodynamic property changes for the reaction can be
generated as a table, and plotted as a graph or saved as an experimental file (with an
extension of .EXP). The thermodynamic data are automatically retrieved from the SSUB5
database (by default), or the current database set by "SWITCH_DATABASE" on page 22 (thus
there is no need to use the DATA module before this command). You can select any other
database by using the SWITCH_DATABASE command in the TAB module. The rules to specify
a reaction are the same as in the command TABULATE_REACTION.
Syntax ENTER_REACTION
Same reaction? /Y/: <Y or N>
Prompts This displays if there is at least one reaction already defined either by the
command ENTER_REACTION or TABULATE_REACTION. For Y the next prompt
for defining reaction is not asked.
Reaction: <Chemical reaction equation> & <RA+RB=PC+PD>
If you type Return for screen a list of thermodynamic property changes for
the defined/chosen reaction is shown up as a table (which is demonstrated in
the example outputs given below), and the command is terminated.
If typing a file name, the table is displayed and saved as an *.EXP or an *.TAB
file. Then prompts:
Graphical output /Y/: <Y or N>
For N a table is output to the screen and this table is saved as a basic text file
with the default extension .TAB under the current working directory. In this
case, the graph cannot be plotted.
For Y a table is created with all thermodynamic functions as normal (which is
displayed on screen) and generates a graph with temperature on the X-axis
and a chosen property on a certain column in the table on the Y-axis (which is
plotted on screen and saved as an *.EXP file), and it further asks which column
is to be plotted on the resulting graph:
Plot column? /2/: <1 or 2 or 3 or 4 or 5 or 6>
Specify which property (as column number) to be plotted as the Y-axis (versus
temperature as X-axis) as a graph on the screen. Simultaneously, all tabulated
Syntax ENTER_REACTION
properties and the Y-axis setting (i.e. the plotted column) for the graph is
written into an *.EXP file using the DATAPLOT format. The default column 2 is
heat capacity, 3 enthalpy, 4 entropy and 5 Gibbs energy, and the additional
column 6 is a user-entered function. The table displays on the screen. The plot
then displays on the screen, followed by a POST prompt. The POST module
(postprocessor) automatically opens, and all types of the POST-module
commands to refine the plotted diagram may be used. Possibilities include
scaling the X/Y-axis, changing the X/Y-axis texts, etc. The command BACK or
EXIT at the POST prompt always takes you back to the TAB module.
LIST_SUBSTANCES
This is a TAB module command.
List all species in the current database with a certain set of elements. This is useful to specify
species as pure substances in the command "TABULATE_SUBSTANCE" on page 322.
Syntax LIST_SUBSTANCES
With elements /*/ <* or a set of elements>
All species (not phases) in the current database are searched. If the answer is
Y (the default), no other elements are allowed in searching, except for those
specified. If N all species containing at least one of the specified elements are
listed.
Example Output
For the SSOL5 database, there are different lists, as shown below:
TAB: l-sub
With elements /*/: <Enter>
VA AG AL
AM AS AU
B BA BE BI BR C
CA CD CE
CL CO CR
CS CU DY
ER EU F
FE GA GD
GE H HF
HG HO I
IN IR K
LA LI LU
MG MN MO
NA NB
ND NI NP
OS P
PA PB PD
PR PT PU
RB RE RH
RU S SB
SC SE SI
SM SN SR
TA TB TC
TE TH TI
TL TM U
V W Y
YB ZN ZR
C1 C2 C3
C4 C5 C6
C7 N2 O2
P1 P2 P4
NA/+1 K/+1 CL/-1
H2O H1/+ LI1/+
CS1/+ RB1/+ O1H1/-
F1/- BR1/- I1/-
H1/+1 H1O1/-1 SI1O2 CA1O1 TAB:
TAB: l-sub
SET_ENERGY_UNIT
Set the energy unit as calories or Joule, in all the subsequent outputs (tables, graphs, and
files) in the current calculation operation.
Syntax SET_ENERGY_UNIT
SET_PLOT_FORMAT
Set the plotting format while the result is plotted on screen or the file is saved as EXP file
[using DATAPLOT graphical format] and TAB file (as a basic text file and as displayed on
screen).
Syntax SET_PLOT_FORMAT
Options Also set the format of the graphical output to different graphical devices. The
default unit 22 (1 for legacy Windows, and 9 for legacy Linux) may be altered
with the SET_PLOT_ENVIRONMENT command in the SYS monitor or by the
TC.INI file.
SWITCH_DATABASE
By default, the TAB module always automatically retrieves thermodynamic data for
substances or reactant/product substances in a defined reaction, or for pure phases or ideal
solution phases, from the SSUB Substances Database. However, you can select
thermodynamic data for complex non-ideal solution phases from another database. This is
possible with this command.
This command switches (or changes) from the current database to a new one, and
reinitializes the entire TAB module for defining a substance or reaction and the GIBBS
workspace for storing retrieved data. All the directly connected databases as predefined by
the original database initiation file (TC_INITD.TDB file in the /DATA/ area for Windows
environments, or the initd.tdb file in the \data\ area for Linux) are listed by pressing the
<Enter> key without giving any argument. You can also supply your own database by giving
the argument USER and then the database name and, if it is not located in the current
working directory, its correct path.
This command (when required to use another database for subsequent tabulations) must be
used before executing the TAB commands "TABULATE_SUBSTANCE" on page 322 for
substances, and "ENTER_REACTION" on page 308 or "TABULATE_REACTION" on page 320
for reactions.
When a predefined database or an appropriate USER database is switched on, the DATA
command "GET_DATA" on page 16 is automatically executed; therefore, the TAB module
immediately displays a message
Example
Example of TAB module message with the PSUB database specified
TAB: SW PSUB
THERMODYNAMIC DATABASE Module running on PC/Windows NT
Current database: TC Public Substances Database
VA DEFINED
REINITIATING GES5
VA DEFINED
ELEMENTS
SPECIES
PHASES
PARAMETERS
FUNCTIONS
-OK- TAB:
Syntax SWITCH_DATABASE
Database /XYZ/: <new database name>
Specify a New database name. XYZ stands for the default SSUB database or the
current database which is switched on. If an appropriate database name is not
given and the USER option is not used, this list displays:
Prompt Use one of these databases
PURE4 = SGTE Pure Elements Database v4
SSUB3 = SGTE Substances Database v3
USER = user defined database
DATABASE NAME /XYN/: <new database name>
Syntax SWITCH_DATABASE
After this command, those commands to define systems (in terms of either
elements or species), to reject/restore phases or species, retrieve data, as well
as to append data from additional database(s), can be done.
TABULATE
Gives the values of an already-defined table (with various properties varied with the
stepping axis variable) from equilibria calculated with a STEP command. You can tabulate a
table even if the table is entered after the STEP calculation.
Syntax TABULATE
Name: <Name of a defined table>
Prompts
The name of the table must be given. The table must be ENTERED.
Output to Screen or file /Screen/: <File name>
The table can be listed on the screen (by pressing <Enter>), on a file
(the file name must be specified here).
TABULATE_DERIVATIVES
This command is mainly for system debugging purposes and for experienced users. It
automatically calculates all partial derivatives for a pure phase or solution phase at a given
composition.
Syntax TABULATE_DERIVATIVES
Phase name /XXXX/: <Name of the phase>
Example
For example, these prompts and inputs can be seen for a LIQUID solution
phase (from the SSOL database) within the Fe-Cr-Ni-C-N-O framework (Note
that by default, the unprompted Ni species are assigned as the rest):
FRACTION OF CONSTITUENT (RETURN FOR PROMPT): <RETURN> C /1/: .05
CR /1/: .1
FE /1/: < RETURN>
SUM OF FRACTIONS EXCEED UNITY, PLEASE REENTER
FE /1/: .8
N /1/: .005
For a solution phase with two or more sublattices (such as FCC alloy solution,
and ION_LIQ ionic liquid solution), it first asks for which sublattice the site-
fractions of constituents shall be specified: the default value 0 for all possible
sublattices, and a given positive number for a specific sublattice (of course,
this number must be reasonable for the currently specified phase, i.e. it must
be smaller than the total sublattice number of the phase). Then, for the given
sublattice or for all sublattices, it prompts for all the necessary inputs of site-
Syntax TABULATE_DERIVATIVES
fractions for the possible constituents on each sublattice n-1 times if there are
n species on such a sublattice in the defined phase; the nth species on each of
the sublattices is automatically assigned as the rest. For example, the
following prompts and inputs can be seen for an FCC solution phase (from the
SSOL5 database) within the Fe-Cr-Ni-C-N-O framework (Note that by default,
the unprompted O species on its sublattice 1 and VA on its sublattice 2 are
assigned as the rest):
SPECIFY SUBLATTICE (0 FOR ALL) /0/: <RETURN>
FRACTIONS IN SUBLATTICE 1
CR /1/: .1
FE /1/: .8
NI /1/: .0995
FRACTIONS IN SUBLATTICE 2
C /1/: .05
N /1/: .05
Example Output
For the FCC phase in the Fe-Cr-Ni-C-N-O system (using the SSOL database), the following
table is obtained at a specified composition:
TAB: TAB_DER
Phase name /BCC/: FCC
SPECIFY SUBLATTICE (0 FOR ALL) /0/: <Enter>
FRACTIONS IN SUBLATTICE 1
CR /1/: .1
FE /1/: .8
NI /1/: .3
SUM OF FRACTIONS EXCEED UNITY, PLEASE REENTER
NI /0/: .0995
FRACTIONS IN SUBLATTICE 2
C /1/: .05
N /1/: .05
Temperature /1800/: <Enter>
Pressure /100000/: <Enter>
Gibbs energy: ..................... -1.27432533E+05
Helmholz energy: .................. -1.27433205E+05
Enthalpy: ......................... 5.95773994E+04
Internal energy: .................. 5.95767279E+04
Entropy: .......................... 1.03894407E+02
Molar volume: ..................... 6.71473258E-06
Thermal expansivity: .............. 7.63886416E-05
Isothermal compressibility: ....... 6.02925387E-12
Heat capacity at constant pressure: 4.33555074E+01
First partial derivative with respect to CR in sublattice 1 of Gibbs energy:
................ -1.26034739E+05 of enthalpy: ....................
4.63000206E+04 of entropy: ..................... 9.57415334E+01 of volume:
...................... 6.87203263E-06
Second partial derivative of Gibbs energy with respect to also
CR in 1: 1.54392858E+05
FE in 1: -1.53353158E+04
NI in 1: -1.71750366E+04
O in 1: 0.00000000E+00
C in 2: -1.82016870E+05
in 2: -3.73062665E+05
VA in 2: -9.36260878E+04
irst partial derivative with respect to FE in sublattice 1 of Gibbs energy:
................ -1.02869265E+05
of enthalpy: .................... 6.11738912E+04 of entropy:
..................... 9.11350866E+01 of volume: ......................
7.53441165E-06
Second partial derivative of Gibbs energy with respect to also
FE in 1: 1.82508696E+04
NI in 1: -3.07043434E+03
in 1: 0.00000000E+00
C in 2: -1.36027071E+05
in 2: -2.13007485E+05
VA in 2: -1.11741180E+05
TABULATE_REACTION
Tabulate thermodynamic property changes for a chemical reaction as a table, or variation
of one chosen property can be plotted against temperature as a graph, or saved as an
experimental file (with an extension of .EXP). The thermodynamic data are automatically
retrieved from the SSUB5 database (by default), or the current database set by the SWITCH_
DATABASE command (thus there is no need to use the DATA module before this command).
You can select any other database by using "SWITCH_DATABASE" on page 313 in the TAB
module.
It is important to remember the rules to specify a reaction:
l The reaction is specified, by giving the reactants and products, such as Ga+S=GaS,
5Al+2Fe=Al5Fe2.
l Under Linux environments, the notation for a chemical formula treats upper and
lower cases as the same (such as ga+s=GaS, 5Al+2Fe=al5fe2); but under Windows,
the TAB module only accepts upper cases, e.g. GA+S=GAS, 5AL+2FE=AL5FE2.
l Elements with a single letter symbol must be followed by a stoichiometry factor,
even if it is 1; thus, the symbol CO is taken as cobalt, carbon monoxide must be given
as C1O1 (or O1C1).
l All the reactants and products must be defined as species-stoichiometries in the
currently-used database; in other words, the reaction definition only accepts already-
defined species-stoichiometries as reactants and products. For example, if a
database does not have a species defined with a stoichiometry of Al5Fe2 {e.g. the Al
and Fe (but not Al5Fe2) may be defined as species, and the Al5Fe2 phase may be
defined as a two-sublattice stoichiometric phase [Al]5[Fe]2, rather than a single
sublattice stoichiometric phase [Al5Fe2]}, then the reaction 5Al+2Fe=Al5Fe2 cannot
be tabulated.
l Make sure that the Gibbs free energy expression for a stoichiometric phase is really
corresponding to the species-stoichiometry. For example, if a database has a
definition of Function GAL5FE2 for 1/7 of the AL5FE2 formula, then the relation G
(Al5Fe2)=7*GAL5FE2 must be defined; otherwise, the tabulated thermodynamic
properties for the reaction 5Al+2Fe=Al5Fe2 is wrong.
Syntax TABULATE_REACTION
Same reaction? /Y/: <Y or N>
Prompts This prompt displays if there is at least one reaction already defined either
with the commands "ENTER_REACTION" on page 308 or TABULATE_
REACTION. If you answer Y, then the next prompt is not asked.
Reaction: <Chemical reaction equation> & <RA+RB=PC+PD>
Syntax TABULATE_REACTION
If you type Return for screen, a list of thermodynamic property changes for
the defined/chosen reaction is shown as a table (which is demonstrated in the
example outputs given below), and the command is terminated.
If typing a file name, the table is both displayed on screen and saved as an
*.EXP or a *.TAB file, and the program prompts:
Graphical output /Y/: <Y or N>
l For N a table is output to the screen, and the same table is saved as a
basic text file with the default extension .TAB under the current
working directory. In this case, the graph cannot be plotted.
l For Y a table is created with all thermodynamic functions as normal
(which is displayed on screen) and generates a graph with temperature
on the X-axis and a chosen property on a certain column in the table on
the Y-axis (which is plotted on screen and saved as an *.EXP file), and it
also asks which column is to be plotted on the resulting graph:
Specify which property (as column number) to be plotted as the Y-axis (versus
temperature as X-axis) as a graph on the screen. Simultaneously, all tabulated
properties and the Y-axis setting (i.e. the plotted column) for the graph is
written into an *.EXP file using the DATAPLOT format. The default column 2 is
heat capacity, 3 enthalpy, 4 entropy and 5 Gibbs energy, and the additional
column 6 is a user-entered function. The table displays on the screen. The plot
then displays on the screen, followed by a POST: prompt. The POST module
(postprocessor) automatically opens, and all types of the POST-module
commands to refine the plotted diagram may be used. Possibilities include
scaling the X/Y-axis, changing the X/Y-axis texts, etc. The command BACK or
EXIT at the POST: prompt always takes you back to the TAB module.
Syntax TABULATE_REACTION
Example Output
For the reaction Ga+S=GaS (using the SSUB5 database), the following table is obtained by
typing <Enter> in the prompt Output file /SCREEN/, and the figure by typing 2 in the prompt
Plot column /2/:
O U T P U T F R O M T H E R M O - C A L C
Reaction: S+GA=GA1S1
stable as S_S
GA stable as GA_S
GA1S1 stable as GA1S1_S
Delta-Cp Delta-H Delta-S Delta-G
(K) (Joule/K) (Joule) (Joule/K) (Joule)
***************************************************************
298.15 -2.79489E+00 -2.09200E+05 -1.50580E+01 -2.04710E+05
300.00 -2.87516E+00 -2.09205E+05 -1.50755E+01 -2.04683E+05
302. ---- GA becomes GA_L ,delta-H = 5589.80
367. ---- S becomes S_S2 ,delta-H = 401.00
389. ---- S becomes S_L ,delta-H = 1721.00
400.00 -1.22278E+01 -2.17521E+05 -4.07488E+01 -2.01222E+05
500.00 -1.57686E+01 -2.19323E+05 -4.47280E+01 -1.96959E+05
600.00 -1.02518E+01 -2.20583E+05 -4.70410E+01 -1.92359E+05
700.00 -6.58954E+00 -2.21430E+05 -4.83534E+01 -1.87583E+05
800.00 -4.46246E+00 -2.21963E+05 -4.90686E+01 -1.82709E+05
900.00 -2.82671E+00 -2.22328E+05 -4.94995E+01 -1.77778E+05
1000.00 -1.21787E+00 -2.22530E+05 -4.97138E+01 -1.72816E+05
1100.00 3.71702E-01 -2.22572E+05 -4.97552E+01 -1.67841E+05
TABULATE_SUBSTANCE
Tabulate thermodynamic properties of a substance (with a given chemical formula but it is
not certain in which phase/state it may form) or a pure stoichiometric phase (getting data
from a specific substance database such as SSUB5, or from a specific solution database such
as SSOL5 and TCFE8), or of a solution phase with a fixed composition (getting data from a
specific solution database such as SSOL5 and TCFE8), under a constant pressure and various
temperatures.
In case of a pure stoichiometric phase or a solution phase with a fixed composition, you must
already define the system and get thermodynamic data from an appropriate solution
database in the DATA module before using this TAB command. The phase name can be given
either upper or lower or mixed cases, and can be abbreviated until it is unique, e.g. fcc,
BCC, Liq, cem, Al5Fe2, etc. as the SSOL database is used for the tabulations, or GAS, FE-S,
wustite, Fe2O3-hem, etc. as the SSUB database is used. The module then optionally goes
through a specific sublattice or all the possible sublattices for the specified phase, as well as
through the whole framework of a currently defined system (including all the defined
elements/species, as well as the default defined vacancy and electron if necessary for the
current database), when it prompts for inputs of site fractions for various species possibly
occupying such sublattices. Therefore, you can tabulate thermodynamic properties for a
pure phase, or for a solution phase as a pure end-member (with a composition definition for
the corresponding non-interacting species on all necessary sublattices in the end-member),
or for a solution phase as a real solution (with a composition definition for related
interacting species on all necessary sublattices in the solution).
Moreover, the variation for one of the tabulated properties for a substance, a pure
stoichiometric phase, or a solution phase with a fixed composition can be plotted against
temperature as a graph or saved as an experimental file (with an extension of .EXP).
Syntax TABULATE_SUBSTANCE
Substance (phase): <Name of the species or phase>
In case of a substance, give its chemical formula, e.g. Fe, H2, C1H6, FeC1,
CaC1O3, MgSiO3, etc. When the TABULATE_SUBSTANCE <SUBSTANCE>
command sequence is used for the first time in the TAB module, it always uses
the SSUB Substances Database as the default database. If the SSUB database is
not available for the current Thermo-Calc installation and a specific database
has not been switched on yet, it may prompt to specify an appropriate
substance or solution database (e.g. typing SSUB2, SSUB3, SSUB4, SSUB5; SSOL2,
SSOL4, SSOL5; TCFE3, TCFE4, TCFE5, TCFE6, TCFE7, TCFE8 etc.). Prior to this
command, you can also use the "SWITCH_DATABASE" on page 313 command in
the TAB module to set the current database. If a solution database is set as the
current database, only the neutral species that are valid substance standing by
themselves as phases can be tabulated.
For a pure stoichiometric phase defined with one single sublattice (such as Fe-S,
Wustite, and Fe2O3-Hematite), no further composition definition is needed.
For a solution phase defined with one sublattice (such as AQUEOUS solution,
GAS mixture and SLAG solution), it requests n-1 site-fraction inputs for the
phase constituents (if there are n species in the defined phase within the whole
framework of currently defined system, including all the defined
elements/species, as well as the default defined vacancy and electron if
necessary for the current database); the nth species is automatically assigned
Syntax TABULATE_SUBSTANCE
as the rest.
The sum of input site fractions must not exceed unity. For example,
the following prompts and inputs can be seen for a LIQUID solution
phase (from the SSOL database) within the Fe-Cr-Ni-C-N-O
framework (Note that by default, the unprompted Ni species is
assigned as the rest):
For a pure stoichiometric phase defined with two or more sublattices (such as
Al5Fe2 inter-metallic stoichiometric phase) and for a solution phase defined
with two or more sublattices (such as FCC alloy solution, and ION_LIQ ionic
liquid solution, Al5Fe4 inter-metallic solution phase), it first asks for which
sublattice the site-fractions of constituents shall be specified: the default value
0 for all possible sublattices, and a given positive number for a specific
sublattice (this number must be reasonable for the currently specified phase,
i.e. it must be smaller than the total sublattice number of the phase). Then, for
the given sublattice or for all sublattices, it prompts for all the necessary inputs
of site-fractions for the possible constituents on each sublattice n-1 times if
there are n species on such a sublattice in the defined phase; the nth species on
each of the sublattices are automatically assigned as the rest. For example,
these prompts and inputs can be seen for an FCC solution phase (from the SSOL
database) within the Fe-Cr-Ni-C-N-O framework (Note that by default, the
unprompted O species on its sublattice 1 and VA on its sublattice 2 is assigned as
the rest):
Specify sublattice (0 for all) /0/: <Return>
FRACTIONS IN SUBLATTICE 1
CR /1/: .1
FE /1/: .8
Syntax TABULATE_SUBSTANCE
NI /1/: .0995
FRACTIONS IN SUBLATTICE 2
C /1/: .05
N /1/: .05
If you type Return for screen a list of basic thermodynamic functions for the
chosen substance or for the specified pure or solution phase with the fixed
composition is shown up as a table (which is demonstrated in the example
outputs given below), and the command is terminated.
If typing a file name, the table is both displayed on screen and saved as an
*.EXP or a *.TAB file, and the program further prompts:
Graphical output /Y/: <Y or N>
l For N a table is output to the screen, and the same table is saved as a
basic text file with the default extension .TAB under the current working
directory. In this case, the graph cannot be plotted.
l For Y a table is created with all the thermodynamic functions as normal
(which is displayed on screen) as well as generates a graph with
temperature on the X-axis and a chosen property on a certain column in
the table on the Y-axis (which is plotted on screen and saved as an *.EXP
file), and it also ask which column is to be plotted on the resulting
graph:
Specify which property (as column number) to be plotted as the Y-axis (versus
Syntax TABULATE_SUBSTANCE
Example Output 1
For the FCC alloy phase as a non-ideal solution with a fixed composition
[Fe0.80,Cr0.10,Ni0.0995,O0.005][C0.05,N0.05,VA0.90]
The following table is obtained by typing Return for screen at the prompt Output file
/SCREEN/:
O U T P U T F R O M T H E R M O - C A L C
Phase : FCC Pressure : 100000.00
Specie: CR1/--2
***************************************************************
T Cp H S G
(K) (Joule/K) (Joule) (Joule/K) (Joule)
***************************************************************
298.15 2.70517E+01 6.23824E+03 4.40241E+01 -6.88755E+03
300.00 2.70889E+01 6.28832E+03 4.41916E+01 -6.96915E+03
400.00 2.87304E+01 9.08420E+03 5.22235E+01 -1.18052E+04
500.00 2.99904E+01 1.20222E+04 5.87742E+01 -1.73649E+04
600.00 3.10889E+01 1.50770E+04 6.43408E+01 -2.35275E+04
700.00 3.21116E+01 1.82375E+04 6.92106E+01 -3.02100E+04
800.00 3.30994E+01 2.14982E+04 7.35633E+01 -3.73524E+04
900.00 3.40742E+01 2.48569E+04 7.75182E+01 -4.49094E+04
Example Output 2
For a phase, as either an end-member or real solution, the listed species name
is irrelevant.
For the H2 species as a pure substance (using the SSUB5 database), the following table is
obtained by typing Return for screen at the prompt Output file /SCREEN/, whilst the
figure is generated by typing 5 at the prompt Plot column /2/:
O U T P U T F R O M T H E R M O - C A L C
Phase : GAS Pressure : 100000.00
Specie: H2
*************************************************************** T Cp
H S G
(K) (Joule/K) (Joule) (Joule/K) (Joule)
*************************************************************** 298.15
2.88369E+01 3.17684E-06 1.30680E+02 -3.89622E+04
300.00 2.88473E+01 5.33580E+01 1.30858E+02 -3.92042E+04
400.00 2.91591E+01 2.95686E+03 1.39209E+02 -5.27268E+04
500.00 2.92650E+01 5.87874E+03 1.45729E+02 -6.69856E+04
600.00 2.93441E+01 8.80908E+03 1.51071E+02 -8.18336E+04
700.00 2.94579E+01 1.17488E+04 1.55602E+02 -9.71730E+04
800.00 2.96320E+01 1.47027E+04 1.59547E+02 -1.12935E+05
900.00 2.98786E+01 1.76776E+04 1.63050E+02 -1.29068E+05
1000.00 3.02043E+01 2.06810E+04 1.66214E+02 -1.45533E+05
1100.00 3.05319E+01 2.37171E+04 1.69108E+02 -1.62302E+05
TERNARY_DIAGRAM Commands
In this section:
TERNARY_DIAGRAM Module
The TERNARY_DIAGRAM module (short name, the TERN module) enables you to quickly
calculate a simple ternary phase diagram.
To enter the module, at the SYS prompt type GOTO_MODULE TERNARY. There are no other
commands for this module. Follow the prompts to plot a diagram.
Also see the Graphical Mode equivalent to this command, "Ternary Calculator"
on page 139 as described in the Thermo-Calc User Guide.
Syntax TERNARY_DIAGRAM
In this section:
Thermodynamic Variables
There are different thermodynamic variables in Thermo-Calc. Some are state variables, for
example temperature, pressure and mole fraction. These characterize the equilibrium state
of a system. You set them when you define your system in the POLY module before
performing a calculation. They are also used in other modules such as DATA, GIBBS and
PARROT. State variables that involve components can be used for the defined components,
but not for any species. (To define new components in a defined system, use "DEFINE_
COMPONENTS" on page 196).
Other useful thermodynamic variables are derive from state variables with a mathematical
function. Some derived variables are pre-defined by Thermo-Calc, such as normalized
energetic and compositional extensive state variables for example. You use these by
appending various normalizing suffixes to abbreviations that are associated with the state
variables.
Thermodynamic variables can also be divided into extensive variables and intensive
variables. An extensive variable is a variable whose value depends on the size of the system,
whereas an intensive variable is a variable whose value is independent of system size.
More information about thermodynamic variables is available in the online help in Thermo-
Calc Console Mode. Use the command "INFORMATION" on page 5, with a subject keyword
such as one of the following as argument: STATE VARIABLES, INTENSIVE VARIABLES,
EXTENSIVE VARIABLES, DERIVED VARIABLES, CONDITIONS (for condition settings), AXIS-
VARIABLES (for stepping/mapping variable settings).
l Intensive variables
l Energy-related extensive variables for whole system or for a phase
l Compositional extensive variables (overall amount of components in the whole
system, or amount of a component in system or in a phase)
l Constitutional composition-related extensive variables (amount of a
constituent/species on a sublattice site in a phase)
l Special quantities
l The Abbrev. column shows the abbreviation that you use in the POLY module for
referring to the variable. If the variable must be given any arguments, then these are
given in parenthesis directly after the abbreviation. For most variables, this is also
the abbreviation that you use to refer to the variable in other modules. However,
some variables are referred to with a different abbreviation in the POST module. If
this is the case, then this is noted at the bottom of the table.
l Variables that are specific to a species, in which case the species is specified as an
argument (sp in the table below). If there are two or more sublattices in a given
phase, then this argument is given as constituent#sublattice. This indicates a
constituent on a specific sublattice or site in the phase (referred to by the # sign and
a digit). For example, y(BCC,C#2) stands for the site fraction of the C species on the
second sublattice site of the BCC_A2 solution phase.
l The Unit column show which unit that you can use to express the variable in the POLY
module. This unit is always the SI unit. In other modules, state variables may be
expressed in other units.
l The Suffix column shows the suffixes you can append to the variables. The R-suffix
can be used with all compositional extensive state variables, but the suffix does not
always change the value of the variable. This is indicated by putting the R in
parenthesis.
Intensive Variables
T T1 K Temperature System
P P Pa Pressure System
MU(comp) Component R
Chemical Species
µ J/mol
potential relative to
MU(sp,ph)2 R
a solution
phase
AC(comp) Component R
Activity Species
AC(sp,ph)2 relative to
R
a solution
phase
a N/A
LNAC
Component R
(comp)3
ln(Activity) Species
LNAC relative to
R
(sp,ph) 2 a solution
phase
1 When plotting in POST, besides T (Kelvin), you can also use T_C or T_F to plot
temperature in °C or °F.
2 Only for single-substitutional-lattice solution phases such as AQUEOUS solution and
GASeous mixture phases and for interacting species on the substitutional sublattice of
two-sublattice solution phases (such as the phases BCC_A2 and M6C phases).
3 In natural logarithm (lnAC=MU/RT)
Extensive Variables
See example tcex44 in the Thermo-Calc Console Mode Examples Guide for an
example of using variables and functions.
V System M, W, V, R
VP(ph) 2 Phase M, W, V, R
G System M, W, V, R
G J Gibbs energy
G(ph) 1 M, W, V, F,
Phase
R
A System M, W, V, R
Helmholtz
A J
energy M, W, V, F,
A(ph) 1 Phase
R
U System M, W, V, R
U J Internal energy
U(ph) 1 M, W, V, F,
Phase
R
H System M, W, V, R
H J Enthalpy
H(ph) Phase M, W, V, F
S System M, W, V, R
S J/K Entropy
S(ph) 1 M, W, V, F,
Phase
R
HM(ph).T4 Phase R
Always use
Driving force with M, W,
D DG(ph) 5 N/A (thermodynamic Phase V or F. R
factor) can also be
used.
1 For this variable, if the phase is unstable, then the variable gets a value of zero.
2 Do not use VP(ph) as a condition in POLY. Instead, use CHANGE_STATUS PHASE
<PHASE>=FIX <AMOUNT> where the fixed <AMOUNT> is roughly equal to VPF(ph), which
cannot be directly evaluated or listed. If the phase is unstable, then VP(ph) and its
normalized quantities get zero value.
3 Use only if pressure has been set as a condition.
4 Use only if volume has been set as a condition.
5 Already divided by RT.
M, W,
N All components
V, (R)
M, W,
N(comp) Component
V, (R)
n mole Moles
N Component in a M, W,
(ph,comp) phase V, (R)
NP(ph)1 M, W,
Phase See above
V, (R)
M, W,
B All components
V, (R)
M, W,
B(comp) Component
V, (R)
b gram Mass
B Component in a M, W,
(ph,comp) phase V, (R)
BP(ph) 1 M, W,
Phase See above
V, (R)
X%
x% N/A Mole percent Component (R) See above
(comp)2
Mass
W%
w% N/A (weight) Component (R) See above
(comp)2
percent
u-f Component in a
u (ph,comp) N/A u-fraction (R) See above
1
stable phase
Special Quantities
R
Phase Under a condition
Q QF(ph)1 N/A stability Phase and system
function definition, QFR(ph)
= QF(ph)
R
Curie Under a condition
Tc TC(ph) 2 K Phase and system
temperature
definition, TCR(ph)
= TC(ph)
R
Bohr Under a condition
BMAG
Mb N/A magneton Phase and system
(ph)3
number definition, BMAGR
(ph) = BMAG(ph)
1 Negative when phase composition is inside a spinodal, otherwise positive. Can be used
to find out if an equilibrium is within the miscibility gap for a solution phase. Cannot be
used as a condition.
2 Calculated for phases with magnetic contributions in an equilibrium state. Cannot be
used as a condition, but can be plotted in POST or evaluated in POLY using SHOW_
VALUE.
3 Calculated for phases with magnetic contributions in an equilibrium state.
The sum of xj in the denominator is calculated for all substitutional alloying elements in the
whole system or in a specific phase. The variable xi in the numerator stands for the mole-
fraction of the i-th component in the whole system or in the specific phase.
Suffixes
Suffixes may be appended to all extensive variables and to some intensive variables. Some
suffixes can be used to enter the value of variables in normalized form. These are referred
to as normalizing suffixes. If the variable that you create with a normalizing suffix is based
on a state variable that can be set as a condition in POLY, then the normalized variable can
also be set as a condition in POLY.
The normalizing suffixes are M (per mole), W (per mass in gram), V (per volume in m3) and
F (per mole formula unit). There is also a reference state suffix R, which you can use if you
want the value of a thermodynamic variable to be calculated with respect to a reference
state that have previously set.
Normalizing Suffixes
When variables that express system and phase quantities are normalized, the following
general rules are used:
l System quantities are normalized by the total system size (in terms of N, B or V).
l Phase quantities are normalized by the phase amount [in terms of NP(ph), BP(ph) or
VP(ph)].
The normalized quantities of G(ph), A(ph), U(ph), H(ph), S(ph) and V(ph) are calculated
according to the thermodynamic model used for the phase (e.g. GM(ph), AM(ph), UM(ph),
HM(ph), SM(ph) and VM(ph)). These quantities are calculated using the first derivatives of
the Gibbs energy expressed for the phase with respect to the current composition of the
system.
The tables describe the normalizing suffixes for the different state variables.
V (per First derivative of the variable with regard GV is the Gibbs energy per
volume in to the total system size in terms of V. volume of the system (J/m3).
m3) VV does not have to be evaluated. GV = ∂G/∂V
DG(ph) of a Phase
N and B of a System
V (per First derivative of the variable NV(comp) is mole number of a component per
volume with regard to the total volume of the system (mol/m3).
in m3) system size in terms of V. NV(comp) = ∂N(comp)/ ∂V
of the aqueous
solution phase
pH PH N/A Acidity
pH = -log10(AC(H+)) =
-log10(ACR(H+,AQ))
of the aqueous
Hypothetical solution phase
Eh EH V, mV
electric potential
Eh = u(ZE)/96485.309
of the aqueous
Logarithm of the solution phase
Pe PE N/A hypothetical
electron activity pe = u(ZE)/
(2.3025851*RT)
of a redox couple wrt
the standard
Thermodynamic hydrogen electrode
Ah AH kJ, kcal
affinity per electron in the aqueous
solution phase
Ah = u(ZE)
of the solvent H2O in
the aqueous solution
yw YH2O N/A Mole fraction phase
YH2O = Y(AQ,H2O)
of 1.0 kg of solvent
Nw AH2O mole Mole number H2O
AH2O = 55.508435
of the solvent (H2O)
in the aqueous
Mole number,
Nsp NSH2O mole solution phase
NS(AQ,H2O)
NS(AQ,H2O) =
YH2O*NP(AQ)
of a solute species in
the aqueous solution
Mole number,
NS# phase
NS(AQ,sp)
NS(AQ,sp) = Y
(AQ,sp)*NP(AQ)
of a solute species in
mol/kg_ Molality, the aqueous phase
M ML#
H2O ML(AQ,sp) ML(AQ,sp) = Y
(AQ,sp)*AH2O/YH2O
of all solute species in
the aqueous solution
phase
equivalent
m* TIM Total molality TIM = sum[ML
molality
(AQ,sp)]ions + sum
[ML
(AQ,sp)]complexes
of a cation I in the
Total ionic aqueous phase
equivalent
mt TIC# concentration, TIC TIC(AQ,spI) = sum[ML
molality
(AQ,sp) (AQ,spJ)*V(spI-in-
spJ)]
of the aqueous
solution phase
I ISTR N/A Ionic strength
ISTR=1/2*sum[ML
(AQ,sp)*Z(AQ,sp)**2]
of the solvent (H2O)
Activity coefficient,
RCH2O RC(H2O,AQ) = ACR
RC(H2O,AQ)
(H2O,AQ)/YH2O
γ N/A of a solute species
Activity coefficient, RC(sp,AQ) = ACR
RC#
RC(sp,AQ) (sp,AQ)/Y
(AQ,sp)*YH2O
αi AIH2O N/A Activity, of the solvent (H2O),
AI(H2O,AQ) = ACR
AI(H2O,AQ)
(H2O,AQ)
of a solute species
related to the
Activity, aqueous solution
AI# phase,
AI(sp,AQ)
AI(sp,AQ) = ACR
(sp,AQ)*AH2O
of the solvent or a
solute species related
to the aqueous
Log10 Activity, solution phase in
LogAI# LogAI(H2O,AQ), common logarithm,
LogAI(sp,AQ) LogAI(H2O,AQ) =
log10[AI(H2O,AQ)]
LogAI(sp,AQ) =
log10[AI(sp,AQ)]
of H2O in the
aqueous solution
αw AW N/A Activity phase
AW = ACR(H2O,AQ)
of aqueous solution
phase
φ OS N/A Osmotic coefficient
OS = -
55.508435*lnAW/TIM
of the aqueous
solution phase
equil_ Generally defined as
Titration alkalinity the equivalent
At1 AT1 mol/kg_
(definition 1) molality of carbonate
H2O
and bicarbonate at
the methyl orange
endpoint (pH=4.5).
of the aqueous
solution phase
Generally defined as
equil_ the equivalent
Titration alkalinity
At2 AT2 mol/kg_ molality of carbonate
(definition 2)
H2O and bicarbonate, plus
sulfide, at the methyl
orange endpoint
(pH=4.5).
The activity coefficient of a species in a solution phase depends on which model definitions
on the reference states that are used and it depends on the standard states for the species. If
the standard state of a species is defined to be the same as the pure species in a
substitutional phase, then the activity coefficient of the species can be calculated as:
RC<name> = ACR(species,phase)/Y(phase,species)
In some cases, there are more than one sublattice in the phase and the reference states for
the phase species cannot be presented by the pure species, as in the case of C in FCC [(Fe)1
(C,N,VA)1], where the model may end at fifty percent C and fifty percent Fe. In those cases,
the chemical potential and activity of all phase constituents is not well defined and you
cannot properly define the activity coefficients of the species in the phase.
For an aqueous solution phase, no matter what model is used, the reference state and
standard state for both the solvent and solutes are defined in a special way in the Thermo-
Calc software. The reference state for the solvent is set as pure water, the same as its
standard state (according to Raoults's Law). The standard state for a solute species is set the
hypothetical solute species, whilst its reference state is defined as the hypothetical state at
unit molality (one mole dissolved into 1.0 kg of solvent) but in which the environment of
each molecular is the same as at infinite dilution (according to Henry's Law). Under these
definitions, the activity coefficients for solvent species can be calculated as follows:
RC<H2O> = ACR(H2O,aqueous)/ Y(aqueous,H2O)
AI is here the activity of solute species calculated from the model, and ML is the molality of
the species.
If you wanted heat capacity of a system to be shown as in terms of J/mol/K, then you can
define the following function Cp:
Enter_symbol function Cp = Hm.T ;
If the variable you want to convert is a function of one or more derivatives, then you must
enter the symbol as a variable rather as a function. For instance, a symbol expressing heat
capacity of a system in a unit of cal/mol/K can be defined as the following variable Cp2:
Enter_symbol variable Cp2 = Hm.T/4.1858 ;
Also see "Examples of User-Defined Units" on the next page for information
about entering conventional functions and the associated units.
"Units of State Variables and Derived Variables" on the previous page and
"User-Specified Units" on the previous page
You can also use thermodynamic variables with normalizing suffixes in the
expression when you enter a symbol. However, the tables do not have examples
of these expressions.
In the expressions these are defined as follows:
A2 = VM.T*1E-6*VM cm3/mol/K
Thermal Expansion
A3 = VW.T*1E-6*VM cm3/g/K
B2 = -VM.P*1E-9*VM mm3/mol/Pa
Isothermal
Compressibility
B3 = -VW.P*1E-9*VM mm3/g/Pa
pH = -LOG10(ACR(H+1)) dimensionless
Special quantity for aqueous
solution Eh = MUR(ZE)/RNF where
volts (V)
RNF=96485.309
kilograms
BKgi = 1E-3*B(c)
(kg)
cm3/mole_formula_
A4j = VF(ph).T*1E-6*VM
unit/K
atmosphere
FAij = AC(sp,ph)*PATM
(atm)
Fugacity kilobars
FCij = AC(sp,ph)*PKB
(kbar)
Tors
FTij = AC(sp,ph)*PTOR (millimeters
of Hg)
atmosphere
LnFAij = LNAC(sp,ph)+LN(PATM)
(atm)
ln(Fugacity) kilobars
LnFCij = LNAC(sp,ph)+LN(PKB)
(kbar)
Tors
LnFTij = LNAC(sp,ph)+LN(PTOR) (millimeters
of Hg)
AIij=ACR(FE+3,AQ)*AH2O dimensionless
RCij=ACR(FE+3,AQ)*YH2O/Y(AQ,FE+3)
Special dimensionless
where AH2O=55.508435 and YH2O=Y(AQ,H2O)
quantity for
aqueous
solution WRCalij = WR(AQ,sp)/4.1858
(WR(AQ,sp) is only valid for aqueous species in a cal/mol
system in which the AQUEOUS solution phase is
considered)
G(ph,sp)
G(ph,sp;0) Gibbs energy (J/mol) of a pure substance or end-member.
G(ph,sp1;sp2;...;0)
G(ph,sp1,sp2,...)
L(ph,sp1,sp2,...)
G(ph,sp1,sp2,...;0)
Zero-order interaction parameter (J/mol) of a specified binary,
L(ph,sp1,sp2,...;0) ternary or higher-order interactions on a certain sublattice site in
G a solution phase.
(ph,sp1,sp2,...;...;0)
L
(ph,sp1,sp2,...;...;0)
G(ph,sp1,sp2,...;i)
L(ph,sp1,sp2,...;i)
The ith -order interaction parameter (J/mol) of a specified binary,
G ternary or higher-order interactions on a certain sublattice site in
(ph,sp1,sp2,...;...;i) a solution phase.
L
(ph,sp1,sp2,...;...;i)
TC(ph,sp)
TC(ph,sp;0)
Curie temperature (K) of a pure substance or end-member.
TC
(ph,sp1;sp2;...;0)
TC(ph,sp1,sp2,...)
TC Zero-order Curie-temperature contribution (K) to a specified
(ph,sp1,sp2,...;0) binary, ternary or higher-order interactions on a certain sublattice
TC site in a solution phase.
(ph,sp1,sp2,...;...;0)
BMAGN(ph,sp)
BMAGN(ph,sp;0) Bohr magneton number (dimensionless) of a pure substance or
BMAGN end-member.
(ph,sp1;sp2;...;0)
BMAGN
(ph,sp1,sp2,...)
Zero-order Bohr magneton number (dimensionless) to a specified
BMAGN
binary, ternary or higher-order interactions on a certain sublattice
(ph,sp1,sp2,...;0)
site in a solution phase.
BMAGN
(ph,...;sp1,sp2,...;0)
BMAGN
(ph,sp1,sp2,...;i) The ith -order Bohr magneton number (dimensionless) to a
specified binary, ternary or higher-order interactions on a certain
BMAGN sublattice site in a solution phase.
(ph,sp1,sp2,...;...;i)
V0(ph,sp)
V0(ph,sp;0) Molar volume (m3) at 1 bar and reference T0 of a pure substance
V0 or end-member.
(ph,sp1;sp2;...;0)
V0(ph,sp1,sp2,...)
V0 Zero-order composition-dependent molar volume (m3) of a
(ph,sp1,sp2,...;0) specified binary, ternary or higher-order interactions on a certain
V0 sublattice site in a solution phase.
(ph,sp1,sp2,...;...;0)
VA(ph,sp)
VA(ph,sp;0) Integrated thermal expansivity (m3/mol/K) of a pure substance or
VA end-member.
(ph,sp1;sp2;...;0)
VA(ph,sp1,sp2,...)
VA Zero-order composition-dependent thermal expansivity
(ph,sp1,sp2,...;0) (m3/mol/K) of a specified binary, ternary or higher-order
VA interactions on a certain sublattice site in a solution phase.
(ph,sp1,sp2,...;...;0)
VC(ph,sp)
VB(ph,sp;0) Isothermal compressibility (m3/mol/Pa) of a pure substance or
VB end-member.
(ph,sp1;sp2;...;0)
VC(ph,sp1,sp2,...)
VB Zero-order composition-dependent isothermal compressibility
(ph,sp1,sp2,...;0) (m3/mol/Pa) of a specified binary, ternary or higher-order
VB interactions on a certain sublattice site in a solution phase.
(ph,sp1,sp2,...;...;0)
VK(ph,sp)
VB(ph,sp;0) High-pressure fitting parameter (m3/mol) of a pure substance or
VB end-member.
(ph,sp1;sp2;...;0)
VK(ph,sp1,sp2,...)
VB Zero-order composition-dependent high-pressure fitting
(ph,sp1,sp2,...;0) parameter (m3/mol) of a specified binary, ternary or higher-order
VB interactions on a certain sublattice site in a solution phase.
(ph,sp1,sp2,...;...;0)
Also search the online help for "Opening Graphical Mode Project Files", which is
in the Thermo-Calc User Guide.
This guide includes the example descriptions and information about how to open a Graphical
Mode project file.
1. Open Thermo-Calc.
2. Confirm you are in Graphical Mode. If not, click the Switch to Graphical Mode
button.
3. From the main menu, select File → Open Examples or Help → Open Examples.
4. Navigate to the project file you want and double-click to open.
5. The Graphical Mode examples are stored without calculated results so you will want
to run the example calculation and generate a plot or table. To do this, click the first
node in the tree at the top of the Project window. Then right-click and select
Perform now.
All Graphical Mode examples are in the same folder. This includes add-on
Diffusion Module (DICTRA) and/or Precipitation Module (TC-PRISMA) as well as
the Thermo-Calc examples. However, some add-on module examples require
additional licenses to run for more than two elements.
5, 6, 9 (a property grid
"Equilibrium Calculator Examples" on page 13
calculation)
This example shows the result from a single-point equilibrium calculation in the Fe-C system.
It demonstrates the use of the Equilibrium Calculator and generates a Table Renderer in the
Results window. The number of equilibrium conditions is C+2 where C is the number of
components, meaning that four conditions are needed in this example:
l Temperature is 1000 K
l Pressure is 101325 Pa
l System size is 1 mole
l Mass percent carbon is 0.1%
The displayed results of the calculation show that the BCC_A2 (ferrite) and GRAPHITE phases
are stable for this set of equilibrium conditions.
Table Result
This example shows how the fractions of stable phases vary for an Fe-0.1 mass-% C alloy
when the temperature is varied between 500 and 2000 K. It demonstrates the use of the
Equilibrium Calculator. To allow temperature to vary, the corresponding Axis Definition
check box is selected. In this example, results are displayed graphically using a Plot
Renderer activity. If you want, you can use a Table Renderer to generate text results instead.
Plot Result
This example shows the stable Fe-C phase diagram (stable meaning that the graphite phase
is entered in the calculation). The same diagram is calculated using the Binary Calculator
activity and then using a System Definer and Equilibrium Calculator.
In both cases, a Plot Renderer is used to display results. The purpose of the Binary Calculator
is to simplify common calculations for binary systems. In the Equilibrium Calculator two axes
are defined: Mass percent C and Temperature. An axis variable must also be an equilibrium
condition.
Plot Result
This shows the plot result of the System Definer and Equilibrium Calculator system.
This example shows a ternary phase diagram in the Fe-Cr-C system at 1000 K. Similar to
Example 3 (in "Binary System Examples" on page 5), the same diagram is calculated using a
Ternary Calculator and then using a System Definer and Equilibrium Calculator. Two Plot
Renderer activities are added to create two plots.
Plot Result
This plot example shows the result of using the Ternary Calculator activity node.
Try practicing with two features on the Plot Renderer Configuration window. To
toggle between a triangular and a rectangular diagram, click the Show
Triangular button. To toggle the X and Y axis variables, press the Switch Axes
button.
Plot Result
This plot example shows the result of the fraction solid function.
This example shows a comparison for an Al-Si alloy solidified under full local equilibrium and
under the Scheil assumptions, i.e. zero diffusion in the solidified material and infinitely fast
diffusion in the liquid. The example uses the Scheil Calculator and adds a Plot and Table
Renderer.
This example shows how to overlay results from two calculations in the same plot using the
Equilibrium Calculator.
In Equilibrium Calculator 1 the stable phase diagram is calculated and in Equilibrium
Calculator 2 the metastable phase.
Plot Results
The Plot Renderer activity is first created as a successor to Equilibrium Calculator 1. Then
right-click the Plot Renderer node and select Add predecessor and the results from both
equilibrium calculators are in the same plot. The metastable diagram is obtained by
deselecting the graphite phase in the System Definer under the Phases and phase
constitution tab.
Sometimes there are multiple solutions for a given set of equilibrium conditions. In other
cases the equilibrium calculation does not converge. You can then aid the final calculation
by, in effect, telling the software where it should start the search for the equilibrium.
This example shows how to serially couple two Equilibrium Calculator nodes together for
more complex equilibrium conditions. For each calculation, the output is to a Table
Renderer.
Equilibrium Calculator 1
In the first example, the objective is to calculate the equilibrium at 850°C where the mole
fractions of the FCC A1 and BCC A2 phases are 0.5 each for an Fe-Cr-C steel with 10%
chromium. In Equilibrium Calculator 1 a simple set of equilibrium conditions (temperature,
pressure, system size and composition) are used to find a carbon content where only the FCC
A1 and BCC A2 phases are stable. The results from this preliminary calculation are displayed
in Table Renderer 1.
Equilibrium Calculator 2
In Equilibrium Calculator 2 the carbon content equilibrium condition is replaced by the
condition that the numbers of moles of the BCC A2 phase should be 0.5. The final result is
displayed in Table Renderer 2. In this case, the final objective is to calculate the solidus
temperature of an Fe-Cr-C steel with 10% Cr and 0.01% C.
Equilibrium Calculator 3
In Equilibrium Calculator 3 the state at 2000 K is calculated and the result is displayed in
Table Renderer 3.
Equilibrium Calculator 4
In Equilibrium Calculator 4 the temperature equilibrium condition is replaced by the
condition Fix phase / liquid / 0.0, meaning that liquid should be stable in an amount of zero
moles, i.e. the solidus temperature. The final result is displayed in Table Renderer 4.
This is an example of using property grid calculations to plot the driving force for a carbide
as a function of two composition variables. With the property grid calculation type, a 2D grid
is generated from the two calculation axes. After the calculation is done, an equilibrium is
calculated in each grid point. A Plot Renderer connected to a property grid calculator plots
the z-axis property for each equilibrium as a function of the two calculation axes. The final
plot can be either a heat map or a contour plot.
Plot Result
The example uses the Property Model Calculator to predict the transition temperature to
the unwanted brittle Sigma phase. The example shows how the temperature is influenced by
changes to a steel alloy’s composition using the uncertainty calculation type and how to
create either a histogram or probability plot.
The example uses the Property Model Calculator and both thermodynamic and kinetic
demonstration steel databases. Using a grid calculation type it produces these plots: a heat
map, a contour plot and a cross plot with contour (where both the interfacial energy and
coarsening rate is shown). It also creates a property diagram to show the phase fractions vs
time.
Property Diagram
The example uses the Property Model Calculator and a thermodynamic demonstration steel
database. Using a grid calculation type it produces a contour plot comparing the driving
Plot Result
A contour plot
Examples 19 and 20 are available to all users. The other examples require a
Diffusion Module (DICTRA) license to calculate and plot results.
This example is part of the Diffusion Module (DICTRA) Quick Start Guide
available to all users. A version of the example is also available for Console
Mode.
This example is part of the Diffusion Module (DICTRA) Quick Start Guide
available to all users. A version of the example is also available for Console
Mode.
This example is part of the Diffusion Module (DICTRA) Quick Start Guide and
uses more than two elements, enabling it to be available to users with a valid
license. A version of the example is also available for Console Mode.
1H. Larsson and A. Engström, “A homogenization approach to diffusion simulations applied to α + γ Fe–Cr–Ni diffusion
couples,” Acta Mater., vol. 54, no. 9, pp. 2431–2439, May 2006.
2H. Larsson and L. Höglund, “Multiphase diffusion simulations in 1D using the DICTRA homogenization model,” Calphad
Comput. Coupling Phase Diagrams Thermochem., vol. 33, no. 3, pp. 495–501, 2009.
3"Interdiffusion in multiphase, Fe-Cr-Ni diffusion couples", Scandinavian Journal of Metallurgy, 24(1), 12–20.
This example uses more than two elements enabling it to be available to users
with a valid license.
Examples 13 and 16 are available to all users. The other examples require a
Precipitation Module (TC-PRISMA) license to calculate and plot results.
System
Elements Al, Sc
Conditions
Temperature 350° C
1E. Marquis, D.. Seidman, Nanoscale structural evolution of Al3Sc precipitates in Al(Sc) alloys, Acta Mater. 49 (2001) 1909–
1919.
2G.M. Novotny, A.J. Ardell, Precipitation of Al3Sc in binary Al–Sc alloys, Mater. Sci. Eng. A Struct. Mater. Prop. Microstruct.
Process. 318 (2001) 144–154.
Other
Plot Results
System
Elements Fe, C, Cr
Conditions
Temperature 1053 K
Interfacial energy Cementite 0.167 J/m2, M23C6 0.252 J/m2, M7C3 0.282 J/m2
Other
Plot Results
System
Elements Fe, C, Cr
Conditions
Interfacial energy Cementite 0.167 J/m2, M23C6 0.252 J/m2, M7C3 0.282 J/m2
Other
Plot Results
System
1Wert, C. A. (1949). Precipitation from Solid Solutions of C and N in α-Iron. Journal of Applied Physics, 20(10), 943.
Elements Fe, C
Conditions
Temperature 102° C
Other
Volume Fraction
1C.K. Sudbrack, T.D. Ziebell, R.D. Noebe, D.N. Seidman, Effects of a tungsten addition on the morphological evolution, spa-
tial correlations and temporal evolution of a model Ni–Al–Cr superalloy, Acta Mater. 56 (2008) 448–463.
DIS_FCC_A1 needs to be selected on the System Definer. Search the online help
for About Ordered Phases in the Precipitation Module (TC-PRISMA) User Guide
for details.
System
Elements Ni, Al Cr
Matrix phase DIS-FCC_A1 (see note above about how to select this phase)
Conditions
Temperature 800° C
Other
Volume Fraction
Number Density
Mean Radius
1T. Rojhirunsakool, S. Meher, J.Y. Hwang, S. Nag, J. Tiley, R. Banerjee, Influence of composition on monomodal versus mul-
timodal γ′ precipitation in Ni–Al–Cr alloys, J. Mater. Sci. 48 (2013) 825–831.
multimodal PSD' check box on the Plot Renderer to separate the peaks. Then adjust the
Valley depth ratio setting to 0.05 to separate into two peaks as shown in the Ni-10Al-10Cr
plot example. You can experiment with this setting to see how the size distribution evolves
with time, for example, try entering several values as plot times '400 600 1470'.
DIS_FCC_A1 needs to be selected on the System Definer. Search the online help
for About Ordered Phases in the Precipitation Module (TC-PRISMA) User Guide
for details.
System
Matrix phase DIS_FCC_A1 (see note above about how to select this phase)
Conditions
Other
On the Plot Renderer, the Valley depth ratio is set to 0.05 for both
Separate multimodal PSD for 8Al-8Cr plots. The number of points is increased to 200 for an average
radius plot.
Separate multimodal PSD for 10Al- On the Plot Renderer, the Valley depth ratio is set to 0.18 for both
10Cr plots.
Ex_18_Precipitation_Ni-Al-Cr_Non-isothermal_Gamma-Gamma_
File name
prime
There are many examples to examine and to help you learn Thermo-Calc in Console Mode.
1. Open Thermo-Calc.
2. Confirm you are in Console Mode. If not, click the Switch to Console Mode button.
3. From the main menu, select File → Open Examples or Help → Open Examples. The
Console Mode folder opens with the Thermo-Calc examples in separate folders.
For the Diffusion Module (DICTRA) examples (*.DCM macro files), click the Up
One Level button and then double click the DICTRA folder.
All the macro files and the outputs are also combined into one file that you can
search and read. This is available as a PDF.
Each topic below has a brief description of the example and includes some or all of the
commands used in the macros. As you progress through the examples, sometimes only new
commands are highlighted.
"Examples with Specialized Databases" on page 31 20, 22, 25, 27, 29, 50,
All the macro files and the outputs are also combined into one file that you can
search and read. This is available as a PDF.
"BINARY_DIAGRAM "LIST_EQUILIBRIUM" on
"LIST_STATUS" on page 210
Module" on page 10 page 209
"LIST_CONDITIONS" on "CHANGE_STATUS" on
"INFORMATION" on page 5
page 209 page 186
"ADD_LABEL_TEXT" on "MODIFY_LABEL_TEXT"
"HELP" on page 5
page 243 on page 252
"SWITCH_DATABASE"
"DEFINE_SYSTEM" on page 15 "REJECT" on page 18
on page 22
This uses the SLAG database. A license is required to run the example.
The origin of this example is that a manufacturer wanted to increase the Cr content of a
material from 18 to 25 weight percent but the continuous casting of this material was
problematic because solid Cr2O3 was formed. Using Thermo-Calc to calculate the equilibria
in the steel/slag system, a simple correction was found: modify the Mn or Si content to
decrease the oxygen potential.
In Thermo-Calc, you can FIX a phase with zero amount to simulate how to avoid forming this
phase. You then release one of the conditions, usually one of the compositions, and this
composition is determined by the equilibrium calculation.
These commands are used:
"DEFINE_SYSTEM" on "AMEND_PHASE_
"GET_DATA" on page 16
page 15 DESCRIPTION" on page 93
"SET_CONDITION" on "LIST_CONDITIONS" on
"LIST_STATUS" on page 210
page 220 page 209
used to find the optimum O/H ratio (i.e. oxygen potential) as certain oxygen potential values
can desulphurize Cu2S without forming copper oxides.
In Thermo-Calc, the problem reduces to perform equilibria calculations in a Cu-S-H-O
system. The amounts of the components should be kept to correct ratio corresponding to
Cu2S and H2O using a command SET_INPUT_AMOUNTS in POLY3. Initially, O/H = 0.5 is
given. Optimum O/H ratio is calculated with the desired calculation conditions. For example,
to simulate one phase disappearing, you can FIX the phase with zero amount.
These commands are of also of note and used in this example:
l "SET_NUMERICAL_LIMITS" on page 296
l "SET_REFERENCE_STATE" on page 224
l "SHOW_VALUE" on page 227
This uses the SSOL database. A license is required to run the example.
These commands are of note and used in this example:
"ADVANCED_OPTIONS"
"REJECT" on page 18 "RESTORE" on page 20
on page 174
This uses the TCFE database. A license is required to run the example.
These commands are of note and used in this example:
tcex26 - The As-Ga phase diagram: Plotting the partial pressures of a gas species
This is an example of plotting the partial pressures of a gas species along the solubility lines
in the As-Ga phase diagram. The calculation makes it possible to monitor the input gases to
a process of depositing solid As-Ga.
These commands are of note and used in this example:
"SET_DIAGRAM_AXIS" on
"REJECT" on page 18 "RESTORE" on page 20
page 259
This uses the TCFE database. A license is required to run the example.
All the macro files and the outputs are also combined into one file that you can
search and read. This is available as a PDF.
"SET_SCALING_STATUS" on
page 268
l "LIST_SYSTEM" on page 17
l "LIST_CONDITIONS" on page 209
l "SET_AXIS_TEXT_STATUS" on page 256
"COMPUTE_
"SET_CONDITION" on "LIST_EQUILIBRIUM" on
EQUILIBRIUM" on
page 220 page 209
page 190
tcex19a and tcex19b - Mapping of univariant equilibria with the liquid in Al-Cu-Si
This example shows how to map univariant equilibria with the liquid in Al-Cu-Si.
"DEFINE_SYSTEM" on "AMEND_PHASE_
"GET_DATA" on page 16
page 15 DESCRIPTION" on page 93
"APPEND_EXPERIMENTAL_ "TERNARY_DIAGRAM
DATA" on page 245 Module" on page 331
l "DEFINE_SYSTEM" on page 15
l "GET_DATA" on page 16
l "SET_CONDITION" on page 220
l "SET_DIAGRAM_TYPE" on page 261
This uses the TCFE database. A license is required to run the example.
This uses the TCFE database. A license is required to run the example.
This uses the TCFE database. A license is required to run the example.
All the macro files and the outputs are also combined into one file that you can
search and read. This is available as a PDF.
This uses the TCFE database. A license is required to run the example.
This uses the TCFE database. A license is required to run the example.
These commands are of note and used in this example:
"DEFINE_ELEMENTS" on
"REJECT" on page 18 "RESTORE" on page 20
page 14
"EVALUATE_ "SET_START_
"AMEND_PHASE_
FUNCTIONS" on CONSTITUTION" on
DESCRIPTION" on page 93
page 208 page 226
"COMPUTE_TRANSITION" on
page 193
This uses the TCFE and SSUB5 databases. These licenses are required to run the
example.
These commands are of note and used in this example:
l "SET_START_CONSTITUTION" on page 226
l "SET_REFERENCE_STATE" on page 224
l "APPEND_DATABASE" on page 12
This uses the TCFE database. A license is required to run the example.
These commands are of note and used in this example:
l "DEFINE_ELEMENTS" on page 14
l "REINITIATE_PLOT_SETTINGS" on page 255
l "SET_DIAGRAM_AXIS" on page 259
All the macro files and the outputs are also combined into one file that you can
search and read. This is available as a PDF.
Property Diagrams
This uses the TCFE database. A license is required to run the example.
These commands are of note and used in this example:
l "DEFINE_DIAGRAM" on page 196
l "DEFINE_ELEMENTS" on page 14
l "AMEND_PHASE_DESCRIPTION" on page 93
l "REINITIATE_PLOT_SETTINGS" on page 255
Potential Diagram
This example uses the POTENTIAL module to calculate a potential diagram. Note that there
are no commands for this module, you just follow the prompts.
All the macro files and the outputs are also combined into one file that you can
search and read. This is available as a PDF.
This uses the TCFE database. A license is required to run the example.
l Get data from a database, then in POLY use SET_CONDITION and COMPUTE_
EQUILIBRIUM.
l Go directly to POLY and use DEFINE_MATERIAL.
This uses the TCFE database. A license is required to run the example.
tcex47 - 3D-quaternary plot with the gamma volume in the Fe-Cr-V-C system at 1373K
3D-quaternary diagram that calculates the gamma volume in the Fe-Cr-V-C system at
1373K.
All the macro files and the outputs are also combined into one file that you can
search and read. This is available as a PDF.
This uses the SSOL database. A license is required to run the example.
These commands are used:
"GOTO_MODULE" on "SET_CONDITION" on
"GET_DATA" on page 16
page 4 page 220
"LIST_STATUS" on "CHANGE_STATUS" on
"SHOW_VALUE" on page 227
page 210 page 186
"SET_INTERACTIVE" on
page 295
This uses the TCFE database. A license is required to run the example.
All the macro files and the outputs are also combined into one file that you can
search and read. This is available as a PDF.
l "ENTER_ELEMENT" on page 101
l "ENTER_SPECIES" on page 112
l "ENTER_SYMBOL" on page 113
l "ENTER_PHASE" on page 110
l "ENTER_PARAMETER" on page 143
l "LIST_PHASE_DATA (from GIBBS)" on page 148
l "REINITIATE" on page 127
l "ENTER_ELEMENT" on page 101
l "AMEND_ELEMENT_DATA" on page 81
l "ENTER_PARAMETER" on page 143
l "ENTER_PHASE" on page 110
mole of an ideal gas with two fictitious species A and A2. The GES, POLY3 and POST modules
are used.
One application of the Second Law is to the efficiencies of heat engines, pumps and
refrigerators. Whenever there is a difference of temperature, work can be produced - the
principle of heat engines. The Gibbs energy also enables the prediction of the maximum
work that a process may achieve. The goal of this example is to help relate the results to
different thermodynamic quantities.
These commands are of note and used in this example:
"ENTER_SPECIES" on "ENTER_PHASE" on
"REINITIATE" on page 127
page 112 page 110
"ENTER_PARAMETER" on "SET_PLOT_FORMAT" on
page 143 page 264
tcex49 - Quasichemical model using the Gibbs energy system (GES) module
This example shows how to enter parameters for a FACT quasichemical liquid model and
how to calculate the sulfur activity using the GIBBS_ENERGY_SYSTEM (GES) module
commands.
This uses the TCFE database. A license is required to run the example.
"SHOW_VALUE" on
page 227
tcex52 - Changing the excess models for interaction parameters in a solution phase
This example shows how to change the excess models for binary and ternary interactions in
a solution phase, either
For binary excess models, the example changes it from the default R-K model to a Mixed-
Excess-Model. The phase has to be a substitutional phase in this case.
For ternary extrapolation models, the example changes it from the default R-K-M model to a
Toop_Kohler model.
All the macro files and the outputs are also combined into one file that you can
search and read. This is available as a PDF.
tcex15 - Simulating the solidification of a Cr-Ni alloy with the SCHEIL module
This is an example of a solidification simulation of a Cr-Ni alloy. There is no back diffusion in
the solid, i.e. Scheil-Gulliver model is used.
This uses the TCFE database. A license is required to run the example.
These commands are of note and used in this example:
"COMPUTE_ "ADD_INITIAL_
"START_WIZARD" on page 297 TRANSITION" on EQUILIBRIUM" on
page 193 page 166
"MAKE_EXPERIMENTAL_ "CHANGE_STATUS" on
DATAFILE" on page 252 page 186
These examples show two ways to do a Scheil calculation for an Al-4Mg-2Si-2Cu alloy. In
part A, you use the POLY3 module and the STEP_WITH_OPTIONS command with an
EVALUATE option. Then in part B you use the SCHEIL module commands to do the same
thing.
compares it with the sublattices of a fictitious A B system. You also learn how to overlay
diagrams from two calculations.
These GES commands are of note and used in this example:
l "ENTER_ELEMENT" on page 101
l "ENTER_SPECIES" on page 112
l "ENTER_SYMBOL" on page 113
l "ENTER_PHASE" on page 110
l "ENTER_PARAMETER" on page 143
l "LIST_PHASE_DATA (from GIBBS)" on page 148
All the macro files and the outputs are also combined into one file that you can
search and read. This is available as a PDF.
The example is divided into parts corresponding to the files in the tcex36a
folder. It is recommended you read tcex.36.readme before continuing with this
advanced exercise.
Each problem has "selected" experimental data. The example uses a fictitious binary A-B
system where element A is BCC until it melts. Element B is BCC up to 1100 K and FCC above.
There is a compound A2B stable in a limited temperature range.
l The creation of the "setup" file is described (tcex36a.TCM) where you enter the
elements and phases into the Gibbs Energy System (GES) module
l The creation of the experimental data file is described (tcex 36b.TCM). When you run
the TCEX36a macro, the contents of this macro file is automatically launched and the
experimental data file created.
l The actual run in the PARROT module in order to obtain the result (tcex 36cpd.TCM)
There are many commands used in this advanced example ( listed in alphabetical order):
"COMPILE_
"APPEND_EXPERIMENTAL_ "COMPUTE_ALL_
EXPERIMENTS" on
DATA" on page 245 EQUILIBRIA" on page 37
page 137
"CONTINUE_ "CREATE_NEW_
"CREATE_NEW_STORE_
OPTIMIZATION" on EQUILIBRIUM" on
FILE" on page 139
page 138 page 195
"ENTER_PHASE" on "LIST_ALL_VARIABLES" on
"LABEL_DATA" on page 48
page 110 page 145
"SAVE_PARROT_
"RESCALE_VARIABLES" on "SAVE_WORKSPACES " on
WORKSPACES" on
page 156 page 54
page 156
"SET_STORE_FILE" on "SET_WEIGHT" on
page 162 page 66
All the macro files and the outputs are also combined into one file that you can
search and read. This is available as a PDF.
This uses the SSUB database. A license is required to run the example.
These commands are of note and used in this example:
"TABULATE_SUBSTANCE" on
page 322
tcex24 - Simulation of the silicon arc furnace using the REACTOR module
This is a simple reactor model with output of gases at the top and output of condensed
phases at the bottom. The gas phase from one segment flows to higher segments, 80 %
reacts in the first above, 15% in the second above and 5 % in the third above.
The condensed phases flow downwards and all of it goes to the next lowest segment. Heat
can be added at any module. The only way to specify the initial state of the reactants added
to the reactor is to specify their heat content.
This uses the SSUB database. A license is required to run the example.
These commands are of note and used in this example:
"CREATE_PIPES" on "START_SIMULATION" on
page 285 page 290
All the macro files and the outputs are also combined into one file that you can
search and read. This is available as a PDF.
This uses the SSUB database. A license is required to run the example.
Keeping the enthalpy constant is the way to simulate the isolation of the furnace. The oxygen
reacts with carbon and increases the temperature. After blowing a certain amount of
oxygen, scrap iron is added to keep the temperature constant.
This uses the SLAG database. A license is required to run the example.
This uses the SSUB database. A license is required to run the example.
These commands are of note and used in this example:
"LIST_AXIS_VARIABLE" on "LIST_INITIAL_EQUILIBRIA"
page 208 on page 210
This uses the SSUB database. A license is required to run the example.
These commands are of note and used in this example:
l "SET_INPUT_AMOUNTS" on page 222
l "LIST_CONDITIONS" on page 209
l "SET_CONDITION" on page 220
1Thermodynamic modeling of liquid Fe-Ni-Cu-Co-S mattes. Metallurgical and Materials Transactions B, 29(3), 591–601.
https://doi.org/10.1007/s11663-998-0094-y
Example TCEX40 automatically calculates and plots a Pourbaix diagram for 0.001 m Fe in a
0.1 m NaCl aqueous solution at 25C and 1 bar. A so-called Pourbaix diagram is actually a
phase diagram with independently-varied acidity (pH) and electropotential (Eh), for a
heterogeneous interaction system at a certain bulk composition (that is by default always set
as 1 kg of water dissolving a specified amount of metals and other solutes), under a defined
temperature and pressure condition.
For details about the additional examples in the Extended folder, see "Pourbaix
Module Examples" above.
This example uses the PAQ2 or PAQS2 databases to calculate some Pourbaix diagrams. The
DATABASE_RETRIEVAL (TDB), GIBBS_ENERGY_SYSTEM (GES), POLY3, and POST modules are
used for the Fe-X-H2O-NaCl heterogeneous interaction system, where X = Cr-Ni-Co.
Step 1: Single-Point Calculations for H2O-NaCl system
To demonstrate how to define the molality of NaCl in an aqueous-bearing heterogeneous
interaction system.
For a list of pre-defined symbols, go to the end of the tcex53.TCM macro file
(open it in a text editor).
Example TCEX40
l Main Option 2 for plotting many other property diagrams of the calculated
interaction system;
l Main Option 3 for making another POURBAIX calculation of the same chemical
system but under a different P-T-X condition;
l Main Option 4 for making a POLY3 STEPPING calculation of the same chemical
system but varied with only one independent variable;
** The Main Options 2, 3 and 4 are not illustrated in this TCEX40 example.
Five more examples (TCEX40A, TCEX40B, TCEX40C, TCEX40D and TCEX40E) are also
provided to demonstrate various options and features in the POURBAIX module and to show
more advanced applications of the TCAQ2 and AQS2 aqueous solution databases [in the
Multiple-Database Option, i.e., with appended data from the SSOL5 and SSUB5 databases].
Example TCEX40A
l Option 1
l Using the Single-Database Option, i.e., retrieving data from the PAQ2 [TCS Public
Aqueous Solution (SIT) Database, v2.4; using the SIT aqueous solution model] or PAQS2
[TCS Public Aqueous Solution Database, v2.4; using the Complete Revised HKF aqueous
solution model]; both of which contain an AQUEOUS solution phase and REF_
ELECTRODE phase (as a reference for electron in aqueous electrolyte systems), as well
as some data for various solid phases (solution or stoichiometric) and gaseous mixture
phase. The PAQ2 and PAQS2 are specially designed for calculations of the so-called
Pourbaix diagrams (i.e., Eh-pH plots) and other types of diagrams in aqueous-bearing
multicomponent heterogeneous interaction systems, via the Single-Database Option in
the POURBAIX module or through the normal TDB-GES-PLOY-POST routine.
l A POLY3 file called POURBAIX.POLY3 is automatically saved.
l For the purposes of recalling this file in other Main Options (as in the TCEX40B,
TCEX40C & TCEX40D), the POURBAIX.POLY3 has to be renamed or copied as another
file name (in this particular example, as TCEX40A.POLY3, and TCEX40B.POLY3,
TCEX40C.POLY3 & TCEX40D.POLY3). Note that the renaming or copying has to be done
outside TCCS, otherwise the POLY3 file structure will be destroyed. However, under
WindowsNT/2000/XP environments, one can use MS-DOS commands to do so, e.g.,
@copy POURBAIX.POLY3 TCEX40B.POLY3
l The Main Option 1 also provides the opportunity to plot many property diagrams along
phase boundaries, after the default Pourbaix diagram is generated and refined (not
necessarily going through the Main Option 2).
Example TCEX40B
l Demonstration of the Main Option 2 Graphical Processing (by plotting more diagrams);
various options for refining a plotted diagram (including direct interactions with the
POST Module); Graphical processing of related property diagrams.
l Reading a previously saved POURBAIX.POLY3 file (or renamed as another name, for
instance, the TCEX40B.POLY3), and then plotting some property diagrams for the
previously calculated system.
l The loaded POLY3 file will not be modified by this Main Option. It is thus not necessary
to save the file in another name; however, it is still recommended that the user to copy
the TCEX40A.POLY3 (or TCEX40E.POLY3) as TCEX40B.POLY3 before the Main Option 2
is executed in this particular example.
Example TCEX40C
Example TCEX40D
by a Main Option 2 for plotting more property diagrams, or by another Main Option 4
for making other stepping calculations.
l The Main Option 4 also provides the opportunity to plot many property diagrams after
the default Pourbaix diagram is generated and refined (not necessarily going through
the Main Option 2).
l Exploration of the possibility of modifying the definitions for some desired system-
components, through the direct and internal POURBAIX-POLY3 intersection, for a
STEPPING (and/or MAPPING) calculation inside the POURBAIX Module.
Example TCEX40E
l A: TCAQ2 (TCS Aqueous Solution Database, v2.5; SIT model) or AQS2 (TGG
Aqueous Solution Database, v2.5; HKF model);
l B: SSUB4 (SGTE Pure Substances Database, v4) or TCMP2 (TCS Materials
Processing Database, v2);
l C: SSOL4 (SGTE Alloy Solutions Database, v4) or TCFE6 (TCS Steels/Fe-Alloys
Database, v6) or ALIKE.
Example TCEX53
Note: The PAQ2 (TCS Public Aqueous Solution (SIT) Database, v2.4; using the SIT aqueous
solution model) or PAQS2 (TCS Public Aqueous Solution Database, v2.4; using the Complete
Revised HKF aqueous solution model) contains an AQUEOUS solution phase and REF_
ELECTRODE phase (as a reference for electron in aqueous electrolyte systems), as well as
some data for various solid phases (solution or stoichiometric) and gaseous mixture phase.
Therefore, it can be used, via the Single-Database Option in the POURBAIX module or
through the normal TDB-GES-PLOY-POST routine, for calculations of the so-called Pourbaix
diagrams (i.e., pH-Eh plots) and other types of diagrams in aqueous-bearing multicomponent
heterogeneous interaction systems.
Note: The initial bulk composition of Fe-based alloy in this demonstrating calculation is just
preliminarily assigned, in which the BCC_A2 and/or FCC_A1 solution phase(s) are considered
as of primarily interest. For practical calculations, one shall have more precise inputs for the
initial bulk compositions of alloys.
Introduction
In this section:
Introduction ǀ 2 of 72
Thermo-Calc Documentation Set
Also see the Thermo-Calc Console Mode Command Reference included with this
documentation set, which has information about all the commands available in
the Thermo-Calc Console Mode, including PARROT and ED_EXP. Note that the
commands listed under PARROT and ED_EXP are only commands that are
specific to PARROT and/or ED_EXP. These modules also contain some
commands that are also available in POLY.
Data Optimization
In a thermodynamic database, each phase in a system is characterised using a mathematical
model of its Gibbs energy. The Gibbs energy of a phase depends on various state variables. It
can be defined individually even in a heterogeneous system with many stable phases since
the properties of one phase are completely independent of the properties of the other
phases in the system. In most alloy systems, the thermodynamic properties of a phase can
be modelled by expressing how the Gibbs energy depends on temperature and composition.
State variables such as pressure, volume or entropy can also serve as parameters in the
Gibbs energy expression. The Gibbs energy of the whole system is the sum of the products of
the Gibbs energy of each phase multiplied by the amount of that phase.
How the Gibbs energy of the phase varies with various state variables is determined by a
mathematical model and how various adjustable parameters of the model is set. By
optimizing these parameters, you can calculate the thermodynamic properties of a system
under various conditions (by calculating phase diagrams for example). The thermodynamic
properties themselves are functions of temperature, pressure or composition. They include,
among other properties, standard enthalpy of formation, entropy, heat capacity, molar
volume, thermal expansivity, compressibility and Curie temperature for magnetic
transformations.
Introduction ǀ 3 of 72
Thermo-Calc Documentation Set
Data optimization is about adjusting the model parameters so that calculated equilibria fit
well with experimental data. An important part of a data optimization is therefore collecting
and assessing available experimental and theoretical information about phase equilibria and
thermochemical properties of a system.
When you optimize the parameters of the model of a phase, you put what is called
optimizing variables into the Gibbs energy expressions of those parameters. During the
optimization, the values of these variables are varied in order to find a fit between the
calculated equilibria and the experimental data that you base the optimization on. Once you
have settled on a Gibbs energy expression for a certain parameter of a phase of the
element, then you must stick to this expression in all future optimizations involving the
element. If you do not do this, then you must re-optimize all previous systems that involve
this element when the expression is changed.
The Thermo-Calc software allows you to optimize parameters that characterize not only
binary systems, but also ternary system and systems of even higher orders. You can even
optimize parameters that characterise systems of different orders at the same time.
Of course, these conditions are usually not all met in a normal thermodynamic assessment.
But even in non-ideal conditions, there is no known method that works better than the least-
squares method.
Introduction ǀ 4 of 72
Thermo-Calc Documentation Set
models that accurately represent thermodynamic properties for various phases. These
models enable you to predict the thermodynamic properties of multicomponent systems-
based data concerning binary and ternary subsystems. The predictions can take many
factors into accounts, such as, for example, crystallography, type of bonding, order-disorder
transitions and magnetic properties.
CALPHAD is originally an abbreviation of CALculation of PHAse Diagrams, but as the
approach has expanded in scope, it now stands for computer coupling of phase diagrams and
thermochemistry.
References
For in-depth information about CALPHAD as well as data optimization, see Computational
Thermodynamics – The Calphad Method by Hans Leo Lukas, Suzana G. Fries and Bo Sundman
(Cambridge University Press, 2007). CALPHAD was given its first general description in
Computer Calculations of Phase Diagrams by Larry Kaufman and Harold Bernstein (Academic
Press, 1970). The book contains some case studies of optimizations using Thermo-Calc.
Information about the concept of ‘lattice stability’ (which is important for the development
of multicomponent thermodynamic databases) can also be found in the paper Hume-Rothery
and Calphad Thermodynamics by Larry Kaufman, published in Calphad and Alloy
Thermodynamics, edited by Patrice E.A. Turchi, Antonios Gonis, Robert Shull (The Minerals,
Metals & Materials Society, 2002), pp. 3-19.
Introduction ǀ 5 of 72
Thermo-Calc Documentation Set
1. Collect experimental data about your system from various sources such as journal
articles and reports.
2. Create a POP-file in which you enter the experimental data you have collected.
3. Create a setup macro file in which you define your system and the variables you
want to optimize. A useful general procedure is to first find a minimum set of
variables that allows you to calculate most of the experiments.
4. Run the setup macro file.
5. Compile your POP-file. This file often contains errors, which need to be corrected,
and the file recompiled several times before the compilation is completed without
errors.
6. In the ED_EXP module, check that the experiments in your POP-file reach equilibrium
with reasonable results. If any experiments do not reach equilibrium with reasonable
results, then try changing the starting values on equilibrium conditions (such as
composition) to see whether the equilibrium can be computed after all. If this does
not work, then you can temporarily exclude the experiment from the optimization. At
a later stage in the optimization, when the optimizing variables have different values,
you can check whether the experiments can be computed with reasonable results.
7. Back in the PARROT module, run the first optimization cycle and evaluate the
feedback in the console. You can also plot diagrams in the POLY module that allow
you to visually inspect the fit between calculated optimization results and the
experimental data. If you are not satisfied with the fit, then enter the ED_EXP module
again and adjust the weights of the experiments in a way that is likely to improve the
fit and run another optimization cycle. Reiterate until you are satisfied with the fit.
8. Once you get the optimization stable and smooth with the minimum set of variables
chosen in step 3 above, try using different sets of variables to see whether
improvements are possible.
9. When you are satisfied with the fit between calculated results and experimental data
with your final set of optimizing variables, update your setup file and POP-file. In the
setup file, enter the calculated optimizing variable values as the variables’ start
values. In the POP-file, enter the final weights of the experiments. With these files
updated, you can easily regenerate the parameter values of your optimized system.
Having the files updated also makes it easier to optimize the system again in light of
new data or new theoretical models.
10. Finally, update the database with your calculated results or create a new database
with information about the system that you have optimized.
The PARROT module is part of the Thermo-Calc software. The module is not
included in the software development kits TQ-Interface, TC-API or TC-Toolbox
for MATLAB®.
The experimental data is entered and edited in a sub-module of PARROT: "The EDIT_
EXPERIMENTS Module" below.
The POP-file (Parrot OPtimization file) is the file that contains all the
experimental data that you use for optimizing Gibbs energy values for your
POP-file
system. The POP-file is a plain text file that contains ED_EXP commands. By
default, the file has the filename extension *.POP in Thermo-Calc.
The setup file is a Thermo-Calc macro file (*.TCM). This file typically
Setup file contains commands that define your system, opens the PARROT workspace
(and associated GIBBS and POLY workspaces) and sets optimizing variables.
It is often useful to have other macro files than the setup file at hand while
you are doing your optimization. For example, it is convenient to have a
Other
macro file that automatically plots phase diagrams or other diagrams
macro
based on the latest values of your optimizing variables. An optimization
files
process typically involves many optimization cycles, so this operation needs
to be done many times during a typical optimization.
The PARROT module has its own workspace with dynamic memories,
similar to the workspaces of POLY and GIBBS. It is stored and updated in a
PARROT workspace file with the filename extension *.PAR. The workspace
Workspace
file is a binary file whose format is hardware dependent. This means that
files
the format is unique for each type of CPU. Hence, a workspace file saved on
a computer with one type of CPU cannot be used on a computer with
another type of CPU.
The EXP-file is a plain text file with information in the form of DATAPLOT
Graphical Language commands. These commands can specify some or all
of the data points in your POP-file. This allows you to plot these data points
on top of your plotted optimization results (with the POST commands
"APPEND_EXPERIMENTAL_DATA" on page 245 or "QUICK_EXPERIMENTAL_
EXP-file PLOT" on page 254). You can then visually assess the fit between these
results and the experimental data. The PARROT workspace is not influenced
in any way by the creation or use of EXP-files.
Optimization Workspaces
When writing the setup file, you enter a "CREATE_NEW_STORE_FILE" on page 139 command
which creates a PARROT workspace file. Alternatively, select an existing PARROT workspace
file with "SET_STORE_FILE" on page 162. The workspace file is automatically updated and
saved with the latest optimization results (after each use of the "OPTIMIZE_VARIABLES" on
page 154 command). You can also explicitly instruct Thermo-Calc to save the workspace
using "SAVE_PARROT_WORKSPACES" on page 156. If you want to get rid of your latest
changes and return to the state of your workspace when it was last saved, use "READ_
PARROT_WORKSPACES" on page 154.
When the PARROT workspace is saved, parts of the POLY and GIBBS workspaces are also
saved to the PARROT workspace file, along with the PARROT workspace itself. Using the
POLY command "SAVE_WORKSPACES" on page 215 creates a new POLY3 file, nothing is
saved to the PARROT workspace file.
If you do any POLY calculations based on data in the current workspace file, then a *.POLY3
file is created, which contains a copy of the current set of parameters. If you continue on
your optimization and read the old *.POLY3 file, then the new set of parameters is
overwritten with the old set. It is therefore recommended that you never read a *.POLY3 or
*.GES5 file while you are doing an optimization.
Experimental Information 13
POP-File Syntax 16
Entering Experimental Information 17
Using Stability Conditions 24
Grouping Equilibria with Labels 24
Dividing the POP-File into Several Blocks 25
Experimental Information
An optimization of thermodynamic model parameters should be based on a range of reliable
experimental results that is as wide as possible, as well as on empirical or semi-empirical
correlations and theoretical considerations. During an optimization in Thermo-Calc, many
kinds of thermochemical and thermophysical data can be mixed and used together.
The information needed for an optimization represent measurements of thermodynamic
parameters in the system at equilibrium. These can be measurements of any of the
thermodynamic quantities that can be set as conditions in Thermo-Calc. The information
may represent measurements of activities or enthalpies in single-phase regions for example,
or solubilities or transformation temperatures in a multi-phase region.
For each equilibrium that is used in the optimization, at least one quantity must have been
measured and you also need to know the conditions that must be set to compute the
system’s equilibrium state. For example, consider a binary system in a single-phase region.
Suppose that you have measured the temperature, pressure, composition and the chemical
potential. Three of these quantities are necessary to specify the equilibrium state and the
forth can be used as experimental information to model the phase.
If you have a two-phase region and know the temperature and pressure conditions, as well
as which the stable phases are, then you could use the compositions of one or both phases as
experimental data. The former information about the conditions is sufficient to determine
the equilibrium. The experimental information can then be used to optimize the parameters
that are used to characterise and model the system.
For examples how to enter various kinds of experimental data in the POP-file,
see "Experiments and Experimental Data" on page 54.
POP-File Syntax
It is recommended that you specify an experimental equilibrium as close as possible to
actual experimental conditions. Ideally, there is information about the set of stable phases,
temperature, pressure and some or all compositions for the equilibrium.
In addition, it is recommended that you keep the POP-file well-organised and extensively
commented. This is especially important if someone else reassesses the system when new
experimental information is available.
If you have too many equilibria defined in your file, or if you define equilibria with different
sets of components in the same file, then you must divide the POP-file in blocks (using the
"FLUSH_BUFFER" on page 77 command). You know whether you have defined too many
equilibria for one block when you compile the file. A too large number of equilibria leads to
an error message when the file is compiled.
If you use the "DEFINE_COMPONENTS" on page 196 command, then it must be the first
command in the POP-file (or if you have several blocks, DEFINE_COMPONENTS can also be
put as the first command after FLUSH_BUFFER). This is because the command automatically
reinitiates the current workspace, so the effect of any commands placed before it are not
saved.
Also see the Thermo-Calc Console Mode Command Reference Guide for
information about all these commands.
l "ADVANCED_OPTIONS" on page 174
l "CHANGE_STATUS" on page 186
l "COMMENT" on page 77
l "CREATE_NEW_EQUILIBRIUM" on page 195
l "DEFINE_COMPONENTS" on page 196
l "ENTER_SYMBOL" on page 247
l "EVALUATE_FUNCTIONS" on page 208
l "EXPERIMENT" on page 44
l "EXPORT" on page 46
l "FLUSH_BUFFER" on page 77
l "IMPORT" on page 47
l "LABEL_DATA" on page 48
l "SAVE_WORKSPACE" on page 289
l "SET_ALL_START_VALUES" on page 217
l "SET_ALTERNATE_CONDITION" on page 57
l "SET_CONDITION" on page 220
l "SET_NUMERICAL_LIMITS" on page 296
l "SET_REFERENCE_STATE" on page 224
l "SET_START_VALUE" on page 226
l "SET_WEIGHT" on page 66
l "TABLE_HEAD, TABLE_VALUES and TABLE_END" on page 75
l Code 1: This means that all components are entered but all phases are suspended.
This code is appropriate in most cases.
l Code 0: This means that all components and phases in the equilibrium are suspended
initially. This code is needed if you are using experimental data about systems of
different orders simultaneously, such as data about both binary and ternary systems
for example.
l Code 2: This means that all components and phases are initially entered.
Example
For example, the first command in the example above creates an equilibrium data point
with the unique identifier 1. All components of the system are entered but all phases are
suspended:
CREATE_NEW_EQUILIBRIUM 1 1
Example
In the example, the "CHANGE_STATUS" on page 100 command specifies that the equilibrium
is a single-phase equilibrium with the liquid phase.
CHANGE_STATUS PHASE LIQUID=FIX 1
Furthermore, the temperature is 1379 K, the pressure is 1 bar (1E5 Pa) and the mole
fraction of Au is 0.0563.
SET_CONDITION T=1379 P=1E5 X(LIQUID,AU)=0.0563
Sometimes you have reason to think that some information about an equilibrium condition
may not be accurate. If this is the case, then you specify the degree of uncertainty for a
condition with a colon after the condition quantity, directly followed by either an absolute
value or a percentage. For example, if you have reason to doubt the reliability of the Au
mole fraction measurement, then you could write:
SET_CONDITION T=1379 P=1E5 X(LIQUID,AU)=0.0563:10%
This indicates that you think the Au mole fraction is between 0.0507 and 0.0619. PARROT
calculates the equilibrium twice, once for 0.0507 and once for 0.0619, and then computes
the change of each experimental value between these two equilibria. This change is used to
modify the uncertainty specified for the experimental value.
Also see "Entering the Experimental Value and its Uncertainty" on the next
page.
The possibility of specifying uncertainties on conditions may be useful when you have
experimental data about a ternary system. In a binary system, a tie-line is determined by the
two phases, the temperature and the pressure. Measurements of the compositions of both
phases can then be used as experimental data. To specify the tie-line in a ternary two-phase
equilibrium one of the four compositions must also be set as a condition. If the
measurement of this composition has the same uncertainty as the other compositions, then
you can assign this same degree of uncertainty both to the composition selected as a
condition and the compositions selected as experimental data. Alternatively, the sample
(overall) composition could be used as a condition and all four phase compositions could be
used as experiment values. These phases must have the status entered (not fixed) since the
relative amount of each is unknown.
Example
SET_REFERENCE_STATE AU LIQ * 1E5
SET_REFERENCE_STATE CU LIQ * 1E5
Note that in order for these reference states to be taken into account when the
measurement of the enthalpy per mole of the system is entered with experiment, the R-
suffix must be used.
Example
In the example, the EXPERIMENT command specifies the enthalpy per mole of the system,
where this value is specified with respect to non-default reference states that you have set in
the equilibrium specification:
EXPERIMENT HMR=-1520:200
The value before the colon is the quantity of the variable. The value after the colon is an
assessment of the uncertainty of this quantity. A higher value means a greater uncertainty.
In the example, the uncertainty has been specified with an absolute value but it could also
be specified in percent of the quantity:
EXPERIMENT HMR=-1520:13%
Several experiments can be specified after the experiment command. Besides assigning
values to conditions, it is also possible to specify that a certain quantity is greater than or
less than a certain value. For instance, the following command would specify that the
activity of the C-component is less than 0.01 and the mass fraction of the BCC phase of Ag is
greater than 0.05:
EXPERIMENT ACR(C)<0.01:0.001 W(BCC,AG)>0.05:10%
Note that an experimental quantity can typically also be treated as an equilibrium condition,
and vice versa. Which measured quantities that you treat as conditions and which quantities
you treat as experimental data should be based on the accuracy of the different
measurements. In most cases, the quantity that is based on the experimental technique with
the lowest accuracy should be used as the experimental value.
the TABLE_HEAD, TABLE_VALUES and TABLE_END commands, you can enter such experimental
information into the POP-file in the form of a table. These three commands should always
be used together and must be entered in the right order. See "TABLE_HEAD, TABLE_VALUES
and TABLE_END" on page 75.
The TABLE_HEAD command is followed by a number. This number identifies the table as a
whole, but also uniquely identifies the first equilibrium that is included in the table. This
numeric identifier is incremented by one for each additional equilibrium in the table. Each
row in the table represents one equilibrium. Thus, the equilibrium defined by the first row in
the table above (on the line immediately below TABLE_VALUE) is uniquely identified with
the number 1, the equilibrium defined by the second row by number 2, and so on until the
last equilibrium on the sixth row, which is identified by the number 6.
Since the unique identifiers of the equilibria in the table are automatically generated from
the unique numerical identifier that you give to the table, the unique numerical identifier
that is normally given to the "CREATE_NEW_EQUILIBRIUM" on page 195 command is
replaced by two at signs (@@).
At least one of the equilibria conditions specified with the "SET_CONDITION" on page 220
command must be a condition whose value is set by the numbers in one of the table
columns. To assign the numbers in a column to a condition, use the syntax SET_CONDITION
<condition>=@<column number>. For instance, in the example above, the mole fraction of
X(ALO3/2) is for each equilibrium given by the number in the first column of the table.
At least one of the measured variables that are entered with the experiment command must
be a variable whose value is set by the numbers in a table column. To assign the numbers in
a column to a measured variable, use the syntax EXPERIMENT <variable>=@<column
number>. In the example above, the measured temperature for each equilibrium is given by
the number in the second table column.
The actual table should be entered between TABLE_VALUES and TABLE_END. Separate the
columns with tabs or any number of spaces. The columns do not have to contain numbers,
but can also contain other types of values, such as phase names for example. If a column
contains text with spaces or special characters, then the text must be surrounded by double
quotes (“ABC DEF&ghi”, for example). The table may have columns that are not used, but
each row must have exactly the same number of columns.
Example
The following block of commands exemplifies how a table can be entered into a POP-file:
TABLE_HEAD 1
CREATE_NEW_EQUILIBRIUM @@ 1
CHANGE_STATUS PHASE TETR=FIX 0
Example
For example, the following command sets the composition start value of VA constituent of
the FCC_A1 phase to 0.99:
SET_START_VALUE Y(FCC_A1,VA#2)=0.99
Setting the mole fraction for a component in a phase is not as reliable as setting the site
fraction.
Additional equilibria entered after the last SET_START_VALUE command are automatically
given a similar start value if the following command appears previously in the POP-file:
SET_ALL_START_VALUES Y
If start values are not set automatically for phase constituents, then you may have to set the
composition start value for each equilibrium (or table of equilibria) separately.
Example
For example, the following set of ED_EXP commands characterises a binary (A-B) three-
phase equilibrium (FCC-BCC-LIQ) in a ternary system (A-B-C). It can be used in a POP-file
that otherwise only contain experimental information about the ternary system (A-B-C):
CREATE_NEW_EQUILIBRIUM 1 0
CHANGE_STATUS COMPONENT A B = ENTERED
CHANGE_STATUS PHASE FCC BCC LIQ=FIX 1
SET_CONDITION P=1E5
EXPERIMENT T=1177:10
COMMENT from A-B
This produces an error even before BCC becomes stable and the weight of the experiment in
question can be adjusted as needed. If you specify that the driving force for the BCC phase
should be below 0 (DGM(BCC)<0:1E-4 for example), then the optimization converges
extremely slowly (if at all). With such a sharp error condition, calculating the equilibrium is
like finding the minimum point on a lawn that gently slopes towards a rock wall. The
optimization keeps bouncing into the wall.
Another useful stability condition is the phase stability function, abbreviated QF. This can be
used to specify that a phase is outside the miscibility gap for a solution phase. If QF(phase) is
negative, then the phase is inside the miscibility gap; if QF(phase) is positive, then it is
outside the miscibility gap.
During the optimization, you could use this label to, for example, set all the equilibria that
have it to the same weight in the ED_EXP module.
l PARROT uses a buffer for storing compiled experimental data. If there is not enough
memory in this buffer for storing all the experiments from the POP-file, then the
POP-file can be divided into several blocks. When PARROT encounters the end of a
POP-file block, it saves the experimental data that has been compiled to PARROT
workspace, clears out the memory buffer and then proceeds to read the next block in
the POP-file. This goes on until the experimental data from all the blocks have been
saved to the PARROT workspace.
l If you want to put equilibria with different sets of components in one and the same
POP-file, then you must divide the file up into blocks. Each block should only contain
equilibria that all have the same set of components.
To divide the equilibria in the POP-file into different blocks, enter the "FLUSH_BUFFER" on
page 77 command between two equilibria. This command marks the beginning of new
block. When the command is encountered during the compilation of the POP-file, the
compilation of the current block is terminated, the equilibria saved to the PARROT
workspace file and a new block is initiated. That the buffer is reinitiated means that all
functions and constants that were entered in the previous block must be entered again in
new block in order to be used.
When editing your experimental data in the ED_EXP module, you can select which block to
load and edit using "READ_WORKSPACES" on page 214 <block number>. The block before
the first instance of FLUSH_BUFFER is block number 1, the block after the first instance and
before the second instance is block number 2, and so on.
l A system definition.
l A section where you enter model parameters and optimizing variables.
l A GO PARROT command.
l A section where initial values are assigned to the optimizing variables for the first
optimization cycle.
l A "CREATE_NEW_STORE_FILE" on page 139 <filename.par> which creates the
PARROT workspace file onto which the results of your optimization are continuously
saved and updated. By default this workspace file has the same filename as the setup
file, but with the *.PAR filename extension.
l A "COMPILE_EXPERIMENTS" on page 137 <filename.pop> command. Since you
often encounter syntax errors when you first try to compile a POP-file, it may be
useful to execute this command from the console rather than as part of the setup
macro file.
l Normally, you also have a "SET_INTERACTIVE" on page 295 at the end of the setup
file. This command returns control over Thermo-Calc to the console.
It is possible to interactively execute all these commands one at a time in the console. It may
be instructive to enter the commands that would normally go into the setup file interactively
while using the on-line help while you are learning to use the PARROT module.
l If you have an unencrypted user database, then you can define your system by
entering DATA module commands directly in the setup file. Use the DATA commands
that you normally use to define a system when doing equilibrium calculations in
Thermo-Calc Console Mode.
l Define your system by entering DATA module commands directly in the console, then
generate a macro file with the GIBBS command "LIST_DATA" on page 120 <name of
setup file>.tcm p . This command saves all the data that has been loaded in the
GIBBS workspace as a macro file. This file can then be modified as required into an
optimization setup file.
If you add composition sets of a phase after the POP-file has been compiled, the
data structure in the workspace is corrupted and you have to recompile the
POP-file.
This "ENTER_PHASE" on page 110 command enters a phase called IONIC_LIQ into the GIBBS
workspace. This phase is of the type ionic liquid solution, which is specified by type code Y.
Such a phase is modelled by the Ionic Two Sublattice Liquid Model. The next two arguments
specify the two sublattices, in this case the cations AL+3,ZR+4 and the anions ALO2-1,O-2.
Components that interact in a sublattice are separated by a comma. The first N at the end
means that no additional constituents are added to the phase. The second N means that a list
of possible parameters for the phase should not be shown in the console.
There are model parameters that describe the phase which you do not want to optimize, in
which case the Gibbs energy expression of the parameter does not contain any optimizing
variables.
Example 1
For example, the following parameters of the IONIC_LIQ phase do not contain any
optimizing variables:
ENTER_PARAMETER G(IONIC_LIQ,AL+3:ALO2-1;0) 298.15 +2*GAL2O3_L;
6000 N
ENTER_PARAMETER G(IONIC_LIQ,AL+3:O-2;0) 298.15 +GAL2O3_L+400000;
6000 N
ENTER_PARAMETER G(IONIC_LIQ,ZR+4:O-2;0) 298.15 +2*GZRO2L; 6000 N
These parameters define the Gibbs energy expressions for three constituents in the
constituent array, namely AL+3:ALO2-1, AL+3:O-2 and ZR+4:O-2. The names that occur in
these expressions—that is, GAL2O3_L and GZRO2L—are the names of complex functions of
temperature that are entered in the GIBBS workspace with the "ENTER_SYMBOL" on
page 113 command.
The numbers that frame the Gibbs energy expressions specify the temperature range within
which the expression should be applied. In the above, the expressions are applied in a
temperature range from 298.15 K to 6000 K.
Example 2
In this example, suppose that you want to optimize the model parameter for the ZR+4:ALO2-
1 combination, then you could enter the variables V1 and V2 in the Gibbs energy expression
for that parameter in the following way:
ENTER_PARAMETER G(IONIC_LIQ,ZR+4:ALO2-1;0) 298.15 +GZRO2L
+2*GAL2O3_L +V1+V2*T; 6000 N
You normally have different optimizing variables in different parameters, but in some cases
you may want several parameters to vary together, in which case you can use the same
variable in the Gibbs energy expressions of several parameters.
Kister expression for the excess Gibbs energy. The coefficient is entered after the constituent
array when you use the "ENTER_PARAMETER" on page 143 command. In the last section, all
the parameters were entered with a coefficient of zero (0).
Example
To take account of the excess Gibbs energy, you might enter the following:
ENTER_PARAMETER L(IONIC_LIQ,ZR+4:ALO2-1,O-2;0) 298.15 +V11+V12*T;
6000 N
ENTER_PARAMETER L(IONIC_LIQ,ZR+4:ALO2-1,O-2;1) 298.15 +V13+V14*T;
6000 N
ENTER_PARAMETER L(IONIC_LIQ,ZR+4:ALO2-1,O-2;2) 298.15 +V15+V16*T;
6000 N
Even if you are starting your optimization in alternate mode, you still have to initialize the
optimizing variables though (you can all give them a start value of 0).
To initialize an optimizing variable and to give it a start value, use either "SET_OPTIMIZING_
VARIABLE" on page 159 or "SET_SCALED_VARIABLE" on page 161. Using SET-OPTIMZING_
VARIABLE results in a scaling factor equal to the current value of the parameter unless the
current value is zero, in which case the scaling factor is 1000. This is typically appropriate
for enthalpic parameters, but not necessarily for other parameters. The scaling factor is the
factor by which the optimizing variable value is varied during the optimization.
Example
For example, if you want to optimize the variables V1, V2, V11, V13 and V17, then you could
enter the following in the setup file:
SET_OPTIMIZING_VARIABLE 1 +43000
SET_OPTIMIZING_VARIABLE 2 -35.2
SET_OPTIMIZING_VARIABLE 11 +72000
SET_OPTIMIZING_VARIABLE 13 +27000
SET_OPTIMIZING_VARIABLE 17 -100000
The value given to each optimizing variable (+43000 for variable V1 for example) is also that
variable’s initial scaling factor. If you want to set the initial scaling factor of a variable to a
value that is lower or higher than its start value, then use SET-SCALED_VARIABLE <start
value><scaling factor><min value><max value>.
If Thermo-Calc encounters errors in the syntax of the POP-file, then error messages are
displayed in the console. Normally, the compilation also stops when syntax errors are
encountered. If this happens, then you must correct the errors and recompile the file. It is
useful to have two console windows open when you do this. That way, you can use one
console for editing the experimental data and another console for compiling and reading
any further error messages.
Optimizing in PARROT
In this section:
Optimizing in PARROT ǀ 33 of 72
Thermo-Calc Documentation Set
Optimization Workflow
Normally, the workflow during an optimization is the following:
1. In the PARROT module, run the setup macro file using "MACRO_FILE_OPEN" on
page 5.
2. Go to ED_EXP with "EDIT_EXPERIMENTS" on page 139, use "READ_WORKSPACES" on
page 214 to load your experimental data and then execute "COMPUTE_ALL_
EQUILIBRIA" on page 37.
3. If an equilibrium cannot be computed, then this either means that the start values
(site fractions, for example) were inappropriate or that the equilibrium cannot be
calculated with the current set of parameters. If the latter, then the equilibrium may
have to be excluded from the optimization. However, you should make an effort to
exclude the possibility that the reason is just that you do not have the appropriate
start values for the equilibrium.
Optimizing in PARROT ǀ 34 of 72
Thermo-Calc Documentation Set
Optimizing in PARROT ǀ 35 of 72
Thermo-Calc Documentation Set
experiment. No other equilibria are computed, since the calculations are aborted when the
error occurs.
Eq Lab Iter Weight Temp Exp Fix phases or comments
1 A1 22 1. 2575.3 IONIC_ FLUORI TETR
2 A1 18 1. 2156.9 IONIC_ CORUND TETR
*** ERROR 1614 IN QTHISS
*** CONDITIONS CAN NOT BE FULLFILLED
When this happens, try to find out why the equilibrium calculation fail. Are the condition
start values that you have given the equilibrium inappropriate for example? If you have a
similar equilibrium that has already been successfully computed, then you can select the
equilibrium that does not work, use the ED_EXP command "SET_ALL_START_VALUES" on
page 217 and accept all the suggestions for the site fractions. Alternatively, use
"TRANSFER_START_VALUES" on page 70<equilibrium number> to make the currently
selected equilibrium inherit the start values of the indicated equilibrium. Run "COMPUTE_
EQUILIBRIUM" on page 190 again to see if the equilibrium can be computed with the
inherited start value.
If you cannot find an explanation of why the equilibrium cannot be computed, then it may be
that the experiment is faulty. If so, then this experiment should be excluded from the
optimization by being given a weight of 0. You should then runCOMPUTE_EQUILIBRIUM
again to make sure that all equilibria can be computed. However, experiments that fail to
reach equilibria could succeed in doing so if the optimizing variables have other values. It is
therefore sometimes worth trying to include experiments later in the optimization process
(when the optimizing variables are relatively close to their final values), even if they had to
be excluded at its start. In some cases, it might also be appropriate to change the error
tolerance for in an experiment (using the ED_EXP command "EXPERIMENT" on page 44).
Setting Weights
To change the weight of an experiment, first enter the ED_EXP module from PARROT using
"EDIT_EXPERIMENTS" on page 139. Then use the "SET_WEIGHT" on page 66 command to set
the weight for a specific equilibrium (equilibrium number 3 for example), for a range of
equilibria (the equilibria 10-19) or all the equilibria that have a certain label (such as all the
equilibria with the label A1). To save the new weight(s), use "SAVE_WORKSPACES " on
page 54.
Optimizing in PARROT ǀ 36 of 72
Thermo-Calc Documentation Set
By default, all the experimental information in your POP-file is treated equally: each
experiment has a weight of 1. However, experiments that you excluded because they did not
reach equilibrium now have a weight of 0. The higher the weight of an experiment is, the
more Thermo-Calc tries to ensure that the computed result fits the condition measured in
that experiment.
The contribution of an experiment’s error to the sum of errors is multiplied by the square of
the weight set for that experiment. In other words, if you want to cut the error of an
experiment with weight 1.0 by half, then you should use a weight of 0.7. This makes the
experiment’s error 0.49. Setting the weight to 1.4 instead makes the error twice as large
(1.96).
Note that if you use "READ_WORKSPACES" on page 214 after you have changed weights on
the experiments, your changes are lost unless you have saved those changes. In the ED_EXP
module, you can get a list of all the experiments in the console if you first read the
experimental data from the workspace file (with READ_WORKSPACES) and then use "LIST_
ALL_EQUILIBRIA" on page 48.
The experiments for which the optimization has not found a good fit are marked with an
asterisk (*) or a hash sign (#) in the rightmost column. An asterisk in this column indicates
that the experiment has an error that is larger than the error tolerance and a hash sign
Optimizing in PARROT ǀ 37 of 72
Thermo-Calc Documentation Set
indicates that the error is much larger. The error tolerance depends on the degree of
accuracy set for that particular piece of experimental information. The error values are
presented in the next to rightmost column.
Note that if you are optimizing in alternate mode, then you usually do not need to change
the weights for the experiments. Instead, you can simply run OPTIMIZE_VARIABLES again,
specifying, say, thirty iterations, evaluate the results again, and continue in that way until
you are satisfied with the results.
Optimizing in PARROT ǀ 38 of 72
Thermo-Calc Documentation Set
Example Output
The following shows part of the output that you get when using "LIST_RESULT" on page 149:
In the example you can see that the sum of squares have decreased slightly. (The final sum
of squares that you get after an optimization run is also presented directly in the output
from OPTIMIZE_VARIABLES and CONTINUE_OPTIMIZATION.) As long as the sum of squares
figure is decreasing, the optimization is working as it should.
When your calculated results have been improving for a while, that is, when the sum of
squares has been decreasing, and you are confident that you are making definitive progress,
then you should use the PARROT command "RESCALE_VARIABLES" on page 156 to reset the
starting values of the optimizing variables to their current values. When you do this, the start
values and scaling factors of the optimizing variables (shown in the table’s third column in
the preceding screen shot), are all set to the current values (shown in the table’s second
column).
If your optimization is not going well, then you may want to reset the values of your
optimization variables to their current start values. To do this, use "RECOVER_VARIABLES"
on page 155.
After rescaling the variables, continue the optimization using OPTIMIZE_VARIABLES again.
Cycle through calls of the commands OPTIMIZE_VARIABLES/CONTINUE_OPTIMIZATION,
CONTINUE_OPTIMIZATION, RESCALE_VARIABLES and OPTIMIZE_VARIABLES again until your
set of optimizing variables does not seem to improve anymore. Even when it seems to you
that you have reached this point, it is recommended that you use OPTIMIZE_
VARIABLES/CONTINUE_OPTIMIZATION a few extra times to make sure that the variable
values cannot be further improved, that is, that the sum of squares of the errors of all the
variables cannot be reduced further. If the final solution is repeatedly calculated after the
same number of iterations and reaching the same result, then it is generally reasonable to
accept the current variable values.
Optimizing in PARROT ǀ 39 of 72
Thermo-Calc Documentation Set
Example
A large RSD value thus means that the parameter has not been determined well.
If such a significant RSD has a value larger than 1, then this typically means that you are
using too many optimizing variables. However, the RSD values also depend on the weighting
of the experiments, so it is sometimes possible to reduce the RSD by changing weights.
The RSD should not be too low either. If one or more of them is very close to 0, then this
suggests that you are trying to optimize the system with too few optimizing variables. You
can add optimizing variables interactively using "ENTER_PARAMETER" on page 143 in
GIBBS. However, it is recommended that you add a sufficient number of variables in the
setup file from the start so that do not need to do this. You can fix variables to a value of 0
until you discover that they are needed.
Optimizing in PARROT ǀ 40 of 72
Thermo-Calc Documentation Set
Besides the RSD, you should also keep an eye on the variable values themselves (shown in
the VALUE column, next to the leftmost column in the table shown in the preceding
screenshot). If the value of a variable is in the order of 1E5 or higher and this variable has
been put in the temperature-independent part of an interaction parameter’s Gibbs energy
expression, then you may not have the right weights on your experiments or you are using
too many optimizing variables. This is also typically the case if a variable with a value in the
order of 10 or more (per mole atoms) is in the temperature-dependent part of the Gibbs
energy expression of an interaction parameter. Such a high parameter value may lead to
inverted miscibility gaps or re-stabilisation of a phase at high temperature. It is important to
keep an eye on this since the temperature-independent and the temperature-dependent
interaction parameter often varies together. If the temperature-dependent interaction
parameter cannot be reliably determined, you may have to fix its value.
Note that even if you have found a good enough fit between calculated and experimental
values after an optimization run, a parameter value may suddenly start to change by several
orders of magnitude when you use "OPTIMIZE_VARIABLES" on page 154 is used again. If this
happens, then careful reconsideration of the weighting of the experiments of the set of
optimizing variables is required. However, when the optimization has converged and the
parameter values remain stable after repeated use of OPTIMZE_VARIALBES, this should
usually not happen.
Optimizing in PARROT ǀ 41 of 72
Thermo-Calc Documentation Set
against. An EXP-file contains data points specified in the DATAPLOT format. You could make
an EXP-file for each type of data that you are using in the optimization.
Use the POST command "APPEND_EXPERIMENTAL_DATA" on page 245 to superimpose the
data points in an EXP-file on a phase or property diagram that you have plotted. For
example, to put the experimental data points from a file entitled DP.EXP onto a plotted
diagram, you could enter the following:
APPEND_EXPERIMENTAL_DATA Y DP.EXP 0 1
Such a command call tells Thermo-Calc to superimpose the data points in dataset 1 of
DP.EXP onto the plot in the Console Results window, but not to impose any information about
axis scaling, labels and other information which is normally found in the prologue of the
DP.EXP file.
The POST command "QUICK_EXPERIMENTAL_PLOT" on page 254 can also be used to
superimpose data points on a plotted phase or property diagram.
Also see the DATPLOT User Guide included with this documentation set.
Optimizing in PARROT ǀ 42 of 72
Thermo-Calc Documentation Set
If you then end up with a value for optimizing variable V17 of -100000, then you should enter
the following under the IONIC_LIQ phase in the database file:
PARAM L(IONIC_LIQ,AL+3,ZR+4:O-2;0) 298.15 -100000; 6000 N REF !
If you often need to round-off the optimizing variable value in some way, see
"Rounding off Optimizing Variable Values" on the previous page.
When you have updated or entered the parameters that you optimized, save the database
file.
l Update your POP-file so that it contains the weights of your critical set of
experiments. Use "SET_WEIGHT" on page 66 to set the weights directly in the POP-
file. You may also have to use "SET_START_VALUE" on page 226 for some conditions
in the POP-file. Otherwise, you may not be able to compute the equilibria with
"COMPUTE_ALL_EQUILIBRIA" on page 37.
l Copy the final values of your optimizing variables and set them as start values of the
variables in the setup macro file (with "SET_FIX_VARIABLE" on page 158).
It is important that you round off the values of the optimizing variables
correctly. See "Rounding off Optimizing Variable Values" on the previous page.
When you have done this, you can run the setup macro file to recreate the final
result of the optimization.
Alternate Mode
In this section:
Alternate Mode ǀ 46 of 72
Thermo-Calc Documentation Set
When PARROT optimizes in alternate mode, the computation of this equilibrium is done by
way of the following two calculations:
CHANGE_STATUS PHASE LIQ=FIX 1
SET_CONDITION T=1000 P=1E5 X(LIQ,B)=.2
CHANGE_STATUS PHASE FCC=FIX 1
SET_CONDITION T=1000 P=1E5 X(FCC,B)=.1
The difference between the chemical potentials in every pair of phases is calculated and
PARROT tries to adjust the parameters of the phases so that these differences are
minimized. In other words, PARROT tries to make the chemical potentials equal in all
phases. For PARROT to be able to do this, some additional information about the
experimental multi-phase equilibria is required, at least for all invariant equilibria.
Alternate Mode ǀ 47 of 72
Thermo-Calc Documentation Set
This equilibrium could be calculated with alternate mode without any modification. The
compositions specified with the experiment command is used as condition when the
thermodynamic properties of each phase are calculated.
Examples of SET_ALTERNATE_CONDITION
The following topics demonstrate how "SET_ALTERNATE_CONDITION" on page 57 is used to
prepare different kinds of equilibria for optimization in alternate mode.
Alternate Mode ǀ 48 of 72
Thermo-Calc Documentation Set
composition of the other phase. You can make such an estimate with SET_ALTERNATE_
CONDITION. This command has no effect unless alternate mode is turned on. The
equilibrium described could thus be specified in the following way:
CREATE_NEW_EQUILIBRIUM 1 1
CHANGE_STATUS PHASE FCC BCC=FIX 1
SET_CONDITION P=1E5 T=1000
EXPERIMENT X(BCC,B)=.2:.01
SET_ALTERNATE_CONDITION X(FCC,B)=.3
When the alternate mode is turned on, the composition given by the SET_ALTERNATE_
CONDITION command is used for the FCC phase. The properties of the BCC phase is
calculated using the composition specified by experiment as a condition.
Alternate Mode ǀ 49 of 72
Thermo-Calc Documentation Set
Two-phase equilibrium:
CHANGE_STATUS PHASE LIQUID FCC=FIX 1 SET_CONDITION X
The melting
(FCC,CU)=0.14 P=1E5 EXPERIMENT T=970:2 SET_ALTERNATE_
temperature of an Au-
CONDITION X(LIQUID,CU)=0.16
Cu alloy
CREATE_NEW_EQUILIBRIUM 1 1 CHANGE_STATUS PHASE FCC
Invariant equilibrium BCC LIQUID=FIX 1 SET_CONDITION P=1E5
experiment: A three-
phase equilibrium in a EXPERIMENT T=912:5 SET_ALTERNATE_CONDITION X
binary system (FCC,B)=0.1SET_ALTERNATE_CONDITION X(BCC,B)=0.4SET_
ALTERNATE_CONDITION X(LIQ,B)=0.2
CREATE_NEW_EQUILIBRUM 1 1 CHANGE_STATUS PHASE FCC
Ternary system, with
BCC=FIX 1 SET_CONDITION T=1273 P=1E5 SET_CONDITION X
two compositions
(FCC,B)=0.1:0.02 EXPERIMENT X(FCC,C)=0.12:.02 SET_
measured (both with
ALTERNATE_CONDITION X(BCC,B)=0.17 SET_ALTERNATE_
uncertainty 0.02)
CONDITION X(BCC,C)=0.07
Alternate Mode ǀ 50 of 72
Thermo-Calc Documentation Set
Troubleshooting
During an optimization, you are likely to run into many different problems and challenges.
This topic gives some general guidelines that can help avoid common mistakes and
problems.
In this section:
Useful Guidelines 52
Excluding and Including the Correct Equilibria 53
Conflicting Data 53
Troubleshooting ǀ 51 of 72
Thermo-Calc Documentation Set
Useful Guidelines
The following rules of thumb are generally good to adhere to when you are planning and
executing an optimization:
Troubleshooting ǀ 52 of 72
Thermo-Calc Documentation Set
l Make sure that the values of the optimizing variables keep within a reasonable
range. If a variable starts to change several orders of magnitudes, then you must
consider whether you have the right weights on the experiments and whether you
are using too many optimizing variables.
Conflicting Data
It is important that you do not include conflicting sets of data at the same time during an
optimization. After all, if they are genuinely conflicting, then at least one of the sets must be
incorrect. If you have conflicting sets of data, then only use one of these sets at a time
together with the rest of the data. Often, the optimization makes it clear which dataset
coheres best with the other information that is available about the system.
Sometimes, conflicting data cannot be detected directly. For example, you may have activity
data which is inconsistent with solubility data from the phase diagram. This would be
indicated by large errors in the fit when both the activity data and the solubility data are
included. To find these inconsistencies, let alone correct the errors, you may thus have to
optimize with some datasets excluded.
Troubleshooting ǀ 53 of 72
Thermo-Calc Documentation Set
Example
The following table shows a POP-file excerpt that demonstrates how some kinds of phase
diagram data can be entered:
CREATE_NEW_EQUILIBRIUM 1 1
Solidus (melting CHANGE_STATUS PHASE LIQUID FCC=FIX 1
temperature) of an Au-
SET_CONDITION X(FCC,CU)=0.14 P=1E5
Cu alloy
EXPERIMENT T=970:2
CREATE_NEW_EQUILIBRIUM 1 1
Three-phase CHANGE_STATUS PHASE FCC BCC LIQUID=FIX 1
equilibrium in a binary
SET_CONDITION P=1E5
A-B system
EXPERIMENT T=912:5
CREATE_NEW_EQUILIBRIUM 1 1
Congruent CHANGE_STATUS PHASE BCC LIQUID=FIX 1
transformation in a
SET_CONDITION P=1E5 X(BCC,B)-X(LIQ,B)=0
binary A-B system
EXPERIMENT T=1213:10
Examples
CREATE_NEW_EQUILIBRIUM 1 1
CHANGE_STATUS PHASE FCC_A1=FIX 1
CHANGE_STATUS PHASE GRAPHITE=D
Carbon activity data in the
SET_REFERENCE_STATE C GRAPHITE,,,,
fcc phase
SET_CONDITION P=101325 T=1273 X(MN)=0.03
SET_CONDITION X(C)=0.03
EXPERIMENT ACR(C)=0.29:5%
CREATE_NEW_EQUILIBRIUM 1 1
CHANGE_STATUS PHASE IONIC_LIQ=FIX 1
CHANGE_STATUS PHASE GAS=D
CREATE_NEW_EQUILIBRIUM 1 1
CHANGE_STATUS PHASE CU2O=FIX 1
Entropy at 298.15 K of
CHANGE_STATUS PHASE CUO=FIX 0
Cu2O
SET_CONDITION P=101325 T=298.15
EXPERIMENT S=92.36:1
CREATE_NEW_EQUILIBRIUM 1 1
CHANGE_STATUS PHASE SPINEL=ENT 1
CHANGE_STATUS PHASE FCC O2GAS=DORM
SET_REFERENCE_STATE NI FCC,,,,
Gibbs energy of formation
SET_REFERENCE_STATE AL FCC,,,,
of NiAl2O4
SET_REFERENCE_STATE O O2GAS,,,,
SET_CONDITION P=101325 T=1000 N(NI)=1 N(AL)=2
SET_CONDITION N(O)=4
EXPERIMENT GM=-298911:5%
CREATE_NEW_EQUILIBRIUM 1 1
CHANGE_STATUS PHASE SPINEL=ENT 1
SET_CONDITION P=101325 N(FE)=2 N(MG)=1 N(O)=4
Heat capacity of MgFe2O4
SET_CONDITION T=800
ENTER_SYMBOL FUNCTION CP=H.T;
EXPERIMENT CP=207:5%
CREATE_NEW_EQUILIBRIUM 1 1
CHANGE_STATUS PHASE SPINEL=ENT 1
SET_CONDITION P=101325 T=298.15 N(MN)=1 N(FE)=2
SET_CONDITION N(O)=4
Heat content (H-H298) for
ENTER_SYMBOL VAR H298=H;
MnFe2O4
ENTER_SYMBOL FUN HMNFE2O4=H-H298;
CREATE_NEW_EQUILIBRIUM 2 1
CHANGE_STATUS PHASE SPINEL=ENT 1
SET_CONDITION P=101325 N(MN)=1 N(FE)=2 N(O)=4
SET_CONDITION T=400
EXPERIMENT HMNFE2O4=16610:5%
Example
CREATE_NEW_EQUILIBRIUM 1 1
CHANGE_STATUS PHASE LIQUID=FIX 1
SET_CONDITION T=1379 P=1E5
Enthalpy of mixing in the
liquid state of an Au-Cu SET_CONDITION X(LIQUID,AU)=0.0563
alloy SET_REFERENCE_STATE AU LIQ * 1E5
SET_REFERENCE_STATE CU LIQ * 1E5
EXPERIMENT HMR=-1520:200
Examples
CREATE_NEW_EQUILIBRIUM 1 1
CHANGE_STATUS PHASE CORUNDUM ZRO2_TETR=FIX 0
CHANGE_STATUS PHASE IONIC_LIQ=ENT 1
Enthalpy of melting of the
eutectic in the Al2O3-ZrO2 SET_CONDITION P=101325 N=1 LNAC(O)=-80
binary (J/g) SET_REFERENCE_STATE ZRO2 TETR,,,,,,
SET_REFERENCE_STATE AL2O3 CORUND,,,,,,
EXPERIMENT HWR=1080:90
CREATE_NEW_EQUILIBRIUM 1 1
CHANGE_STATUS PHASE ZRO2_MONO HALITE CAZRO3_
O=ENT 1
Enthalpy of formation of o- SET_CONDITION T=298.15 P=101325 N(CAO)=.5
CaZrO3 from the SET_CONDITION N(ZRO2)=.5 LNAC(O)=-20
component oxides
SET_REFERENCE_STATE CAO HALITE,,,,
SET_REFERENCE_STATE ZRO2 ZRO2_MONO,,,,
EXPERIMENT HMR(CAZRO3_O)=-15960:5%
Example
CREATE_NEW_EQUILIBRIUM 1 1
CHANGE_STATUS PHASE FCC CU2O=FIX 1
Examples
CREATE_NEW_EQUILIBRIUM 1 1
CHANGE_STATUS PHASE FCC_A1 M7C3 M23C6=FIX
1
To prevent BCC_A2 to be stable CHANGE_STATUS PHASE BCC_A2=D
SET_CONDITION P=101325 T=1473
EXPERIMENT DGM(BCC)<-0.1:0.1
Examples
CREATE_NEW_EQUILIBRIUM 1 1
CHANGE_STATUS PHASE LIQUID=ENT 1
Volume of liquid Pt
SET_CONDITION P=101325 N=1 T=1873
EXPERIMENT VM=1.00758E-5:5%
CREATE_NEW_EQUILIBRIUM 1 1
CHANGE_STATUS PHASE FCC_A1=ENT 1
Examples
CREATE_NEW_EQUILIBRIUM 1 1
CHANGE_STATUS PHASE FCC_A1=ENT 1
SET_CONDITION P=101325 N=1 T=298.15
Lattice parameter for
fcc SET_CONDITION X(CR)=0.05
ENTER_SYMBOL FUNCTION LPFCC=((4*VM/6.02214179E23)**
(1/3))*1E10;
EXPERIMENT LPFCC=4.02:5%
CREATE_NEW_EQUILIBRIUM 1 1
CHANGE_STATUS PHASE SPINEL=ENT 1
Site-occupancy, degree
SET_CONDITION P=101325 N(MG)=1 N(AL)=2 N(O)=4
of inversion for spinel
SET_CONDITION T=1073
EXPERIMENT Y(SPINEL,AL+3#1)=0.31:5%
Example
CREATE_NEW_EQUILIBRIUM 1 1
CHANGE_STATUS PHASE SPINEL=ENT 1
Curie temperature
of MnxFe3-xO4, SET_CONDITION T=520 P=101325 N(O)=4
x=1.26 SET_CONDITION N(FE)+N(MN)=3 N(MN)=1.26
EXPERIMENT TC(SPINEL)=520:5
Example
CREATE_NEW_EQUILIBRIUM 1 0
CHANGE_STATUS COMPONENT A B = ENTERED
A binary (A-B) three-phase
equilibrium (FCC-BCC-LIQ) in a CHANGE_STATUS PHASE FCC BCC LIQ=FIX 1
ternary system (A-B-C) SET_CONDITION P=1E5
EXPERIMENT T=1177:10
Thermodynamic Models
The most common models used in assessments are described briefly in these topics.
Examples of how to write the phase definitions in the setup-file are also given for each of
these models. In addition to the models described here, a large number of thermodynamic
models for various phases in different states have been implemented.
In this section:
Gas 65
Compound Energy Formalism 65
Substitutional Liquid 66
Ionic Two-Sublattice Liquid Model 66
Models for Ordered Phases 67
4SL Model for FCC, HCP and BCC 68
2SL Model for FCC, HCP and BCC 69
Magnetic Ordering 70
Molar Volumes and High Pressure 70
Excess Models 71
Thermodynamic Models ǀ 64 of 72
Thermo-Calc Documentation Set
Gas
The gaseous mixture phase is usually treated as a substitutional phase without sublattice. In
the gaseous mixture phase, there are usually molecules formed, and the number of
constituents of the gas phase is often much larger than the number of elements. These
complex constituents have to be defined as species. The ideal gas model may handle a gas
phase under low pressures (and low temperatures). This implies that the P-V-T relations and
thermodynamic properties of pure gaseous species are calculated as for ideal gas, and that
there is interaction between gaseous species in the mixture. In a defined system, there may
only exist one gaseous mixture phase. Type code G is used for the gas phase:
ENTER_PHASE GAS G, 1 H,H1O1,H1O2,H2,H2O1,H2O2,O,O2,O3; N N
Thermodynamic Models ǀ 65 of 72
Thermo-Calc Documentation Set
Examples
Examples of phase definitions in a setup-file using the CEF:
ENTER_PHASE SPINEL I, 4 1 2 2 4
FE+2,FE+3; FE+2,FE+3,VA; FE+2,VA; O-2; N N
ENTER_PHASE SIGMA, 3 10 4 16
AL,CO,CR,FE,NB; AL,CO,CR,FE,NB; AL,CO,CR,FE,NB; N N
ENTER_PHASE FCC_A1, 2 1 1
CR,FE,MN; C,N,VA; N N
ENTER_PHASE BCC_A2, 2 1 3
CR,FE,MN,VA; C,N,VA; N N
Substitutional Liquid
The liquid phase is normally (but not always) modelled as a substitutional phase with no
sublattice, which is occupied by two or more constituents. The constituents are normally the
elements, but molecules or associates can also be used. Type code L is used for the liquid
phase.
Example
ENTER_PHASE LIQUID L, 1
AL,C,CR,FE,MO,NI,SI ; N N
ENTER_PHASE LIQUID L, 1
C,FE,FEO,FEO3/2,NI,NIO ; N N
Thermodynamic Models ǀ 66 of 72
Thermo-Calc Documentation Set
Example
Examples of phase definitions in a setup-file:
ENTER_PHASE LIQUID Y,
AL+3,CR+2,FE+2,NI+2; VA; N N
ENTER_PHASE IONIC_LIQ Y,
CA+2,MG+2; O-2; N N
ENTER_PHASE IONIC_LIQ Y,
AL+3,CA+2,FE+2,MG+2,SI+4;
ALO2-1,O-2,SIO4-4,VA,FEO3/2,SIO2; N N
Thermodynamic Models ǀ 67 of 72
Thermo-Calc Documentation Set
Since PARROT does not automatically create new composition sets, it is necessary to create
composition sets for both the ordered and disordered phases in the setup-file: Amend_
phase_description <phase> composition_sets <new highest set number>,,,,
Example
Example of phase definitions for the corresponding disordered and ordered parts in a setup-
file:
ENTER_PHASE FCC_A1, 2 1 1
AL,CR,FE,NI; VA; N N
ENTER_PHASE FCC_L12, 3 .75 .25 1
AL,CR,FE,NI ; AL,CR,FE,NI; VA; N N
AMEND_PHASE_DESCRIPTION FCC_L12 DIS_PART FCC_A1
GA:A:B:B=GA:B:A:B=GA:B:B:A=GB:A:A:B=GB:A:B:A=GB:B:A:A
GB:A:A:A=GA:B:A:A=GA:A:B:A=GA:A:A:B
LA,B:*:*:*=L*:A,B:*:*=L*:*:A,B:*=L*:*:*:A,B
Thermodynamic Models ǀ 68 of 72
Thermo-Calc Documentation Set
The asterisk * means that the interaction parameter is independent of the occupation of that
sublattice. For the disordered phase to be completely disordered, i.e. that all site fractions
are equal on all four sublattices, all constraints must be correct.
For ordered BCC phases, the situation is a bit more complicated, as the four sublattice
ordering phase represents an irregular tetrahedron with two pairs of sites that are next
nearest neighbours. Thus, for an A-B binary solution phase, with A located on two sublattice
sites and B on the other two, the end-member described by GA:A:B:B has four nearest
neighbour bonds between A and B atoms, whereas the end-member described by GA:B:A:B
has two nearest neighbour bonds between A and B atoms and two next nearest neighbour
bonds. Many parameters thus have a relation:
GA:B:B:B=GB:A:B:B=GB:B:A:B=GB:B:B:A
GB:A:A:A=GA:B:A:A=GA:A:B:A=GA:A:A:B
GA:A:B:B=GB:B:A:A
GA:B:A:B=GA:B:B:A=GB:A:A:B=GB:A:B:A
LA,B:*:*:*=L*:A,B:*:*=L*:*:A,B:*=L*:*:*:A,B
The GA:B:B:B term represents D03, GA:A:B:B B2 and the GA:B:A:B B32 ordering. There are also
two kinds of reciprocal interaction parameters:
LA,B:A,B:*:*;0…9
LA,B:*:A,B:*;0…9
Kusoffsky et al. (2001) have shown the influence of different parameters available in the 4SL
model applied to fcc ordering. The possibility to use the 4SL model to BCC ordering has been
studied by Sundman et al. (2009) in the Al-Fe system.
LA,B:*=L*:A,B
Thermodynamic Models ǀ 69 of 72
Thermo-Calc Documentation Set
For a 2SL asymmetric model including, but not limited to, L12, more constraints are needed.
This model has many complicated relations between the parameters. The relation between
the parameters for the 2SL L12 model can be derived from a 4SL model. The conversion
from 4SL model parameters to 2SL parameters for L12 can be found in Dupin et al. (2001)
and for L10 in Yuan et al. (2012). Higher-order systems with an L12 phase modelled with two
sublattices require a lot of ternary and some quaternary interaction parameters in order to
make the disordered state stable. These parameters have been derived by e.g. Dupin (1995),
also found in Kusoffsky et al. (2001).
Many publications exist on how to model order/disorder transformations using a two-
sublattice model, see e.g. Dupin, Ansara (1999), De Keyzer et al. (2009).
Magnetic Ordering
The magnetic contribution to the Gibbs energy is given by a model proposed by Inden (1975)
and adapted by Hillert and Jarl (1978), and is described by:
G=RTln(b+1)f(t)
where t=T/TC.
The values of the Curie temperature, TC, and Bohr magneton number, b, at a certain
composition are then used in an optimization procedure to calculate the contribution to
Gibbs energy due to magnetic ordering. Curie temperature and Bohr magneton number are
given in the command "ENTER_PARAMETER" on page 143 for phases that undergo a
magnetic transition:
AMEND_PHASE_DESCRIPTION BCC_A2 MAGNETIC -1.0 0.4
ENTER_PARAMETER TC(BCC_A2,FE:VA;0) 298.15 +V1; 6000 N
ENTER_PARAMETER BMAGN(BCC_A2,FE:VA;0) 298.15 +V2; 6000 N
The arguments -1 and 0.4 specify the values of parameters in the magnetic model: -1 is the
antiferromagnetic factor and 0.4 is the structure factor. Usually the antiferromagnetic
factor =-1 for bcc and =-3 for fcc (and other non-bcc phases). The structure factor
corresponds to the short range order fraction of the enthalpy. This factor is 0.4 for bcc and
0.28 for non-bcc phases.
Thermodynamic Models ǀ 70 of 72
Thermo-Calc Documentation Set
and Oonk (2000). Four parameters are used in the implementation of the model in Thermo-
Calc:
All parameters can be composition dependent in the same way as all other model
parameters in Thermo-Calc. Experimental information about the temperature, pressure and
composition dependence of the volume can be assessed using these model parameters. To
evaluate V0, VA and VK experimental data at 1 bar only are needed.
Example
Examples on modelling molar volume in a setup-file:
ENTER_PARAMETER V0(BCC_A2,FE:VA;0) 298.15 +V1; 6000 N
ENTER_PARAMETER VA(BCC_A2,FE:VA;0) 298.15 +V2*T+V3*T**2; 6000 N
ENTER_PARAMETER VC(BCC_A2,FE:VA;0) 298.15 +V4+V5*T; 6000 N
ENTER_PARAMETER VK(BCC_A2,FE:VA;0) 298.15 +V6+V7*T; 6000 N
ENTER_PARAMETER V0(FCC_A1,CR,FE:VA;0) 298.15 +V8; 6000 N
ENTER_PARAMETER VA(FCC_A1,CR,FE:VA;0) 298.15 +V9*(T-298.15); 6000
N
Excess Models
Unless specifically amended, the excess Gibbs energy terms are modelled by the Redlich-
Kister-Muggianu Model. Other excess models for the Gibbs energy are also implemented in
Thermo-Calc, such as e.g. Kohler and Toop-Kohler extrapolation models.
More information about different excess models can be found in the Thermo-
Calc Console Mode example tcex51.
Thermodynamic Models ǀ 71 of 72
Thermo-Calc Documentation Set
ternary composition-dependent interaction parameter, you must enter all three parameters
(0,1 and 2). If such a ternary interaction parameter should be zero, then assign it a function
which is zero. If the three interaction parameters have the same value, then that is identical
to having a composition-independent ternary parameter.
Example
ENTER_PARAMETER L(LIQUID,A,B,C;0) 298.15 +1000; 6000 N
ENTER_PARAMETER L(LIQUID,A,B,C;1) 298.15 +1000; 6000 N
ENTER_PARAMETER L(LIQUID,A,B,C;2) 298.15 +1000; 6000 N
is identical to
ENTER_PARAMETER L(LIQUID,A,B,C;0) 298.15 +1000; 6000 N
is NOT identical to
ENTER_PARAMETER L(LIQUID,A,B,C;0) 298.15 +1000; 6000 N
Thermodynamic Models ǀ 72 of 72
Pourbaix Diagrams
Educational Material
Thermo-Calc Documentation Set
Pourbaix Diagrams
Marcel Pourbaix applied thermodynamics to predict materials corrosion resistance. He
determined the phase stability relations in terms of varied pH and Eh values for an
interaction system of metal and pure water or dilute aqueous solution. He presented the
stability regions of metal and secondary phases (such as metal-oxides/hydroxides) on a pH-
Eh diagram, which is now known as a Pourbaix diagram.
A Pourbaix diagram is a kind of phase diagram that shows the stability boundaries for a
metal-aqueous interaction system. The phase boundaries are shown as a function of pH
(acidity) and Eh (standard hydrogen electronic potential). An aqueous solution phase is
always present in such a system. At a given pH and Eh, a metal may lose its stability to a
soluble or corrosive aqueous solution, or be in equilibrium with either the aqueous solution
(insoluble/immune) or with a secondary-phase file that has formed (consisting of oxides,
hydroxides, sulphides or other solids). In the latter case, further dissolution of the passive or
protective metal is prevented.
The speciation and partition in the aqueous solution and the interacting phases depend not
only on pH and Eh, but also on other factors such as the bulk composition, temperature and
pressure in the system. The interacting phases may be gas mixtures, stoichiometric solids or
solid solutions.
A Pourbaix diagram is divided in regions of immunity, corrosion and passivity. These regions
provides information about the stability of a particular metal or alloy in a specific aqueous
electrochemical environment under certain pH, Eh, pressure and temperature conditions.
The following shows these three regions in a Pourbaix diagram for the heterogeneous
interaction between 0.001 mole of austenite steel (Fe-19Cr-9Ni [at%]) and 1 kg of water
(with 3 m NaCl), at 200°C and 100 bar:
Depending on the system’s bulk chemical composition, secondary phases may form during
the transformation process. These can not only be oxides, but also be, for example,
hydroxides, sulphides, sulphates, carbonates, nitrates, phosphates, borates, silicates, hydrous
silicates and halides. Information about these secondary phases may help one understand
the passivation behaviours in corrosion processes. For example, it may be important to
understand whether any secondary phases are formed in different pH-Eh regions during
hydrolysis, oxidation, reduction or other reaction processes.
In a Pourbaix diagram, the predominant ion boundaries are often represented by dashed
and straight lines imposed on a traditional Pourbaix diagram for a simple interaction system
(Pourbaix, 1973, 1974; Cramer and Covino, 2003; Verink, 2011; Thompson et al., 2011). Such
a predominance boundary is normally an equal molality (or equal activity) line for a pair of
You cannot get any information about predominant ion boundaries from a
Pourbaix diagram in Thermo-Calc.
Key Concepts
The following are two key concepts important for understanding how aqueous solutions
behave and how an aqueous-bearing heterogeneous interaction system is properly defined
Solubility
When a heterogeneous equilibrium has a dissolving solution or mixture phase and a
stoichiometric or solution phase, then the concept of solubility becomes important. A
solubility of a phase (the solute) is its property of dissolving in the solvent phase. This
concept concerns the constitution of a phase and is applied where one or several of the
constituents are dominant (which is highly concentrated and dissolving) while there are only
small amounts of the other remaining species (which are less concentrated and dissolved).
The dissolving solution or mixture phase can be liquid, gas, aqueous or solid, as long as it has
dissolving capacity. The stoichiometric or solution phase has some constituents which tend to
be dissolved into the dissolving solution or mixture phase.
When defining an interaction system, the initial condition for the H2O component is always
set as 1 kg of water. The initial composition conditions for dissolving and interacting
elements are normally defined in moles (such as n(Fe)=0.009, n(Cr)=5E-4, n(Ni)=3E-4, n
(Mn)=5E-5, n(S)=5E-5, n(Na)=3, n(Cl)=3). This makes it straightforward and convenient to
count various related aqueous solution properties based on molality. The initial conditions
for the H+1 and ZE components can be given as molar compositions (such as n(H+1)=0, n
(ZE)=0) or their activities or potentials (such as lnACR(H+1)=-9.21, MUR(ZE)=8400).
The pH and Eh properties of the aqueous solution in the interacting system are always
defined in the following way:
pH = -log10[ACR(H+1,AQUEOUS)*AH2O]]Eh = MUR(ZE)/RNF
The symbol AH2O is the molecular weight of solvent H2O (equals 55.508435) and RNF is the
Faraday constant (equals 96485.309).
The activity of the solvent water (ACRH2O, Aw), the osmatic coefficient of aqueous solution
(OSMC, Os), electronic affinity (Ah), electronic activity log10ACRe (pe), ionic strength (IS),
total aqueous concentration, in molality (TM) and total alkaline concentrations under two
definitions (At1/AT2) are calculated and listed for each equilibrium state.
POLY3 calculations for mass balances in Thermo-Calc are always based on site-fractions.
Consequently, when functions for describing various properties of aqueous solutes are
defined, such as molality (MLi), activity coefficient (RCi) and activity (AIi), they should be
converted to molality-based quantities:
MLi = Y(AQUEOUS,i)*AH2O/YH2O
RCi = ACR(i,AQUEOUS)*YH2O/Y(AQUEOUS,i)
AIi = ACR(i,AQUEOUS)*AH2O
Here, YH2O is the site-fraction of solvent H2O and AH2O equals 55.508435.
Many more variables, functions and tables can be entered for various purposes. For
instance, an equilibrium constant for a homogeneous reaction or a solubility product for a
solid dissolution reaction can be entered.
l The aqueous solution phase which applies a certain aqueous solution model. In
Thermo-Calc, information about this phase could be retrieved from, for instance, the
TCAQ or AQS database (these also include data for the REF_ELECTRODE phase that is
used for setting the reference state of the standard hydrogen electrode).
l The alloy solution and/or compound phases for the primary matrix phases (and
possibly also for the precipitated phases in the alloy. Examples of such phases include
FCC_A1, BCC_A2, HCP_A3, SIGMA and CEMENTITE. In Thermo-Calc, information
about such phases could be retrieved from, for example, the TCFE database for
steels/Fe-alloys, the TCNI database for Ni-based superalloys, the TCAL database for
Al-based alloys, the TCMG database for Mg-based alloys, the TCSLD for Sn-/Au-/Bi-
/Zn-based solder alloys or the SSOL for general alloys.
l The secondary solid phases that would form as a result of the heterogeneous
chemical or electrochemical reactions. These phases could be, for example, oxides,
hydroxides, silicates, hydrous silicates, sulphides, sulphates, carbonates, nitrates,
phosphates, borates or halides. In Thermo-Calc, information about such phases could
be retrieved from, for example, the SSUB database for pure solid compounds or the
TCOX database for complex oxide solids.
l The gaseous mixture phase. Information about this phase could be retrieved from,
for example, the SSUB database. However, note that is also possible to perform
Pourbaix diagram calculations that ignore the gaseous mixture phase.
All this thermodynamic data about the various phases must be critically assessed and
internally consistent. Furthermore, when the data is retrieved from several databases, the
data taken from each database must be consistent with the data taken from the other
databases. When Pourbaix diagrams and other diagrams of steel corrosion processes are
calculated, it is typically recommended that the TCAQ, TCFE, SSUB and TCOX databases or
the AQS, TCFE, SSUB and TCOX are used in combination.
The public PAQ and PAQS databases each contains thermodynamic data for all four phase
types and can be used for calculating Pourbaix diagrams. They have been designed
specifically for the purpose of demonstrating the POURBAIX module functionality in Thermo-
Calc. However, these databases only allow you to perform test calculations for simple cases
with major phases in which only a few elements can be considered.
The first reaction describes the formation of H2-dominated gaseous mixture, under reducing
conditions. The second reaction describes the formation of O2-dominated gaseous mixture,
under oxidising conditions.
If the system reaches global equilibrium, then the water component is electrolyzed to H+
and O-2 at all pH conditions. The degree of electrolysis depends on the pH value in the
aqueous solution phase. If Eh gets high enough, then the O-2 anion is oxidized to O2 (aqs).
On the other hand, if Eh gets low enough, then the H+ cation is reduced to H2 (aqs). The
major electrolysis and redox reactions are the following:
H2O (water) = H+ + OH- à Electrolysis of water at all pH.
H2O (water) = 2H+ + O-2 à Electrolysis of water at all pH.
O-2 - 2e- = 0.5O2 (aqs)àOxidation or de-electronization of O-2 at high Eh.
2H+ + 2e- = H2 (aqs) à Reduction or electronization of H+ at low Eh.
At a critically high Eh value under a given pH condition, an aqueous solution phase with a
high enough O2 activity becomes less stable than an O2-dominated gaseous mixture phase.
At this point, the gas phase replaces the aqueous solution phase in the system. The
replacement process can be characterised by the following phase-transformation on the
aqueous-gas phase boundary and oxidation of remaining water:
O2 (aqs) = O2 (gas)
H2O (water) - 2e- = 2H+(gas) + 0.5O2 (gas)
Similarly, at a critically low Eh value under a given pH condition, an aqueous solution phase
with a high enough H2 activity becomes less stable than a H2-dominated gaseous mixture
phase. At this point, the gas phase replaces the aqueous solution phase in the system,
through the following phase-transformation on the aqueous-gas phase boundary and
reduction of remaining water:
H2 (aqs) = H2 (gas)
H2O (water) + 2e- = O-2 (gas) + H2 (gas)
The two example diagrams show that the upper and lower boundaries between the aqueous
phase (water) and the gas phase (dominated by either O2 or H2) can shift when solutes
dissolve or when the temperature and pressure change.
Accordingly, if one does not take a gaseous mixture phase into account when performing a
calculation of Pourbaix diagram (as above), then the aqueous solution phase may end up
with an extremely high O2 (aqs) concentration at high Eh condition, or an extremely high H2
(aqs) concentration at low Eh condition. Under either of these two extreme circumstances,
the concept of “aqueous solution phase” is no longer valid and consequently no proper
aqueous solution model can actually be applied. Therefore, from a restrictive
thermodynamic equilibrium point of view, one shall normally include a gaseous mixture
phase in an aqueous-bearing heterogeneous interaction system. This is true for all types of
equilibrium calculations for an aqueous-bearing heterogeneous interaction system, not only
of Pourbaix diagram calculations.
Hence, to perform a completely accurate Pourbaix diagram calculation, the gaseous mixture
phase must be taken into account. However, since these electrochemical reactions normally
have much higher kinetic barriers and are slower than other electrochemical and chemical
reactions in the interaction system, one can sometimes ignore the gaseous mixture phase in
the calculation. Note that if the gaseous mixture phase is ignored in this way, then the
Pourbaix diagram does not show the H2O-stability limiting lines.
Example Diagrams
The first diagram is a pH-Eh diagram for pure water at 25°C and 1 bar:
Comparing this Pourbaix diagram with that from "Basic Settings and Definitions" on page 7,
you can see that both diagrams are for the same interaction system under the same
temperature-pressure condition, but the present diagram shows the results of calculations
where the gaseous mixture phase has been included. It presents the complete Pourbaix
diagram for the defined interaction system, in a full thermodynamic equilibrium. In the
upper region (high Eh) and lower region (low Eh), the aqueous solution phase is oxidised and
reduced to the O2- or H2-dominated gas phase. Hematite coexists with the O2-dominated
gas, while Fe-BCC is stable with the H2-dominated gas. The stability field of magnetite may
extend slightly into the H2-dominated gas region, where it coexists with the gaseous mixture
instead of the aqueous solution. Its boundary with Fe (BCC) cannot be drawn due to the
absence of aqueous solution phase.
It is not possible to calculate the pH value in both the O2- and H2-dominated gaseous
mixture phase stability regions where the aqueous solution phase is absent. Hence, in a
normal Pourbaix diagram, no line is drawn that indicates a phase boundary between the gas
phase and the metallic phases or secondary phases (that is, metal-oxides).
In the interaction system that the diagrams in "Pourbaix Diagrams with Gas Phase Excluded"
on page 16 and "Pourbaix Diagrams with Gas Phase Included" on page 16 are based on, the
initial amount of pure Fe that was taken to have effectively reacted with 1 kg of pure water
at 25°C and 1 bar was 0.001 m. The following diagrams are Pourbaix diagrams of Fe where
other initial amounts of pure Fe have been used, or where the interacting aqueous solution
compositions have been alternated, or the temperature and/or pressure have been changed.
Gaseous mixture phases have been included in all the calculations that these diagrams are
based on.
In the first diagram, 1E-3 m Fe actively reacted with 1 kg of pure water at 25°C and 1 bar (as
in the calculation in Pourbaix Diagrams with Gas Phase Included):
In the second diagram, 1E-6 m Fe actively reacted with 1 kg of pure water at 25°C and 1 bar.
Note that the active metal corrosion region gets enlarged as the initial Fe amount decreases
from 1E-3m to 1E-6m:
In the third diagram, 1E-6 m Fe actively reacted with 1 kg of water, 3m NaCl and 1E-5 m
SO2 at 25°C and 1 bar. Introducing SO2 into the system leads to the formation of various
metal-sulphides (Py-pyrite, Popyrrhotite, Tr-troilite). In addition, the passivation region
becomes larger.
Finally, in the fourth diagram, 1E-6 m Fe actively reacted with 1 kg of water, 3m NaCl and
1E-5 m SO2 at 150°C and 100 bar. Here, changing the temperature and pressure affects the
stability fields of various Fe-oxides/sulphides.
As you can see from the four diagrams, the aqueous-gas phase boundaries shift as the initial
bulk compositions, pressure and temperature conditions in the interaction system change.
The next example is a Pourbaix diagram calculated for the heterogeneous interaction
systems between 0.1 mole of AISI4340 stainless steel (Fe-0.80Cr-1.85Ni-0.70Mn-0.25Mo-
0.25Si-0.40C [wt%]) and 1 kg of seawater (with the equivalent of 0.6054 m NaCl), at 25°C
and 1 bar. This application is particularly useful for failure analysis of petroleum exploitation
industry.
14. Thompson WT, Kaye MH, Bale CW, and Pelton AD (2011): Pourbaix diagrams for
multielement systems. In: Uhlig's Corrosion Handbook, 3rd Edition (Revie RW, Ed.),
The Electrochemical Society and Jon Wiley & Sons, New Jersey.
15. Verink ED (2011): Simplified procedure for constructing Pourbaix diagrams. In:
Uhlig's Corrosion Handbook, 3rd Edition (Revie RW, Ed.), The Electrochemical Society
and Jon Wiley & Sons, New Jersey.
A topic introduce the method of formatting DIGLIB symbols in LaTeX documents, for the
purpose of necessarily/appropriately referring to the corresponding LaTeX symbols (closest
to those DIGLIB symbols which have been plotted on a diagram using the DATAPLOT
Graphical Language) in the texts of LaTeX documents for publications/reports.
DATAPLOT Examples
To help you prepare your EXP (experimental) files to use for your plotted diagrams
generated by Thermo-Calc simulations, there are examples of EXP files using the DATAPLOT
graphical language standard, which are normally independent of software versions.
The basic graphical command consists of an X/Y coordinate pair and a Graphical Operation
Code (GOC). With other commands, the interpretation of this basic command can be
modified. There are separate commands to draw a polygon or a function and ways to get
texts in different fonts.
To edit a DATAPLOT file, the graphical commands can be abbreviated.
Coordinate Systems
The DATAPLOT language accepts coordinates in three different coordinate systems, which
are called word, virtual and normalized.
l The word coordinates are selected to represent any kind of data and be of “any”
magnitude.
l The virtual coordinate system uses centimeters as units. However, the actual size of
one unit is dependent on the implementation of the device driver in DIGLIB. It is not
recommended to use this coordinate system if different output devices are used for
preliminary and final plots.
l The normalized coordinate system goes from zero to one. When plotting, you
interactively scale each axis by selecting the minimum and maximum word
coordinates on the axis. In the normalized coordinate system, the minimum axis
value is represented by zero and the maximum by one. DIGLIB draws a square
between the four points (of the X and Y axes) that are determined by the coordinates
zero and one in the normalized coordinates.
Character Meaning
W, V or N To use word (W), virtual (V) or normalized (N) coordinates. W is the default.
A or R XY are absolute (A) or relative (R) values. A is the default.
M or D To perform a move (M) or draw (D) operation to XY. M is the default.
To apply “soft” splines on a line drawn between the coordinate pairs (used
B
only on BLOCK data).
S To plot default symbol at XY.
S# To change default symbol to No # symbol and plot it at XY.
To plot TEXT at XY. It must be the last operation in a GOC code. The TEXT
following the ’ command is interpreted and expanded by the DIGLIB
‘TEXT
software, if it includes any ^ operator or STRING names using the ~
descriptor.
Tables or Blocks
In many cases, you have (calculated or experimental) data in the form of tables, and want to
plot one or several columns as X-axis and one or more columns as Y-axis. A single table can
contain many sets of data records of the same kind of information for a specific data
"BLOCK" on page 19. There can be many data BLOCKS in a "DATASET" on page 19.
By enclosing these tables in a data BLOCK, you can select which column(s) is the X-axis and
which is the Y-axis. For example,
BLOCK X=C1; Y1=C3; Y2=C2; GOC=C4,DAW
Where the X-axis values are in column 1, the Y-axis values are in columns 2 and 3, and any
GOC codes are in column 4. The default GOC for this BLOCK is Draw Absolute Word. The
GOC code inside the table is only necessary if the default GOC is not applicable.
A more elaborate use of the table is shown in this example:
BLOCK X=C3; Y=1E3/(C3+273); GOC=C8,MAWS1
Where the X-axis values are in column 3, the Y-axis values are in column 1 with some
additional calculations applied. Any GOC is in column 8, and the default GOC is Move
Absolute Word and plot the symbol no. 1.
Columns in a table must be separated by one or more space characters and do not have to
be justified.
It is possible to have tables with mixed text and numbers, but each word followed by a space
is counted as one column. The columns used for plotting also must be numerical. An
example of a legal line in a table is
298.15 This_is_the_second_column 11.5 This_is_the_fourth_column
A line in the table must not exceed 80 characters. A BLOCK must be terminated
by a line with the "BLOCKEND" on page 20 command.
Drawing a Polygon
Normally, each point is written on a separate line. But in order to draw a line in a more
compact way, use the command "DRAWLINE" on page 21. DRAWLINE is followed by a couple
of X/Y number pairs. The X/Y pairs must be separated by a space, and there must be a
comma sign between the X and Y values. DRAWLINE makes a move operation to the first
pair of X/Y coordinates, and then draws a line among all pairs up to the last one. All pairs
must fit on one line of 80 characters, but there can be several consequent DRAWLINE
commands.
Writing a Text
Use the "TEXT" on page 28 command to write a text at the current point. You can write a
text at any X/Y pair by appending a single quote followed by the text on the same line. For
example:
1.1 1.0 NAM’This is a text
Use the command "FONT" on page 24 to select the font used for the text, and "CHARSIZE" on
page 22 to select the size of the characters. Set this size of the symbols with "SYMBOLSIZE"
on page 22.
If a text or a single character should be of a different font than all the other text, or to use
subscripts or superscripts in a text, use the ^ operators or STRING command to create the
text. The command "STRING" on page 26 stores the text in a specified variable that includes
all text-formatting information defined by the DIGLIB software. See "Example 3 – Using
Strings and Various Line Types" on page 33 and "Example 5 – Use Included Files for
Predefined Symbols" on page 35.
However, if a graphical output is done on a PostScript device using the PostScript hardcopy
fonts, special text formatting codes as "LaTeX Formatting Codes" on page 12 should be used
and the STRING formatting syntax is then not valid.
Plotting a Symbol
As described in "Graphical Operation Codes" on page 6, a GOC code in a data BLOCK may
contain an S option to plot a symbol for an X/Y pair or the same symbols for the data BLOCK.
A number selecting the symbol can optionally follow the character S. You can plot a symbol
at any current X/Y position by appending a quote specified by the symbol number in the GOC
code (e.g., 1.1 1.0 MANS5’This is a text).
You can also insert DIGLIB symbols into LaTeX-edited documents.
All the DIGLIB symbols work properly and give good output results for the
PostScript format.
Other Commands
Use the "LINETYPE" on page 21 command to define line types as solid, long dashed, short
dashed or dotted. If you are using a color device, use the "COLOR" on page 22 command to
change color of the lines. On some black and white devices, colors are simulated with
different width and dashing of the lines.
l Use the "CLIP" on page 20 command to change the default where all data outside the
normalized coordinates zero and one are not plotted.
l When plotting symbols representing various experimental data, it is important that
the symbols are centered around the coordinate values.
l Use the "ATTRIBUTE" on page 21 command to change the coordinates where text is
displayed. The default is the lower left corner of the first character in the text.
l Use the "INCLUDE" on page 29 command to create libraries with texts and include
these in similar plots.
l The dollar sign $ as the first character of a line stands for a comment character,
which means the whole line is ignored when plotting.
Interactive Plotting
The DATAPLOT file is read into the POST module in the workspace with "APPEND_
EXPERIMENTAL_DATA" on page 245 or "QUICK_EXPERIMENTAL_PLOT" on page 254. These
commands ask for the name of the DATAPLOT file and also which PROLOGUE(S) and
DATASET(S) are to be plotted.
See the Thermo-Calc Command Mode Reference Guide for details about these commands.
By giving the PROLOGUE/DATASET number as -1, you get a list of the available
PROLOGUES/DATASETS in the file. Note that if DATASET 0 is in a DATAPLOT file, its data is
always used even if other DATASETS are chosen.
DIGLIB_Sym.tex
\documentclass[dvips,12pt]{article}
\textwidth 165mm
\textheight 225mm
\oddsidemargin 1mm
\evensidemargin 1mm
\topmargin 1mm
%%\usepackage{amssymb}
%% next replace amssymb and to get udtimes
\usepackage[utopia]{mathdesign}
\usepackage{rotating}
\usepackage[latin1]{inputenc}
\usepackage{graphics}
\usepackage{graphicx,subfigure}% with figures
%\usepackage[draft]{graphicx}% without figures
\usepackage{subfigure}% with figures
\topmargin 1mm
\oddsidemargin 1mm
\evensidemargin 1mm
\begin{document}
{\Large \bf Diglib symbols and their corresponding LaTeX symbols}
\vspace{5mm}
The information below gives the closest corresponding LaTeX symbol. All symbols (except +)
must be generated in math mode. Most of these require the package amssymb, i.e., you
need a directive usepackage{amssymb} in the preamble. Two of the symbols require the
more extensive mathdesign that can be included with usepackage[utopia]{mathdesign}.
\vspace{5mm}
{\Large
\begin{tabular}{llll}
Diglib & Latex & Latex name & Note\\
1& $\vartriangle$& $\backslash$vartriangle & amssymb \\
2& $\square$& $\backslash$square\\
3& {\Huge $\diamond$} & $\backslash$diamond & size $\backslash$Large \\
4& $\udtimes$& $\backslash$udtimes & mathdesign \\
5& $\triangledown$& $\backslash$triangledown & amssymb\\ 6 & +& normal + \\
7& $\ast$& $\backslash$ast & amssymb\\
8& $\times$& $\backslash$times \\
9& {\Huge $\circ$}& $\backslash$circ & size $\backslash$Large \\
10& {\Huge $\star$}& $\backslash$star & size $\backslash$Large, amssymb\\
11& $\curlyvee$& $\backslash$curlyvee & amssymb\\
12& $\Join$& $\backslash$Join\\
13&& - & nothing similar, overlapping $> <$\\
14&& - & nothing similar, 10-edged star \\
15& $\maltese$& $\backslash$maltese& mathdesign \\
16&& - & nothing similar, a pentagon \\
17& $\curlywedge$& $\backslash$curlywedge & amssymb\\
\end{tabular}}
\end{document}
By default when using the LaTeX command, you are in math mode and Thermo-
Calc automatically interprets the entered text as math. The above link uses the
dollar sign ($) in all the examples but this is NOT required. For example, if you
enter $E=mc^2$ this is displayed including the $ instead of the equation.
PROLOGUE Commands
In this section:
PROLOGUE 15
XSCALE 15
YSCALE 15
XTEXT 15
YTEXT 15
XTYPE 16
YTYPE 16
XLENGTH 16
YLENGTH 16
TIC_TYPE 16
TITLE 17
DIAGRAM_TYPE 17
PROLOGUE Commands ǀ 14 of 45
Thermo-Calc Documentation Set
PROLOGUE
PROLOGUE is the beginning of a number of consequent lines of user-defined diagram layout
commands. The lines are displayed with the optional text when using the -1 option in the
POST-processor as prompted for the PROLOGUE number with "APPEND_EXPERIMENTAL_
DATA" on page 245 or "QUICK_EXPERIMENTAL_PLOT" on page 254.
XSCALE
XSCALE sets the scaling in word coordinates of the X-axis.
YSCALE
YSCALE sets the scaling in word coordinates of the Y-axis.
XTEXT
XTEXT sets the X-axis text.
YTEXT
YTEXT sets the Y-axis text.
PROLOGUE Commands ǀ 15 of 45
Thermo-Calc Documentation Set
XTYPE
XTYPE sets the X-axis type as linear (default), logarithmic or inverse.
YTYPE
YTYPE sets the Y-axis type as linear (default), logarithmic or inverse.
XLENGTH
XLENGTH sets the X-axis length to approximately # centimeters.
Syntax XLENGTH #
YLENGTH
YLENGTH sets the Y-axis length to approximately # centimeters.
Syntax Y LENGTH #
TIC_TYPE
TIC_TYPE sets the relative length of the tic marks.
Syntax TIC_TYPE #
PROLOGUE Commands ǀ 16 of 45
Thermo-Calc Documentation Set
TITLE
TITLE sets the title text string to be printed above the diagram.
DIAGRAM_TYPE
DIAGRAM_TYPE sets the diagram type to square (the default) or triangular.
PROLOGUE Commands ǀ 17 of 45
Thermo-Calc Documentation Set
DATASET Commands
In this section:
DATASET 19
BLOCK 19
BLOCKEND 20
DATAPOINT 20
CLIP 20
ATTRIBUTE 21
LINETYPE 21
DRAWLINE 21
CHARSIZE 22
SYMBOLSIZE 22
GLOBALSIZE 22
COLOR 22
FONT 24
STRING 26
TEXT 28
FUNCTION 28
PCFUNCTION 28
PAINT 29
INCLUDE 29
DATASET Commands ǀ 18 of 45
Thermo-Calc Documentation Set
DATASET
DATASET indicates the beginning of a number of consequent lines comprising a set of user-
defined data. The DATASET lines are displayed on the terminal along with the optional
text when using the -1 option in the POST-processor as prompted for the DATASET number
in the "APPEND_EXPERIMENTAL_DATA" on page 245 or "QUICK_EXPERIMENTAL_PLOT" on
page 254 command.
BLOCK
BLOCK defines how the following numeric data block shall be interpreted. The definitions of
X and Y coordinates may also be expressed as a function of the column values, making it
possible to perform transformations.
GOC Characters
The GOC is a combination of the following characters:
Character Meaning
W, V or N To use word (W), virtual (V) or normalized (N) coordinates. W is the default.
A or R XY are absolute (A) or relative (R) values. A is the default.
M or D To perform a move (M) or draw (D) operation to XY. M is the default.
DATASET Commands ǀ 19 of 45
Thermo-Calc Documentation Set
Character Meaning
To apply “soft” splines on a line drawn between the coordinate pairs (used
B
only on BLOCK data).
S To plot default symbol at XY.
S# To change default symbol to No # symbol and plot it at XY.
To plot TEXT at XY. It must be the last operation in a GOC code. The TEXT
following the ’ command is interpreted and expanded by the DIGLIB
‘TEXT
software, if it includes any ^ operator or STRING names using the ~
descriptor.
BLOCKEND
Syntax BLOCKEND
DATAPOINT
DATAPOINT is not a DATASET command, but the basic DATAPLOT command (see synopsis
below) performs an action at the current point determined by the specified X/Y- coordinates.
A DATASET may contain various data points, in addition to one or more data "BLOCK" on the
previous pages. Such data points are separated and independent on each other.
Syntax X Y GOC
Example
0.7 0.95 N'Example 6
0.5 0.08 MNA'E^FS18^SQ(^SK^FS10A+5#8*C#^FS10
-!a^FS18)^FS11+B^DIa#b#$
CLIP
CLIP turns clipping on or off. If it is OFF, it allows output outside the ordinary plot area
defined by normalized coordinates zero and one.
DATASET Commands ǀ 20 of 45
Thermo-Calc Documentation Set
ATTRIBUTE
ATTRIBUTE specifies where the current XY position is in the character or symbol plotbox.
Syntax ATTRIBUTE
Prompts attribute
attribute may be TOP, CENTER or BOTTOM. ATTRIBUTE CENTER
is default for symbols; ATTRIBUTE BOTTOM is default for
characters.
LINETYPE
LINETYPE redefines the current linetype in the plot.
Syntax LINETYPE #
l Solid (default)
l Long dashed
l Short dashed
l Dotted
DRAWLINE
DRAWLINE draws a line starting at (x1,y1) to (xn,yn) through (x2,y2) à (x(n-1), y(n-1)).
DATASET Commands ǀ 21 of 45
Thermo-Calc Documentation Set
CHARSIZE
CHARSIZE redefines the default size of the characters in the plot. The character size has an
initial default value, which may vary with the current font setting and the output device (the
plot format).
Syntax CHARSIZE $$
SYMBOLSIZE
SYMBOLSIZE redefines the current symbol size setting. The symbol size has an initial default
value.
Syntax SYMBOLSIZE $$
GLOBALSIZE
GLOBALSIZE redefines the default global size of the plot. The global size has an initial default
value.
Syntax GLOBALSIZE $$
COLOR
COLOR redefines the current color setting. There are 22 legal color codes (from 0 to 21).
DATASET Commands ǀ 22 of 45
Thermo-Calc Documentation Set
DIGLIB Color Codes
0 Background Invisible
1 Black Normal
2 Red Very_Thick
3 Green Thin
4 Blue Thick
5 Yellow Very_Thin
6 Magenta Dashed
7 Cyan Dotted
8 Purple
9 Gold
10 Turquoise
11 Pink
12 Gray
13 Orangered
14 Maroon
15 Plum
16 Seagreen
17 Olivedrab
18 Sienna
19 Orange
DATASET Commands ǀ 23 of 45
Thermo-Calc Documentation Set
20 Coral
21 UserDef
22 and Any digit larger than 21 has the color effect
higher as 1 (black).
DIGLIB Color Effects
FONT
FONT redefines the default font setting in the POST-processor.
Syntax FONT #
# is an unsigned integer.
DATASET Commands ǀ 24 of 45
Thermo-Calc Documentation Set
Font Numbers
DATASET Commands ǀ 25 of 45
Thermo-Calc Documentation Set
STRING
STRING defines a string containing a text and operation codes (e.g., to change the default
font settings).
DATASET Commands ǀ 26 of 45
Thermo-Calc Documentation Set
means the text is coded with each of its characters (and/or numeric
numbers) that are formatted with various operators (^S#, ^G, ^F#,
^U#, ^D#, ^R#, ^L# and/or ^N). #’ are unsigned integers. ^ is the
caret character and does not mean a control character. Between an
# (in an operator) and a numeric number (as a part of the text),
there must always be a comma sign (,) or the number is not plotted
in the text, because the # with the number is interpreted as another
incorrect #. In some of the commands, #=0 resets the option to
previous (or default) value.
Operator Operation
Examples
STRING Alpha1 ^Ga^F0^D0^S8,1^S0^U0
DATASET Commands ǀ 27 of 45
Thermo-Calc Documentation Set
is set to α1
STRING M23C6 M^D0^S8,23^S0^U0C^D0^S8,6^S0^U0
is set to M23C6
STRING ACA2CO3 ^Ga^F0^D0^S8Ca^D0^S4,2^S0^U0^S8CO^D0^S4,3^S0^U0
is set to Ca2CO3
TEXT
TEXT outputs, at the current position, the text following the keyword TEXT or the text in the
string string_name that is defined with "STRING" on page 26.
FUNCTION
FUNCTION defines and plots a user-defined function.
PCFUNCTION
PCFUNCTION appends a user-defined function to the current path. It is used with "PAINT" on
the next page.
DATASET Commands ǀ 28 of 45
Thermo-Calc Documentation Set
PAINT
PAINT paints the area enclosed by the current path in the current pattern. The current path
starts at the last MOVETO given and includes all subsequent DRAWs. This command only
works for the PostScript format (as graphical files or on printed hardcopy).
INCLUDE
INCLUDE adds a file into the current input stream See "Example 5 – Use Included Files for
Predefined Symbols" on page 35.
DATASET Commands ǀ 29 of 45
Thermo-Calc Documentation Set
9.1256815195E-013.3575300127E-02
9.6747112274E-013.0857827514E-02
9.6922445297E-013.0749246478E-02
2.2030337155E-011.2340000272E-01M
2.1294665337E-011.5308913589E-01
2.1171525121E-011.8851040304E-01
2.1532440186E-012.2393165529E-01
2.2180187702E-012.5935292244E-01
2.2992117703E-012.9477417469E-01
2.3888295889E-013.3019542694E-01
2.4555855989E-013.5568857193E-01
$ PLOTTED COLUMNS ARE : X(B2C,B) and X(B2C,C) 6.6666668653E-013.3333334327E-01M
6.6666668653E-013.3333334327E-01
$ TIELINES COLOR3
6.6666668653E-013.3333334327E-01M
8.7775242329E-013.4625384957E-02
6.6666668653E-013.3333334327E-01M
7.9250496626E-013.5342670977E-02
6.6666668653E-013.3333334327E-01M
2.4555824697E-013.5568737984E-01
6.6666668653E-013.3333334327E-01M
2.3944084346E-019.2542596161E-02
6.6666668653E-013.3333334327E-01M
2.3359020054E-013.0954307318E-01
6.6666668653E-013.3333334327E-01M
2.2585247457E-012.7766343951E-01
6.6666668653E-013.3333334327E-01M
2.1618695557E-011.3621240854E-01
2.2632879019E-011.1058768630E-01M
6.6666668653E-013.3333334327E-01 COLOR1
BLOCKEND
$ PHASE REGION FOR:
$F0 DIAMOND_A4
$E B2C
BLOCK X=C1; Y=C2;GOC=C3,WAD;
$ PLOTTED COLUMNS ARE : X(DIAMOND_A4,B) and X(DIAMOND_A4,C)
0.0000000000E+009.9999523163E-01M
0.0000000000E+009.9999976158E-01 BLOCKEND
$ PHASE REGION FOR:
$E LIQUID
$F0 DIAMOND_A4
BLOCK X=C1; Y=C2;GOC=C3,WAD;
$ PLOTTED COLUMNS ARE : X(LIQUID,B) and X(LIQUID,C)
2.45558E-01 3.55688E-01 M
2.02635E-01 3.34830E-01
1.62439E-01 3.13753E-01
1.22439E-01 2.91531E-01
8.24390E-02 2.68542E-01
4.24390E-02 2.45480E-01
2.43905E-03 2.23138E-01
2.49999E-07 2.21816E-01
$ TIELINES COLOR3
0.00000E+00 9.99995E-01 M
2.35291E-01 3.50859E-01
0.00000E+00 9.99994E-01 M
1.98265E-01 3.32609E-01
0.00000E+00 9.99994E-01 M
1.32400E-01 2.97160E-01
0.00000E+00 9.99993E-01 M
1.14399E-01 2.86953E-01 BLOCKEND
0.22 0.82 M
0.45 0.82
CLIP OFF COLOR 3
0.05 0.76 MNA'3: Green CLIP ON
0.22 0.76 M
0.45 0.76
CLIP OFF COLOR 4
0.05 0.70 MNA'4: Blue CLIP ON
0.22 0.70 M
0.45 0.70
CLIP OFF COLOR 5
0.05 0.64 MNA'5: Yellow CLIP ON
0.22 0.64 M
0.45 0.64
CLIP OFF COLOR 6
0.05 0.58 MNA'6: Magenta CLIP ON
0.22 0.58 M
0.45 0.58
CLIP OFF COLOR 7
0.05 0.52 MNA'7: Cyan CLIP ON
0.22 0.52 M
0.45 0.52
CLIP OFF COLOR 8
0.05 0.46 MNA'8: Purple CLIP ON
0.22 0.46 M
0.45 0.46
CLIP OFF COLOR 9
0.05 0.40 MNA'9: Gold CLIP ON
0.22 0.40 M
0.45 0.40
CLIP OFF COLOR 10
0.05 0.34 MNA'10: Turquoise CLIP ON
0.22 0.34 M
0.45 0.34
CLIP OFF COLOR 11
0.05 0.28 MNA'11: Pink CLIP ON
0.22 0.28 M
0.45 0.28
CLIP OFF COLOR 12
0.05 0.22 MNA'12: Gray CLIP ON
0.22 0.22 M
0.45 0.22
CLIP OFF COLOR 13
0.05 0.16 MNA'13: Orangered CLIP ON
0.22 0.16 M
0.45 0.16
CLIP OFF COLOR 14
0.05 0.10 MNA'14: Moroon CLIP ON
0.22 0.10 M
0.45 0.10
CLIP OFF COLOR 15
0.05 0.04 MNA'15: Plum CLIP ON
0.22 0.04 M
0.45 0.04
CLIP OFF COLOR 16
0.55 0.88 MNA'16: Seagreen CLIP ON
0.72 0.88 M
0.95 0.88
CLIP OFF COLOR 17
0.55 0.82 MNA'17: Olivedrab CLIP ON
0.72 0.82 M
0.95 0.82
CLIP OFF COLOR 18
0.55 0.76 MNA'18: Sienna CLIP ON
0.72 0.76 M
0.95 0.76
CLIP OFF COLOR 19
0.55 0.70 MNA'19: Orange CLIP ON
0.72 0.70 M
0.95 0.70
CLIP OFF COLOR 20
0.55 0.64 MNA'20: Coral CLIP ON
0.72 0.64 M
0.95 0.64
l Linux/UNIX: initd.tdb
You can have your own file, but it is more efficient to define an environment variable with
the default name as above, and then during installation, translate it to a common initiation
file name. The common file is automatically copied by the Thermo-Calc installation script to
the following directories:
The database manager can find the file on a local computer (independent installations) or a
connected server (server installations).
When editing or modifying the definitions of initiation parameters (including short-names,
paths and subdirectories, database definition file names, and instructive database
descriptions) for the available databases in the database initiation file a specific format is
used with the fields:
l The first field gives the abbreviated name for the database (to a maximum of five
characters)
l The second field specifies a path and filename (maximum 78 characters) containing
the database path definition and the actual database definition (setup) file name,
where the extension is either TDB (which stands for original textual TDB file) or TDC
(which is encrypted from the original TDB file). There are differences between
platforms with respect to entering parameters as listed in the table.
l The third field (maximum 60 characters) details an optional full name (and
version/subversion numbers) for the brief database description.
Each entry record (i.e. for a single database) must finish with an exclamation
mark !. There should be no spaces or commas within the first and second fields
since these characters are taken as field separators, while spaces or commas
can be used in the third field.
You can write each database entry on one or two lines (up to the!), it is recommended that
the third field is added as follows:
The following are examples of an initiation file defining two databases named SSOL6 and
TCFE8.
Windows
SSOL6 TCPATH\DATA\SSOL6\SSOL6SETUP.TDC SGTE Solutions Database
version 6.0 !
TCFE8 TCPATH\DATA\TCFE8\TCFE8SETUP.TDC TCS Steels/Fe-Alloys
Database version 8.0 !
Linux/UNIX
ssol5 TC_DATA/data/ssol5/ssol5setup.tdc
SGTE Solutions Database version 5.1 !
Tcfe8 TC_DATA/data/tcfe8/tcfe8setup.tdc
TCS Steels/Fe-Alloys Database version 8.0 !
ADD_REFERENCE 40
CASE and ENDCASE 42
VERSION_DATA 42
When the database is selected the DATA module only reads the database definition file
(***setup.TDB) once, from beginning to end. The DATA module checks continuously when
reading the definition file. This implies that (nearly) everything must be declared or defined
before it is used in any other way.
For example, if the GRAPHITE phase is to be included in the database definition, the element
C (carbon) and the phase GRAPHITE must be defined before declaring that carbon dissolves
in graphite. This definition order is necessary to build the internal data structure acceptable
by the DATA module (during its consistency checking).
This topic gives a description of the available keywords and the appropriate arguments. A
basic knowledge of the Gibbs Energy System (GIBBS) module is assumed.
This syntax is used:
KEYWORD [arg.1]*# [arg.2]*## {optional arg.3}!
The keywords are written in full length but can be abbreviated as long as the abbreviation is
unique. A keyword may have syntax consisting of several arguments and optional
arguments. The number, # or ##, in the notation, [...]*# or [...]*##, indicates an argument
with a maximum length of # ASCII characters.
Arguments within square brackets [...] must always be given, but are optional
when enclosed in curly brackets {...}.
ELEMENT
ELEMENT [element name]*2 [ref. state]*24 [mass] [H298] [S298] !
The element name (maximum two characters) is the one found in the periodic chart but
there are no naming restrictions. However, the GIBBS module only recognizes UPPER-case
element names (if the Upper Case Mode is selected by the GIBBS command "REINITIATE" on
page 127), which means that lower-case (if defined in a database) is automatically
converted to UPPER-case by the DATA/GIBBS module.
The elements are automatically entered as species using the same names of the elements.
If, for example, the species corresponding to FE needs to be named FE1, you can define the
species as FE1, which results in an element named FE and a species named FE1. Vacancies
(VA) and electrons (denoted either as /- in gaseous, liquid or solid phases, or ZE in an
aqueous solution phase), need to be entered as special elements for correct handling by the
DATA module.
The reference (ref.) state (maximum 24 characters) is the stable phase (at 298.15 K and 1
bar) that should contain this element and be used as the reference state for all element
thermodynamic data. The mass, given in gram per mole, is used in various calculation
programs and should always be given the correct value. H298 and S298 denote the enthalpy
and entropy difference between 0 and 298.15 K for the element in SI units. If these are
unknown, the values can be set to zero. All this information (reference state, H298 and S298)
define the SER (Stable Element Reference state).
Examples
ELEMENT /- ELECTRON_GAS 0.0 0.0 0.0 !
ELEMENT VA VACUUM 0.0 0.0 0.0 !
ELEMENT ZE UNIT_CHARGE 0.0000000001 0.0 0.0 !
ELEMENT AL FCC_A1 26.98154 4577.296 28.3215 !
ELEMENT C GRAPHITE 12.011 1054.0 5.74 !
ELEMENT FE BCC_A2 55.847 4489 27.28 !
ELEMENT O 1/2_MOLE_O2(G) 15.9994 4341 102.5158 !
ELEMENT TI HCP_A3 47.88 4810 30.648 !
SPECIES
SPECIES [species name]*24 [stoichiometric formula] !
This keyword defines species in the data structure. Every species name (maximum 24
characters) must be unique. The species are built from the predefined set of elements in the
stoichiometric formula. If an undefined element is referenced, DATA displays an error
message and the data structure is probably damaged.
The species names do not have to be the same as the stoichiometry formula, although in
general this is recommended. The elements are automatically entered as species using the
same names of the elements.
It is important that the numerical factor of 1 is not left out. Subgroups are not
allowed in a stoichiometry formula; however, while specifying the stoichiometry
formula for a specific species in a database, you can specify it in a way that
some elements (always together with the corresponding partial stoichiometric
coefficients) are repeated (as in the examples below).
Examples
SPECIES AL2O3 AL2O3 !
SPECIES Silica SI1O2 !
SPECIES NaSb_6OH NA1SB1O6H6 !
SPECIES FE+2 FE/+2 !
PHASE
PHASE [phase name]*24 [data-type code]*8 [numb. subl.] [sites in
subl. 1] [sites in subl. 2] etc... {auxiliary text string} !
This keyword defines a phase and its properties (except for what species are allowed to
enter it and for its parameters).
The phase name (maximum 24 characters) must be unique; otherwise the DATA module
sees it as an attempt to redefine a previously defined phase. This causes DATA to display an
error message and ignore the rest of the line. A phase name can be suffixed by an
underscore (_and letters to identify the physical state(s) or structure type(s) of the phase.
The phase name can also be attached with a colon sign (:) and a letter for a legal GIBBS
phase-type code (e.g. IONIC_LIQ:Y and GAS:G).
Other invalid characters (e.g. M or P) are eventually treated, together with the
colon (:) as a part of a phase name.
A G phase (gaseous mixture) or an A phase (aqueous solution) is usually treated as a
substitutional phase without sublattice, and an L phase (ordinary liquid solution) is normally
(but not always) modelled as a substitutional phase without sublattice, too.
For ordered FCC or HCP phases, these four substitutional sublattices represent four corners
of the regular tetrahedron on these lattices, all of which are the nearest neighbours, as
shown.
A Normal 4-Sublattice Model requires that all the G parameters for each of the end-
members with the same elements but distributed on different sites be given separately.
However, as these corners are identical lattice points, the phase-type option F means that
the G parameters need be given only once. The possible permutations are handled
automatically.
Additional clarification
An A-B binary solution phase (with the element A located on one sublattice site and B on the
other three sublattice sites) treated by the Normal 4-Sublattice Model has to have four G
parameters for four end-members, i.e.
l G(phase,A:B:B:B)
l G(phase,B:A:B:B)
l G(phase,B:B:A:B, and
l G(phase,B:B:B:A)
This is because in the general case these G parameters can be different from each other. But
for the FCC and HCP orderings, they are identical and thus all G parameters of such end-
members need to be given only once, and the possible permutations are then automatically
handled by the GIBBS module. Also, only one of the identical permutations is listed; in this
example, G(phase,A:B:B:B)where it is alphabetically the first in the list of permutations.
This significantly simplifies the usage of this model (Four Substitutional-Sublattice Ordering
Model) in multicomponent alloys.
For ordered BCC phases, the phase-type option B means the same thing but it is more
complicated since the 4-substitutional-sublattice ordering phase represents an irregular
tetrahedron with two pairs of sites that are next nearest neighbours as shown:
For an end member described by the parameter G (phase,A:B:C:D) A and B are next
nearest neighbours, as are C and D. And the nearest neighbours of A (or B) are C and D.
Thus, for an A-B binary solution phase (with the element A located on two sublattice sites
and B on two sublattice sites) treated by the Normal 4-Sublattice Model, the end-member
described by the G(phase,A:A:B:B) term has four nearest neighbour bonds between A and
B atoms, whereas the end-member described by the G(phase,A:B:A:B) term has two
nearest neighbour bonds between A and B atoms and three next nearest neighbour bonds.
The first end-member (described by the G(phase,A:A:B:B) term) represents B2-ordering
and the second (described by the G(phase,A:B:A:B) term) stands for B32-ordering. There
are two permutations of the G(phase,A:A:B:B) term and four permutations of the G
(phase,A:B:A:B) term, automatically conducted in the Four Substitutional-Sublattice
Ordering Model. If you enter the unary, binary, ternary and quaternary parameters you are
dealing with 1, 6, 21, 55 parameters for BCC:B, 1, 5, 15, 35 parameters for FCC:F and 1, 16,
81, 256 parameters for phases without F/B.
An additional feature with the phase-type options F and B is that a composition set that
represents the solution phase has a suffix (indicating what ordering the phase has) that is
automatically added to its phase name in some listings of equilibrium calculations (when
performing either single-point or stepping or mapping calculations, and when plotting the
calculated property diagrams or phase diagrams).
Such suffix indications can be:
FCC_L12
FCC PHASE FCC_A1
FCC_L10
BCC_B2
BCC_B32
BCC PHASE BCC_A2
BCC_D03
BCC_L21
HCP_D019
HCP PHASE HCP_A3
HCP_B19
If you want to convert an existing database TDB-file to use the F/B feature, add
the phase-type code to the corresponding phase name in the PHASE and
CONSTITUENT commands in the TDB-file, then when running the LIST_DATA
command in the GES module. The created database file is in this less verbose
format.
The data-type code consists of 1 to 8 characters where each character must stand for an
action, which is to be coupled to this phase. The keyword "TYPE_DEFINITION " on page 21,
described below, must be used in the current database to specify what action should be
taken by DATA for each character code.
The data entries [numb. subl.] [sites in subl. 1] [sites in subl. 2] etc., specify
the total number of sublattices (always as an integer digit) and the sites (i.e. stoichiometric
coefficients) of each of the sublattices (given in either integer digits or real numerical
factors) for the phase.
Optionally, an auxiliary text string (maximum 78 characters) can be given after the last [sites
in sublattice #] but before the exclamation mark !. This string displays in connection with
the phase name in some listings within the DATA module.
Examples
PHASE GAS:G % 1 1.0 !
CONSTITUENT
CONSTITUENT [phase name]*24 [constituent description]*2000 !
This keyword (and the "ADD_CONSTITUENT" on the next page keyword for large solution
phase) defines the phase-constitution as a list of constituents (for a substitutional phase with
no sublattice) or of constituent arrays (for a sublattice phase).
The phase name (maximum 24 characters) must be a predefined phase (i.e. already through
the "PHASE" on page 11 keyword).
Examples
CONSTITUENT BCC_A2 :FE
CONSTITUENT IONIC-LIQ:Y :FE+2 : SB-3: !
CONSTITUENT M23C6 :CR FE :FE CR W MO : C: !
CONSTITUENT AQUEOUS:A :H2O% AG+1 AGF AGCL AGCL2-1 AGI3-2 AGSO4-1
AGC2H4+1
AGN2H6+1 AGC2N2-1 AGC2H4NO2 AL+3 ALF3 ALO2-1, ... : !
CONSTITUENT SPINEL:I : AL+3% CR+3 FE+2% FE+3 MG+2% NI+2
: AL+3% CA+2 CR+3 FE+2 FE+3 MG+2% NI+2 VA
: FE+2 MG+2 VA%
: N-3 O-2% :!
ADD_CONSTITUENT
ADD_CONSTITUENT [phase name]*24 [constituent description]*2000 !
This keyword adds more constituents to a phase that already has some constituents. Its
syntax is the same as for the "CONSTITUENT" on the previous page keyword. This keyword
can be used several times, if the phase is very large, e.g. a gaseous mixture or a complex
aqueous solution. This is useful when there are so many constituents in a phase that the
2000 characters available for the constituent description list is not enough.
Constituents are not necessary on all sublattices. In the second example below,
no addition is made to the first sublattice.
Examples
ADD_CONSTITUENT GAS :S1 S2 S3 ... : !
ADD_CONSTITUENT IM-PHASE : :CR:W ... : !
ADD_CONSTITUENT AQUEOUS:A :CUCL+1 CUCL2 CUCL2-1 CUCL3-2 CUOH+1
CUO2H2 CUO3H3-1
CUO4H4-2 CU2OH+3 CU2O2H2+2 CU3O4H4+2 NIO2H2 NIO3H3-1 NIO4H4-2
NI2OH+3
NI4O4H4+4 ZNOH+1 ZNO2H2 ZNO3H3-1 ZNO4H4-2 ... : !
COMPOUND_PHASE
COMPOUND_PHASE [phase name]*24 [data-type code]*8 [constituent] !
Examples
COMPOUND_PHASE AL2O3 % AL2O3 !
COMPOUND_PHASE MAGNETITE %MF FE3O4 !
COMPOUND_PHASE QUARTZ % SIO2 !
ALLOTROPIC_PHASE
ALLOTROPIC_PHASE [phase name]*24 [data-type code]*8 [constituent]
!
This keyword does the same as the "COMPOUND_PHASE" above keyword for entering an
allotropic phase (maximum 24 characters), but does not enter the constituent as a species to
the data structure. Use this if the species is already defined.
Examples
ALLOTROPIC_PHASE BETHA-AL2O3 % AL2O3 !
ALLOTROPIC_PHASE CRISTOBALITE % SIO2 !
ALLOTROPIC_PHASE TRIDYMITE % SIO2 !
TEMPERATURE_LIMITS
TEMPERATURE_LIMITS [lower limit] [upper limit] !
This keyword sets the default upper and lower temperature limits used by the GIBBS module
for Gibbs energy parameters and functions. It can be used only once in one database
definition file and all its sequential files.
Example
TEMPERATURE_LIMITS 500.0 1800.0 !
DEFINE_SYSTEM_DEFAULT
DEFINE_SYSTEM_DEFAULT [keyword] {G-ref. type index} !
This keyword sets the default value to ELEMENT or SPECIES in the DATA command "DEFINE_
SYSTEM" on page 15 in the Thermo-Calc Console Mode Command Reference.
For a substance database, it can be appropriate to have ELEMENT as a default value
whereas a large solution database can benefit from having SPECIES as a default value. A
proper default value is useful for beginners. An advanced user is more likely to use the DATA
commands DEFINE_ELEMENT and DEFINE_SPECIES to override the default value.
{G-ref. type index} is an integer indicating the reference state type for an element when
entering and listing data in the GIBBS module. The following lists legal numbers and the
corresponding meaning (the reference state type for an element):
Number Definition
1 symbol: G
2 symbol: H298
3 symbol: H0
Example
DEFINE_SYSTEM_DEFAULT element 2 !
DEFAULT_COMMAND
DEFAULT_COMMAND [secondary keyword and parameters] !
Examples
DEFAULT_COMMAND DEFINE_SYSTEM_ELEMENT FE VA !
DEFAULT_COMMAND REJECT_SYSTEM_CONSTITUENT LIQUID 2 C !
DEFAULT_COMMAND REJECT_PHASE LIQUID !
DEFAULT_COMMAND RESTOR_PHASE GAS !
DATABASE_INFORMATION
DATABASE_INFORMATION [text]*10000 !
This keyword defines a text for the detailed description of the current database. The text can
be listed with the DATA command DATBASE_INFORMATION. An apostrophe (') can be used
in the text to indicate a new line; and two apostrophes, ('') can be used in the text to
indicate a new line plus an empty line.
The continuous text length (each line with max 78 characters) is 10,000
characters.
Example
DATABASE_INFORMATION This is the XXX-Alloy Solution Database '
in the A-B-C-D-...... System. '
Developed by TCS, released in May 2001. ''
... more ... !
TYPE_DEFINITION
TYPE_DEFINITION [data-type code]*1 [secondary keyword with
parameters] !
This keyword couples phases to an action performed by the DATA module when the DATA
command "GET_DATA" on page 16 is executed.
Secondary Keywords
The secondary keywords and associated parameters in syntax are:
SEQ [filename]
RND# [filename]
GES [valid GIBBS command with parameters]
POLY3 [valid POLY command with parameters]
TDB [valid DATA command with parameters]
IF [conditional statement] THEN [keyword with parameters]
AFTER [valid GIBBS command with parameters]
The secondary keyword SEQ specifies a sequential file that stores parameters belonging to
the phases using the associated data type code (which is defined by this keyword). A special
case where the filename is given as an asterisk (*) implies that the database definition file
also acts as a sequential data storage file. This case makes it possible to have a single file for
a small database, which is especially suited for personal databases.
The secondary keyword RND should be concatenated with a positive integer # to indicate the
type of the random file. Currently, there are these types of random files:
l RND0,the default, is used for complete Gibbs energy expressions (G0 parameters),
where the search field is the unabbreviated parameter name.
l RND1 is designated for functions, where the function name is used as the search field.
l RND2is reserved for binary interaction parameters, where its search field is also the
unabbreviated parameter name without any interaction order notation.
In several examples below, the use of the at (@) sign indicates any phase to
which the relevant type definition (e.g. A, B, 4, or E) applies.
The secondary keywords IF and THEN allow specification of a conditional statement
structured with respect to the phase constitution that controls the execution of a following
type-definition (keyword with parameters) string. See the last four examples.
The secondary keyword AFTER is similar to the GES keyword except the defined GIBBS
command is executed after all parameters are entered. The reason for this is that the
command has no effect unless there is a parameter. Following the AFTER keyword, a GIBBS
command must be given and it is executed after entering the parameters of the phase.
The data-type code (always as one string) can be any normal or special character, e.g. 0, 5,
A, F, M, %, &, and so forth, and is referred in the definition keywords "PHASE" on page 11,
"COMPOUND_PHASE" on page 18 and "ALLOTROPIC_PHASE" on page 18 for various phases.
A phase can have several ADDITIONAL parts of different types (that are enforced by certain
TYPE_DEFINITIONS which call the GIBBS command AMEND_PHASE_DESCRIPTION for
describing various contributions to Gibbs energy). However, the DATA/GIBBS module
automatically deletes any early-defined ADDITIONAL part(s) of the same type.
The DATA module can selectively retrieve functions that are necessary for a defined system
from a database that has functions stored in its setup file or SEQ sequential function file,
while all other functions irrelevant for the defined system are ignored and are not saved in
associated GIBBS and POLY workspaces.
Examples
TYPE_DEF % SEQ TCPATH\DATA\[DATABASE]\PARAMETERS.TDB !
Example
TYPE_DEFINITION & GES A_P_D FCC_A1 MAGNETIC -3.0 2.80000E-01 !
PHASE FCC_A1 %& 2 1 1 !
CONSTITUENT FCC_A1 :CR,NI% : C%,VA : !
$ THIS PHASE HAS A DISORDERED CONTRIBUTION FROM FCC_A1
TYPE_DEFINITION ' GES AMEND_PHASE_DESCRIPTION FCC_L12 DIS_PART
FCC_A1,,,!
TYPE_DEFINITION ( GES A_P_D FCC_L12 MAGNETIC -3.0 2.80000E-01
!
PHASE FCC_L12 %'( 3 .75 .25 1 !
CONSTITUENT FCC_L12 :CR,NI% : CR,NI% : C,VA% : !
For example a GES command such as the following only affects phases defined above or at
the phase with this TYPE_DEFINITION in the TDB file:
TYPE_DEFINITION ( GES A_P_D FCC_L12 DIS_PART FCC_A1,,, !
For example a TDB command such as the following only affects phases defined below the
phase with this TYPE_DEFINITION in the TDB file:
TYPE_DEFINITION ( TDB RESTORE_PHASE FCC_A1 !
FTP_FILE
FTP_FILE [filename] !
FTP_FILE is a special function random file and the function names correspond to the record
numbers where these record names and the functions are stored. The FTP_FILE decreases
search time for the associated database in the DATA module. The file is used for large
substance databases along with a SEQ sequential or RND0 random file for storage of G0
parameters referring the functions named FxxxxT that are stored in the FTP file. The
integer number xxxx is a search code used by DATA when such files are processed.
Example
FTP_FILE TCPATH\DATA\[DATABASE]\FTP-FILE.DATA !
FUNCTION
FUNCTION [function name]*8 [lowest temp. limit]
[expression 2]; [upper temp. limit 2] Y
[expression 1]; [upper temp. limit 1] Y
[expression 3]; [upper temp. limit 2] Y
.......... ; ..... Y
[expression n-1]; [upper temp. limit n-1] Y
[expression n]; [upper temp. limit n] N {Ref. Index} !
GIBBS can use predefined functions in the expression (TP-Function) of a Gibbs energy
parameter or in other functions. This is often used when several parameters (or functions)
have a common sub-expression, such as for metastable modifications of elements. This
keyword can appear in both files for database definition and sequential storage, but not in
FTP files. A valid function name can have up to 8 characters.
A function always starts with a lowest temperature limit of its applicability, followed by one
or more (up to 10) expressions (TP-Functions) that are coded as mathematical relations of
constants, functions of stable variables (T and P) and other entered functions (normally with
a # suffix, e.g. +3*GHSERAL#).
The expression is a FORTRAN-like expression and operators +, -, *, = and ** can be used (**
only with integer powers). Unary-functions LN or LOG (both for natural logarithm) and EXP
(for exponential) can also be used. Each expression (TP-Function) should end with a
semicolon (;), and be followed by its upper applicable temperature limit and a continuation
indicator (Y to continue with the next expression or N to end the function’s expression). If
there is no continuation after a specific expression (TP-Function), the reference index can
optionally be given after the N indicator.
A complete/valid function entry can be written in several continuation lines if the function’s
expression (TP-Function) is too long or if there is more than one applicable expression (TP-
Function), as the maximum length of each line is 78 characters.
rather than
-1000+1058*T-38.9*T*LOG(T)+GFUNXY#
This is because the DATA module concatenates all lines and removes extra spaces before
trying to enter the function in the GIBBS workspace. Thus, the - sign is taken as a delimiter
between 298.15 and 1000, and the function incorrectly becomes:
FUNCTION GHSERXY 298.15 1000+1058*T-38.9*T*LOG(T)+GFUNXY#; 6000 N
!
Avoid this mistake by giving at least one empty space as the first character of a new line,
such as
FUNCTION GHSERXY 298.15
-1000+1058*T-38.9*T*LOG(T)+GFUNXY#; 6000 N !
The lowest-temperature limit (in Kelvin) for the applicability of the (first) TP-Function in a
function is normally set by default as 298.15 K, in most cases. However, you can set another
limit when it is applicable (according to experimental data and assessments).
An upper-temperature limit (in Kelvin; followed by a Y or N sign) for the applicability of each
TP-Function in a function must be given after the semicolon (;) immediately following the
specific TP-Function. The highest-temperature limit (in Kelvin) for the applicability of the
current function is always followed by the N sign. If a negative number is given as the lowest-
temperature limit, it assumes there are breakpoints in pressure for this function. In these
cases, it is interpreted as the lowest-pressure limit (in Pascal), and the other limits in the
current function is also taken as pressure limit values (in Pascal).
The temperature/pressure limits for the functions are checked during calculations. An
indicator is set if the actual temperature/pressure condition is below the lowest
temperature/pressure limit or above the highest temperature/pressure limit. In these cases,
an extrapolation is done using the TP-Function valid in the nearest temperature/pressure
range.
The optional reference index {Ref. Index} is an integer number indicating where to find the
particular function in a special reference file. The references are listed when doing the GET_
DATA command in the DATA module. They can also be listed in the GIBBS module with the
command LIST_DATA with the option R.
For accounting for the reference indices, also see the keyword "REFERENCE_
FILE" on page 38.
The reference index field can also be an abbreviation (such as REF:250, REF_002, or REF-
SGTE) which denotes the original reference. In this case, the reference cannot be obtained
when issuing the DATA command GET_DATA or the GIBBS command LIST_DATA (with the
option R).
However, the references directly coded in the database definition file (***setup.TDB)
starting with a letter can be shown when issuing the DATA command GET_DATA or the
GIBBS command LIST_DATA (with the option N or R). Normally, such references must be
located after the LIST_OF_REFERENCE keyword. It is recommended to use reference code
names such as REF001, REF018, etc. The reference list, which is generated by the GIBBS
command "LIST_DATA" on page 120 <file> with the N or R option, is also possible to be
directly read by the DATA module.
The DATA module can selectively retrieve functions which are necessary for a defined
system from a database that has functions stored in its setup file or SEQ sequential function
file, while all other functions irrelevant for the defined system are ignored and are not saved
in associated GIBBS and POLY workspaces. Previously, this can only be done for large
databases that have functions stored in RND1 random or FTP function files.
Examples
FUNCTION GFREE 298.15 1000+GFUNXY#; 6000 N !
FUNCTION GFUNXY 298.15 -1000+200*T+30*T*LOG(T); 6000 N 505 !
FUNCTION G0_CAO 298.15 -663538.11+352.67749*T-57.7533*T*LN(T)
+5.3895E-03*T**2-8.879385E-07*T**3+575530*T**(-1);
1400.00 Y -625196.99+78.896993*T-20.40145*T*LN(T)
-1.112923E-02*T**2+5.1896733E-07*T**3-6917350*T**(-1);
2900.00 Y -499226.55-490.37695*T+51.95912*T*LN(T)
-2.961051E-02*T**2+1.4033905E-06*T**3-48114685*T**(-1);
3172.00 Y -587711.89+375.04117-62.76*T*LN(T);
6000.00 N REF020 !
PARAMETER
PARAMETER [GIBBS parameter name] [lowest temp. limit]
[expression 1]; [upper temp. limit 1] Y
[expression 2]; [upper temp. limit 2] Y
[expression 3]; [upper temp. limit 2] Y
.......... ; ..... Y
[expression n-1]; [upper temp. limit n-1] Y
[expression n]; [upper temp. limit n] N {Ref. Index} !
This keyword can appear in both files for database definition and sequential storage, but not
in FTP files. After the keyword, a valid GIBBS parameter name should be given.
It is used to define standard Gibbs energies (i.e. the G parameters for Gibbs energy of
formations) of all valid end-members of various stoichiometric and solution phases, and
excess Gibbs energies (i.e. the L parameters for Gibbs energy of interactions) of all binary,
ternary, quaternary or higher-order interactions in various solution phases; both standard
Gibbs energies and excess energies can also have parameters for contributions from PT-
depended volume variations (i.e. the V0, VA, VB, VC and VK parameters for molar volume,
thermal expansivity, bulk modulus, isothermal compressibility and high-pressure fitting
parameter), magnetic ordering (i.e. the TC and BM parameters for Curie temperature and
Bohr magneton number) and hypothetical electrostatic interactions (i.e. BM parameter for
Born functions ωPr,Tr of aqueous solute species).
The general form of a parameter is:
<identifier>(<phase>, <constituent array>; <digit>) <xxx>
<expression> <yyy> <keyword Y or N> <zzz> !
General Form
Name Description
Name Examples
Parameter Definition
Parameter Definition
The GIBBS parameter name consists of several parts. The first is a type-identifier. The
following type-identifiers are legal:
Type-
Definition
Identifier
VA
Integrated thermal expansivity
VB Bulk modulus at 1 bar
VC Isothermal compressibility
VK High-pressure fitting parameter
You can also use G for interaction parameters; and on output list (performed by the GIBBS
command LIST_PARAMETER or LIST_PHASE_DATA) the type-identifier L is always used for
interaction parameters. Note that the type-identifier BM is also used for Born functions
ωPr,Tr of aqueous solute species.
The identifier must be followed by an opening parenthesis, a phase name, a comma and a
constituent array. Optionally, the constituent array can be followed by a semicolon and a
digit. The parameter name is terminated by a closing parenthesis.
Be careful about the sign of odd terms, for example, L(BCC, B, A:VA;1) is
treated as L(BCC,A,B:VA;1), i.e. it is always put into alphabetical order.
A parameter always starts with a lowest temperature limit of its applicability, followed by
one or more (up to 10) expressions (TP-Functions) coded as mathematical relations of
constants, functions of stable variables (T and P) and entered functions (normally with a #
suffix, e.g. +3*GSERAL#).
The expression is a FORTRAN-like expression and operators +, -, *, = and ** can be used (**
only with integer powers). Unary-functions LN or LOG (both for natural logarithm) and EXP
(for exponential) can also be used. Each expression (TP-Function) should ends with a
semicolon (;) and be followed by its upper applicable temperature limit and a continuation
indicator (Y to continue with the next expression, or N to end the parameter’s expression). If
there is no continuation after a specific expression (TP-Function), the reference index can be
optionally given after the N indicator.
A complete/valid parameter entry can be written in several continuation lines if the
parameter’s expression (TP-Function) is too long or if there is more than one applicable
expression (TP-Function), as the maximum length of each line is 78 characters.
Avoid this mistake by giving at least one empty space as the first character of a new line,
such as
PARAMETR G(LIQUID,A,B) 298.15
-2000+4568*T+2*GFUNAB#; 6000 N !
The lowest-temperature limit (in Kelvin) for the applicability of the (first) TP-Function in a
parameter is normally set by default as 298.15 K, in most cases; however, you can set
another limit when it is applicable (according to experimental data and assessments). An
upper-temperature limit (in Kelvin; followed by a Y or N sign) for the applicability of each TP-
Function in a parameter must be given after the semicolon (;) immediately following the
specific TP-Function; and the highest-temperature limit (in Kelvin) for the applicability of the
current parameter is always followed by the N sign. If a negative number is given as the
lowest-temperature limit, it is assumed that there are breakpoints in pressure for this
parameter. In such cases, it is interpreted as the lowest-pressure limit (in Pascal), and the
other limits in the current parameter are also taken as pressure limit values (in Pascal).
The temperature/pressure limits for the parameters are checked during calculations. An
indicator is set if the actual temperature/pressure condition is below the lowest
temperature/pressure limit or above the highest temperature/pressure limit. In these cases,
an extrapolation is done using the TP-Function valid in the nearest temperature/pressure
range.
The optional reference index {Ref. Index} is an integer number indicating where to find the
particular parameter in a special reference file. The references are listed when doing the
GET_DATA command in the DATA module. These can also be listed in the GIBBS module with
the command LIST_DATA and the option R or N.
For accounting the reference indices, also see the keyword "REFERENCE_FILE"
on page 38.
The reference index field can also be an abbreviation (such as REF:250, REF_002, or REF-
SGTE) denoting the original reference. In this case, the reference cannot be obtained when
issuing the DATA command GET_DATA or the GIBBS command LIST_DATA (with the option R
or N).
However, the references directly coded in the database definition file (***setup.TDB) that
starts with a letter can be shown when issuing the DATA command GET_DATA or the GIBBS
command LIST_DATA (with the option R or N). Normally, such references must be located
after the LIST_OF_REFERENCE keyword. It is recommended to use reference code names
such as REF001, REF018, etc. The reference list, which is generated by the GIBBS command
LIST_DATA <file> with the N option, is thus also possible to be directly read by the DATA
module.
Examples
PARAMETER G(BCC,FE:VA) 298.15 1000+200*T+...; 6000 N 91DIN !
PARAMETER TC(BCC,FE:VA) 298.15 +1043; 6000 N 91DIN !
PARAMETER BMAGN(BCC,FE:VA) 298.15 +2.22; 6000 N 91DIN !
PARAMETER G(SIGMA,FE:CR:CR;0) 298.15 1000+200*T+...; 6000 N 101 !
PARAMETER G(LIQUID,AL;0) 298.15 +11005.553-11.840873*T
+7.9401E-20*T**7+GHSERAL#;
933.60 Y +10481.974-11.252014*T+1.234264E+28*T**(-9)+GHSERAL#;
2900.00 N REF:283 !
PARAMETER G(BCC_A2,PB:C) 298.15 UN_ASS#; 300 N REF:0 !
PARAMETER G(BCC_A2,NI:C;0) 298.15 +GHSERNI#+3*GHSERCC#
+400000-100*T; 6000 N REF071 !
PARAMETER G(BCC_A2,MN:VA) 298.15 +GMNBCC#; 6000 N REF285 !
PARAMETER BM(AQUEOUS,OH-1) 298.15 +Z0002PW0#; 1600 N 155 !
PARAMETER L(BCC,FE,CO:VA;0) 298.15 1000+200*T+...; 6000 N !
PARAMETER L(BCC,FE,CO:VA;1) 298.15 1000+200*T+...; 6000 N !
PARAMETER L(BCC,FE,CO:VA;2) 298.15 1000+200*T+...; 6000 N !
PARAM TC(BCC_A2,CO,MO:VA;0) 298.15 -3700; 6000 N R454 !
PARAM TC(BCC_A2,CO,MO:VA;1) 298.15 +2300; 6000 N R454 !
PARAM BMAGN(BCC_A2,CO,MO:VA;0) 298.15 -3.445; 6000 N R454 !
PARAM V0(BCC_A2,CR,FE:VA;0) 298.15 +ZERO#; 6000 N REF06V !
PARAM V0(BCC_A2,CR,FE:VA;1) 298.15 -1.10524097E-7; 6000 N REF06V !
PARAM V0(BCC_A2,CR,FE:VA;2) 298.15 +1.40024130E-7; 6000 N REF06V !
PARAM VA(BCC_A2,CR,FE:VA;0) 298.15 -6.49444634E-6*DELTAT#; 6000 N
REF06V !
PARAM VA(BCC_A2,CR,FE:VA;1) 298.15 +2.91269321E-5*DELTAT#; 6000 N
REF06V !
OPTIONS
OPTIONS /[alloy name]([composition limitations for all alloying
elements]) !
This keyword defines an alloy in a database. An alloy has a name, a major component and a
number of alloying elements. The purpose for defining an alloy is to be able to tell you about
applicable composition limits of the current database in applications to that particular type
of alloy. It is possible to have several alloys in the same database. The alloys are given after
the keyword in the database.
The alloy name must be proceeded by a slash (/) and terminated by the opening
parenthesis, with no spaces are allowed in between.
l Then, the alloying element names, each with its maximum mass and mole percent
are given within parenthesis.
l There must a space between definitions for each alloying element.
l The alloy definition is terminated by a closing parenthesis, and the whole OPTIONS
keyword by the exclamation mark (!).
Example
OPTIONS /SSteel(Fe(60,60) CR(30,30) NI(15,15) SI(1,1) N(.1,1)) !
TABLE
TABLE [name]*8 [start temp] [end temp] [delta temp] [table values]
!
This keyword can appear in both files for database definition and sequential storage, but not
in FTP files. It makes a table of Gibbs energy as a function of temperature where the values
are given from the start temperature to the end temperature, at a step of the delta
temperature.
Example
TABLE DEMTAB 1000.0 1500.0 100.0 -2912.9008 -2834.2416 -2755.5824
-2677.7600 -2600.7744 -2524.2072 !
ASSESSED_SYSTEMS
ASSESSED_SYSTEM [descriptions on special treatments for specific
assessed systems]*8000 !
This keyword can be included in the database definition file (the ***setup.TDB file). A
maximum of 8000 characters after the keyword (to describe some special options when the
DATA, GIBBS and POLY models deal with the existing systems with assessed data) is allowed
until the exclamation mark (!).
Several ASSESSED_SYSTEMS keywords can be used in the same TDB file in order to have
more lists of assessed systems. There is no limit to the number of the entries in the same
TDB file.
The assessed systems in the database, and the special treatment options, are typed after the
keyword. The elements (always in UPPER CASE) in each assessed system must be in
alphabetical order and be separated by a hyphen, such as C-FE for the Fe-C binary system,
and C-CR-FE for the Fe-Cr-C ternary system. A space must be between each assessed
system. Information on assessed binary, ternary or higher-order systems may also be given
in this way.
A ternary system like C-CR-FE does not imply that the binary C-CR, C-FE and CR-
FE are assessed. There is no way to indicate partially assessed systems.
l There is a field to give some descriptive information for a specific system, with
various options about how to:
l Reject or restore phase(s) from the current database in the DATA module;
l Set major constituent(s) in the first composition set and to set a second composition
set for a specific phase available in the current database in the GIBBS module; and
l Calculate this specific system in the POLY module.
l This is the facility used by the BIN (binary phase diagrams) and TERN (ternary phase
diagrams) modules in the Thermo-Calc software/database package.
The descriptive information must immediately follow the specific system name, and must be
enclosed within parenthesis ( and ), and the left parenthesis must follow directly after the
system, such as :
AL-NI(TDB +L12 ;G5 C—S:L12/NI:AL:VA ;P3 STP:.8/1200/1
STP:.2/600/1)
The syntax TDB means that the commands to the DATA module proceed, and +L12 in the
example means that the phase called L12 should be restored (it has been rejected by
default).
The directive ;G5 means that the following are commands to the GIBBS module. C_S:
means creating a second composition set, after the colon follows the phase name and after
the slash the major constituents.
After the directive ;P3 follows commands to the POLY module. STP: means setting a start
point with the value of the X-axis first (composition for the second element in a binary
system), the slash separates the Y-axis value (temperature), and possibly one or more
directions (-1, 1, -2 or 2).
A summary of the allowed syntax is:
TDB accepts
Each entry for a specific binary or ternary sub-system can be written in one or several lines
(each line with 78 characters).
Other Examples
ASSESSED_SYSTEMS
AL-NI(TDB +L12 +BCC_B2 ;G5 C_S:L12/NI:AL:VA
;P3 STP:.8/1000/1 STP:.45/700/1 STP:.7/700/1)
AL-PB(TDB -HCP -BCC
The semicolon (;) is a part of the ;G5 and ;P3 directives. A long descriptive
information can be written in more than one line, such as for the AL-NI, AL-PB ,
CU-FE and FE-O systems shown above.
The directive ;P3 * is needed if the default start point should be used. If there is no P3
directive, the BIN or TERN module generates some 20 different start points in order to cover
all possible compositions and temperatures (for a binary system) or all possible compositions
(for a ternary system under any specific temperature).
REFERENCE_FILE
REFERENCE_FILE [file name] !
This keyword takes a reference file name as its argument. This reference file (that must be
edited in a restrictive way and be saved as a blocked file with a fixed line-length for each
line in the file, as described below) contains a complete list of the references for the various
parameters (and sometimes functions) in the database. The file must have a fixed record
structure: each reference entry with one or several records, and each record with exactly 78
characters written in one single blocked line; and no empty space is allowed at the
beginning of all lines in the file. If there are more than one record entered for a reference
entry, all the continuation lines must start with an ampersand (&). The line number of the
first record for a specific reference entry is then accounted as the unique integer for that
specific reference, which is referred when a parameter or function calls this integer as the
optional {Ref. Index}.
Example
/-1<G> T.C.R.A.S. Class 1
AG1.64TE1 THERMODATA 01/93
&28/01/93
&SILVER 1.64-TELLURIDE. Solid Standard State.
AG1 HULTGREN SELECTED VAL. SGTE **
&AT.WEIGHT 107.870,STANDARD STATE:CODATA KEY VALUE.MPT=1234.93K.
&--U.D. 30/10/85.
AG1<G> T.C.R.A.S Class: 1
AG1/+1<G> T.C.R.A.S Class: 1
AG1BR1 N.P.L. SGTE **
&Tfusion uncertain and heat vaporization estimated.
AG1BR1<G> THERMODATA 01/93
&28/01/93
&Gaseous Standard State.
AG1BR1O3 BARIN & KNACKE.SUPPL.REF:62,* SGTE **
&AGO3BR SILVER OXYTRIBROMIDE
In the example, the unique integers of related references (for assessed elements, species,
phases, interactions, etc.) are:
1/-1<G>
2AG1.64TE1
5 AG1
8AG1<G>
9AG1/+1<G>
10AG1BR1
12AG1BR1<G>
15AG1BR1O3
LIST_OF_REFERENCE
LIST_OF_REFERENCE
NUMBER SOURCE
[REFxxx] '[Detailed reference]'
..........
.......... !
This keyword starts a reference list that is directly coded in the database definition file
(***setup.TDB). Its argument begins on the following line, and normally has an explanation
line (NUMBER SOURCE) that is followed by various reference codes. Each reference code
may occupy one or more lines (each line with maximum 78 characters), but must have a
reference code name (that starts with a letter) and the detailed reference information (that
is written within two single-quotation marks, ''). It is recommended to use reference code
names such as REF001, REF018, etc. A maximum of 400,000 characters after the keyword is
allowed until the exclamation mark (!).
Such a reference list can be shown when issuing the DATA command "GET_DATA" on
page 16 or the GIBBS command "LIST_DATA" on page 120 (with the R option). The reference
list, which is generated by the GIBBS command LIST_DATA <file> with the N option, has this
structure, and is thus possible to be directly read by the DATA module.
Example
LIST_OF_REFERENCES
NUMBER SOURCE
REF283 'Alan Dinsdale, SGTE Data for Pure Elements,
Calphad Vol 15(1991) p 317-425,
also in NPL Report DMA(A)195 Rev. August 1990'
REF224 'P-Y Chevalier, Thermochimica Acta, 130 (1988) p 33-41; AG-
SI'
!
ADD_REFERENCE
ADD_REFERENCE
Use this keyword to have an unlimited number of references. The use of this is the same as
that of "LIST_OF_REFERENCE" on the previous page, and is used after it. Several ADD_
REFERENCES sections can be used in a single database if there are too many references.
It is recommended to always start with a so-called empty reference (such as the DUMP0
reference in the following example) as the first entry in each of the ADD_REFERENCE sections
to make sure that all references are listed appropriately as retrieving data by issuing the
"GET_DATA" on page 16 command.
Example
ADD_REFERENCE
DUMP0 'Empty reference 0'
REF4 'J-O Andersson, B. Sundman, CALPHAD Vol 11, (1987), p 83-
92
TRITA 0270 (1986); CR-FE'
REF5 'J-O Andersson, Met. Trans A, Vol 19A, (1988) p 627-636
TRITA 0207 (1986); C-CR-FE'
REFS 'Pingfang Shi (2006), TCS PTERN Public Ternary Alloys
Database,
v1.2; Modified L0(BCC,Fe,C) and L0(BCC,Cr,C) parameters
at high temperatures.'
... ...
!
ADD_REFERENCE
DUMP1 'Empty reference 1'
REF275 'A. Fernandez Guillermet, Z. Metallkde. Vol 79(1988)
p.524-536,
TRITA-MAC 362 (1988); C-CO-NI AND C-CO-FE-NI'
REF393 'K. Frisk, Metall. Trans. Vol 21A (1990) p 2477-2488,
TRITA 0409 (1989); CR-FE-N'
REF1096 'P. Gustafson, Metall. Trans. 19A(1988) p 2547-2554,
This keyword takes as its argument, a definition on which type of the following Boolean
algebra operates. A simple Boolean algebra using AND and OR with a maximum of four levels
of parentheses works. The CASE construction must end with the ENDCASE keyword. This
makes it possible to have additional GIBBS or POLY commands executed depending on the
user selection of elements, species or phases. The DATA commands that can be given as
secondary keyword to "DEFAULT_COMMAND " on page 20 can also be executed.
Example 1
CASE ELEMENT !
IF((CR OR TI OR V) AND N)
THEN GES AM_PH_DES @ C_S ,, CR MO TI V:C N: !
ENDCASE !
Example 2
CASE ELEMENT !
IF(O) THEN TDB DEFINE_SYSTEM_ELEMENT /- !
ENDCASE !
Example 3
CASE ELEMENT !
IF(AL AND FE)
THEN TDB DEF_SYS_ELEMENT VA !
ENDCASE !
VERSION_DATA
VERSION_DATE [string]*78 !
The string is denoted as the version/revision date and database manager of the database.
Nowadays, this directive is used mainly for the purpose of keeping the development and
revision history mostly updated.
Example
VERSION_DATE Last update and adjustment: Database Manager, 2015-
09-25 !
When you want to switch or add self-generated databases/data-sets or any new database,
use the predefined database list in the database initiation file as part of the Thermo-Calc
installation packages.
You can add comment lines in the database initiation file, which must start with
a $ sign. These lines are ignored by the DATA module. This is also applicable if
the database manager or user wants to temporarily disable a database in the
predefined database list. If there are too many databases in the \DATA\ area
that the DATA module cannot handle properly, the $ sign can be used to
temporarily comment about the uncommon databases. However, this does not
often happen.
If Thermo-Calc is used with a Windows platform, such additional database initiation files can
be located at any directory of any driver, on either a local computer or connected server.
The NEW_DICTORY_FILE command displays an Open window to access a database initiation
file if the file name or its path is not given on the same line of the NEW_DICTORY_FILE
command, or if it is incomplete or incorrect, so that the path (in the Look in box) and
database initiation file name (in the File name box) can be appropriately selected. However,
if Thermo-Calc is run on a Linux/UNIX platform, these files must be located in the current
working directory (where Thermo-Calc is started).
In an additional database initiation file, the first database entry may need to have the same
path definition structure as in the ordinary database initiation file. Copy the entry line(s) for
common databases from the original file to a database initiation file. The entries of the
additional databases follow. Similar to the standard databases predefined in the database
initiation file, all databases should normally be located in subdirectories under the directory
as defined by the TCPATH parameter (Windows) or the TC_DATA parameter (Linux/UNIX), or
under its subdirectory \DATA\ or /data/.
PARAMETER
PARAMETER [special GIBBS parameter name] [low temp. limit]
[expression 1]; [upper temp. limit 1] Y
[expression 2]; [upper temp. limit 2] Y
[expression 3]; [upper temp. limit 2] Y
.......... ; ..... Y
[expression n-1]; [upper temp. limit n-1] Y
[expression n]; [upper temp. limit n] N {Ref. Index} !
This keyword allows you to enter all types of normal GIBBS parameters for thermodynamic
data as well as five special extensions suitable for kinetic data used in the Diffusion Module
(DICTRA).
Valid extensions to special GIBBS parameter names are:
Examples
PARAMETER MQ(BCC,FE:VA) 298.15 1000+200*T+...; 6000 N !
PARAMETER MF(BCC,CO:VA) 298.15 1000+200*T+...; 6000 N !
PARAMETER DQ(FCC,FE:VA) 298.15 1043+...; 6000 N 10 !
PARAMETER DF(FCC,CR:C ) 298.15 1000+200*T+...; 6000 N 10 !
PARAMETER VS(FCC) 298.15 1000+200*T+...; 6000 N 11 !
DIFFUSION
DIFFUSION [model keyword] [phase name] [additional parameter(s)] !
This keyword specifies the type of diffusion model to use for a phase if the default model is
not desired. The default model calculates the full diffusion matrix. A diffusivity is calculated
from the different mobilities and the thermodynamic factors. The former ones are
calculated as:
M = exp (∑MF/RT) exp (∑MQ/RT) / RT
where ∑ stands for a weighted summation of the different MF’s and MQ’s plus possibly a
Redlich-Kister term.
Keyword Description
Examples
DIFFUSION NONE SIGMA !
DIFFUSION DILUTE CEMENTITE : FE : C : !
DIFFUSION MAGNETIC BCC_A2 ALPHA=0.3 ALPHA2&C=1.8 ALPHA2&N=0.6 !
ZERO_VOLUME_SPECIES
ZERO_VOLUME_SPECIES [list of species] !
In the Diffusion Module (DICTRA), the assumption that the volume is carried by the
substitutional elements only is applied. The interstitial elements are assumed to have zero
molar volumes. This keyword uses a list of which species are to be considered as zero
volume ones for an argument.
Example
ZERO_VOLUME_SPECIES VA C N !
$
$ FURTHER MODIFICATIONS:
$ ======================
$ pfs: /20041005 (PDEMO)
$ * Retrieved all definitions from PTERN for the Fe-Cr-C ternary !
$
$ pfs: /20061025 (DFeCrC)
$ * Ignore ELEMENT /- definition.
$ * Modify the L(BCC_A2,FE:C,VA;0) [and L(BCC_A2,CR:C,VA;0)]
$ parameters, in order to avoid BCC-appearance (Fe-C)
$ at temperatures higher than 3900 K.
$ $L(BCC_A2,CR:C,VA;0) 298.15 -190*T; 6000 N REF1 !
$ L(BCC_A2,CR:C,VA;0) 298.15 -190*T; 3000 Y 0; 6000 N REF1 !
$ $L(BCC_A2,FE:C,VA;0) 298.15 -190*T; 6000 N REF3 !
$ L(BCC_A2,FE:C,VA;0) 298.15 -190*T; 3900 Y 0; 6000 N REF3 !
$ * Add Cr into HCP_A3 phase, and
$ add all necessary G0/L parameters (according to SSOL2/TCFE3):
$ G(HCP_A3,CR:VA;0)
$ TC(HCP_A3,CR:VA;0)
$ BMAGN(HCP_A3,CR:VA;0)
$ G(HCP_A3,FE:C;0)
$ G(HCP_A3,CR:C;0)
$ L(HCP_A3,CR:C,VA;0)
$ L(HCP_A3,CR,FE:VA;0)
$ * Add "TMM:300/3000" limits to all three binary joins in the
$ ASSESSED_SYSTEM section.
$ * Change the reference indices, e.g., 101 to REF1, in order to
$ always get the reference list correctly.
$ * Re-arrange database format slightly.
$ * Updated the DATABASE_INFO section.
$------------------------------------------------------------------------
$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$ DATABASE INFORMATION:
$************************************************************************
$
DATABASE_INFO DFeCrC '
Fe-based or Cr-based alloys (but limited within the Fe-Cr-C ternary '
system in this DEMO version). Many unique features of the TCC/TCW '
software can be demonstrated using this and other specially-designed '
DEMO databases. ''
However, this DFeCrC database (similar to other DEMO and/or PUBLIC TC '
databases) is provided within the TCC-Demo/TCW-Demo software only for '
the purposes of demonstration, testing and evaluation. For R&D projects'
and teaching activities, you are highly encouraged to only use the FULL'
versions of the TCC and/or TCW software together with some commercial '
databases that are appropriate for your specific applications. Please '
contact us for all kinds of details. ''
Release History: Version 1.1 with minor improvements, Oct. 2004 '
Version 1.2 with minor modifications, Oct. 2006 ''
Edited by: Dr. Pingfang Shi (Thermo-Calc Software, Oct. 2006). ''
!
$ -----------------------------------------------------------------------
$VERSION_DATE Last update and adjustment: Pingfang Shi, 2004-10-05 !
VERSION_DATE Last update and adjustment: Pingfang Shi, 2006-10-25 !
$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$ Definition of Elements in the Database System:
$------------------------------------------------------------------------
$ELEM NAME STABLE_ELEMENT_REF ATOMIC MASS H298-H0 S298 !
$------------------------------------------------------------------------
$ELEMENT /- ELECTRON_GAS 0.0000E+00 0.0000E+00 0.0000E+00!
ELEMENT VA VACUUM 0.0000E+00 0.0000E+00 0.0000E+00!
ELEMENT C GRAPHITE 1.2011E+01 1.0540E+03 5.7400E+00!
ELEMENT CR BCC_A2 5.1996E+01 4.0500E+03 2.3560E+01!
ELEMENT FE BCC_A2 5.5847E+01 4.4890E+03 2.7280E+01!
$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$ TYPE_DEFINITIONS for data inclusions:
$------------------------------------------------------------------------
TYPE_DEFINITION % SEQ *!
$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$ TYPE_DEFINITIONS for phase descriptions:
$------------------------------------------------------------------------
$... For magnetic contributions:
TYPE_DEFINITION A GES AMEND_PHASE_DES @ MAGNETIC -1.0 4.00000E-01 !
TYPE_DEFINITION B GES AMEND_PHASE_DES @ MAGNETIC -3.0 2.80000E-01 !
$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$ Default Commands:
$------------------------------------------------------------------------
$DEFINE_SYSTEM_DEFAULT SPECIES 2 !
DEFINE_SYSTEM_DEFAULT ELEMENT 2 !
DEFAULT_COMMAND DEF_SYS_ELEMENT VA !
$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$ FUNCTIONS for various phases:
$------------------------------------------------------------------------
$
FUNCT GHSERCC 298.15 -17368.441+170.73*T-24.3*T*LN(T)
-4.723E-04*T**2+2562600*T**(-1)-2.643E+08*T**(-2)
+1.2E+10*T**(-3); 6000 N!
FUNCT GHSERCR 298.15 -8856.94+157.48*T-26.908*T*LN(T)
+.00189435*T**2-1.47721E-06*T**3+139250*T**(-1); 2180 Y
-34869.344+344.18*T-50*T*LN(T)-2.88526E+32*T**(-9); 6000 N!
FUNCT GHSERFE 298.15 +1225.7+124.134*T-23.5143*T*LN(T)
-.00439752*T**2-5.8927E-08*T**3+77359*T**(-1); 1811.00 Y
-25383.581+299.31255*T-46*T*LN(T)+2.29603E+31*T**(-9); 6000 N!
-3.6751551E-21*T**7; 1811 Y
-10839.7+291.302*T-46*T*LN(T); 6000 N!
FUNCT GFEFCC 298.15 +GHSERFE#-1462.4+8.282*T
-1.15*T*LN(T)+6.4E-04*T**2; 1811 Y
-27098.266+300.25256*T-46*T*LN(T)+2.78854E+31*T**(-9); 6000 N!
FUNCT GFECEM 298.15 +GPCEM1#-10745+706.04*T-120.6*T*LN(T); 6000 N!
FUNCT GFEM23C6 298.15 +7.666667*GFECEM#-1.666667*GHSERCC#
+66920-40*T; 6000 N!
$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$ Define the various Phase and their Constituents, and
$ Assign parameters to phases:
$------------------------------------------------------------------------
$PHASE NAME:TYPE MARKCODE #SUBL SITES_IN_EACH_SUBL. !
$------------------------------------------------------------------------
$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$ ASSESSED_SYSTEMS information:
$ * necessary for the BIN and TERN modules in TCC
$ the Binary Phase Diagram module in TCW
$ and the Equilibrium calculation routine in TCW
$------------------------------------------------------------------------
ASSESSED_SYSTEM
$... Binary ...
C-FE(;P3 TMM:300/4000 *)
C-CR(;P3 TMM:300/4000 *)
CR-FE(;G5 MAJ:BCC/FE:VA C_S:BCC/CR:VA
;P3 TMM:300/3000 STP:.6/1200/1/-2/2)
$ CR-FE(TDB -HCP ;G5 MAJ:BCC/FE:VA C_S:BCC/CR:VA
$ ;P3 TMM:300/3000 STP:.6/1200/1/-2/2)
$
$... Ternary ...
C-CR-FE(;G5 MAJ:BCC/FE:VA C_S:BCC/CR:VA
;P3 STP:.4/.5/1 STP:0.1/0.5/1)
!
$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$
$ LIST OF REFERENCE:
$
$------------------------------------------------------------------------
LIST_OF_REFERENCES
NUMBER SOURCE
REF0 'Alan Dinsdale, SGTE Data for Pure Elements, Calphad Vol 15(1991)
p 317-425, also in NPL Report DMA(A)195 Rev. August 1990'
REF1 'J-O Andersson, Calphad Vol 11 (1987) p 271-276, TRITA 0314; C-CR'
REF2 'Byeong-Joo Lee, unpublished revision (1991); C-Cr-Fe-Ni'
REF3 'P. Gustafson, Scan. J. Metall. vol 14, (1985) p 259-267
TRITA 0237 (1984); C-FE'
REF4 'J-O Andersson, B. Sundman, CALPHAD Vol 11, (1987), p 83-92
TRITA 0270 (1986); CR-FE'
REF5 'J-O Andersson, Met. Trans A, Vol 19A, (1988) p 627-636
TRITA 0207 (1986); C-CR-FE'
REFS 'Pingfang Shi (2006), TCS PTERN Public Ternary Alloys Database,
v1.2; Modified L0(BCC,Fe,C) and L0(BCC,Cr,C) parameters
at high temperatures.'
!
Thermo-Calc accepts deviations from these syntax rules. This means that a
database can work even if the Database Checker reports errors and warnings.
For example, an error is reported if an abbreviated phase name is found, but
phase name abbreviations are accepted by Thermo-Calc and its add-on
modules.
The executable DatabaseChecker file is found in the Thermo-Calc home directory. The
program can also be launched by selecting Tools→ Database Checker from the main menu.
"Database Checker Revision History" below for releases notes that may assist
database developers.
l The DatabaseChecker user interface has been modified to allow checking of several
database files in one batch. Instead of selecting an individual database file, the user
now selects a directory that contains databases. The application then shows a tree
structure with all database files in the chosen directory and its subdirectories. The
user may then select any number of these files for processing.
l A check of parameters whose interaction order is 3 has been introduced. For such
parameters, there must either exist one parameter with the interaction degree 0 or
three parameters with the interaction degrees 0, 1 and 2.
l To facilitate optimization of databases, the tool now generates information messages
about functions and parameters that will always return 0.
l The tool now detects conflicts between identical parameters even if one of them
have been defined with the G prefix and the other with the L prefix.
l GES AMEND_PHASE_DESCRIPTION
l COMPOSITION_SETS
l MAJOR_CONSTITUENTS
l DISORDERED_PART
l MAGNETIC_ORDERING
l STATUS_BITS
l DEFAULT_STABLE
l FRACTION_LIMITS
l EXCESS_MODEL
l REDLICH-KISTER_MUGGIANU
l HKF
l HKF_ELECTROSTATIC
l DEBYE_HUCKEL
l GES CHANGE_STATUS
l TDB DEFINE_SYSTEM_ELEMENTS
l TDB RESTORE_PHASES
l TDB REJECT_PHASES
Some improvements to warning and error messages have been made to facilitate finding
errors.
l The tool now uses parallel processing of database files on multi-core systems. This
significantly improves performance when large databases are checked.
l It is no longer required that inter-dependent database statements are defined in a
specific order in the database file (e.g., species need not any longer be defined
before the elements on which they depend). However, for the sake of readability, it is
still advised that the database statements occur in a natural order in the file.
l Because of the parallel processing of database statements, multiple definition errors
(cases where one name has been used to define more than one entity in the
database e.g, two identically named species) may now be generated for any of the
violating occurences and not only for the last occurence in the file.
l Phase names were not properly recognized in parameter definitions if there was one
or more whitespace characters between the opening parenthesis and the phase
name. This has been corrected.
l The error message Could not parse parameter, <species name> has been given
without a sublattice number but is defined in more than one sublattice is now
displayed only for phases where the general diffusion model is used. Note: this
implementation is temporary and may be subject to changes later.
l The meaning of the information message The phase <phase name> expects the
following parameters: [<parameter names>] was unclear to users. It is now longer
shown for the parameter names T and P. For all other names, the message is now
displayed as an error message with the following text: The phase <phase name>
contains references to the following undefined functions: [<function names>].
l The tool now looks for function names that are abbreviations of other function names
and warns about this, since abbreviated names may cause problems during the
execution of macro files that have been auto-generated from GES.
l The tools also warns for functions whose names are in the format V<integer>, since
this may cause conflicts with names that are used by PARROT.
l Parameter names are now shown in a format that is less cryptic and more resembles
the format used in the database. However, the format of diffusion parameters may
still differ somewhat from what is used in the database.
l The tool parses a TDB file and produces a log with error, warning and information
messages about the state of the file
l The message log can be exported and saved as a separate file for later analysis
l The tool is based on the database command definitions given in TC_Database_
ManagersGuide and DICTRA27_UsersGuide. All commands in these documents are
supported. Some undocumented DIFFUSION commands are not supported.
l Databases that span several files are correctly handled, also blocked files
l The tool is in some aspects more strict than required by the guides (see Additional
Information below)
l The tool performs the following checks:
l Syntax control of database statements: ERROR
l Line size: ERROR or WARNING depending on context
l Multiply defined elements, species or phases: ERROR
l Multiply defined functions and parameters: ERROR
l Multiply defined assessed system: ERROR
l Multiply defined references: ERROR
l References entries that are never used: WARNING
l References to non-existent type definitions: ERROR
l Type definitions that are never used: WARNING
Additional Information
In addition to the command definitions given in the user guides listed above, the following
rules are also applied:
l Names are case-sensitive, meaning that e.g., the defined element MN cannot be
referred to under the name Mn;
l Phase names cannot be abbreviated. When referred to in parameter descriptions
their full names must be used.