Computational Thermodynamics 3. Outline Compound energy formalism, part 2 Associated liquid solution Interpolation to ternary systems Introduction to.

Slides:



Advertisements
Similar presentations
The thermodynamics of phase transformations
Advertisements

Results Table of contents Table of contents Table of contents Section 1 Table of contentsTable of contents OpeningThe Results module the.
Mouse Tutorial for Win XP In this tutorial you will learn to: Move the mouse Click and double click Make selections Manage windows Use menus Click the.
The theoretical background of
Review Of Statistical Mechanics
EGN 1006 – Introduction to Engineering Engineering Problem Solving and Excel.
McGraw-Hill/Irwin ©2008 The McGraw-Hill Companies, All Rights Reserved TECHNOLOGY PLUG-IN T4 PROBLEM SOLVING USING EXCEL Goal Seek, Solver & Pivot Tables.
Decision Analysis Tools in Excel
CHEMICAL AND PHASE EQUILIBRIUM (1)
Predom The Predom module Section 1 Table of Contents Table of Contents Section 2 Opening the Predom module Opening the Predom module Section.
1111 Chemistry 132 NT I never let my schooling get in the way of my education. Mark Twain.
Chapter 10—Creating Presentations
Computational Thermodynamics 2. Outline Compound energy formalism Stoichiometric compound Wagner-Schottky model Ionic liquid.
Chapter 16 Chemical and Phase Equilibrium Study Guide in PowerPoint to accompany Thermodynamics: An Engineering Approach, 5th edition by Yunus.
UNESCO ICTLIP Module 4. Lesson 3 Database Design, and Information Storage and Retrieval Lesson 3. Information storage and retrieval using WinISIS.
FUNCTIONS AND MODELS Chapter 1. Preparation for calculus :  The basic ideas concerning functions  Their graphs  Ways of transforming and combining.
By Hrishikesh Gadre Session II Department of Mechanical Engineering Louisiana State University Engineering Equation Solver Tutorials.
Lecture 18Multicomponent Phase Equilibrium1 Theories of Solution The Gibbs energy of mixing is given by: And the chemical potential is: For ideal gases,
MAE 552 – Heuristic Optimization Lecture 6 February 6, 2002.
Chapter 6 PHASE EQUILIBRIA
Example 14.1 Expressing Equilibrium Constants for Chemical Equations
Microsoft Excel 2003 Illustrated Complete Excel and Advanced Worksheet Management Customizing.
An Integrated Educational Thermodynamics Software Program
Technology Basics Creating Worksheet Formulas. 2 Understand Formulas Equations used to calculate values in cells are called formulas. Formulas consist.
Copyright © Cengage Learning. All rights reserved. 1 Functions and Limits.
The EpH module EpH calculates and plots isothermal EpH (Pourbaix) diagrams. EpH accesses only compound databases and treats the aqueous phase as an ideal.
Screens appear here to display the: Data Tables Plots Bibliographic Info Add New Data Form, Molecular Structure-Drawing Form ‘Tree’ for navigation between.
by Chris Brown under Prof. Susan Rodger Duke University June 2012
XP New Perspectives on Introducing Microsoft Office XP Tutorial 1 1 Introducing Microsoft Office XP Tutorial 1.
Function-Builder 1.1 Fact-Function- Builder Manipulating the Equilib results.
XP New Perspectives on Microsoft PowerPoint 2002 Tutorial 1 1 Microsoft PowerPoint 2002 Tutorial 1 – Creating a PowerPoint Presentation.
FactXML Customizing the Equilib results 1.0.
Online Training for TEXAS TECH UNIVERSITY and TEXAS TECH HSC Hiring Managers Employment Office April 2003.
InDesign CS3 Lesson 4 ( Only pages ) Importing and Editing Text.
Start the slide show by clicking on the "Slide Show" option in the above menu and choose "View Show”. or – hit the F5 Key.
1. Chapter 09: Phase Diagram 2 Introduction Phase Diagrams are road maps.
XP 1 Microsoft Word 2002 Tutorial 1 – Creating a Document.
EpH Use EpH to calculate and plot isothermal EpH (Pourbaix) diagrams. Note: EpH accesses compound databases, i.e. treats the aqueous phase.
Thermodynamic data A tutorial course Session 4: Modelling of data for solutions (part 4) Alan Dinsdale “Thermochemistry of Materials” SRC.
View Data The View Data module Use View Data to examine stored compound data (H, S, C p (T), G, etc.) in Compound type databases and list.
CT – 3: Equilibrium calculations: Minimizing of Gibbs energy, equilibrium conditions as a set of equations, global minimization of Gibbs energy, driving.
Page 1 Non-Payroll Cost Transfer Enhancements Last update January 24, 2008 What are the some of the new enhancements of the Non-Payroll Cost Transfer?
Chapter 3 MATLAB Fundamentals Introduction to MATLAB Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
JMP Example 5 Three samples of size 10 are taken from an API (Active Pharmaceutical Ingredient) plant. The first one was taken at a batch reactor pressure.
WFM 6311: Climate Risk Management © Dr. Akm Saiful Islam WFM 6311: Climate Change Risk Management Akm Saiful Islam Lecture-7:Extereme Climate Indicators.
Outline: THERMOCALC program – various versions (other programes: MTDATA, FACTSAGE, PANDAT..) Database – pure metals, metalic solutions, intermetalics Macros.
Chapter 8: The Thermodynamics of Multicomponent Mixtures
Chapter 3 Response Charts.
Equilib Cooling Calculations Table of Contents Section 13.1 Table of Contents Table of ContentsTable of Contents Section 13.2 Phase transitions.
Metallurgy of steel When carbon in small quantities is added to iron, ‘Steel’ is obtained. The influence of carbon on mechanical properties of iron is.
Summer School for Integrated Computational Materials Education 2015 Computational Thermodynamics Module Review Katsuyo Thornton, 1 Paul Mason, 2 Larry.
CHEE 311J.S. Parent1 4. Chemical Potential in Mixtures When we add dn moles of a component to n moles of itself, we will observe (?) a change in Gibbs.
Lecture 15: Phase diagrams of three-component systems
42C.1 Non-Ideal Solutions This development is patterned after that found in Molecular Themodynamics by D. A. McQuarrie and John D. Simon. Consider a molecular.
Reaction Equilibrium Do any reactions truly go to completion??
1 The Reaction Program. 2 Add species windows by clicking + Enter a balanced reaction. Leave Phase as most stable. Press Next Units can be changed from.
Results Table of contents Table of contents Table of contents Section 1 Table of contentsTable of contents Opening the Results module.
SOLUTION THERMODYNAMICS:
And now, THERMODYNAMICS!. Thermodynamics need not be so hard if you think of it as heat and chemical “flow” between “phases”.
CHAPTER 11 Mean and Standard Deviation. BOX AND WHISKER PLOTS  Worksheet on Interpreting and making a box and whisker plot in the calculator.
Example 3.1a Sensitivity Analysis and Solver Table Add-in.
The TDR Targets Database Prioritizing potential drug targets in complete genomes.
1. Initiating the Solution Program
Katsuyo Thornton,1 Paul Mason,2 Larry Aagesen3
Phase diagrams by thermodynamic calculations
Thermodynamic Properties
Katsuyo Thornton,1 Paul Mason,2 Larry Aagesen3
14 Design of Experiments with Several Factors CHAPTER OUTLINE
The simplest picture of the atomic structure of metallic crystals is one of spherical ions closely packed and existing in a ‘sea’ of conduction electrons.
Presentation transcript:

