Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
tutorials:t2 [2019/07/18 15:44] – [Using the 'Options' window to modify the display] pwarczoktutorials:t2 [2023/07/28 18:11] – [Using the 'Options' window to modify the display] pwarczok
Line 2: Line 2:
  
 //This tutorial was tested on \\ //This tutorial was tested on \\
-MatCalc version 6.01 rel 1.003 \\+MatCalc version 6.03 rel 1.000 \\
 license: free \\ license: free \\
 database: mc_fe.tdb // database: mc_fe.tdb //
Line 10: Line 10:
 Click {{:tutorials:t2:script:t2_6021003.mcs|here}} to view the script for this tutorial. Click {{:tutorials:t2:script:t2_6021003.mcs|here}} to view the script for this tutorial.
    
-This tutorial explains how to determine the equilibrium phases at a given temperature, and their phase fractions and compositions.+This tutorial explains how to determine the equilibrium phases at a given temperature, their phase fractions and compositions.
  
 ==== Contents ==== ==== Contents ====
Line 27: Line 27:
  
 ===== Setting up the system ===== ===== Setting up the system =====
 +
 +The system setup is the very first operation that needs to be performned by MatCalc user.
  
 ==== Opening a thermodynamic database and selecting elements and phases ==== ==== Opening a thermodynamic database and selecting elements and phases ====
Line 32: Line 34:
 In the **'Global'** menu, select **'Databases'**. In the **'Global'** menu, select **'Databases'**.
  
-{{:tutorials:t2:img:t2_global_database_6021003.png|Open databases window}}+{{:tutorials:t2:img:t2_global_database_6041000.png|Open databases window}}
  
 A window will appear as shown below. A window will appear as shown below.
Line 49: Line 51:
 In the **'Global'** menu, select **'Composition'**. In the **'Global'** menu, select **'Composition'**.
  
-{{:tutorials:t2:img:t2_global_composition_6021003.png| Open composition window}}+{{:tutorials:t2:img:t2_global_composition_6041000.png| Open composition window}}
  
 This opens the **'Nominal composition'** box. The lower part of the box gives options for the units in which the composition is to be displayed: mole fraction, weight fraction, u-fraction or weight percent. One of the elements, usually the one with the highest mole fraction, is designated as the **'reference element'**, and the amount of this element is calculated as **1-(sum of the amounts of all other elements)** for compositions expressed in fractional form, or **100-(sum of the amounts of all other elements)** for compositions expressed as percentages. \\ This opens the **'Nominal composition'** box. The lower part of the box gives options for the units in which the composition is to be displayed: mole fraction, weight fraction, u-fraction or weight percent. One of the elements, usually the one with the highest mole fraction, is designated as the **'reference element'**, and the amount of this element is calculated as **1-(sum of the amounts of all other elements)** for compositions expressed in fractional form, or **100-(sum of the amounts of all other elements)** for compositions expressed as percentages. \\
 Iron is set as the reference element by default in the 'mc_fe.tdb' database, as can be seen from the **'Ref. Elem'** column in the composition dialogue box. Another element can be set as the reference by selecting the element name and clicking on the **'Set reference element'** button on the right, or by double-clicking in the **'Ref. Elem'** column by the side of the element name. \\ Iron is set as the reference element by default in the 'mc_fe.tdb' database, as can be seen from the **'Ref. Elem'** column in the composition dialogue box. Another element can be set as the reference by selecting the element name and clicking on the **'Set reference element'** button on the right, or by double-clicking in the **'Ref. Elem'** column by the side of the element name. \\
-To enter a composition of **0.4 wt.% C**, select **'weight percent'** as the unit, then highlight element C. Double-click in the **'Amount'** column or click on the **'Change'** button to modify the composition, then type in **'0.4'** and press **'Enter'**. \\+To enter a composition of **0.4 wt.% C**, put a checkmark in **'in percent'** box and select **'weight percent'** as the unit, then highlight element **'C'**. Double-click in the **'Amount'** column or click on the **'Change'** button to modify the composition, then type in **'0.4'** and press **'Enter'**. \\
 The system is now ready to perform an equilibrium calculation. The system is now ready to perform an equilibrium calculation.
  
-{{:tutorials:t2:img:t2_system_composition_6021003.png| System composition setup}}+{{:tutorials:t2:img:t2_system_composition_6041000.png| System composition setup}}
  
 Click on **'OK'** to close this window Click on **'OK'** to close this window
Line 63: Line 65:
 From the **'Calc'** menu, select **'Set start values'**. This initializes the calculation variables with reasonable values in order to help the Gibbs free energy minimizer to find a solution which satisfies all the boundary conditions. This command is useful if the solution algorithm seems to be 'stuck' and unable to find an equilibrium. From the **'Calc'** menu, select **'Set start values'**. This initializes the calculation variables with reasonable values in order to help the Gibbs free energy minimizer to find a solution which satisfies all the boundary conditions. This command is useful if the solution algorithm seems to be 'stuck' and unable to find an equilibrium.
  
