Heat transfer and gas laws