Www.factsage.com Function-Builder 1.1 Fact-Function- Builder Manipulating the Equilib results.

Slides:



Advertisements
Similar presentations
Results Table of contents Table of contents Table of contents Section 1 Table of contentsTable of contents OpeningThe Results module the.
Advertisements

Creating a simple bar chart with error bars in SPSS
Predom The Predom module Section 1 Table of Contents Table of Contents Section 2 Opening the Predom module Opening the Predom module Section.
Click the Enter button to begin using the Compendium Click to continue.
NOTE: Use the HOME/Pos1 button to return to the table of contents.
Mixture 1 The Mixture module Use Mixture to edit mixtures and streams for input to Equilib. NOTE that the use of the Mixture module is.
Creating a Document with a Table, Chart, and Watermark
Customizing Reports. Custom Reports A report is a formatted hardcopy of the contents of one or more tables from a database. Although you can format and.
Access Custom Forms & Reports. Topics  Designer Skills  Tab Order (Forms)  Copying Properties  Adding a Control  Adding Page Breaks  Adding Tab.
Microsoft Office 2010 Access Chapter 1 Creating and Using a Database.
Predom The Predom module Section 1 Table of Contents Table of Contents Section 2 Opening the Predom module Opening the Predom module Section.
Integrating Access with the Web and with Other Programs.
Creating Custom Forms. 2 Design and create a custom form You can create a custom form by modifying an existing form or creating a new form. Either way,
First-Year Engineering Program 1 Autumn 2009 Graphing with Microsoft Excel Lecture 11 Engineering H191 Engineering Fundamentals and Laboratory.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Access Project 1 Creating and Using a Database.
1 Introduction to the Visual Studio.NET IDE Powerpoint slides modified from Deitel & Deitel.
Excel For MATH 125 Histograms. If you have Excel 2003…
DEMONSTRATION FOR SIGMA DATA ACQUISITION MODULES Tempatron Ltd Data Measurements Division Darwin Close Reading RG2 0TB UK T : +44 (0) F :
Advanced features of Equilib
Office 2003 Advanced Concepts and Techniques M i c r o s o f t Access Project 4 Reports, Forms, and Combo Boxes.
Pasewark & Pasewark Microsoft Office XP: Introductory Course 1 INTRODUCTORY MICROSOFT ACCESS Lesson 3 – Creating and Modifying Forms.
Demonstration1 FactSage – The Integrated Thermodynamic Databank System FactSage accesses various pure substances and solution databases.
The EpH module EpH calculates and plots isothermal EpH (Pourbaix) diagrams. EpH accesses only compound databases and treats the aqueous phase as an ideal.
Reaction Table of contents Table of Contents Table of Contents Section 1Table of ContentsTable of Contents Opening the Reaction module.
Equilib Advanced Table of Contents Section 1Table of Contents Target Phases [F],[P],[S] Target Phases [F],[P],[S] Section 2 Target Phases.
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.
Screens appear here to display the: Data Tables Plots Bibliographic Info Add New Data Form, Molecular Structure-Drawing Form ‘Tree’ for navigation between.
The Equilib module – Regular Features
Equilib Table of contents Table of Contents Table of Contents Section 1Table of ContentsTable of Contents Opening the Equilib Module Opening.
Spreadsheets in Finance and Forecasting Presentation 8: Problem Solving.
HTML, XHTML, and CSS Chapter 12 Creating and Using XML Documents.
FactXML Customizing the Equilib results 1.0.
Department of Mechanical Engineering, LSUSession VII MATLAB Tutorials Session VIII Graphical User Interface using MATLAB Rajeev Madazhy
Chapter 6 Advanced Report Techniques
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Access 2002 Advanced Report Design.
Creating your own form from scratch.. To create a custom form, you can modify an existing form or design and create a form from scratch. In either case,
Microsoft Expression Web-Illustrated Unit I: Working with Tables.
Office 2003 Advanced Concepts and Techniques M i c r o s o f t Access Web Feature Data Access Pages.
Figure Table of contents Table of Contents Table of Contents Section 1Table of ContentsTable of Contents Opening Figure and the Figure.
HTML, XHTML, and CSS Chapter 8 Adding Multimedia Content to Web Pages.
GUI development with Matlab: GUI Front Panel Components 1 GUI front panel components In this section, we will look at -GUI front panel components -Programming.
EpH Use EpH to calculate and plot isothermal EpH (Pourbaix) diagrams. Note: EpH accesses compound databases, i.e. treats the aqueous phase.
1 FactSage Browser the navigation tool for Database Documentation.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Lesson 1 Introduction.
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.
Key Applications Module Lesson 21 — Access Essentials
Office Management Tools II Ms Saima Gul. Office Management Tools II Ms Saima Gul.
Support.ebsco.com Introduction to EBSCOhost Tutorial.
Pasewark & Pasewark Microsoft Office 2003: Introductory 1 INTRODUCTORY MICROSOFT ACCESS Lesson 3 – Creating and Modifying Forms.
Course ILT Forms and queries Unit objectives Create forms by using AutoForm and the Form Wizard, and add or modify form headers and footers Open and enter.
Chapter 3 MATLAB Fundamentals Introduction to MATLAB Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Course 6: Analyzing AVO/AVA Analysis. Use gassman’s equations to predict velocity Objective accurately predict changes in amplitude.
Pasewark & Pasewark Microsoft Office 2003: Introductory 1 INTRODUCTORY MICROSOFT ACCESS Lesson 3 – Creating and Modifying Forms.
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.
GUI development with Matlab: GUI Front Panel Components GUI development with Matlab: Other GUI Components 1 Other GUI components In this section, we will.
Equilib Cooling Calculations Table of Contents Section 13.1 Table of Contents Table of ContentsTable of Contents Section 13.2 Phase transitions.
Mixture 1 The Mixture module Use Mixture to edit mixtures and streams for input to Equilib. NOTE that the use of the Mixture module is.
OptiSage The OptiSage module Use the OptiSage module for the assessment of Gibbs energy data. Various types of experimental data can be.
Results Table of contents Table of contents Table of contents Section 1 Table of contentsTable of contents Opening the Results module.
An Overview of the Energy Reduction Calculator.  Calculates reduction in emissions for a facility Emissions computed are Carbon Dioxide, Sulfur Dioxide,
: Information Retrieval อาจารย์ ธีภากรณ์ นฤมาณนลิณี
An Introduction to Programming with C++1 Void Functions Tutorial 5.
Microsoft Visual C# 2010 Fourth Edition Chapter 3 Using GUI Objects and the Visual Studio IDE.
Excel Chapter 1 Creating a Worksheet and an Embedded Chart
Equilib Slide 48 Fixing the activity of a species O 2 (g) in the product equilibrium FeS and O 2 : Results window O 2 i.e. FeS O 2 as reactants.
Introduction to EBSCOhost
The View Figure Module The View Figure and Figure modules are for FactSage like Notepad and Word for Windows. Use the View Figure module for simple graphical.
View Data 1. The View Data program.
Introduction to EBSCOhost
Presentation transcript:

