m_melting.py
- class m_melting.Melting(MeshClass, ElemClass, TracersClass)
Bases:
objectClass that contains functions related to the phase transition inside the domain.
- add_melt_tracers()
If the temperature in the domain is within a given range below the melting temperature \((T > T_{\rm melt} - dT_{\rm melt\_thresh}\), see
T_meltanddT_melt_threshinm_parameters.py), the number of tracers is checked. If the number of tracers is lower than 10, the tracers are added.- Variables:
T_melt – the melting temperature
dT_melt_thresh – a threshold for adding or removing tracers when melting
Note
If melting is the only mechanism requiring tracers, the tracers will be used only in the part of the domain where \(T > T_{\rm melt} - dT_{\rm melt\_thresh}\), which saves computation time.
- compute_melting()
Computes the amount of partial melt on the tracer.
- Variables:
T_melt – melting temperature
Lt – latent heat
cp() – specific heat defined by
m_material_parameters.cp()
- delete_melt_tracers()
If the temperature in the domain drops enough below the melting temperature \((T < T_{\rm melt} - dT_{\rm melt\_thresh}\), see
T_meltanddT_melt_threshinm_parameters.py), the tracers are removed.- Variables:
T_melt – melting temperature
dT_melt_thresh – threshold for adding or removing tracers when melting