IdealSolutionVolumetricDrivingForce

Source: models/kwn/IdealSolutionVolumetricDrivingForce.py

Ideal-solution volumetric Gibbs free energy of precipitation.

Computes the molar Gibbs free energy of precipitation under the ideal-solution approximation,

\[ \Delta g = R T \sum_k w_k \ln(c_k / c_k^{\mathrm{eq}}), \]

where the sum runs over the species participating in the precipitate and \(w_k\) are user-supplied stoichiometric weights (default 1, matching the Hu–Cocks “product of all components” convention for compound precipitates).

Inputs

temperatureinput · Scalar · required

Temperature

current_concentrationsinput · Scalar · required

Current matrix concentrations for each species participating in the precipitate

Outputs

driving_forceoutput · Scalar · required

Molar Gibbs free energy of precipitation

Parameters

gas_constantparameter · Scalar · required

Universal gas constant

equilibrium_concentrationsparameter · Scalar · required

Equilibrium matrix concentrations for each species. May be supplied as constants or as outputs of upstream models (e.g. temperature-dependent interpolations).

weightsparameter · Scalar · default 1

Stoichiometric weights for each species. If a single entry is supplied, the same weight is used for every species. Default is unit weights for every species, matching the Hu–Cocks compound-precipitate convention.