I have a problem in deriving/understanding the vertical velocity in sigma-pressure coordinates.
The vertical coordinate is defined as:
$$\sigma(x,y,p)=\frac{p(x,y)-p_t}{p_s(x,y)-p_t}$$
where $p(x,y)$ is the pressure of the considered grid point, $p_t$ is the pressure at the top of the domain (in my case $50$hPa) and $p_s(x,y)$ is the surface pressure.
After some derivation I get for the vertical velocity ($D/Dt$ is the total, $\partial/\partial t$ the partial derivative, $\omega = Dp/Dt$):
$$w = \frac{D \sigma}{Dt} = - \frac{\sigma}{(p_s-p_t)} \left(\frac{\partial p_s}{\partial x} u + \frac{\partial p_s}{\partial y} v \right) + \frac{1}{p_s-p_t} \omega$$
When I now think of an idealized example where I have a gaussian hill in the middle of the domain and wind coming only from the south ($v=10$ms$^{-1}$, $u$, $\omega=0$), the resulting vertical wind component is positive in front of the hill which is wrong since the air should be ascending (positive value of $w$ means descending).
Where is my mistake?