Data Labeling #335
JMCarmona10
started this conversation in
Q&A
Replies: 1 comment
-
For aqueous related properties, you should use aprops = AqueousProps(state)
print(aprops.speciesMolality("H+")) Please check https://reaktoro.org/api for Reaktoro's API so that you understand all classes and methods available for you. There are some tutorials in the website covering this. Hope this helps. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
Greetings, Allan
I believe i have an understanding of reaktoro and the mathematical model employed for resolving chemical equilibrium, my question revolves on the presentation of output results. I'm posting a relatively straightforward Reaktoro program. My objective is to demonstrate how I can designate a particular specie in the final output as a variable, without resorting to the conventional "print(state)" method for visualizing the results. For example, the molality of H2O, how do i assign a variable and print its value without the usual way.
`from reaktoro import *
db = PhreeqcDatabase("phreeqc.dat")
solution = AqueousPhase("H2O H+ OH-")
system = ChemicalSystem(db, solution)
state = ChemicalState(system)
state.set("H2O", 1.0, "kg")
equilibrate(state)
print(state)`
Example
No response
What is your operating system?
None
Additional Information
No response
Beta Was this translation helpful? Give feedback.
All reactions