-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spurious concentrations in geochemistry #293
Comments
@dasvyat: could you please have an early look at this and provide some clues as to what may be happening? Thanks. |
data and mesh directories for this example are available in ats-demos under 13_integrated_hydro_reactive_transport |
@smolins: Are the plots you show from a parallel run? If yes, how many cores did you use? |
Plots 1 and 3 are for single processor runs. They show the spurious concentrations on the top left corner. Plots 2 and 4 are for parallel runs using 12 processors. They show the spurious concentrations on the top left corner and then twice more downstream. This is a zoomed-in view. If showing the entire domain, one would see this pattern 12 times in total. |
@smolins I re-run your input file, and it appears that:
I added some rainfall at the beginning, and this seems eliminate the weird pattern. Can you play with the rain and verify this? |
I've re-run this case on multiple cores. There is a parallel pattern that indicates a bug versus dry cells or boundary conditions. |
I am confident that PRs #290, #291, and #292 successfully address the parallel issue with transport that was affecting reactive transport simulations. (The other issue would be the overshoot issue #286 due to interpolation of saturation when subcycling that is still pending, which can be temporally addressed by not subcycling.)
Unfortunately, it does not completely resolve the problems with reactive transport simulations. Back to running the hillslope problem (Molins et al 2022 Water Resources Research) but just for a 0.1 days, capping the time step to 70 s (to avoid subcycling) and plotting every 70 seconds too, see input file attached: hillslope_calcite_crunch_sigmoid_100s_xml.txt
The issue does not seem to be related to parallel runs although parallel runs seem to provide a clue that something is wrong with the very first cell in the subdomain handled by each MPI process, as the spurious concentrations appear at regular interval across the domain. I wonder if something is done differently with the first cell (at initialization or after solving transport) that affects (not so much the total concentration tcc) but the primary ion concentration (or another variable handled via Alquimia). The issue does not appear for non-reactive tracers (1 and 2), only with reactive species.
Time step 1, single processor (issue is at top left corner)
Time step 1, parallel run (n=12) (issue at top left corner repeats itself downstream)
Time step 10, single processor
Time step 10, parallel run
The text was updated successfully, but these errors were encountered: