Two−phase equation of state and free−energy model for dynamic phase change in materials