"If you want an instant reliability enhancement to your gun, our greases provide it in a dozen ways. If you're the kind of person who wants to know why and how, you're really going to enjoy this website."
Acoustic Thermometric Measurements of Propellant Gas Temperatures in Guns.
If you have a technical background, every equation you could ask for in calculating what occurs with gasses in ARs or guns in general can be found in this document - right down to the role of the relaxation rate of different gas molecules and their impact on volume, pressure, and temperature.
Click to open.