elg0086 Posted September 26, 2019 Posted September 26, 2019 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
Brian Farrell Posted September 26, 2019 Posted September 26, 2019 Hi Erik, Can you please attach your script? Thanks, Brian Farrell Aqueous Solutions
elg0086 Posted September 28, 2019 Author Posted September 28, 2019 Hi Brian, Thanks for the reply. Further troubleshooting may have solved the problem. If there is still an issue after the current model run is complete I will upload the script. Thank you. ~Erik
Brian Farrell Posted September 30, 2019 Posted September 30, 2019 Hi Erik, I'm happy to hear you figured it out after more troubleshooting. Regards, Brian
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now