Was driving and heard a knocking sound similar to taps coming from the engine. Pulled over turned car off and turned it back on and knocking sound stopped. Drive about another mile and black smoke came out the vents. Pulled over and got out of vehicle. By the time I was out of the vehicle the car was on fire. By the time the fire department arrived car was completely engulfed. No check engine light was on and car gave no previous warning as to what could have happened.