Diesel cycle simulator using Python