Computational Thermodynamics 3

Outline Compound energy formalism, part 2 Associated liquid solution Interpolation to ternary systems Introduction to optimization

Compound energy formalism, part 2 The green surface is represented by eq:

Compound energy formalism, part 2 The method for describing the Gibbs excess energy can, again, be best shown by using a two-sublattice system (A, B) 1 (C,D) 1 before generalizing to a multi-component system. In this alloy A-C, A-D, B-C and B-D interactions are controlled by the Gibbs energy of the compounds AC, BC, AD and BD. Mixing on the sublattices controls A-B and C-D interactions and the simplest form of interaction is a regular solution format such that where L 0 A, B:* and L 0 *:C,D denote regular solution parameters for mixing on the sublattices irrespective of site occupation of the other sublattice.

Compound energy formalism, part 2 A sub-regular model can be introduced by making the interactions compositionally dependent on the site occupation in the other sublattice.

Compound energy formalism, part 2 Finally some site fraction dependence to these parameters can be added such that

Compound energy formalism, part 2 Interstitial phases. These are predominant in steels and ferrous-based alloys, where elements such as C and N occupy the interstitial sites of the ferrite and austenite lattices. In this case the structure of the phase can be considered as consisting of two sublattices, one occupied by substitutional elements, such as Fe, Cr, Ni, Mn, etc., and the other occupied by the interstitial elements, such as C or N, and interstitial vacancies (Va). As the concentration of C, N,..., etc., increases the interstitial vacancies are filled until there is complete occupation. The occupation of the sublattices is shown below as (Fe, Cr, Ni, Mn… ) u (Va, C, N...) v

