Hi Wyatt,
I looked at the surface_tracer_advection_diffusion_withsources.xml example. Initially, I thought the reason we saw zero diffusion flux was because the east face (1000 m) is too far away from the source (0-10 m). So, I placed another face closer to the source for observation. Now we can see that the diffusion mass flux is non-zero. However, I did see high concentration of tracers (break though curves) at the last cells of the domain, so diffusion should be happening there and diffusion mass flux should not be 0.
To isolate diffusion, I set the water_flux = 0, making transport entirely governed by diffusion. I observed a good breakthrough curve (mole_fraction of tracers 1 and 2) at the east face. The advection mass flux is 0 (expected), but the diffusion mass flux is also 0, which is incorrect. This means that diffusion is happening properly within the domain modeled by ATS, but the way we extract the diffusion mass flux may not be correct.
The diffusion mass flux is calculated the same way as the diffusion of water, but you mentioned that your mass balance for the water looks good. This will require some thoughts for me and Ethan to understand what might be causing this issue.
Thank you for checking the tests.
Phong