Registrations currently disabled due to excessive spam. Please email phreeqcusers at gmail.com to request an account.
Welcome
Guest
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 2135 times)
Yongqiang
Top Contributor
Posts: 116
PhreeqcRM initializaion
«
on:
18/05/20 20:15 »
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
Global Moderator
Posts: 4036
Re: PhreeqcRM initializaion
«
Reply #1 on:
18/05/20 20:26 »
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: 116
Re: PhreeqcRM initializaion
«
Reply #2 on:
18/05/20 20:41 »
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
Global Moderator
Posts: 4036
Re: PhreeqcRM initializaion
«
Reply #3 on:
18/05/20 22:22 »
No, please reread my previous post.
Logged
Yongqiang
Top Contributor
Posts: 116
Re: PhreeqcRM initializaion
«
Reply #4 on:
24/05/20 14:49 »
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