In theory, gasoline and diesel fuel systems are remarkably similar. They are both internal combustion engines and they both convert chemical reactions into mechanical energy. Both systems use a series of pistons to compress fuel and air before igniting it. The difference between the two systems is how energy is created within them.
http://www.yey-business.com/di....esel-engine/diesel-e