AMReX-Fluids / incflo

Incompressible Navier-Stokes solver in complex geometries
https://amrex-fluids.github.io/incflo
BSD 3-Clause "New" or "Revised" License
46 stars 28 forks source link

Fix indexing error in computing the advective term for #104

Closed cgilet closed 4 months ago

cgilet commented 4 months ago

non-conservative tracers. In practice, this makes little difference because it's multiplied by div(Umac) which the MAC projection just enforced to be numerically zero to within its tolerance.

Also make the density field non-constant and add a second, non-conservative tracer in the tracer_adv_diff_cn regression test. This will require creating new benchmarks for the 2D and 3D tests.