Applying linear varying temperature with height

I want to apply linear varying temperature with height at boundary. I winder if I can use like this command where stress is linearly varied.

block insitu stress -9.04E6 0 0 gradient-y 0.27 0 0