Function-Builder 1.1 Fact-Function- Builder Manipulating the Equilib results

Function-Builder 1.2 The Fact-Function-Builder Table of contents Section 1Introduction Section 2 Example 1 – Sievert's Law Section 3 Step 1: Equilib calculation Section 4Step 2: Fact-Function-Builder Section 5Step 3: f1, f2 and the Results Window Section 6Example 2 – Plotting slag sulfide capacity Section 7 Saving Equilib and Function-Builder files

Function-Builder 1.3 Introduction - Fact-Function-Builder Fact-Function-Builder is an add-in to the Equilib program that employs the function builder algorithm of Fact-XML and enables you to calculate and display user-defined functions after each Equilib calculation. The functions can contain expressions using values employed or calculated by Equilib. These include temperature, pressure, volume and thermochemical variables such as compound, solution and species activities, amounts, fractions, partial or integral properties, etc. The functions can include the common mathematic operators * + - / () ^ abs, ln, log, exp, cos, sin, etc. as well as other functions – see Example 1: Sievert's Law. After an Equilib calculation you can also import the calculated functions into Fact-XML and manipulate the values in other ways such as create graphs – see Example 2: Plotting slag sulfide capacity.

Function-Builder Example 1 - Sievert's Law We will use a simple example to demonstrate the basic principles of the Fact-Function- Builder. Let us examine the dissolution of N 2 (gas) in Fe(liquid) at elevated temperatures: ½ N 2 (g) = N(% in Fe-liq) The Wt.% solubility of nitrogen in the steel may be represented by Sievert's Law: %N = S.p(N 2 ) 1/2 where S, Sievert's parameter, is constant at a given temperature and moderate pressure p(N 2 ). We will use the Fact-Function-Builder to calculate S. Setting up the example involves 3 steps: Step 1: Calculating the equilibrium using Equilib. Step 2: Defining the functions using the Fact-Function-Builder. Step 3: Displaying the calculated functions in the Results Window. 2.1

