Jump to content
Geochemist's Workbench Support Forum

Script for X2t


Recommended Posts


I have been working on an X2t model and would like to add a script to an aqueous species in the reactants pane. I am using a recirculating well (located in the last node) to re-inject solution into the first node. Is there a command to reference an aqueous species concentration in the recirculating fluid at the end of each time step? More specifically, I am trying to determine a species concentration of the recirculating fluid at each time step and then adjust to a desired concentration for the start of the next time step. I do not want to fix the activity of the species since I am allowing for reactions along the flow path. Conceptually, I'm interested in mineral dissolution by an acid in a closed loop column with small additions of acid to maintain a constant starting acid concentration.

Thank you!



Link to comment
Share on other sites

Hi Erik,

For something this complex, it sounds like you might be better off using ChemPlugin to construct your own reactive transport code, rather than trying to fit your needs to X2t’s capabilities. With a client program that you write to solve the flow problem, you can use ChemPlugin instances to solve the chemical reactions. Your client has fine-grained control over ChemPlugin’s time marching loop, and you’re able to retrieve results and set up sophisticated simulations without too much effort on your part.

Hope this helps,

Brian Farrell
Aqueous Solutions LLC

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.

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.

  • Create New...