An investigation of heat transfer of a reciprocating piston