Numerical study of deflagration-to-detonation transition for petn using a model with a well-defined front