In Comsol the modelling of phase change is rather simple, but it should be noticed that the model becomes strongly non-linear, so eventhough modelling is easy, solving the model is something that will result to be a bit more hard.
The easiest way to take into account the latent heat of fusion is by including it in the heat capacity coefficient which will then become very large in near the melt temperature. For that, it is essential to introduce a transition interval (temperature range in which the phase change occurs) which in case of alloys is usually the case, but in case of pure materials is something artificial. Usually, the latent heat is introduced in the CP as a Dirac function and actually Comsol has standard Dirac and Heaviside function definitions, defined as flsmhs, flc1hs and flc2hs (3 Heaviside functions) and adding letter d (of derivative) like fldsmhs turns it into Dirac functions. Comsol has an example model in its documentation showing the continuous casting process in which the solification of the metal is implemented. You can also check some of my publications on modelling of the welding or cladding process in which we use and describe the method in some more detail.
-using element death or birth. Tutorial on that you can find here: http://www.mece.ualberta.ca/tutorials/ansys/AT/BirthDeath/BirthDeath.html
- You can also make loop over time steps and for each time step you can update material properties based on some key calculations you can do with the results of the previous time step.
In Comsol the modelling of phase change is rather simple, but it should be noticed that the model becomes strongly non-linear, so eventhough modelling is easy, solving the model is something that will result to be a bit more hard.
The easiest way to take into account the latent heat of fusion is by including it in the heat capacity coefficient which will then become very large in near the melt temperature. For that, it is essential to introduce a transition interval (temperature range in which the phase change occurs) which in case of alloys is usually the case, but in case of pure materials is something artificial. Usually, the latent heat is introduced in the CP as a Dirac function and actually Comsol has standard Dirac and Heaviside function definitions, defined as flsmhs, flc1hs and flc2hs (3 Heaviside functions) and adding letter d (of derivative) like fldsmhs turns it into Dirac functions. Comsol has an example model in its documentation showing the continuous casting process in which the solification of the metal is implemented. You can also check some of my publications on modelling of the welding or cladding process in which we use and describe the method in some more detail.
I have a model based on finite diference method to predict the heat transfer during solidification of phase change material. you can downlad the software from:
http://uidm.estg.ipvc.pt/htsmb/
You can also use these two papers:
Article Solutions for Heat or Cold Discharge from Encapsulated Phase...