Click here to donate to keep PhreeqcUsers open
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
»
Processes
»
Reactive transport modelling
»
PhreeqcRM initializaion
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: PhreeqcRM initializaion (Read 1306 times)
Yongqiang
Top Contributor
Posts: 100
PhreeqcRM initializaion
«
on:
May 18, 2020, 08:15:51 PM »
Dear Phreeqc experts,
When I read through the test code delivered with PhreeqcRM. I saw the following example code. I don't understand the role of "DELETE; -all". Will this delete all the reactants from "RM_RunFile" and leave empty cells?
Regards,
Yongqiang
status = RM_RunFile(id, 1, 1, 1, "advect.pqi");
strcpy(str, "DELETE; -all");
status = RM_RunString(id, 1, 0, 1, str);
Logged
dlparkhurst
Top Contributor
Posts: 3585
Re: PhreeqcRM initializaion
«
Reply #1 on:
May 18, 2020, 08:26:42 PM »
There are three sets of IPhreeqc instances: the workers, the initial IPhreeqc instance, and the utility instance. The last line deletes all solutions and reactants from the workers and the utility instance. TThe utility instance is unlikely to be used. The workers ultimately contains all the information about the cells of the model, so deleting everything could be done just before transferring the cell values from the initial instance to the workers with InitialPhreeqc2Module, just to make sure there are no stray definitions left over from previous RunFile or RunString calls that affected the workers. Note that SELECTED_OUTPUT, USER_PUNCH, and database definitions would not be deleted.
Logged
Yongqiang
Top Contributor
Posts: 100
Re: PhreeqcRM initializaion
«
Reply #2 on:
May 18, 2020, 08:41:01 PM »
Dear Parkhurst,
Thank you for your promote guidance. It is really helpful. Just to confirm a guess. When reading the PhreeqcRM document, the mentioned workers and utility refer to the reaction module (Phreeqc) and flow module (e.g. Comsol or OpenFOAM). Is it correct?
Regards,
Yongqiang
Logged
dlparkhurst
Top Contributor
Posts: 3585
Re: PhreeqcRM initializaion
«
Reply #3 on:
May 18, 2020, 10:22:09 PM »
No, please reread my previous post.
Logged
Yongqiang
Top Contributor
Posts: 100
Re: PhreeqcRM initializaion
«
Reply #4 on:
May 24, 2020, 02:49:55 PM »
I found the answers in this post. I put it here in case anyone needs it.
https://phreeqcusers.org/index.php/topic,1377.msg4402.html#msg4402
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
PhreeqcUsers Discussion Forum
»
Processes
»
Reactive transport modelling
»
PhreeqcRM initializaion