Compound energy formalism, part 2 In the case of an FCC_A1 structure, with u = v = 1, the state of complete occupation of interstitial carbon corresponds to a MC carbide with the NaCI lattice. For the HCP_A3 structure, with u = 1 and v = 0.5, complete occupation of the interstitial sites by carbon gives the M2C carbide with a hexagonal Fe2N-type structure.

Compound energy formalism, part 2 For the case of the FCC_A1, austenite phase in Cr-Fe-C, the Gibbs energy of the phase is represented by the formula (Cr, Fe) 1 (C, Va) 1 and its Gibbs energy given by the following equation

Compound energy formalism, part 2 The database PHASE SBSN % ! CONSTITUENT SBSN :SB,SN : SB,SN : ! PARAMETER G(SBSN,SB:SB;0) E+02 +GHSERSB# ; E+03 N REF0 ! PARA G(SBSN,SN:SB;0) ; 6000 N ! PARAMETER G(SBSN,SB:SN;0) E *GHSERSN#+.5*GHSERSB# *T; E+03 N REF0 ! PARAMETER G(SBSN,SN:SN;0) E+02 +GHSERSN# *T; E+03 N REF0 ! PARAMETER G(SBSN,SB,SN:SB;0) E ; E+03 N REF0 ! PARAMETER G(SBSN,SB:SB,SN;0) E ; E+03 N REF0 ! PARAMETER G(SBSN,SN:SB,SN;0) E ; E+03 N REF0 ! PARAMETER G(SBSN,SB,SN:SN;0) E ; E+03 N REF0 !

Associated liquid solution In the systems with short range ordering (SRO), unlike atoms tend to stay together for a shorter or longer length of time. The term associate was introduced to denote an association between unlike atoms when the attractive forces between the atoms are not strong enough to form a stable chemical molecule. Fictitious constituents can be used in the same form of that equation for the surface Gibbs energy and thus creates additional degree of freedom.

Associated liquid solution The Gibbs energy of excess usually describes inteactions between an associate and pure elements.

Associated liquid solution SPECIES PBTE_L PB1TE1! PHASE LIQUID % ! CONSTITUENT LIQUID :PB,PBTE_L,TE : ! PARAMETER G(LIQUID,PB;0) E *T *T*LN(T) *T** E-07*T** E-19*T**7; E+02 Y *T *T*LN(T) *T**2; E+03 Y *T *T*LN(T) *T** E-08*T** *T**(-1); E+03 N REF0 ! PARAMETER G(LIQUID,PBTE_L;0) E E E+00*T+GHSERPB#+GHSERTE#; E+03 N REF0 ! PARAMETER G(LIQUID,TE;0) E *T *T*LN(T) *T** E-05*T** *T**(-1); E+02 Y *T *T*LN(T) *T** *T** E+08*T**(-1); E+02 Y *T *T*LN(T) *T** E-05*T** *T**(-1); E+03 Y *T *T*LN(T); E+03 N REF0 !

Associated liquid solution PARAMETER G(LIQUID,PB,PBTE_L;0) E E E+01*T; E+03 N REF0 ! PARAMETER G(LIQUID,PB,PBTE_L;1) E E+03; E+03 N REF0 ! PARAMETER G(LIQUID,PBTE_L,TE;0) E E E+00*T; E+03 N REF0 !

Ternary systems The predominant method at the present time uses the equation developed by Muggianu. In this circumstance the excess energy in a multicomponent system, as given by the Equation: Besides that, there are also: Kohler and Toop interpolations.

Ternary systems

The ternary interaction parameter can be added: Higher-ordered interaction parameter can be also added:

Ternary systems PARAMETER G(LIQUID,CU,SB,SN;0) E E E+01*T+0*T*LN(T) ; E+03 N REF0 ! PARAMETER G(LIQUID,CU,SB,SN;1) E E E+01*T+0*T*LN(T); E+03 N REF0 ! PARAMETER G(LIQUID,CU,SB,SN;2) E E E+01*T+0*T*LN(T) ; E+03 N REF0 ! Database

Ternary systems Let’s perform some calculation of ternary system.

Ternary systems

Try to change the picture by yourself

Ternary systems

Isothermal section at 500K.

Ternary systems

Isoplethal section Al05Mg05-Zn. This is not a phase diagram. Why?

Introduction to optimization Next slides are based on Pandat User Guide available on

Introduction to optimization PanOptimizer Functions The major functions included in the PanOptimizer menu are shown in Figure

