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:
where
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:
with
where