To learn how the convective terms are constructed, see AMReX-Hydro
Time Step – MOL
In the predictor
Define \(U^{MAC,n}\), the face-centered (staggered) MAC velocity which is used for advection, using \(U^n\)
Define an approximation to the new-time state, \((\rho U)^{\ast}\) by setting
Project \(U^{\ast}\) by solving
then defining
and
In the corrector
Define \(U^{MAC,\ast \ast}\) at the “new” time using \(U^{\ast \ast}\)
Define a new approximation to the new-time state, \((\rho U)^{\ast \ast \ast}\) by setting
Project \(U^{\ast \ast \ast}\) by solving
then defining
and
Time Step – Godunov
When we use the time-centered Godunov advection, we no longer need the predictor and corrector steps.
Define the time-centered face-centered (staggered) MAC velocity which is used for advection: \(U^{MAC,n+1/2}\)
Define the new-time density, \(\rho^{n+1} = \rho^n - \Delta t (\rho^{n+1/2,pred} U^{MAC,n+1/2})\) by setting
Define an approximation to the new-time state, \((\rho U)^{\ast}\) by setting
\[\begin{split}(\rho^{n+1} U^{\ast}) &= (\rho^n U^n) - \Delta t \nabla \cdot (\rho U^{MAC} U) + \Delta t \nabla {p}^{n-1/2} \\ &+ \frac{\Delta t}{2} (\nabla \cdot \tau^n + \nabla \cdot \tau^\ast) + \Delta t \rho g\end{split}\](for implicit diffusion, which is the current default)
Project \(U^{\ast}\) by solving
then defining
and
The algorithm is further described in the following paper (and references therein):
A Conservative Adaptive Projection Method for the Variable Density Incompressible Navier-Stokes Equations, A. S. Almgren, J. B. Bell, P. Colella, L. H. Howell, and M. L. Welcome, J. Comp. Phys., 142, pp. 1-46, 1998. http://www.sciencedirect.com/science/article/pii/S0021999198958909 [1]
Time Step – BDS
When we use the Bell-Dawson-Shubin (BDS) algorithm, we advance the solution in time using a three step procedure described below. In the notation, \(s\) is a scalar field of the form \(s=s(x,y,z,t)\) and \({\bf u}=(u,v,w)\) represents a known velocity field. \(s^n_{ijk}\) represents the average value of \(s\) over the cell with index \((ijk)\) at time \(t^n\). At each face the normal velocity (e.g., \(u_{i+1/2,j,k}\)) is assumed constant over the time step.
Step 1: Construct a limited piecewise trilinear (bilinear in 2D) representation of the solution in each grid cell of the form,
Step 2: Construct edge states \(s_{i+1/2,j,k}\), etc. by integrating limited piecewise trilinear (bilinear in 2D) profiles over the space-time region determined by the characteristic domain of dependence on the face.
Step 3: Advance the solution in time using the conservative update equation,
Addition details are located in the BDS section of the AMReX-Hydro docs and in the following paper:
A Three-Dimensional, Unsplut Godunov Method For Scalar Conservation Laws, A. Nonaka, S. May, A. S. Almgren, and J. B. Bell, SIAM Journal of Scientific Computation, Vol. 33, No.4, pp. 2039-2062. https://ccse.lbl.gov/Publications/nonaka/BDS_3d.pdf [3]