Mesoscale nonhydrostatic and hydrostatic pressure gradient forces-theory