Erosion of carbon based materials plays a very crucial role in determining its candidature as a potential plasma facing material in fusion devices. Carbon erosion yield shows strong dependence on energy, flux of the incoming ions and the target temperature. Various experiments and theoretical models have made successful attempts to understand some aspects of the erosion mechanism of carbon bombarded by hydrogen ions. They are valid for a particular parameter range. None of the models alone can explain the temperature, energy and flux dependence of erosion simultaneously. In the present work different aspects of erosion mechanism are parameterized. A new model which takes into account the basic merits of different theoretical models and the various parameterized quantities is embedded in the SDTrimSP [1,2] program. This upgraded SDTrimSP enables us to calculate the physical and chemical sputtering in a single model for various parameter ranges. The results obtained by the upgraded SDTrimSP are in good agreement with experimental data.