Aerothermodynamic analysis of reentry flows with coupled ablation