Jordi Sanglas Molist
unread,Apr 7, 2025, 3:07:35 AMApr 7Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pflotran-dev
Hi all,
I think that I have found a mass balance bug in the multiple continuum capability (unrelated to the other recent post in this forum). I simplified the model that I was simulating so that it only has a non-reacting tracer and I reduced the number of cells to 2 primary cells, each one having 2 secondary continuum cells. In the simplified model, the mass balance error is still present.
I attach the input deck in this message. The model is 1D and has uniform flow. Initially, there is almost no tracer (concentration of 1e-20 M). Then, a short pulse of tracer is injected through the inlet. The tracer travels through the model and leaves through the outlet, so after a long time we should get that the same amount of tracer injected through the inlet has left through the outlet.
Instead, we get that more than twice as much tracer has left through the outlet compared to the mass that was injected. The mass balance file is attached, and we can see the difference between "outlet Tracer [mol]" and "inlet Tracer [mol]" for late times. We can confirm that the model is initially empty, because if I remove the pulse injection we get close to 0 mass leaving the outlet.
Do you have any idea what could be the issue?
Many thanks,
Jordi