-{{:tutorials:t2:img:t2_set_start_values_6021003.png|Set start values}}+{{:tutorials:t2:img:t2_set_start_values_6041000.png|Set start values}}
    
 Once one valid equilibrium has been found, solutions at other temperatures or boundary conditions are much easier to obtain. From the **'Calc'** menu, select **'Equilibrium'**, or click on the {{:tutorials:t2:img:icon_equilibrium.png| MatCalc icon equilibrium}} icon in the toolbar. Once one valid equilibrium has been found, solutions at other temperatures or boundary conditions are much easier to obtain. From the **'Calc'** menu, select **'Equilibrium'**, or click on the {{:tutorials:t2:img:icon_equilibrium.png| MatCalc icon equilibrium}} icon in the toolbar.
  
-{{:tutorials:t2:img:t2_equilibrium_6021003.png|Equilibrium settings}}+{{:tutorials:t2:img:t2_equilibrium_6041000.png|Equilibrium settings}}
  
 The following window appears: The following window appears:
Line 95: Line 97:
 The **'Options'** window provides display options for the currently highlighted window. In the case of the **'Phase details'** window, the composition can be displayed as a mole fraction, a weight fraction or a u-fraction, and can also be expressed as a percentage if required. The **'Options'** window provides display options for the currently highlighted window. In the case of the **'Phase details'** window, the composition can be displayed as a mole fraction, a weight fraction or a u-fraction, and can also be expressed as a percentage if required.
  
-{{:tutorials:t2:img:t2_options_window_6001000.png| MatCalc options window}}+{{:tutorials:t2:img:t2_options_window_6041000.png| MatCalc options window}}
  
 ==== Phase status: suspended and fixed phase fraction ==== ==== Phase status: suspended and fixed phase fraction ====
Line 102: Line 104:
 Since this is the case, it is useful to calculate a metastable equilibrium, for which graphite formation is not allowed. Click on **'Global > Phase status'** Since this is the case, it is useful to calculate a metastable equilibrium, for which graphite formation is not allowed. Click on **'Global > Phase status'**
  
-{{:tutorials:t2:img:t2_global_phase_status_6021003.png| MatCalc phase status}}+{{:tutorials:t2:img:t2_global_phase_status_6021003.png|Open phase status window}}
  
 Highlight **'GRAPHITE'** phase. In the **'General'** tab, the uppermost section is labelled **'Flags...'**. Click to place a tick in the box next to **'suspended'** and click **'OK'**. Highlight **'GRAPHITE'** phase. In the **'General'** tab, the uppermost section is labelled **'Flags...'**. Click to place a tick in the box next to **'suspended'** and click **'OK'**.
  
-{{:tutorials:t2:img:t2_phase_status_6021003.png?650| MatCalc phase status}}+{{:tutorials:t2:img:t2_phase_status_6021003.png?650|Suspend graphite}}
  
 Repeat the equilibrium calculation and note the difference in results in the **'Phase summary'** window: Repeat the equilibrium calculation and note the difference in results in the **'Phase summary'** window:
Line 139: Line 141:
 In order to eliminate graphite completely from the system, open the **'Phase status'** window, select the **'GRAPHITE'** phase and click on **'Remove'** button.   In order to eliminate graphite completely from the system, open the **'Phase status'** window, select the **'GRAPHITE'** phase and click on **'Remove'** button.  
  
-{{:tutorials:t2:img:t2_graphite_remove_6021003.png?650| MatCalc phase status}}+{{:tutorials:t2:img:t2_graphite_remove_6021003.png?650|Remove graphite}}
  
-{{:tutorials:t2:img:t2_graphite_remove_confirm_6021003.png| MatCalc phase status}}+{{:tutorials:t2:img:t2_graphite_remove_confirm_6021003.png|Confirm Graphite removal}}
  
 A new window will appear in which MatCalc will ask you to confirm this wish - click on **'Yes'**. Repeat the equilibrium calculation at 700°C to obtain an equilibrium without graphite. The driving forces obtained should be identical to those found in the previous calculation in which graphite was suspended: A new window will appear in which MatCalc will ask you to confirm this wish - click on **'Yes'**. Repeat the equilibrium calculation at 700°C to obtain an equilibrium without graphite. The driving forces obtained should be identical to those found in the previous calculation in which graphite was suspended:
Line 155: Line 157:
 Adding any other phase to the system requires re-opening the thermodynamic database and selecting the new phase next to the already highlighted ones. Re-open **'Global > Databases'** and click on **GRAPHITE** to select it, then click on **'Read & Close'**. Adding any other phase to the system requires re-opening the thermodynamic database and selecting the new phase next to the already highlighted ones. Re-open **'Global > Databases'** and click on **GRAPHITE** to select it, then click on **'Read & Close'**.
  