Function-Builder Step 1: Equilib input 3.1 The reaction is based on (gram) 100 Fe + N + Ar at 1600 o C and 1 atm. Argon stablizes the gas phase so that p(N 2 ) is calculated 4 pages of results will be calculated with = 0.25, 0.5, 0.75 and 1 For simplicity only 2 species are selected in the gas phase : N 2 (g), Ar(g) The liquid steel phase is FeLQ taken from the FTdemo database. This is fine for demonstration purposes but for precise calculations you should use the FSstel database.

Function-Builder Step 1: Equilib output 3.2 Here the results at page 4 ( = 1) show the solubility is wt.% N and p(N 2 ) = 1 atm. S = %N / p(N 2 ) 1/2 = The Results Window contains 4 pages generated at 1600 o C and 1 atm with = 0.25, 0.5, 0.75 and 1. The Fact-Function-Builder will now be employed to automatically calculate the function ƒ1 = S. In addition a second function will be calculated: ƒ2 = ƒ1 – ƒ1(page 1) where ƒ2 is the difference between ƒ1 at the page of interest and ƒ1 at page 1.

Function-Builder Step 2: Open the Fact-Function-Builder You access the Fact-Function-Builder by clicking on ‘Edit/create functions …’ via the Output menu or 4.1 via the Function button

Function-Builder Step 2: Function Builder Dialog Box Variables list display Functions frame Preview results button Preview results display Variables selection panel – the view differs with the variable selected Composition units 4.2 Variable selection button

Defining the variable WtPctN, the Wt.% of N in Fe-liq: 1.Click the Variable selection button and select Amount/Composition. 2.Select the units of Composition – Wt.%. 3.In the Variables panel mouse- right-click on N / Fe-liq and click on ‘Add to variables list’. 4.In the Variables list display mouse-right-click on N/Fe-liq and rename the variable as WtPctN. The name must be alphanumeric – that is, it starts with a letter and contains only letters and numbers. Function-Builder Step 2: Define the variable WtPctN

Function-Builder Step 2: Define the variable pN Defining the variable pN2, the pressure of N 2 (g): 1.Click the Variable selection button and select Activity. 2. In the Variables panel mouse-right-click on N2 / Gas and click on ‘Add to variables list’. 3. In the Variables list display mouse-right-click on Activity (N2-Gas) rename the variable as pN2 (alphanumeric variable). 2

1. Define function: ƒ1 = %N / p(N 2 ) 1/2 - in the Functions ƒ1 input box enter WtPctN / pN2^ Define function: ƒ2 = ƒ1- ƒ1(page 1) - click on Functions ‘+’ button and in the ƒ2 input box enter ƒ1 – ƒ1(page 1). 3. Verify the functions - click on Functions Preview results for calculated values shown in the Preview results display. 4. Save the functions group - click on menu ‘ File > Save current functions group …’ and enter the name Fe-N_Sievert. 5. ‘Close’ – (not shown here) to return to the Results Window. Function-Builder Step 2: Define the functions – ƒ1, ƒ

Open the Fact-Function-Builder Toolbox menu : 1. Click on ‘Select function group(s) > ’ Check √ Fe-N_Sievert 2. Check √ ‘Always calculate function...’ 3. Click on ‘Refresh Results ….’ Function-Builder Step 3: Display ƒ1, ƒ2 for all pages After the results are refreshed the “Functions” page displays ƒ1 and ƒ2 for all the pages. It is seen that ƒ1 is fairly constant and ƒ2 is close to zero for all pages – Sievert's law applies well in this example. (Note the round off error – ƒ2 at Page 1 should be zero and not …E-16.)

Function-Builder Step 3: Display ƒ1, ƒ2 for each page 5.2 The calculated functions are displayed at the top of each page. Here page 2 shows : = 0.5 P(N 2 ) = atm N = Wt.% ƒ1 = ƒ2 = x This slide displays the results in FACT Format

Function-Builder Step 3: Display ƒ1, ƒ2 for each page 5.3 Note: the special function ƒi(page n) - e.g. ƒ1(page 1) - that enables you to refer to the value of a function calculated on another page. ƒi(page n) is ƒi on page n ƒi(page+1) is ƒi on the next page ƒi(page-1) is ƒi on the previous page This slide displays the same results in ChemSage Format.

