Welcome
Guest
Forum Home
Login
Register
PhreeqcUsers Discussion Forum
»
Conceptual Models
»
Kinetics and rate controlling factors
»
Conditional in RATES
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Conditional in RATES (Read 1889 times)
javiera.aedo
Contributor
Posts: 6
Conditional in RATES
«
on:
26/08/20 23:55 »
Hi, I'm trying to model the dissolution of goethite and I found that for a certain range of pH the specific rate is 10^-9.39 * [H+] ^ 1 and for another range it is 10^-14.6. I don't know how to write the command in RATES, I try with:
Hematite
-start
10 REM parm(1)= A0 #m2
20 REM parm(2) = V #L
30 if (pH > 1.3 and pH <= 5.6) THEN rate = 10^-9.39 * act("H+")^1*(1 - SR("Hematite")) * parm(1)/parm(2) *(m/m0)^0.67
40 if (pH > 5.6 and pH <= 8.2) THEN rate = 10^-14.6 *(1 - SR("Hematite")) * parm(1)/parm(2) *(m/m0)^0.67
50 moles = rate * time
200 SAVE moles
-end
Logged
dlparkhurst
Global Moderator
Posts: 3949
Re: Conditional in RATES
«
Reply #1 on:
27/08/20 02:04 »
Your rate definition might work. A couple of issues.
(1) the rate is zero at pH less than 1.3 and greater than 8.2. I don't know if you want to remove the lower and upper bounds.
(2) the rate is discontinuous at pH 5.6. You would need -9.39 + -5.6 = -14.99 for the rate constant rather than -14.6 for the high-pH rate expression. Even so, the combined rate would be non-differentiable, which probably would work, but could cause problems with the integration method.
Presumably, you intended to use Goethite instead of Hematite in the SR definitions.
Logged
javiera.aedo
Contributor
Posts: 6
Re: Conditional in RATES
«
Reply #2 on:
27/08/20 18:38 »
Why should I use Goethite instead of Hematite in the SR definitions if I am trying to remove Hematite?
Logged
dlparkhurst
Global Moderator
Posts: 3949
Re: Conditional in RATES
«
Reply #3 on:
27/08/20 18:43 »
You said "I'm trying to model the dissolution of goethite", but if you meant hematite, then you are right.
Logged
javiera.aedo
Contributor
Posts: 6
Re: Conditional in RATES
«
Reply #4 on:
27/08/20 19:00 »
Yeah, sorry. Thank you.
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
PhreeqcUsers Discussion Forum
»
Conceptual Models
»
Kinetics and rate controlling factors
»
Conditional in RATES