AMReX-Fluids / IAMR

A parallel, adaptive mesh refinement (AMR) code that solves the variable-density incompressible Navier-Stokes equations.
https://amrex-fluids.github.io/IAMR/
79 stars 57 forks source link

Update create umac grown #117

Closed cgilet closed 2 years ago

cgilet commented 2 years ago

Make new NSB::create_umac_grown that uses FillPatchTwoLevels.

This fixes an error wherein the valid fine face values at the coarse-fine interface were not being used in the computation of fine ghost cell values. Previously, IAMR used HydroUtils::create_constrained_umac_grown which relies on InterpFromCoarseLevel which uses interpolated coarse values at the coarse-fine interface rather than the valid fine data that exists there in this case. Differences are likely subtle, as create_constrained_umac_grown makes further corrections after the interpolation.