Finite element simulation of pulsed laser ablation of titanium carbide