A fully coupled finite element formulation for liquid–solid–gas thermo-fluid flow with melting and solidification