Computational Thermodynamics 1. Outline Theoretical background: thermodynamics of substitional solutions Introduction to thermodynamic database: element,

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.
The theoretical background of
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.
Tutorial 8: Developing an Excel Application
Computational Thermodynamics 2. Outline Compound energy formalism Stoichiometric compound Wagner-Schottky model Ionic liquid.
Introduction of phase diagram Hongqun Dong Introduction of phase diagram.
John Porter Why this presentation? The forms data take for analysis are often different than the forms data take for archival storage Spreadsheets are.
At sea level At top of a mountain Water boils at 100  C Water boils at < 100  C b.P = f(P)
By Hrishikesh Gadre Session II Department of Mechanical Engineering Louisiana State University Engineering Equation Solver Tutorials.
Introduction to Structured Query Language (SQL)
© 2006 Brooks/Cole - Thomson Some Thermodynamic Terms Notice that the energy change in moving from the top to the bottom is independent of pathway but.
Introduction to Structured Query Language (SQL)
CHAPTER 6 FILE PROCESSING. 2 Introduction  The most convenient way to process involving large data sets is to store them into a file for later processing.
1 Chapter 20 — Creating Web Projects Microsoft Visual Basic.NET, Introduction to Programming.
Introduction to Array The fundamental unit of data in any MATLAB program is the array. 1. An array is a collection of data values organized into rows and.
Computer Science 101 Introduction to Programming.
Demonstration1 FactSage – The Integrated Thermodynamic Databank System FactSage accesses various pure substances and solution databases.
Binary Solutions LECTURE 2.
Chapter Outline: Phase Diagrams
The EpH module EpH calculates and plots isothermal EpH (Pourbaix) diagrams. EpH accesses only compound databases and treats the aqueous phase as an ideal.
View Data The View Data module Use View Data to examine stored compound data (C p (T),H, G, S, etc.) in Compound databases and list solution.
Introduction to Access By Mary Ann Chaney and Alicia Harkleroad.
JavaScript, Fifth Edition Chapter 1 Introduction to JavaScript.
Fortran 1- Basics Chapters 1-2 in your Fortran book.
SOFTWARE ENGINEERING BIT-8 APRIL, 16,2008 Introduction to UML.
Notation convention Let G' stand for total free energy and in a similar fashion S', V', H', etc. Then we will let = G'/n represent the free energy per.
The Thermodynamic Potentials Four Fundamental Thermodynamic Potentials dU = TdS - pdV dH = TdS + Vdp dG = Vdp - SdT dA = -pdV - SdT The appropriate thermodynamic.
Chapter 8 Thermochemistry. Thermodynamics  Study of the changes in energy and transfers of energy that accompany chemical and physical processes.  address.
How to create tdb files Alan Dinsdale, Sandy Khvan “Thermochemistry of Materials” SRC NUST, MISiS, Moscow, Russia.
1 Tutorial 13 Validating Documents with DTDs Working with Document Type Definitions.
Much from Introduction to Oracle:SQL and PL/SQL, Oracle University 1 Basic SQL Statements Oracle/SQL Plus Commands Kroenke, 11 th ed., Chapter Two.
Text and Graphics September 26, Unit 3.
Phase equilibrium Plan 1.Phase equilibrium. Gibb’s phase rule. 2.Diagram of the state for a one component system 2.Diagram of the state for a one component.
USING FREE GEOCHEMICAL SOFTWARE FROM THE U.S. GEOLOGICAL SURVEY DEVIN CASTENDYK STATE UNIVERSITY OF NEW YORK, ONEONTA
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.
Lecture #5 Introduction to C++
Chemical Equilibrium Chemistry in Two Directions 1.
Introduction to Programming with RAPTOR
WHAT IS A DATABASE? A DATABASE IS A COLLECTION OF DATA RELATED TO A PARTICULAR TOPIC OR PURPOSE OR TO PUT IT SIMPLY A GENERAL PURPOSE CONTAINER FOR STORING.
A Simple Guide to Using SPSS ( Statistical Package for the Social Sciences) for Windows.
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Understanding How XML Works Ellen Pearlman Eileen Mullin Programming the.
Tutorial 13 Validating Documents with Schemas
Outline: THERMOCALC program – various versions (other programes: MTDATA, FACTSAGE, PANDAT..) Database – pure metals, metalic solutions, intermetalics Macros.
Introduction to Database using Microsoft Access 2013 Part 6.1 November 18, 2014.
CONSTANTS Constants are also known as literals in C. Constants are quantities whose values do not change during program execution. There are two types.
Chapter 8: The Thermodynamics of Multicomponent Mixtures
5.0 View Data 1. The View Data program. 5.0 View Data 2.View Data of a Compound Database Pressure and Energy units Compound Database Possibility to add.
Simple Lattice Model for Fluids. Introduction In this chapter we borrow the idea of lattice structures, characteristic of crystals, and apply it to develop.
Lesson 4.  After a table has been created, you may need to modify it. You can make many changes to a table—or other database object—using its property.
Thermodynamic data A tutorial course Session 2: unary data (part 2) Alan Dinsdale “Thermochemistry of Materials” SRC.
CHAPTER 2 PROBLEM SOLVING USING C++ 1 C++ Programming PEG200/Saidatul Rahah.
Reaction Equilibrium Do any reactions truly go to completion??
Thermochemistry. Thermodynamics  Study of the changes in energy and transfers of energy that accompany chemical and physical processes.  address 3 fundamental.
Results Table of contents Table of contents Table of contents Section 1 Table of contentsTable of contents Opening the Results module.
Phase Diagrams Chapter 9 4 th Edition Chapter 10 5 th Edition.
Chapter 5 Thermochemistry. Thermodynamics  Study of the changes in energy and transfers of energy that accompany chemical and physical processes.  address.
Chapter 3: Conservation of Energy. Important Notation 2.
1. Initiating the Solution Program
View Data 1. The View Data program.
Solution of Thermodynamics: Theory and applications
Other Kinds of Arrays Chapter 11
IDENTIFIERS CSC 111.
Don’t be in a such a hurry to condemn a person because he doesn’t do what you do, or think as you think. There was a time when you didn’t know what you.
Phase diagrams by thermodynamic calculations
Phase Diagram.
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 1

