Numerical analysis of graphite ablation in nitrogen flow