-{{:tutorials:t2:img:t2_graphite_reload_6021003.png?650| MatCalc phase status}}+{{:tutorials:t2:img:t2_graphite_reload_6021003.png?650|Graphite Phase selected}}
  
  A warning will appear, stating that all existing data will be deleted. Accept this by clicking on **'Yes'**.  A warning will appear, stating that all existing data will be deleted. Accept this by clicking on **'Yes'**.
  
-{{:tutorials:t2:img:t2_graphite_reload_confirm_6021003.png| MatCalc phase status}}+{{:tutorials:t2:img:t2_graphite_reload_confirm_6021003.png| Confirm rereading the database}}
  
  A new message, with updated information on the thermodynamic data, appears in the **'Output'** window. Reading in new data from the database erases any previous equilibrium calculation results, so perform the equilibrium calculation at 700°C once again to obtain an equilibrium with graphite (if you get an error message, click on **'Set start values'** in **'Calc'** menu). This time, the driving forces obtained should be identical to those found in the previous calculation in which graphite was present in the system:  A new message, with updated information on the thermodynamic data, appears in the **'Output'** window. Reading in new data from the database erases any previous equilibrium calculation results, so perform the equilibrium calculation at 700°C once again to obtain an equilibrium with graphite (if you get an error message, click on **'Set start values'** in **'Calc'** menu). This time, the driving forces obtained should be identical to those found in the previous calculation in which graphite was present in the system:
Line 177: Line 179:
 By default, the results from a previous equilibrium calculation are overwritten when a new calculation is carried out. However, it is sometimes useful to store the results from a calculation for future use. The **'Calculation states'** feature is provided for this purpose; it can be found in the **'Global'** menu under **'CalcStates'**. In the sub-menu, click on **'Create'** and type the name in the box: By default, the results from a previous equilibrium calculation are overwritten when a new calculation is carried out. However, it is sometimes useful to store the results from a calculation for future use. The **'Calculation states'** feature is provided for this purpose; it can be found in the **'Global'** menu under **'CalcStates'**. In the sub-menu, click on **'Create'** and type the name in the box:
  
-{{:tutorials:t2:img:t2_create_calc_state_6021003.png| MatCalc new calculation states}}+{{:tutorials:t2:img:t2_create_calc_state_6021003.png|Create calculation state}}
  
-{{:tutorials:t2:img:t2_calc_state_name_6021003.png| MatCalc new calculation states}}+{{:tutorials:t2:img:t2_calc_state_name_6021003.png|Calcuation state name}}
  
 The calculation state stores all information on an equilibrium including the complete phase status, composition and any compositional states which may apply. Calculate another equilibrium at 600°C and store it by creating another calculation state. These states are now both available in the calculation state drop-box on the toolbar: The calculation state stores all information on an equilibrium including the complete phase status, composition and any compositional states which may apply. Calculate another equilibrium at 600°C and store it by creating another calculation state. These states are now both available in the calculation state drop-box on the toolbar:
  
-{{:tutorials:t2:img:t2_load_calc_state_6021003.png?650| MatCalc dropbox}} +{{:tutorials:t2:img:t2_load_calc_state_6021003.png?650|Calculation states list}} 
  
 Select a calculation state from this box and load the stored equilibrium with the {{:tutorials:t2:img:load.png?30| MatCalc load}} button. This can also be done using **'Global > CalcStates > Select'** and then **'Load'**. Note how the contents of the **'Phase details'** and **'Phase summary'** windows are immediately updated with the results stored in the calculation state, and the temperature at which the equilibrium was calculated is shown in the status bar towards the bottom right of the screen. The results of the current equilibrium calculation can be saved into an existing calculation state by selecting the name of the state in the drop-box and then clicking on the {{:tutorials:t2:img:icon_save.png?30| MatCalc save}} button or using **'Global > CalcStates > Select'** and then **'Save'**. **NB: Calculation states, like all other calculation results, are erased when data is re-read from the database!** Select a calculation state from this box and load the stored equilibrium with the {{:tutorials:t2:img:load.png?30| MatCalc load}} button. This can also be done using **'Global > CalcStates > Select'** and then **'Load'**. Note how the contents of the **'Phase details'** and **'Phase summary'** windows are immediately updated with the results stored in the calculation state, and the temperature at which the equilibrium was calculated is shown in the status bar towards the bottom right of the screen. The results of the current equilibrium calculation can be saved into an existing calculation state by selecting the name of the state in the drop-box and then clicking on the {{:tutorials:t2:img:icon_save.png?30| MatCalc save}} button or using **'Global > CalcStates > Select'** and then **'Save'**. **NB: Calculation states, like all other calculation results, are erased when data is re-read from the database!**
tutorials/t2.txt · Last modified: 2023/08/01 14:43 by pwarczok
 
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki