Please email phreeqcusers at gmail.com with your name and affiliation to request an account.
Welcome
Guest
Forum Home
Login
Register
PhreeqcUsers Discussion Forum
»
Conceptual Models
»
Kinetics and rate controlling factors
»
syntax error in rate equation
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: syntax error in rate equation (Read 10060 times)
kathryn.johnson@barr.com
Contributor
Posts: 1
syntax error in rate equation
«
on:
10/07/25 17:25 »
I'm hoping that someone can assist me in finding the syntax error in the following RATE block.
Uraninite
-start
#rate UO2 =(k1 x [H+]^0.37 x [O2(aq)]^0.31) + (k2 [HCO3-]^0.35)
10 rate = ((10e-7.56)*(ACT("H+"))^-7.2 *(ACT("O2"))^-3) + ((3.15e-10)*(ACT("HCO3-"))^-2)
20 moles = rate * TIME
200 SAVE moles
-end
ERROR: Syntax_error: missing ) or ] in line:
ERROR: in BASIC line
10 rate = ((10e-7.56)*(ACT("H+"))^-7.2 *(ACT("O2"))^-3) + ((3.15e-10)*(ACT("HCO3-"))^-2)
ERROR: Fatal Basic error in rate Uraninite
Logged
dlparkhurst
Global Moderator
Posts: 4315
Re: syntax error in rate equation
«
Reply #1 on:
11/07/25 03:43 »
This is wrong 10e-7.56, and I am not sure what you meant.
Break the equation into pieces if you need to:
Code:
[Select]
k1 = 10^-7.56
f1 = k1*act("H+")^0.37
f2 = act("O2")^0.31
t1 = k1*f1*f2
...
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
PhreeqcUsers Discussion Forum
»
Conceptual Models
»
Kinetics and rate controlling factors
»
syntax error in rate equation