Please email phreeqcusers at gmail.com with your name and affiliation to request an account.
Welcome
Guest
Forum Home
Login
Register
PhreeqcUsers Discussion Forum
»
Processes
»
Reactive transport modelling
»
zero gas phase in reaction-transport model
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: zero gas phase in reaction-transport model (Read 10117 times)
GeeqC
Top Contributor
Posts: 154
zero gas phase in reaction-transport model
«
on:
15/07/25 20:15 »
In the meantime, my reaction-transport model with decoupled methane gas runs fairly well, although a warning appears:
"WARNING: Element Mtg is contained in gas Mtg(g) (which has 0.0 mass),
but is not in solution or other phases."
It seems this warning appears as in some cells the aqueous solution becomes undersaturated with respect to CH4 gas so that the gas content goes to zero. Then also no gas phase should be present at all.
While the program seems to run fine, I wonder if this warning has some unexpected side effects and whether it would be possible to turn it off.
Logged
dlparkhurst
Global Moderator
Posts: 4314
Re: zero gas phase in reaction-transport model
«
Reply #1 on:
17/07/25 20:52 »
WARNINGs have no effect on the simulation; however, ERRORs cause the simulation to fail.
In this case, you have defined Mtg(g), but there are no moles of Mtg in the solution or reactants of the cell. Presumably, Mtg will be introduced in an infilling solution or produced by a KINETIC reaction, but at least initially, Mtg(g) cannot react in any way, which is why the warning was generated.
You can remove or limit warning messages if the workers run a file or string that includes "PRINT; -warnings n", where n is an integer. Each worker of PhreeqcRM will emit at most n warning messages. If n is zero, no warning messages will be produced.
Logged
GeeqC
Top Contributor
Posts: 154
Re: zero gas phase in reaction-transport model
«
Reply #2 on:
22/07/25 21:48 »
Indeed, I added the following line after the SOLUTION 1 data block:
oss << "PRINT; -warnings 0" << "\n";
This works!
No more warnings.
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
PhreeqcUsers Discussion Forum
»
Processes
»
Reactive transport modelling
»
zero gas phase in reaction-transport model