X-ray heating rate depends on density.

Based on simple critical density consideration.
Parameters taken from Glassgold 2012 and Tielens 1985.