Outline Theoretical background: thermodynamics of substitional solutions Introduction to thermodynamic database: element, specie, constitution, phase, function Introduction to Pandat software: phase diagram, line/propert and point calculation Pandat and database. Writing a database for Cu-Ni system

Theoretical background: thermodynamics of substitional solutions By definition, the phase is a homogeneous part of the space. The phase has the same structure, property and the phase is limited by phase boundary. Do you agree with this definition? We can see, that inside the glass We have 4 different phases: -Solid phases: ice and straw -Liquid phase: pepsi-cola -Gas phase: CO 2 But, of course, we can guess, those phases Are not in equilibrium!

Theoretical background: thermodynamics of substitional solutions Let’s re-define a phase: The phase is a homogeneous part of the space and the phase is limited by a phase boundary

Theoretical background: thermodynamics of substitional solutions A phase diagram is a type of chart used to show conditions at which thermodynamically distinct phases can occur at equilibrium.

Theoretical background: thermodynamics of substitional solutions Condition for two phases to be in equilibrium

Theoretical background: thermodynamics of substitional solutions ΔG α Δμ A α =Δμ A β Δμ B α ΔG β = Δμ B β

Theoretical background: thermodynamics of substitional solutions AB L α+β L+β α+L β α

Theoretical background: thermodynamics of substitional solutions Substitutional solution A-B: atoms A can substitute atoms B and vice versa. Both phases (FCC and Liquid) are substitional solutions

Theoretical background: thermodynamics of substitional solutions In case of Face Centered Cubic FCC_A1 structure and Cu – Ni alloy, There are no restrictions and both types of atoms can occupied any position in crystal structure for whole concentration range. The Gibbs energy will, in this case, has 3 parts:

Theoretical background: thermodynamics of substitional solutions

Superposition of Gibbs energies of pure elements Gibbs energy mechanical mixing Excess Gibbs energy

Theoretical background: thermodynamics of substitional solutions For i=0 and B=C=0 we just have a regular solution x A x B Ω Redlich-Kister polynominal Value of i depends on thermodynamic properties of a given phase

Theoretical background: thermodynamics of substitional solutions Let’s take a look at the Gibbs energy function Using Excel and the values 0 A = 1 A = 2 A = 1000, 0 B = 1 B = 2 B = 0 C = 1 C = 2 C = 0, please make a graph of the Gibbs energy (separately for each L and their superposition)

Introduction to thermodynamic database: element, specie, constitution, phase, function The thermodynamic database is a text file with extension TDB For editing the file one should not use a word processor (i.e. MS Word) due to invisible information added by the word processor. The easiest way to edit the database is to use Notepad or other simple editor (personally, I like to use the Edit Plus)

Introduction to thermodynamic database: element, specie, constitution, phase, function Format of the database: -Information about elements -Information about species (if applicable) -Functions -Parameters

Introduction to thermodynamic database: element, specie, constitution, phase, function Se-Te database (part)

