I need some guidance on solving this equation computationally for $\theta$
$$u \theta_x+v \theta_y-\nabla^2\theta=u$$
where $u$ and $v$ are known velocity functions (in $x$ and $y$ respectively) for a incompressible fluid in my domain (no slip and not penetrating into the boundary) and $f_x$ and $f_y$ are derivatives in $x$ and $y$ respectively.
My domain is a perturbed channel with periodic conditions at $x=0$ and $x=1$ and a no flux condition at the flat wall at $y=0$ but a curved wall at $y=h(x)$ s.t. $h(x)=1-a \cos(2\pi x)$ ($a$ is small let's say around 0.1).
Transforming the domain via $Y=y/H(x)$ gives me a rectangular domain, but produces 10-15 terms (which is fine but now the spacing in not uniform in the original coordinates) but at least the no flux condition is "nice" looking on the boundary.
Leaving it the same and then approximating the domain also works, but the boundary condition is a little uglier.
In either case, I am not sure what type of error this accumulates and what method to use to solve. Should I use a finite difference method in matlab? What would you recommend?
Here is a photo of the velocity field shifted for reference:

So here is my best attempt at a solution using Freefem, it still needs work (the mean function isn't working) and needs to be validated, but I think it can be helpful. As soon as I validate it and/or fix it, I will edit this response and remove this comment. If you know what is wrong with it, please comment: