I tried this function with equations, and it works for me, I tried aply pressure on horizontal pipe and It works, so maybe I can help you.
In the equation line put the equation for example 2*(!x-1000)
remember the symbol "!" before the coordinates. This X,y or z is used as the coordinate system...