Rob
Ansys Employee

With custom functions you access the solver data so you can code up pretty much anything. In your case you want a function of the volume (or mass) fraction of the species and phase.