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
Describe the bug
The face-centered velocity is inconsistent by a half-timestep at the coarse-fine boundary when doing AMR subcycling. (This is because the face-centered velocity values are averaged over the timestep, but the AMR interpolator assumes they are at the end of the timestep, and they are interpolated from the coarser level onto the finer level at a different time.)
This causes a very slight inconsistency in the trajectories of tracer particles at the coarse-fine AMR boundary. If the face-centered velocities are also used for the MHD emf update, then there is also an inconsistency there.
Two possible fixes:
advect the tracer particles using the velocities at the beginning of the timestep and then advect them again at the end of the timestep (e.g., the RK2 method used in FLASH for passive tracers). This also has the advantage that the time integration can be made exactly consistent with that used for hydro. Then we never need to deal with time-centered velocity fields. However, this can't be done with the built-in AMReX tracer particle advection code.
Run a problem with tracer particles and AMR subcycling
Examine face-centered velocity field at coarse-fine interface
Additional context
This problem arises because we use the face-centered marker-and-cell (MAC) advection method from AMReX, which requires velocities that are averaged over the timestep. Most other AMReX codes use cell-centered velocities to advect the tracer particles, where this problem doesn't arise in the same way.
The text was updated successfully, but these errors were encountered:
BenWibking
changed the title
tracer particle velocity inconsistency when AMR subcycling
small tracer particle inconsistency when AMR subcycling
Feb 23, 2025
BenWibking
changed the title
small tracer particle inconsistency when AMR subcycling
slight tracer particle inconsistency when AMR subcycling
Feb 23, 2025
BenWibking
changed the title
slight tracer particle inconsistency when AMR subcycling
slight face-centered velocity inconsistency when AMR subcycling
Feb 25, 2025
Describe the bug
The face-centered velocity is inconsistent by a half-timestep at the coarse-fine boundary when doing AMR subcycling. (This is because the face-centered velocity values are averaged over the timestep, but the AMR interpolator assumes they are at the end of the timestep, and they are interpolated from the coarser level onto the finer level at a different time.)
This causes a very slight inconsistency in the trajectories of tracer particles at the coarse-fine AMR boundary. If the face-centered velocities are also used for the MHD emf update, then there is also an inconsistency there.
Two possible fixes:
To Reproduce
Steps to reproduce the behavior:
Additional context
This problem arises because we use the face-centered marker-and-cell (MAC) advection method from AMReX, which requires velocities that are averaged over the timestep. Most other AMReX codes use cell-centered velocities to advect the tracer particles, where this problem doesn't arise in the same way.
The text was updated successfully, but these errors were encountered: