Flow and heat transfer in piston/cylinder assemblies