Jump to content
Geochemist's Workbench Support Forum

Kinetic Mineral Custom Rate Law


elg0086

Recommended Posts

Hi,

I am testing out a custom rate law script file in an X2t model. The model has 4 injection wells and 100 nodes. However, the model does not acknowledge the conditional statement (pH) in any of the nodes except the injection well nodes. The injection solution has a pH less than 6. The kinetic mineral is present in all the nodes. Am I missing something in the script?

IF pH < 6 THEN 20 ELSE 40
20: rate = 0.00000000052481  * totmoles ("H+") ^ 0.72
GOTO 60
40: rate = 0.0
60: RETURN rate

Regards,

Erik

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...