Thermodynamic modeling for the alloy design of high speed steels and high chromium cast irons