I'm trying to simulate the solidification and melting process of a PCM in ANSYS Fluent, using solidification and melting module. To do so, since properties for solid and liquid phases are different, I'm trying to apply these difference for these two phases separately. I've already tried using piecewise function for tempratures over and below phase change temprature. But it causes divergence in my simulation.