Time Step
incflo has the option to treat advection using either the Method of Lines (MOL) or a Godunov approach. Here we discuss the basic workflow involved in a time step for each of these approaches. For details on how the convective terms are constructed, see the AMReX-Hydro documentation on Advection schemes. For details on the projections, see the AMReX-Hydro documentation on Projection Methods.
MOL
MOL requires predictor-corrector methodology to achieve second order accuracy. 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
Godunov Methods
When we use a time-centered Godunov approach (i.e. the Godunov
or BDS
options),
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 \left( \nabla \cdot (\rho U^{MAC} U) + \nabla {p}^{n-1/2} \right) \\ &+ \frac{\Delta t}{2} ( \nabla \cdot \tau^n + \nabla \cdot \tau^\ast) + \Delta t \; \rho^{n+1/2} {\bf H}_U\end{split}\](for implicit diffusion, which is the current default)
Project \(U^{\ast}\) by solving
then defining
and