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
»
Beginners
»
PHREEQC basics
»
using enthalpy of solution species (delta_h) in BASIC calculations
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: using enthalpy of solution species (delta_h) in BASIC calculations (Read 1909 times)
francesco
Contributor
Posts: 2
using enthalpy of solution species (delta_h) in BASIC calculations
«
on:
March 14, 2017, 11:00:23 AM »
Greetings Phreeqc users/developers.
I was wondering if there is a specific statement for the BASIC interpreter that allowed to use the enthalpy of a solution species (delta_h) for further calculations.
I was consulting the manual but I found no information.
Many thanks!
Francesco Endrizzi, KIT-INE (DE)
Logged
dlparkhurst
Top Contributor
Posts: 2736
Re: using enthalpy of solution species (delta_h) in BASIC calculations
«
Reply #1 on:
March 14, 2017, 03:18:56 PM »
No, sorry, there is not a Basic function for delta_h, only for log K: LK_SPECIES, LK_PHASE, LK_NAMED.
Logged
sestes
Contributor
Posts: 6
Re: using enthalpy of solution species (delta_h) in BASIC calculations
«
Reply #2 on:
March 09, 2021, 07:48:20 PM »
Hello All,
I too would like to call the enthalpy for a particular reaction with the BASIC Interpreter for further calculations. Any chance some work has been done since 2017 to add this feature?
Thanks,
Shanna
Logged
dlparkhurst
Top Contributor
Posts: 2736
Re: using enthalpy of solution species (delta_h) in BASIC calculations
«
Reply #3 on:
March 09, 2021, 09:33:52 PM »
Sorry, no function for Delta H has been added.
(Note that Delta_H is not used to adjust the log K for temperature if an analytical expression is defined.)
Logged
sestes
Contributor
Posts: 6
Re: using enthalpy of solution species (delta_h) in BASIC calculations
«
Reply #4 on:
March 10, 2021, 01:52:59 PM »
Thank you for the quick reply. It's too bad that there is no enthalpy function for the BASIC Interpreter. I was hoping to couple PHREEQC output with PEST to optimize enthalpy values from calorimetry data. To do this, I need to calculate the cumulative heat (Q = n * delta_H) associated with each step in a titration, and it seemed like I would be able to do these simple calculations using BASIC and USER_PUNCH. Oh well, I will find another way.
Thanks!
Logged
dlparkhurst
Top Contributor
Posts: 2736
Re: using enthalpy of solution species (delta_h) in BASIC calculations
«
Reply #5 on:
March 10, 2021, 04:07:56 PM »
I will add a couple new Basic functions to return the delta H of species and phases. The delta H will probably be done numerically based on the Van't Hoff equation at the temperature of the calculation to account for analytic expressions for log K.
We are working on a new release, but I can't promise when it will be done.
Logged
sestes
Contributor
Posts: 6
Re: using enthalpy of solution species (delta_h) in BASIC calculations
«
Reply #6 on:
March 11, 2021, 10:14:31 PM »
Great, thank you! I think this will be a useful feature for PHREEQC users. Will the new BASIC functions default to the database "delta_h" value when no analytic expression is available?
Also, my PEST expert colleague believes there is a workaround for calling enthalpy when the enthalpy is also a parameter that will be optimized. Once we have a working solution, I will post the code here for others to use.
:-)
Logged
dlparkhurst
Top Contributor
Posts: 2736
Re: using enthalpy of solution species (delta_h) in BASIC calculations
«
Reply #7 on:
March 11, 2021, 10:51:56 PM »
I wrote two functions DELTA_H_SPECIES(species name) and DELTA_H_PHASE(phase name). They numerically evaluate the delta H. if an analytical expression exists, the result will be at the temperature of the calculation. If no analytical expression exists, the numerical result should be equal to the delta H specified in SOLUTION_SPECIES or PHASES.
Note you can define SOLUTION_SPECIES and PHASES within the input file (which will override the database). That should make it relatively easy to include as a parameter for PEST.
Logged
sestes
Contributor
Posts: 6
Re: using enthalpy of solution species (delta_h) in BASIC calculations
«
Reply #8 on:
March 12, 2021, 04:53:19 PM »
Excellent, this is perfect. Thank you! I look forward to the update.
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
PhreeqcUsers Discussion Forum
»
Beginners
»
PHREEQC basics
»
using enthalpy of solution species (delta_h) in BASIC calculations