Introduction to thermodynamic database: element, specie, constitution, phase, function $ Database file written $ From database: User data ELEMENT /- ELECTRON_GAS E E E+00! ELEMENT VA VACUUM E E E+00! ELEMENT SE HEXAGONAL_A E E E+01! ELEMENT TE HEXAGONAL_A E E E+01! $ comment line ELEMENT SYMBOL Crystal structure SER ELEMENT [element name]*2 [ref. state]*24 [mass] [H298] [S298] ! Atomic mass Enthalpy and entropy difference between 0 and K for the element in SI units. If they are unknown, the values can be set to zero.

Introduction to thermodynamic database: element, specie, constitution, phase, function H298 and S298 - the enthalpy and entropy difference between 0 and K for the element in SI units. All these information (reference state, H298 and S298) precisely define the so-called SER (Stable Element Reference State).

Introduction to thermodynamic database: element, specie, constitution, phase, function 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 already defined set of elements in the stoichiometric formula. The stoichiometric formula is written with a simplified chemical notation, in which the chemical elements should always be given in UPPER-cases and in any preferred order, and their stoichiometric coefficients can be written in either real numerical factor or integer digits. It is important that the numerical factor of 1 cannot be left out. SPECIES AL2O3 AL2O3 ! SPECIES Silica SI1O2 ! SPECIES NaSb_6OH NA1SB1O6H6 ! SPECIES FE+2 FE/+2 ! SPECIES SB-3 SB/-3 ! SPECIES AlCl2/3 AL.33333CL !

Introduction to thermodynamic database: element, specie, constitution, phase, function FUNCTION [function name]*8 [lowest temp. limit] [expression 1]; [upper temp. limit 2] Y [expression 2]; [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} !

Introduction to thermodynamic database: element, specie, constitution, phase, function TYPE_DEFINITION % SEQ *! DEFINE_SYSTEM_DEFAULT ELEMENT 2 ! DEFAULT_COMMAND DEF_SYS_ELEMENT VA /- ! PHASE HEXAGONAL_A8 % ! CONSTITUENT HEXAGONAL_A8 :SE,TE : ! PARAMETER G(HEXAGONAL_A8,SE;0) E+02 +GHSERSE#; E+03 N REF0 ! PARAMETER G(HEXAGONAL_A8,TE;0) E+02 +GHSERTE#; E+03 N REF0 ! PARAMETER G(HEXAGONAL_A8,SE,TE;0) E E E+00*T; E+03 N REF0 !

Introduction to thermodynamic database: element, specie, constitution, phase, function TYPE_DEFINITION [data-type code]*1 [secondary keyword with parameters] ! This keyword couples phases to an action performed by the TDB module when the TDB command GET_DATA is executed. The available secondary keywords and associated parameters in syntax for TYPE_DEFINITION are: SEQ [filename] RND# [filename] GES [valid GES command with parameters] POLY [valid POLY command with parameters] TDB [valid TDB command with parameters] IF [conditional statement] THEN [keyword with parameters] AFTER [valid GES command with parameters]

Introduction to thermodynamic database: element, specie, constitution, phase, function 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 TYPE_DEFINTION 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.

Introduction to thermodynamic database: element, specie, constitution, phase, function DEFINE_SYSTEM_DEFAULT [keyword] {G-ref. type index} ! Thermocalc software! This keyword sets the default value to ELEMENT or SPECIES in the TDB command DEFINE_SYSTEM. For a substance database, it might be appropriate to have ELEMENT as default value whereas a large solution database can benefit from having SPECIES as default value. A proper default value is beneficial for a beginner, but an advanced user will probably use the TDB 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 GES module. The following lists legal numbers and their corresponding meaning (the reference state type for an element): 1 ⇒ symbol: G 2 ⇒ symbol: H298 3 ⇒ symbol: H0

Introduction to thermodynamic database: element, specie, constitution, phase, function DEFAULT_COMMAND [secondary keyword and parameters] ! Thermocalc software The keyword specifies commands to be executed by the TDB module at database initialization. The syntax of the available commands is currently not the same as the user available TDB commands but the actions are similar. The available secondary keywords and parameters in syntax for DEFAULT_COMMAND are, DEFINE_SYSTEM_ELEMENT [element names] DEFINE_SYSTEM_SPECIES [species names] DEFINE_SYSTEM_CONSTITUENT [phase] [sublattice] [species] REJECT_SYSTEM_ELEMENT [element names] REJECT_SYSTEM_SPECIES [species names] REJECT_SYSTEM_CONSTITUENT [phase] [sublattice] [species] REJECT_PHASE [phase names] RESTORE_PHASE [phase names]

