Development of a prototype thermodynamic database for Nd-Fe-B permanent magnets