functional gas engine model