Introduction to thermodynamic database: element, specie, constitution, phase, function 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 thermodynamic parameters). The data-type code consists of 1 to 8 characters where each character must stand for connecting to a specific database file 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) may be given after the last [sites in sublattice #] but before the exclamation mark “!”; see examples below. This string will show up in connection with the phase name in some listings within the TDB module.

Introduction to thermodynamic database: element, specie, constitution, phase, function PHASE GAS:G % ! PHASE LIQUID:L %ZCDQ > Metallic liquid solution, modelled by CEF Model. ! PHASE IONIC-LIQ:Y %ZCDQ > Ionic liquid solution, modelled by Ionic Two-Sublattice Model. ! PHASE SPINEL:I %ZA > Complex Spinel Solution, by CEF model with ionic constraints. ! PHASE M23C6 % ! PHASE FCC_A1 %&A > Disordered FCC phase; also as MX carbides/nitrides. ! PHASE FCC_L10 %&AX > Ordered FCC phase, modelled by 2-Sublattice Model for Ordering. ! PHASE FCC_L12:F %&AX > Ordered FCC phase, modelled by 4-Sublattice Model for Ordering. ! PHASE AQUEOUS:A %HIJMR > Aqueous Solution: using the Complete Revised HKF Model. !

Introduction to thermodynamic database: element, specie, constitution, phase, function Legal GES phase-type codes are (Thermocalc software): G ⇒ Bit set for a gaseous mixture phase. A ⇒ Bit set for an aqueous solution phase. Y ⇒ Bit set for an ionic liquid solution phase (that is specially treated by the Ionic Two- Sublattice Liquid Model). L ⇒ Bit set for a liquid solution phase [but not A (aqueous) or Y (ionic liquid)]. I ⇒ Bit set for a phase with charged species [but not G (gaseous), A (aqueous) or Y (ionic liquid)]. F ⇒ Bit set for an ordered FCC or HCP solution phase with 4 substitutional sublattices (additionally, such a phase can also have an interstitial sublattice). B ⇒ Bit set for an ordered BCC solution phase with 4 substitutional sublattices (additionally, such a phase can also have an interstitial sublattice).

Introduction to thermodynamic database: element, specie, constitution, phase, function CONSTITUENT [phase name]*24 [constituent description]*2000 ! This keyword (and the ADD_CONSTITUENT 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).

Introduction to thermodynamic database: element, specie, constitution, phase, function PARAMETER [GES 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} ! GES parameters G Standard energy parameter (Gibbs energy of formation); L Excess energy parameter (Gibbs energy of interaction); TC Curie temperature for magnetic ordering; BMAGN or BM Bohr magneton number for magnetic ordering

Introduction to Pandat software: phase diagram, line/property and point calculation

Program Files->Computherm->Pandat 2012 Demo->Pandat 2012 Examples-> PanPhaseDiagram->Line

Introduction to Pandat software: phase diagram, line/property and point calculation

Right-click on a database

Introduction to Pandat software: phase diagram, line/property and point calculation

Point calculation Line calculation Phase diagram calculation Let’ start from phase diagram calculation

Introduction to Pandat software: phase diagram, line/property and point calculation

Edit Select Zoom Label Legend Text Line/Arrow Pan mode

Introduction to Pandat software: phase diagram, line/property and point calculation Double click

Introduction to Pandat software: phase diagram, line/property and point calculation

After that we have to deal with tables. However, a new version, Pandat 2013, has a new menu: Property

Introduction to Pandat software: phase diagram, line/property and point calculation

Lets calculate activity of components in liquid phase

Introduction to Pandat software: phase diagram, line/property and point calculation

It doesn’t look good, does it?

Introduction to Pandat software: phase diagram, line/property and point calculation As you see, we calculated activity of all phases. We have to delete everything what we don’t need

Pandat and database. Writing a database for Cu- Ni system

Right-click on database

Pandat and database. Writing a database for Cu-Ni system How many phases do we have in Cu-Ni system? How many phases do we have in the TDB file? Let’s delete everything what we don’t need!

Pandat and database. Writing a database for Cu-Ni system

Don’t forget to save the changes!

Pandat and database. Writing a database for Cu-Ni system Gibbs energies of pure elements. We need to add interaction parameters (excess Gibbs energy)

Pandat and database. Writing a database for Cu-Ni system Where are the parameters?

Pandat and database. Writing a database for Cu-Ni system Let’s calculate a phase diagram, activities of Cu and Ni in FCC (500K) and Liquid (1500K), enthalpy of mixing in Liquid (1400K) in respect (with reference state) to Liquid and FCC (2 pictures)

Pandat and database. Writing a database for Cu-Ni system Phase diagram Activities at 500KActivities at 1500K Enthalpy at 1400K, ref. state liquidEnthalpy at 1400K, ref. state FCC

Homework Base on the paper, prepare a TDB file for Te-Se system