Jump to content
Geochemist's Workbench Support Forum

Brian Farrell

Admin
  • Posts

    1,055
  • Joined

  • Last visited

  • Days Won

    11

Everything posted by Brian Farrell

  1. Hi tco, Apologies for the delay in response as I've been out of the office the past two weeks conducting training. Yes, as you've discovered, using GSS to store your data and then launching a Piper diagram in Gtplot is the way to go. Regards, Brian Farrell Aqueous Solutions
  2. Dear GWB users, We are pleased to announce our latest maintenance release, GWB 9.0.3. 9.0.3 features Windows 8 support, an extended polynomial for virial coefficients in the H-M-W activity model, spherical coordinates in X1t, and heterogeneous and transient thermal properties in X1t and X2t, among other improvements. Update from 9.0 through 9.0.2 at no charge to ensure you have all the newest features and bug fixes. Regards, Brian Farrell Aqueous Solutions LLC
  3. Hi, I think that particular example refers to a saved .rea file. You might find that storing data in a GSS file as well could be useful. You can launch SpecE8 or React from GSS, for example, or if you have GWB 9 you can use drag-and-drop to move a sample from a GSS spreadsheet into the Basis pane of React. Hope this helps, Brian
  4. Hi Michal, I think you should be able to set up something like this. One thing to try would be to set the oxygen fugacity of the inlet (to be in equilibrium with the atmosphere, or whatever buffer you are using). That way, the inlet will always have the same amount of oxygen, but the oxygen in the rest of the domain (the Initial system) will be affected by reaction (with pyrite, perhaps) and transport (advection and diffusion into the domain). Hope this helps, Brian Farrell Aqueous Solutions LLC
  5. Hi DL, Could you please post the thermo dataset you are using, so that I can take a closer look? Thanks, Brian
  6. Hi DL, To make this run converge at your pH of interest (12.66), I swapped out Al+++ (dominant Al phase at low pH) for Al(OH)4- (dominant Al phase at high pH). Since your concentration units are mg/kg, you should be sure to adjust your value to reflect the different molecular weights of Al+++ and Al(OH)4-. Hope this helps, Brian
  7. Hi DL, It look like your problem is solving for the equilibrium state of the Initial system (before the TcO2© is even added). You should set the mass of solvent water as a free constraint (the default option) rather than a bulk constraint. This ensures all 1 kg of H2O at the beginning of the run is water, not distributed among the various aqueous species and minerals that are present. You should take a look at section 7.2 of the GWB Essentials Guide for more on free constraints. Since you set an Eh of -.4 at pH 12.3, you might want to swap out TcO4- for a more reduced form, such as Tc+++. This isn't too critical in this case, but it does make the initial portion of the path a little smoother, and it's a good thing to keep in mind when troubleshooting your runs. A simple Eh-pH diagram of TcO2 should help explain to you what I mean. You might even consider plotting the reaction trace on the Eh-pH diagram. Hope this helps, Brian
  8. Hello, I think your problem arises from the 0 values for concentration that you specify in the Initial system. If these indeed are supposed to be 0 in the real world, they should be replaced with negligibly small values in your thermodynamic model. You should take a look at some of the examples in the Reactive Transport Modeling Guide. For example, in 3.9: Pb contamination, clean water flushes a Pb contaminated aquifer, but even the clean water has an exceedingly small but nonzero value for Pb concentration. Hope this helps, Brian Farrell Aqueous Solutions LLC
  9. Hi DL, In order to make your original script run, not only do you need to add Na+ to the Basis, but you must tell GWB to use it as the charge balancing ion, instead of Cl-. To do so, use the command "balance on Na+". I think that should solve your problem. To model dissolution of a mineral with time, you need to set a kinetic rate law. Since you want the 2 g of quartz in your system at the beginning, you should swap it into the Basis in place of SiO2(aq) and set its mass to 2 free g. Using the rate law and the current chemical composition, React will calculate how much quartz precipitates or dissolves at each step. To see how solubility changes with pH, again swap quartz into the Basis pane, set the initial pH, then move to the Reactants pane and specify a target value for a sliding pH path. The mineral solubility example I mentioned earlier demonstrates this. Hope this helps, Brian
  10. Hi Godfrey, I took a look at your dataset and it works with Act2. Perhaps you didn't include all of the components necessary to form Ettringite? These are the basis species in the reaction for Ettringite that you added to the dataset: H2O, SO4--, Al+++, H+, and Ca++. Since you mentioned you're interested in aluminum and sulfate containing minerals, perhaps you forgot to include Ca++ (either as an axis or under the "in the presence of" field). Hope this helps, Brian
  11. Hi Godfrey, It looks like you forgot the attachment. Regards, Brian
  12. Hello, Regarding the charge balance issue, there are a couple fixes. Since you're at high pH, there will be more OH- than H+ in solution. Additionally, some of the silica will be present as neutral SiO2(aq) and some will be H3SiO4-, so you'll actually have an excess of negative charge. Cl- is the default charge balancing ion, but you are free to use any other ion. Balancing on a cation, Na+ for example, makes your model converge. Another option is to simply turn charge balance off, as is sometimes done when making speciation diagrams across a range of pH values. Now that your model runs, you can take a look at the results. You'll find that the quartz quickly reaches saturation and ceases to dissolve, and that the concentration of all silica species remains constant after this. You should note that the time you specify here doesn't mean much, since you haven't specified a kinetic rate law by which quartz precipitates or dissolves. Making the run last 7 days simply specifies that the 2 g of quartz be added in even increments up to 7 days, but the time could change without affecting your results. Another way to create solubility diagrams is to set the fluid in equilibrium with your mineral, quartz here, at a certain pH, then using a sliding pH path to see how the solubility of the mineral changes with pH. If you look at the diagrams page of our website, you can scroll down to the React section and choose the "Mineral solubility" example. Click on the React icon to launch a precalculated model of mineral solubility. You might try experimenting with this model to start, and adjust it as you see fit. Hope this helps, Brian Farrell Aqueous Solutions
  13. Hello Godfrey, Without seeing your thermo dataset I can't say for sure, but I imagine the problem is in the way you've balanced the reaction. The Basis species (and Redox species) are the building blocks used to form all other aqueous species, minerals and gases. It looks like you're using OH- as one of the species that react to form ettringite, but this is most likely not one of the Basis species in your thermo dataset. I think if you use H2O and H+ instead you'll be fine. If that doesn't fix your problem you can post your thermo dataset here and I'd be happy to take a look. Regards, Brian Farrell Aqueous Solutions LLC
  14. Hi, If you enter the composition of your fluid in the Basis pane, you can go to File - Save as... fluid1.rea (or use the command save fluid1.rea) to save the fluid into your current working directory. The next time you open React (as long as you're in the same working directory) you can go to File - Open - Read Script... (or command read fluid1.rea) to bring your saved fluid into the Basis pane. You might save two fluids ahead of time this way, then read them in to mix them together. An example (Section 3.9 of the Reaction Modeling Guide) demonstrates how you can read a fluid, solve for its chemical speciation, pick up the fluid and move it to the Reactants pane, then read the other fluid into the Basis pane so that you can mix the two together. From the command pane, this looks like: read fluid1.rea go pickup reactants = fluid read fluid2.rea reactants times 10 go React equilibrates fluid 1 and takes the fluid's bulk composition as a reactant. The program then equilibrates fluid2 and reacts about 10 kg of fluid 1 (assuming initial solvent mass of 1kg) into the second fluid over the course of the reaction path. Please let me know if that's not what you mean. Perhaps you want to save the fluid as a sample in a GSS spreadsheet? Regards, Brian Farrell Aqueous Solutions LLC
  15. Hi Suma, It looks like you took the reaction for CN- from thermo.com.v8.r6+.dat and added it to thermo.dat. The problem is that the two databases differ in their choice of basis species for the nitrogen component. thermo.com.v8.r6+.dat uses NH3(aq), but thermo.dat uses NO3-. If you want to add CN- to thermo.dat, you'll need to write the reaction in terms of NO3-. Add the first two reactions together to get the third, which is what you want. CN- + 2 H2O + .5 O2(aq) = HCO3- + NH3(aq) (Log K at 25 °C = 56.0505) NH3(aq) + 2 O2(aq) = NO3- + H+ + H2O (Log K at 25 °C = 62.1001) CN- + H2O + 2.5 O2(aq) = NO3- + HCO3- + H+ (Log K at 25 °C = 118.1506) You can quickly accomplish this using Rxn with thermo.com.v8.r6+.dat. Just write the reaction for CN-, swapping NO3- in for NH3(aq). By going to Run - Block - Append, then Run - Go, Rxn will copy to the clipboard the reaction and thermo data in a block of text that you can paste directly into thermo.dat. One more thing, be sure to update the redox couples counter from 48 to 49. Hope this helps, Brian Farrell Aqueous Solutions LLC
  16. Hi Oleh, If you post your two modified thermo datasets, your script, and some sort of plot or explanation of the old and new results I'd be happy to take a look. Regards, Brian Farrell Aqueous Solutions LLC
  17. Hello Oleh, This isn't a limit of the GWB programs, but simply a reflection of the thermodynamic data most commonly used by geochemists. thermo.com.v8.r6+.dat has an entry for the native mineral Fe, so you can create a redox-pH diagram accounting for metallic iron (be sure to turn water limits off). To consider kinetics of redox reactions involving Fe(0), however, you'll need to do a little work editing the thermo data. Basically, you'll have to create a new, fictitious redox species, Fe(aq), to add to the thermo data. Then you'll add a mineral Fe(s) to the minerals section, balanced in terms of Fe(aq). Since thermo.com.v8.r6+ has data for Fe(s), this may be a good place to start editing. A relevant example (redox kinetics involving native sulfur) that you can follow is given in Craig Bethke's Geochemical and Biogeochemical Reaction Modeling text in section 17.5 (Redox kinetics), p. 254. Of course, different forms of iron will likely have different thermodynamic properties, so you'll need to find the appropriate data for your application. Hope this helps, Brian Farrell Aqueous Solutions LLC PS I moved your post from the archive of old posts to the top of the front page to make it more visible.
  18. Hi Suma, Thanks for sending your dataset and script. Act2 is using thermo.dat, the default thermodynamic dataset. You need to tell Act2 (and the other GWB programs) when you want it to use an alternative dataset. Besides that, your script looks fine. There are several ways to do this. Using the GUI, go to File - Open - Thermo Data... and select your dataset (mythermo.dat). If you have the folder with your thermo data open (or the thermo data saved to your desktop) you can just drag (assuming you have GWB 9) the icon for the thermo dataset into Act2. From the command line, use a command like data = "C:\Users\Suma\mythermo.dat" You'll want to make sure your dataset is a .dat file, and not a .txt file. When you name it, make sure the "All Files" option is selected, rather than Text Documents (*.txt). Hope this helps, Brian
  19. Hi Suma, It sounds like you've followed the necessary steps in Act2, perhaps the error is in the way you added Enargite to the thermo data. Please send your themo dataset to support@gwb.com. To create a script (whether you used the GUI or the command line), just go to File - Save As... to create a .ac2 file. Once this is done you can just double-click the file to open up your saved run. Regards, Brian
  20. Hi Suma, Could you attach the thermo dataset you're using and your Act2 script? Thanks, Brian
  21. Hi Suma, The Program files folder is protected by Windows, so you can't edit or write anything to that folder. If you want to save custom datasets or scripts, you must so in a different folder, such as User - Suma, or the Desktop. It's also generally a good idea to change your working directory from Program files to something like Users - Suma or the Desktop. Hope this helps, Brian Farrell Aqueous Solutions LLC
  22. Dear GWB Users, Thanks to all of your interest, we have decided to hold an additional short course in Seattle this year. Please join us November 27-28 in Seattle for a short course on reactive transport modeling using The Geochemist's Workbench. Space is limited, so sign up early. Regards, Brian Farrell Aqueous Solutions LLC
  23. Dear GWB Users, Thanks to all of your interest, the November 29-30 short course in Seattle has reached capacity and we have decided to hold an additional course Nov 27-28 in the same location. Please see our course webpage for details. Regards, Brian Farrell Aqueous Solutions LLC
  24. Hi Sam, A few things. Unless you're setting a free constraint, you typically set the component concentration, or total Al concentration, in the Basis. You can just add Al+++, H2O, H+, Na+, and Cl- to the Basis, and React will calculate the distribution of mass between all the possible species which can be formed from combinations of the Basis species, including the various Al species you mentioned below. Basis swaps are performed when the default Basis set might not be the best way to describe your system. If a fluid is in equilibrium with quartz, for example, you would swap Quarts into the Basis and set its mass, rather than specifying the concentration of SiO2(aq). Since Al(OH)4- is prevalent at hight pH, you might swap that into the Basis in place of Al+++ if you are starting with a basic solution, but you're starting with an acidic solution here so there is no need to perform a basis swap, since the Al+++ is prevalent under acidic conditions. Oftentimes when people make speciation diagrams like this they choose to turn charge balance off. In reality, of course, electroneutrality must be maintained, but in a simple model like this where you're only looking at Al speciation this may not be necessary. I think another issue is the high concentration of Al you've set in the Basis. Is this realistic for your system? Since you've turned mineral precipitation off, minerals like Gibbsite become supersaturated very quickly. You might try using Act2 to create similar diagrams. The one in Figure 5.4 b might be helpful to you (just remove the SiO2 from the system). That will show you how concentration/ activity and pH affect the speciation of Al. Do you know why all of your posts are showing up twice? Hope this helps, Brian Farrell Aqueous Solutions LLC
  25. Hi Sam, After you run the simulation in React, you use the interactive program Gtplot to display your results. By default, fluid component concentration and rxn progress appear on the axes, but these can be changed with a few mouse clicks. The fluid component concentration refers to the total concentration in solution that you specify on the Basis pane. Na, for example, is present in this simulation as Na+, NaCl, NaHPO4-, and NaOH species, each of which will add up to 10 mmolal. U and P in solution are much more complicated. Since you're interested in a speciation diagram, you'll need to select the individual species that you are interested in. As a side note, since Cl- is the balancing ion, it is adjusted somewhat from it's specified value of 10 mmolal to maintain electroneutrality. Reaction progress is a vague term and depends on how your reaction path model is set up. It might refer to time in a kinetic simulation, or temperature in a polythermal run. Here it closely mirrors pH, since your reaction path involves incrementally adjusting pH. You should read the "Using Gtplot" section of the GWB Reaction Modeling Guide for details of how to select the appropriate variables for plotting, and how to edit the appearance of your plots. Hope this helps, Brian Farrell Aqueous Solutions LLC
×
×
  • Create New...