Rob
Ansys Employee

I can only refer you to the UDF manual, there are phase change examples so start with that as a basis for your model.