Function-Builder Example 2 – Plotting slag sulfide capacity This example shows how calculated functions can be plotted by Fact-XML. The sulfide capacity of a slag may defined as: Cs = (wt S) x (Po 2 /Ps 2 ) 1/2 where wt S is the Wt.% solubility of sulfur in the slag, and Po 2 and Ps 2 are the equilibrium partial pressures of O 2 (g) and S 2 (g). In this example wt S is calculated across the SiO 2 – MnO binary system at 1650 o C with the partial pressures fixed at Po 2 = and Ps 2 = bar. The sulfide capacity of a slag Cs is calculated using the Fact-Function-Builder. The results are then imported and plotted by Fact-XML. The example involves 4 steps: Step 1: Calculating the equilibrium using Equilib Step 2: Defining the sulfide capacity using the Fact-Function-Builder Step 3: Displaying the sulfide capacity in the Results Window Step 4: Plotting the sulfide capacity in Fact-XML. 6.1

Function-Builder Step 1: Equilib input 6.2 The reaction is based on SiO2 + MnO + 0 S at 1650 o C and 1 bar. Sulfur is present but the amount is not defined – it will be calculated. 101 pages of results will be calculated with = 0, 0.01, …1. There are 2 species selected in the gas phase : S 2 (g), O 2 (g) and their equilibrium partial pressures are fixed: log(Po 2 ) = -10 log(Ps 2 ) = -6 - how this is done is shown in the slide on the next page. The liquid oxide slag phase is SLAGA taken from the FToxid database.

Function-Builder Step 1: Defining Equilib P(O 2 ) and P(S 2 ) Mouse-right-click on products gas ‘+’ 2.Mouse-right-click on O2(g) and on S2(g) ‘+’ cells 3.Select ‘a Activity > log10(activity) …’ 4.Enter log10(PO 2 ) = -10 ; log10(PS 2 ) =

Function-Builder Step 1: Equilib output 6.4 The Results Window contains 101 pages with = 0, 0.01, 0.02,… 1. This is the Equilib output at page 51 where = 0.5 The equilibrium partial pressures (bar) are : P(S 2 ) = P(O 2 ) = The calculated weight fraction of S dissolved in the slag is x Wt% S =

See Example 1 (slide 4.3) for details on how to make the following entries: 1.Create the Variable List containing the 3 variables: wtS aO2 aS2 2.In the Functions input box enter the expression: ƒ1 = log(wtS * SQRT(aO2/aS2)) 3.Click on Functions Preview results to check the calculated values 4.Save the functions group (click on ‘File > Save …’) as SiO2-MnO_S_capacity Function-Builder Step 2: Defining the slag sulfide capacity

Open the Fact-Function-Builder Toolbox menu : 1. Click ‘Select function group(s) > ‘ Check √ SiO2-MnO_S_capacity 2. Check √ ‘Always calculate function ’ 3. Click on ‘Refresh Results ….’ Function-Builder Step 3: Display sulfide capacity for all pages After the results are refreshed the “Functions” page displays ƒ1 - slag sulfide capacity - for all the pages.. 1 2

Function-Builder Step 3: Display sulfide capacity for each page 6.7 The calculated slag sulfide capacity is displayed at the top of each page. Here page 51 shows : = 0.5 S = Wt.% P(O 2 ) = bar P(S 2 ) = bar ƒ1 (i.e. log(Cs)) = log(wtS * SQRT(aO2/aS2)) =

Function-Builder Step 4: Importing functions into Fact-XML To activate Fact-XML click on the XML menu button. 2.Click on Graph > Setup …. 3.Click on Function Builder. 4.Import function group: SiO2-MnO_S_capacity 5.Select Functions from the Y-Axis menu. 6.Check √ the functions you wish to plot: set MIN, MAX, STEP, etc 7.Select X-Axis Alpha, etc. 8.Click on Draw (not shown here)

Function-Builder Step 4: Plot of slag sulfide capacity at 1650 o C 6.9 (Note: the stability range of the slag has been ignored – other phases may be more stable.)

Function-Builder Step 4: Slag sulfide capacity at o C 6.10 Here Equilib has been used to calculate the slag sulfide capacity at other temperatures. After plotting via Fact-XML the graphs have been superimposed and labels added to the figure. (Note: the stability range of the slag has been ignored – other phases may be more stable.)

Function-Builder Saving Equilib and Function-Builder Files 7.1 To save the Equilib and the Fact- Function-Builder calculations : 1.In the Menu Window click on ‘File > Save As ….’ 2.Enter the name of the Equilib file. 3.Save the Fact-Function-Builder file – click on ‘Yes’ 213

Function-Builder Summary of stored Function-Builder groups 7.2 Open the Fact-Function-Builder Toolbox menu : Click on ‘Summary of function groups …’ Fact-Function- Builder groups Associated Equilib file - see slide 7.1