Refactored phase change equation and parameter