Numerical schemes play an important role on the calculation of aerodynamic heating in hypersonic flows. An appropriate scheme can effectively distinguish shock, and reduce numerical dissipation to improve numerical resolution near the wall. In this paper the second order TVD (total variation diminishing) scheme was improved to automatically adjust the numerical viscosity, which can appease the above requirements. In this paper two numerical experiments indicated that the numerical method was effective.