In this paper, a new type of inverse Lax-Wendroff boundary treatment is designed for high order finite difference schemes for solving general convection-diffusion equations on time-varying domain. This new method can achieve high order accuracy on Dirichlet boundary conditions with moving boundary. To ensure stability of the boundary treatment, we give a convex combination of the boundary treatments for the diffusion-dominated and the convection-dominated cases. A group convex combination of weights is carefully designed to avoid zero denominator, resulting in a unified algorithm for pure convection, convection-dominated, convection-diffusion, diffusion-dominated and pure diffusion cases. In order to match the time levels when constructing values of ghost points in the two intermediate stages of the third order Runge-Kutta method, we propose a new approximation to the mixed derivatives at the boundaries to ensure high order accuracy and to improve computational efficiency. In particular, we extend the boundary treatment to the compressible Navier-Stokes equations, which satisfies the isothermal no-slip wall boundary condition at any Reynolds number. We provide numerical tests for one- and two-dimensional problems involving both scalar equations and systems, demonstrating that our boundary treatment is high order accurate for problems with smooth solutions and also performs well for problems involving interactions between viscous shocks and moving rigid bodies.
Read full abstract