Introduction to optimization Rough Search To perform the rough search, we should follow the steps as follow 1. Prepare the thermodynamic database file (.TDB) In order to do the optimization, we must first define the model parameters to be optimized in the thermodynamic database (.tdb). The model parameters to be optimized can be defined in Pandat workspace where all the built-in keywords are automatically highlighted. It can also be done through outside text editor such as “Notepad”. Each model parameter that needs to be optimized is defined by the keyword “OPTIMIZATION”. The format of defining a model parameter is: Optimization [parameter name][low bound][initial value][high bound] N !

Introduction to optimization A definition sample for liquid phase in binary Al-Zn system is given as follows

Introduction to optimization 2. Prepare the experimental file (.POP) Keyword CREATE_ROUGH_EQUILIBRIUM is used to define phase equilibrium for rough search. When creating an equilibrium data set for rough search, the status of phases in equilibrium can only be FIXED. The keyword PHASE_POINT is used to define the state space of the phases in equilibrium including temperature, pressure and composition. No thermodynamic property is allowed to be optimized for multiple-phase equilibria. However, a special case is the single-phase equilibrium. The thermodynamic property data of the single-phase equilibrium can be used as experimental data to optimize the model parameters. Taking the binary Al-Zn system as an example, we will define a rough equilibrium between Fcc_A1 and Hcp_A3 at 500K. Note: For a phase described by a sublattice model, the initial value of an element or species should be specified using SET_START_VALUE.

Introduction to optimization

A complete POP file for rough search can be found at the Pandat installation directory

Introduction to optimization 3. Load/compile experimental file 4. Rough Search There are four control areas in the control panel for rough search as shown in Figure

Introduction to optimization

There are two types of built-in optimization algorithms for Rough Search and they are Global Search and Local Search, as shown in area C. Global Search is to search a set of good initial values of the model parameters within the whole searching domain, while Local Search leads to a quick convergence to an optimal solution based on the given initial values of model parameters. The user can set the maximum number of function calls for both algorithms.

Introduction to optimization Let’s again take the binary Al-Zn system as an example. The phase boundary and invariant reaction information as shown in Figure is used for the rough search and the result of rough search is also shown in the same Figure

Introduction to optimization The calculated phase boundary compared with the experimental data after the rough search with Global Optimization

Introduction to optimization By setting the maximum number of function evaluations to be 1000 and clicking Global Search, the program finally stops at the sum of squares of Figure in previous slide shows the calculated phase boundaries after a global search with 1000 function evaluations. It can be seen that the optimized parameters give a very similar topology with the known Al-Zn phase diagram. By clicking Local Search, the sum of squares decreases from 2.91 to 0.059, which reproduces the phase diagram in better agreement with the experimental one as can be seen in Figure in next slide.

Introduction to optimization The calculated phase boundary compared with the experimental data after the rough search with Local Optimization

Introduction to optimization During rough search, user can check model parameters through Parameters. In addition, chemical potential differences between any two phases in equilibrium can be accessed by Experimental Data. They are reflected by the values in column “(Wtd. Residual)^2” as shown in the dialog window in Figure in next slide. Similarly, the weight factor of the equilibrium can be adjusted as needed during optimization procedure. The chemical potential values of each phase in equilibrium can be accessed by clicking the buttons in the first column.

Introduction to optimization

5. Save/Open Optimization Results During optimization, the user may save and load optimization file through Save Optimization Results and Open Optimization Results. The optimization results file has the extension name of POR that can only be read by PanOptimizer. Intermediate optimization results can be saved and restored through these two operations. These functions are very useful especially when a user is optimizing model parameters for a complicated system. The user can always go back to a certain middle stage and restart from there. This will save user’s time by avoiding some repeated work.

Introduction to optimization

Normal Optimization In general, user should follow a few steps below to perform the model parameter optimization. 1. Prepare the thermodynamic database file (.TDB) Preparation of the fileis exactly the same as in case o rough optimization 2. Prepare the experimental file (.POP) Users need to provide their own experimental data file for optimization of model parameters. The most widely accepted format for experimental data file in the CALPHAD society is a POP file.

Introduction to optimization PanOptimizer accepts most of the keywords in the POP format and adds a few special keywords. In a POP file, a phase can have four statuses: ENTERED, FIXED, DORMANT, and SUSPEND. The first two statuses were used most frequently. When phases are in the ENTERED status, PanOptimizer does not require user to input any initial values for calculation since the truly stable phase equilibria will be found automatically in this case with the built-in global optimization algorithm. On the other hand, for those phases in FIXED or DORMANT status, the initial values should be provided by the user. Example POP files are provided in the installation dictionary of Pandat.

