Context: Consider the advection-diffusion equation with periodic boundary conditions (PBC) over a flat square domain $L \times L$. The scalar density $\rho $ is transported by a prescribed field $\mathbf{v}=-\nabla U$, where $U(\mathbf{x})$ is a scalar potential that has the periodicity imposed by the PBC. The density $\rho$ evolves as
$$ \partial_t \rho(\mathbf{x},t) = -\nabla \cdot [ \mathbf{v}(\mathbf{x}) \rho(\mathbf{x},t) - \nabla \rho(\mathbf{x},t) ] = 0 $$
The steady-state solution is found by imposing $\partial_t \rho(\mathbf{x},t) =0$ and has the usual Gibbs form:
$$ \rho(\mathbf{x}) \, \propto \, e^{-U(\mathbf{x}) } $$
The problem: I am wondering how to find the steady-state in a slightly more general case, where
$$\mathbf{v} = -\nabla U + \mathbf{q}$$
The potential $U$ has the periodicity imposed by the PBC and $\mathbf{q} =(q_x,q_y)$ is a constant vector field (the constant \mathbf{q} defines the so-called "tilt" of the potential $U$). Hence, the equation we have to solve is
$$ \nabla \cdot [ \, \rho(x,y) \, \mathbf{q} - \rho(x,y) \nabla U(x,y) - \nabla \rho(x,y) \, ] = 0 $$
with the periodic conditions $\rho(0,y) = \rho(L,y)$, $\rho(x,0) = \rho(x,L)$, $U(0,y) = U(L,y)$, $U(x,0) = U(x,L)$. For simplicity, I tried to consider the case $\mathbf{q}=(q,0)$, but the problem still seems non-trivial.
Question: Any idea or reference about the diffusion-advection equation in periodic boundary conditions (in particular about the steady-state)? Which is the "Gibbs-like solution" in this case?
Further considerations: I have the feeling that finding a solution is not easy because the "tilt" potential that generates the constant field $\mathbf{q}$ is $-\mathbf{x}\cdot \mathbf{q}$. This "tilt" contribution males the total potential $U-\mathbf{x}\cdot \mathbf{q}$ not periodic (i.e. it does not satisfy the PBC).
Moreover, define the total current in the steady-state as
$$ \mathbf{J}(x,y) = \rho(x,y) \, [\mathbf{q} - \nabla U(x,y)] - \nabla \rho(x,y) \, , $$
so that we have to find the $\mathbf{J}$ such that
$$ \nabla \cdot \mathbf{J} = 0 \quad \Rightarrow \quad \mathbf{J} = R \nabla g $$
where $R$ is a 90-degrees rotation and $g$ is an unknown scalar potential. Note that $g$ does not have to respect the PBC, but $\mathbf{J}$ does: (probably) the most general form of $g$ is
$$ g(x,y) = G(x,y) + a x + b y $$
where $G$ respects the PBC and $a$ and $b$ are constants. Even though this problem is more likely to be studied by physicists, I have the feeling that the problem is intimately related to the topology of the 2D torus, so I posted also a similar question on math SE.