Calculate and sample pressure gradient term