Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Forum Home
Login
Register
PhreeqcUsers Discussion Forum
»
Conceptual Models
»
Incorporation PHREEQC in programming languages
»
PhreeqcRM: use RM_RunCells for one element each time
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: PhreeqcRM: use RM_RunCells for one element each time (Read 348 times)
Christinali91
Top Contributor
Posts: 30
PhreeqcRM: use RM_RunCells for one element each time
«
on:
February 03, 2021, 08:12:41 PM »
Hi David,
In our reactive transport simulation, the domain size is very big with large numbers of grid cells, but the chemical reaction may only occur within a small region which means a few chemistry cells are actually needed for the chemical calculation at each time step. Therefore, I want to perform the Phreeqc calculation for one element each time and do a loop over the needed chemistry cells, which is also more convenient to couple with other modules in the code. I wonder what will be the best way to do it. To me, PhreeqcRM seems to prefer an array input than a single input. Could you give me some hints on this?
Thanks a lot!
Best,
Logged
dlparkhurst
Top Contributor
Posts: 2485
Re: PhreeqcRM: use RM_RunCells for one element each time
«
Reply #1 on:
February 03, 2021, 09:43:45 PM »
I'm not sure what you have in mind. Here are a couple options.
RunCells will not make a calculation for a cell that has saturation of zero. So, you can use SetSaturation to select the set of cells that you want to run at a given time step.
Perhaps you want more than one PhreeqcRM instance, so that you could split the set of cells into multiple groups that could be processed independently.
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
PhreeqcUsers Discussion Forum
»
Conceptual Models
»
Incorporation PHREEQC in programming languages
»
PhreeqcRM: use RM_RunCells for one element each time