AMReX-Codes / amrex

AMReX: Software Framework for Block Structured AMR
https://amrex-codes.github.io/amrex
Other
518 stars 339 forks source link

Updating Ghost Cells with Periodic Boundary Conditions in Multi-Box Domain #3821

Closed ztdepztdep closed 4 months ago

ztdepztdep commented 5 months ago

In the "heat equation simple" example, I'm working with code that uses phi_old.FillBoundary(geom.periodicity()); to fill the periodic boundary conditions (BCs) for the physical domain. However, I'm unsure how to update the ghost cells between different boxes in this multi-box domain setup.

WeiqunZhang commented 5 months ago

FillBoundary always fills ghost cells between boxes. The periodicity information is an optional argument. If present, periodic boundary conditions will be applied in addition to ghost cells between boxes.