AMReX-Fluids / AMReX-Hydro

AMReX-based hydro routines
https://amrex-fluids.github.io/amrex-hydro/docs_html
Other
11 stars 24 forks source link

Add support for mixed bcs in (EB)godunov PLM and MacProjector #123

Closed cgilet closed 4 months ago

cgilet commented 4 months ago

For the MacProjector, allow specifying Robin BCs (since mixed BCs can be viewed as a special case of this).

For (EB)Godunov, this has been implemented by allowing the option to pass a position dependent BC MF/Array4. The BC MF is cell-centered and carries the amrex::BCType type in the first ghost cell (precedent set by MLMG's treatment of Robin BCs) and must fully specify the BC on all faces. If a position dependent BCs are passed in, they take precedent and single bc per face BCRecs are ignored.