Introduction to optimization 3. Load thermodynamic database file 4. Load and compile experimental file

Introduction to optimization 5. Perform Optimization Once the TDB file and the experimental POP file are loaded, user is ready to do the optimization. In the current version of PanOptimizer, the optimization is controlled through the optimization control panel as shown in Figure

Introduction to optimization Histogram (A) Histogram is for displaying and tracing the history of the discrepancy between model- calculated values and experimental data, which is characterized by the Sum of Squares displayed during the whole optimization procedure. The histogram plots the sum of squares vs. the number of function calls. The exact value of the sum of squares in the current step can be found at the up-right corner of this area.

Introduction to optimization Free Bound/Unbound Variables (B) The user can choose the model parameters to be optimized in either the bounded or the unbounded mode. In the bounded mode, the low and high bounds defined in a TDB file will take into effects. Optimization (C) The goal of the optimization process is to obtain an optimal set of model parameters so that the model calculated results can best fit the given experimental measurements. The optimization process can be controlled by choosing 1 Iteration or Run. With 1 Iteration, the maximum number of function calls is set to be 2(N+2), where N is the number of model parameters to be optimized. The user can click Run mode several times until the optimal solution is found or the designated maximum number of function calls is reached.

Introduction to optimization Optimization Results (D) During optimization, user can check model parameters through the Parameters button as shown in Figure. For each model parameter, user can change its low bound, upper bound and initial value in the dialog window as shown in Figure. User can Include or Exclude a certain parameter in the optimization through the “check box” in front of the parameter. If a set of optimized parameters is satisfactory, user can save this set of values as default ones through Set Default shown in Figure. Otherwise, user can reject this set of values and go back to previous default values through Get Default. User also can save the TDB file with the optimized model parameters through Save TDB. The standard deviation and relative standard deviation (RSD) of each parameter are computed during optimization. The parameter evolution during the last 100 iterations can be tracked by clicking the parameter name in the table as indicated in Figure. It should be noted that any changes on model parameters made by user will take into effect only after the “Apply” button is clicked.

Introduction to optimization Here we take the binary Al-Zn system as an optimization example. The TDB and POP files are available at the installing directory of Pandat “/Pandat_Examples/PanOptimizer/”. In this example, there are totally 11 parameters to be optimized and all the initial values are set to be zero. The available experimental data include:

Introduction to optimization Before the optimization, user may want to check the calculated results using the initial set of model parameters without optimization. Phase diagram calculation can be done through 2-D section calculation, and enthalpy calculation can be done through the 1-D line calculation. The parameters before optimization result in large discrepancies between the calculated values and the experimental measurements. Optimization of these model parameters (initially set as zero) is needed.

Introduction to optimization The Figure shows the calculated Al-Zn phase diagram and enthalpy of mixing for liquid phase at 953K along with the given experimental data, respectively.

Introduction to optimization By clicking Run twice (two rounds), and each run performs 50 function calls, the sum of squares decreases from to 3061 as shown in left Figure. After another two rounds of Run, the sum of squares decreases from 3061 to 2.8 as shown in a right Figure. Now, we can do the real time calculation using the instantly obtained optimized parameters.

Introduction to optimization The two comparisons in Figure show excellent agreements between the calculated results and the measured data.

Introduction to optimization Optimization Results (D) During optimization, user can check model parameters through the Parameters button as shown in Figure. For each model parameter, user can change its low bound, upper bound and initial value in the dialog window as shown in Figure. User can Include or Exclude a certain parameter in the optimization through the “check box” in front of the parameter. If a set of optimized parameters is satisfactory, user can save this set of values as default ones through Set Default shown in Figure. Otherwise, user can reject this set of values and go back to previous default values through Get Default. User also can save the TDB file with the optimized model parameters through Save TDB. The standard deviation and relative standard deviation (RSD) of each parameter are computed during optimization. The parameter evolution during the last 100 iterations can be tracked by clicking the parameter name in the table as indicated in Figure. It should be noted that any changes on model parameters made by user will take into effect only after the “Apply” button is clicked.

Introduction to optimization

6. Save/Open Optimization Results During optimization, the user may save and load optimization file through Save Optimization Results and Open Optimization Results. The optimization results file has the extension name of POR that can only be read by PanOptimizer. Intermediate optimization results can be saved and restored through these two operations. These functions are very useful especially when a user is optimizing model parameters for a complicated system. The user can always go back to a certain middle stage and restart from there. This will save user’s time by avoiding some repeated work.

Introduction to optimization