Energy and wear analysis in lubricated sliding contact