Example 1.33: Quickly calculate the liquidus and solidus temperatures of an alloy

Purpose: Quickly find the liquidus or the solidus temperature for an alloy
Module: PanPhaseDiagram
Database: Al_Demo.rtdb
Batch files: Example_#1.33a.pbfx (Liquidus), Example_# 1.33b.pbfx (Solidus)

Here we use Example_# 1.33a.pbfx (Liquidus) to explain the meaning and syntax in the batch file:

<pbfx version="1.0"  encoding="utf-8">
    <calculation name="Example_#1.33a" type="point">
        <databases>
            <database type="rtdb" file_name="Al_Demo.rtdb"/>
        </databases>
        <units>
            <unit name="P" value="bar"/>
            <unit name="T" value="K"/>
            <unit name="n" value="x"/>
        </units>
        <system name="Default_System">
            <components>
                <component name="Al" status="Selected"/>
                <component name="Mg" status="Selected"/>
                <component name="Zn" status="Selected"/>
            </components>
            <phases>
                <phase name="*" status="Entered" />
            </phases>

            <points>
                <point>
                    <statespace>
                        <T value="1000"/>
                        <P value="1"/>
                        <n component="Al" value="0.6" />
                        <n component="Mg" value="0.2"/>
                        <n component="Zn" value=""/>
                    </statespace>
                </point>
            </points>


            <condition>
                <equilibrium_type type="Liquidus"/>
            </condition>


        </system>
        <output unit="">
            <tables>
                <table name="Default" source="Default" type="Default">
                    <column name="T"/>
                    <column name="x(*)"/>
                    <column name="phase_name"/>
                    <column name="f(@*)"/>
                    <column name="G"/>
                    <column name="w(*)"/>
                    <column name="Label"/>
                </table>
            </tables>
            <graphs>
                <graph name="Default" type="triangle">
                </graph>
            </graphs>
        </output>
    </calculation>
</pbfx>


The top section of this batch file is similar to the other batch files, defining the system, selected components, unit, compositions, and related settings. In the Condition section, the parameter “Equilibrium_type” is set to “Liquidus”. Using this batch file, the liquidus temperature for a given alloy composition can be calculated directly.

Similarly, Example_# 1.33b.pbfx can be used to calculate the solidus temperature by setting “Equilibrium_type” to “Solidus” in the Condition section.