Skip to content

Latent heat

Methods

Latent heat (of crystallisation) can be implemented as a source term (usually numerically not very stable):

GeoParams.MaterialParameters.LatentHeat.ConstantLatentHeat Type
julia
ConstantLatentHeat(Q_L=400kJ/kg)

Set a constant latent heat:

QL=cst

where QL is the latent heat [J/kg].

source

Alternatively, you can implement it by modifying the heat capacity, which is often numerically better.

GeoParams.MaterialParameters.HeatCapacity.Latent_HeatCapacity Type
julia
Latent_HeatCapacity(Cp=ConstantHeatCapacity(), Q_L=400kJ/kg)

This takes the effects of latent heat into account by modifying the heat capacity in the temperature equation:

ρCpnewTt=xi(kTxi)+Hs

with

Cpnew=Cp+ϕTQL

where QL is the latent heat [J/kg], and ϕT is the derivative of the melt fraction with respect to temperature

source