Rob
Ansys Employee

With difficulty, gravity can't be a function of a field variable so it's nominally "constant". As SRP puts, you can use a source term to add momentum to mimic variable gravity. 

If you're using DPM have a look at the DPM Force UDF macros.