Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision |
tutorials:t6 [2023/08/01 16:18] – [User-defined variables] pwarczok | tutorials:t6 [2023/08/01 16:21] – [Creating a new function] pwarczok |
---|
Click on the lower plot, and in the **'Options'** window, edit the **'y-data'** line for the first series (**'series #0'**) of this plot. This should currently read **'X$LIQUID$C'**. Append **'*F$LIQUID'** to this - this can be done by pasting the previously copied **'F$LIQUID'** text.\\ | Click on the lower plot, and in the **'Options'** window, edit the **'y-data'** line for the first series (**'series #0'**) of this plot. This should currently read **'X$LIQUID$C'**. Append **'*F$LIQUID'** to this - this can be done by pasting the previously copied **'F$LIQUID'** text.\\ |
| |
{{:tutorials:t6:img:t6_plot_options_2014.png| MatCalc plot}} | {{:tutorials:t6:img:t6_plot_options_6050006.png| MatCalc plot}} |
| |
Repeat this process for the other series to give **'X$BCC_A2$C*F$BCC_A2'**, **'X$FCC_A1$C*F$FCC_A1'** and **'X$CEMENTITE$C*F$CEMENTITE'**. Add another variable to the plot: **'XS$C'** (can be found in the **'composition'** section), the mole fraction of carbon in the system. This should be equal to the sum of the other four variables on the plot.\\ | Repeat this process for the other series to give **'X$BCC_A2$C*F$BCC_A2'**, **'X$FCC_A1$C*F$FCC_A1'** and **'X$CEMENTITE$C*F$CEMENTITE'**. Add another variable to the plot: **'XS$C'** (can be found in the **'composition'** section), the mole fraction of carbon in the system. This should be equal to the sum of the other four variables on the plot.\\ |
Close the **'Functions & Variables'** box to return to the main screen. Expand **'functions'** in the **'Variables'** window by clicking on the small plus-sign to the left of the word. This should give a list of the new functions: | Close the **'Functions & Variables'** box to return to the main screen. Expand **'functions'** in the **'Variables'** window by clicking on the small plus-sign to the left of the word. This should give a list of the new functions: |
| |
{{:tutorials:t6:img:t6_var_func_2014.png| MatCalc variables window}} | {{:tutorials:t6:img:t6_var_func_6050006.png| MatCalc variables window}} |
| |
Make a new plot and drag and drop the functions just defined into it (To select multiple entries, hold **'Ctrl'**-key while clicking on them), together with the **'XS$C'** variable, to check that this gives the same appearance as the plot above. | Make a new plot and drag and drop the functions just defined into it (To select multiple entries, hold **'Ctrl'**-key while clicking on them), together with the **'XS$C'** variable, to check that this gives the same appearance as the plot above. |