Hello,
Can you please recommend me some method (preferably unconditionally stable) of solving an advection equation of the following type:
\displaystyle \frac{\partial u}{\partial t} + a(x,t) \frac{\partial u}{\partial x} = f(u,x,t)
In my case the a(x,t) coefficient changes it sign in time t, so I can not apply the upwind (downwind) scheme. Right now I use the method of lines to convert this equation into a system of ODEs and solve it with standard RK-like method. But again, due to the time-dependent a(x,t) the Courant number C=|a(x,t)|\Delta t/\Delta x is also time-dependent and does not allow to implement an adaptive time step. Are there any methods which allow to overcome these issues? And in general, what are the current standard methods for solving advection equations numerically?
Hi,
(since not specified, I assume you are using FD with Cartesian domain) if you want to stick to upwind type-of scheme, you could check the sign (thus direction) of your advection velocity a(x,t)
and “stagger” the advection terms upwind or downwind accordingly (see here for a 2D case applied to thermal convection). Same should work with RK-like methods. Alternatively, you could go with method of characteristics (see e.g. here) or semi-Langrangian advection schemes.
What are your boundary conditions? If they are periodic you could easily discretize the spatial dimension in Fourier space. Notably, that would diagonalize the derivative w.r.t. x.
Thank you for the links.
Yes, I use standard Cartesian grid.
What about the stability of the method of characteristics and semi-Lagrangian scheme?
In any case, do you maybe know some review that compares different methods for the advection equation. I am a bit confused about the reasons for choosing one method over the other.
Oh, thank you for the idea. Yes, my boundary conditions are indeed periodic.
What about the stability of the method of characteristics and semi-Lagrangian scheme?
Semi-Lagrangian schemes may introduce quite some numerical diffusion. For unconditionally stable schemes avoiding numerical diffusion, marker methods (PIC/FLIP) may be among the best options.
[…] compares different methods for the advection […]
Chapter 8 of that book, e.g., provides some basics, refs and comparisons on upwind and marker-based methods.
There is a reasonably(?) elementary introduction to time stepping for advection problems in this chapter of a forthcoming textbook.
1 Like
Thank you. Looks interesting.