-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Enable solid-liquid equilibrium via phreeqpython #186
Comments
Hi @rkingsbury! Hope you are doing well. I am interested in making this enhancement. If I've understood this correctly, the
|
Hi @DhruvDuseja , yes, something along those lines is exactly what I had in mind. Just a few initial comments:
|
Thanks for the feedback. So, if Is there a possibility that either of the lists is empty and we pass it to the equalize anyway? |
Note on call signatureI realize that the syntax for
You see that the first argument to
I figured this out be examining the definition of equalize, which calls So for the
This format would parallel the way that solutes are entered (e.g., Your Questions
I was thinking the following: If
Yes, by default (when both lists are set to |
So, this is what I have so far based on what I've understood. Can you please take a look and see if I'm headed in the right direction? Thanks!
|
Thanks so much @DhruvDuseja . Yes, definitely the right direction. There are some small edits you can make to streamline the code (which I can comment on directly when you open a pull request), but overall looks good. For example, instead of the
Also, you don't need to call |
phreeqpython
contains anequalize
method demonstrated in this tutorial that exposes PHREEQC's solid-liquid equilibrium calculations.A method to access this could be added to
Solution
. The best way to do so is probably as a keyword argument toequilibrate
. For example, one could writeUsing the same paradigm, it would be easy to add equilibration with atmospheric gases as another kwarg, e.g.
Inside
equlibrate
, the contents ofsolids
andgases
would simply be combined into a single list and passed toequalize
of the underlyingphreeqpython
object (accessible via thes1.engine.pp
attribute)The text was updated successfully, but these errors were encountered: