Thermodynamic and volumetric databases and software for magnesium alloys