Derived Variables and Partial Derivatives

Many derived variables can be obtained easily by using partial derivatives of state variables, such as heat capacity, thermal expansivity, isothermal compressibility, among others.

Derivatives of state variables can be defined or evaluated by putting a dot (.) between two state variables. The variable after the dot must be a condition that you have set when you defined your system. For example, the heat capacity (at constant pressure or volume) of a system is the partial derivative of the state variable enthalpy with respect to temperature. To evaluate this derivative, use the designation HM.T, where temperature is a state variable that you have set already.

Any partial derivative of a state variable with respect to another can be defined or evaluated as a derived variable by using the dot (.) notation.

Defining New Derived Variables and Functions

You can define additional derived variables or functions based on a state variable by using ENTER_SYMBOL. Any derived variable or function must have a unique name that starts with a letter and has a maximum number of eight characters. These characters can include both uppercase and lowercase letters, numerical digits and the underscore (_). No other characters are allowed.

The difference between new derived variables introduced with the ENTER_SYMBOL command and new functions introduced with the same command is as follows. Whenever Thermo‑Calc calculates the value of a function (as part of an equilibrium calculation for example), all functions related to the defined system is evaluated. An entered derived variable, on the other hand, is only evaluated when it is defined and when it is re-evaluated with EVALUATE_FUNCTIONS.

Derived Variables for Aqueous Solutions

Standard state variables used for other phases can be directly applied to the aqueous solution phase. In addition, there are pre-defined derived variables for the aqueous solution phase in particular.

Examples of predefined derived variables for the aqueous solution phase are listed and briefly described in the following tables. Some derived variables for a gaseous mixture phase are also shown. This is because EOS (Equation of State) expressions, standard thermodynamic properties and transport properties of the pure solvent H2O are also expressions and properties of the pure gaseous species H2O.

Defining New Derived Variables for Aqueous Solutions

You can define many different additional derived variables and functions. For instance, the partition coefficient of a component between two phases is defined as follows:

Pc<name> = X(phase1,component)/X(phase2,component)

Another example is the activity coefficient of a component in the system. It is defined as follows:

Rc<name> = ACR(component)/X(component)

The activity coefficient of a species in a solution phase depends on which model definitions on the reference states that are used and it depends on the standard states for the species. If the standard state of a species is defined to be the same as the pure species in a substitutional phase, then the activity coefficient of the species can be calculated as:

RC<name> = ACR(species,phase)/Y(phase,species)

In some cases, there are more than one sublattice in the phase and the reference states for the phase species cannot be presented by the pure species, as in the case of C in FCC [(Fe)1(C,N,VA)1], where the model may end at fifty percent C and fifty percent Fe. In those cases, the chemical potential and activity of all phase constituents is not well defined and you cannot properly define the activity coefficients of the species in the phase.

For an aqueous solution phase, no matter what model is used, the reference state and standard state for both the solvent and solutes are defined in a special way in the Thermo‑Calc software. The reference state for the solvent is set as pure water, the same as its standard state (according to Raoults's Law). The standard state for a solute species is set the hypothetical solute species, whilst its reference state is defined as the hypothetical state at unit molality (one mole dissolved into 1.0 kg of solvent) but in which the environment of each molecular is the same as at infinite dilution (according to Henry's Law). Under these definitions, the activity coefficients for solvent species can be calculated as follows:

RC<H2O> = ACR(H2O,aqueous)/ Y(aqueous,H2O)

The coefficients for the solute species can be calculated as follows:

RC<spec> = AI(species,aqueous)/ML(aqueous,species)
= ACR(species,aqueous)/ Y(aqueous,species)*Y(aqueous,H2O)

AI is here the activity of solute species calculated from the model, and ML is the molality of the species.

Thermodynamic Variables and Wildcard Characters

The ACR (species,phase) and the MUR (species,phase) quantities can only be appropriately and meaningfully applied to substitutional solution phases (such as GAS, AQUEOUS, LIQUID) and to solution phases without an interstitial sublattice set. This means that the wild card characters * and $ normally don’t work properly for the activity and/or chemical potential properties.

For example, do not use ACR(*,*) or MUR(*,*) for all the species relative to all phases, nor ACR(*,phase) or MUR(*,phase) for all the species relative to a specific phase, nor ACR(species,*) or MUR(species,*) for a specific species relative to all phases.

Instead, use specific names for species and (applicable) phase, as in the following examples:

SHOW_VALUE acr(fe+2,aqueous)Lists activity of the Fe+2 species referred to AQUEOUS solution phase

SHOW_VALUE mur(c2,gas)Lists chemical potential of the C2 species referred to GAS mixture phase

SET_AXIS_VAR y ac(o2,gas)Sets activity of the O2 species referred to GAS mixture phase as Y-axis