You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#360 implemented the ability of U(y) in SingleLayerQG module.
If imposed zonal flow is constant ($U_0$) then term $- i k_x U_0$ is included in the L operator & the $U_0 \partial_x \eta$ term in N.
If imposed zonal flow varies with y ($U(y)$) then all extra advection terms are added in N.
A potential improvement is that we should take any prescribed imposed zonal flow $U(y)$ and decompose it into its y-mean and deviation from that, e.g.,
$$ U(y) = U_0 + u(y)$$
with $\int u(y) \mathrm{d} y = 0 $. Then we add the $U_0$ via L (as 1 above) and the rest via N (as 2 above).
I did consider it as an option as you can just define $U_0$ as the zero Fourier mode of $U$. I started implementing it but in the end used the current approach as it was simpler to write down the Nonlinear term this way.
If we're going to do this, it might be worth implementing @glwagner's suggestion of including support for U as a function of $y$ and $t$ at the same time.
#360 implemented the ability of
U(y)
in SingleLayerQG module.A potential improvement is that we should take any prescribed imposed zonal flow$U(y)$ and decompose it into its y-mean and deviation from that, e.g.,
with$\int u(y) \mathrm{d} y = 0 $ . Then we add the $U_0$ via L (as 1 above) and the rest via N (as 2 above).
cc @mncrowe
The text was updated successfully, but these errors were encountered: