Thermodynamics involved in a pressure cooker