Method for calculation of cylinder liner temperatures in diesel engines