Monte Carlo simulation of a hard-sphere gas in the planar Fourier flow with a gravity field