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. With the GWB 2022 release, binary solid solutions can now be modeled. Either a Guggenheim or ideal activity model can be used, and either a continuous or discrete implementation can be chosen. So, you can specify a "High-Mg Calcite" solid solution composed of end members calcite and magnesite, or perhaps calcite and dolomite, as some researchers have done. For more information, please see section 2.5, Solid solutions, in the GWB Essentials Guide. Regards, Brian Farrell Aqueous Solutions
  2. Hi Carol, I'm writing to let you know that with the GWB 2022 release, the Cemdata 18 database is now installed with the GWB software as "thermo_cemdata.tdat". Furthermore, the database was extended to include phosphate and zeolite minerals from Empa. The zeolite data is from Empa's "zeolite21" database, an update to their "zeolite20" compilation to include K zeolites. The GWB-format dataset is annotated with additional information that may be of use. The GWB 2022 release additionally features a binary solid solution model. Solid solutions defined in the original Cemdata 18 reference have been included in thermo_cemdata.tdat. Additional solid solutions can be added to the database, or configured by the user at run time. For more information, please see section 2.5, Solid solutions, in the GWB Essentials Guide, as well as section 3.4.7, Solid solutions, in the GWB Reference Manual. Regards, Brian Farrell Aqueous Solutions
  3. Hi Sven, I'm responding again to let you know that in GWB 2022, the apps allocate space for 31 characters for all species and mineral names in the text output files. If you're using a recent release, you can also consider parsing the xml plot output rendered in character format (use "plot = character" before running). Or, you might investigate whether using the Plug-in Feature and the Report Command would help. For more information, please see the "plot" command in the GWB Command Reference, as well as the Plug-in Feature and Report Command chapters in the GWB Reference Manual. Regards, Brian Farrell Aqueous Solutions
  4. Hi Oleh, With the release of GWB 2022, thermo databases can include an arbitrary number of principal temperatures. You may include as little as one for an isothermal dataset, or as many as you need for a polythermal dataset. For more information on the current thermo data format, please see the Thermo Datasets chapter in the GWB Reference Manual. You might also read section 9.1.2, Navigating datasets, in the GWB Essentials Guide for information about using TEdit to change the set of principal temperatures. Regards, Brian Farrell Aqueous Solutions LLC
  5. Hi Peter, Rather than making you wait for an official maintenance release, please try this release candidate installer: https://gwb-share.s3.amazonaws.com/GWB1502rc1_setup.exe Please let us know if that doesn't fix your problem. Cheers, Brian Farrell Aqueous Solutions
  6. Hi Peter, Thank you for bringing this issue to our attention. It has been fixed. The patch will be available in the next maintenance release. We apologize for the inconvenience. Regards, Brian Farrell Aqueous Solutions
  7. Hi Polly, If I follow the benchmark while using thermo_phreeqc.tdat, I get almost the same results as PHREEQC-OGS. The only difference is a slightly wider zone of dolomite stability, and consistent with that, a few shifted characteristic points in the Mg++, Ca++, C, and pH curves. If you can find the PSI-NAGRA database used in the benchmark, your results might be even closer. You might only need to alter the log Ks of calcite and dolomite, or you could convert the entire PSI-NAGRA dataset from phreeqc to GWB format in TEdit if desired. Here are a few comments on your current input file. Calcite should be swapped into the basis on the Initial pane, as you’ve done, since it is in equilibrium with the pore water at the start of the simulation, but its abundance should be set to 2e-4 free mol/l to match the original simulation. Calcite should not additionally be set as a simple reactant. I don’t believe a non-default value for the diffusion coefficient is warranted, although its effect is negligible in this simulation. There is no reason to set an inert volume here. There is no reason to change the convergence criterion “epsilon” variable, as far as I can tell. You can set Nx to 100 to match the original simulation and to speed up program execution. I took care of these issues and didn’t have any convergence issues using thermo_phreeqc.tdat, but if you continue to have difficulty you can attach a revised version. If you want to overlay different results (mineral abundances, fluid composition, pH) in a single plot, you’ll have to do so in Excel, PowerPoint, Adobe Illustrator, or some other graphics program, as you’ve done. Finally, regarding your previously posted custom thermo dataset, you had 3 basis species SiO2(aq), Si(OH)4, and H4SiO4, along with an aqueous species H4SiO4(aq). Those species all represent the same thing, so there should only be one of them. I’d be very careful to clean up those entries and any dependent reactions so that you have a complete, consistent, and non-redundant set of reactions. Hope this helps, Brian Farrell Aqueous Solutions
  8. Hi Demetra, The ionic strength in most modern programs is calculated from and consistent with the distribution of species in solution. There is no way to override it in SpecE8. Please note, ionic strength here is not calculated from the component (bulk) concentrations. It accounts for the presence of ion pairs or complexes like MgCl+ and MgSO4 that cause the solution to have a lower “concentration of charge” than it would if the Mg++, Cl-, and SO4-- ions were fully dissociated. In other words, in ion association theory the activity reflects the activity coefficient as well as the distribution of mass. Hope this helps, Brian Farrell Aqueous Solutions LLC
  9. I have no specific insight about trevorite (perhaps someone else on the forum will), but in calculating equilibrium models it's important to remember that the most thermodynamically stable minerals might not be likely to form, especially within relatively short timeframes. Using your experience to suppress minerals that fall in this category is common in geochemical modeling. Hope this helps, Brian Farrell Aqueous Solutions LLC
  10. I believe that the dissolved Al concentration vs. Kaolinite equilibrium example is intended to demonstrate how alternative conceptual models might be set up in SpecE8, not to indicate a general rule to follow in speciation modeling. For more info, please see section 6.2 Amazon River water in Craig Bethke's Geochemical and Biogeochemical Reaction Modeling text. It's probably a good idea to first launch SpecE8 for a few of your samples and look at the entire set of calculation results, but if you have a large group of samples that are pretty similar, you're probably better off calculating a few analytes of interest from within GSS. So, instead of going to Analysis > Launch..., try going to Analysis > Calculate with Spece8..., then selecting your analytes of interest. In other words, you might look at the complete distribution of species in solution and the saturation indices for a large set of minerals for a few samples at first, but then when you know what you're looking for (e.g. S.I. of calcite) you can pick and choose to calculate just that analyte for all of your samples, and add it directly to your GSS file. Either way, you can specify trailer commands (for example, "swap Kaolinite for Al+++", "1 free g Kaolinite") in GSS that will be used for all samples when you launch SpecE8 or calculate values with SpecE8. Please see 3.3.7 Calculated values and 3.5 Launching SpecE8 and React in the GWB Essentials Guide as well as the SpecE8 chapter in the GWB Command Reference. Regarding convergence, I'd check to make sure your units and constraints are correct, first of all. I'd also check whether settings for the extent of redox equilibrium/disequilibrium to use in the calculation are reasonable (see 7.3 Redox disequilibrium in the GWB Essentials Guide). It can sometimes be helpful to swap in species that are expected to be dominant under the conditions of interest, to help the program converge. Al+++, the default basis species for Al, is likely to be dominant at low pH, but not at high pH values, in which case it might be better to swap in Al(OH)4-, for example. This last option is straightforward in SpecE8, but not GSS, so let us know if you'd like to pursue it further. Hope this helps, Brian Farrell Aqueous Solutions LLC
  11. Hi Erik, A user can specify under File > Preferences… in most apps (or the Settings tab of the GWB dashboard) the default thermo dataset to be something other than thermo.tdat. One can also specify a default dataset using an environment variable (see 2.3 Thermodynamic datasets and 2.8 Environment variables in the GWB Essentials Guide). Yes, a single .tdat file can be loaded at a time. If you incorporate surface chemistry in a calculation, however, you load one or more surface (.sdat) datasets in addition to the thermo dataset. Yes, that's correct. The input at a basic level consists of a description of the temperature and chemical composition of the system. Beyond constraining the original basis entries, you might use basis swaps to prescribe equilibrium with gases of known partial pressure or minerals in equilibrium with the fluid (e.g. swap O2(g) for O2(aq); P O2(g) = .2 bars). The pH setting is just a special constraint for the H+ basis entry. Additional options can be specified as well (constraints for isotopic calculations, suppressing certain species, controlling the extent of redox disequilibrium, and so on). You can find the complete set of input commands in the GWB Command Reference. Each app (e.g. SpecE8, React, ...) has its own chapter. You might also look at the example files included within the Script folder of the software. Each is described in one of the User’s Guides (e.g. SpecE8 in the GWB Essentials Guide, React in the GWB Reaction Modeling Guide). GWB won't be able to do anything with components it doesn't know about. So you could not tell GWB about them, or get an error if you do, I suppose. A user can edit the thermo dataset before a run if additional reactions are needed. The species and components and so on included in the output file will all be defined in the thermo dataset in use. The output also includes a few specially calculated parameters (e.g. total dissolved solids, carbonate alkalinity, fluid density, and so on) that are not defined in the thermo dataset. Hope this helps, Brian Farrell Aqueous Solutions
  12. Hi Geoff, I'm guessing you launched React at some point prior to mixing. GSS passes the "precip off" command to React in this case by default, so that calculations more closely match those you might make within the spreadsheet, which doesn't account for precipitation (SpecE8 does the work within GSS). The command is passed via a "trailer command", which you can see in the Analysis > Launch... or Analysis > Options... dialogs. The trailer commands (you might choose a specific ion for charge balancing, for example) in general are saved for other calculations within GSS, like calculating analytes and mixing, but unfortunately this command is valid only for React. You can go to Analysis > Options... before you begin mixing to remove the "precip off" command. Hope this helps, Brian Farrell Aqueous Solutions
  13. Hello Jerome, I realize this post is quite old, but I happened to come across it and realized some updated information might be useful. In your post from March 1, 2019, you show formation reactions for O2 and H2 and their log Ks, as taken from Thermoddem's phreeqc-format dataset (the first two of three reactions you provide). You claimed these are for formation of the gaseous species, but they are undoubtedly for aqueous species. I couldn't comment on the contents of the phreeqc data at the time, but I am more familiar with phreeqc datasets now. The first two reactions you supplied are within the SOLUTION_SPECIES block and contain the "CO2_llnl_gamma" keyword, which indicates the method to use for calculating activity coefficients of aqueous species. Reactions for gas dissolution appear within a separate PHASES block. Hopefully that clears up the matter. FYI, the TEdit app in GWB 2021 can now read in phreeqc datasets and convert them to GWB format, for use with the rest of the GWB programs. You might wish to compare reactions balanced in Rxn or pe-pH diagrams constructed in Act2 with the native GWB Thermoddem dataset and that converted from phreeqc. Regards, Brian
  14. Dear GWB users, A problem was detected reading in thermo dataset entries that were edited by hand in a text editor when tabs are used in place of spaces in an entry, such as between a mineral's name and its type: Calcite type= carbonate formula= CaCO3 mole vol.= 36.9 cc mole wt.= 100.0892 g The user would receive an error like "Could not suppress Calcite" or "Could not identify reactant species Calcite". The issue has been fixed and a release candidate installer is available to get affected users up and running right away: GWB 15.0.1rc1 installer The fix will eventually be available in an official maintenance release. At that time, users with the release candidate installed will be automatically notified of the update. If you encounter any more issues, please notify us here. We appreciate your patience and hope you enjoy using The Geochemist's Workbench. Sincerely, Brian Farrell Aqueous Solutions LLC
  15. Hi Karen, We've made a fix to the problem you've encountered. Please download and install this "release candidate" and try using your customized thermo dataset. 15.0.1rc1 installer I don't know why X1t would crash for you, but if it happens again you might try reinstalling and restarting your computer. And you can also try recompiling your rate law function after reinstalling 15.0.1rc1. Please let us know if you have any more issues and we'll work to fix them as soon as possible. Regards, Brian
  16. Hi Karen, We put a lot of work into adding flexibility to thermo datasets and improving TEdit, but unfortunately we introduced a problem handling minerals that include tabs, rather than spaces, in their entry. Assuming you're using the same thermo dataset that you had trouble modifying previously, I've gone to your Na2EX2 and CaEX2 additions and simply replaced the tab characters between the name and type fields with spaces. If you have made more modifications, you can make a copy and replace the tabs with spaces by hand, or do it automatically with an editor like Notepad++ (go to Edit > Blank Operations > TAB to Space). That should take care of your problem while we work on a software fix. In the future, we'll be able to diagnose issues like this much more quickly if you actually provide example datasets and input files that demonstrate the problem. And we'll appreciate it if you can limit your comments to a single post, and understand that it takes time to see, read, work through, and respond to queries. We apologize for the inconvenience and appreciate your patience as we work to rectify this issue. Regards, Brian Brian Farrell Aqueous Solutions thermo_ionx_TabsToSpaces.tdat
  17. Dear GWB12 users, We are pleased to announce our latest maintenance release for GWB12, GWB 12.0.7. The 12.0.7 update provides a fix to calculated analytes in GSS when temperature is given in Fahrenheit; fixes a bug saving Pcrit, Tcrit, and omega in TEdit; and provides fixes for all known issues. Update from 12.0.0-12.0.6 at no charge to ensure you have all the newest features and bug fixes. Existing installations should automatically update to this release, unless auto-update is disabled. In that case, users should update their installations from the Help menu of any GWB app. Regards, Brian Farrell Aqueous Solutions
  18. Dear GWB users, We have good news to start the year: GWB 2021 is here! GWB 2021 brings SIT activity coefficients, an all new thermo data editor, the ability to import thermo datasets from PhreeqC, and much more! Your GWB subscription will upgrade automatically within three days, or simply click “Check for updates” on the GWB dashboard. Not subscribing yet? Take advantage of one of our flexible plans or upgrade that old GWB license to a modern subscription. Contact us today for a quote, or go shopping at our online store and you’ll be up and running in minutes. Sincerely, Brian Farrell Aqueous Solutions LLC
  19. Hi DI Xie, Can you please provide a screenshot of the error message that you receive when you try to deactivate? Thanks, Brian Farrell Aqueous Solutions
  20. Dear GWB users, We completed some updates for the forum software earlier this week. If you were not able to post while it was undergoing maintenance, please try again now. Regards, Brian Farrell Aqueous Solutions LLC
  21. Hi, Act2 only displays samples whose temperature is close to that of the diagram you've calculated (+/- 10 C). The samples at 76 C plot because the diagram is drawn at 76 C, but the samples that are 30-40 C will not plot. Regards, Brian Farrell Aqueous Solutions LLC
  22. Hello, Density of electrolyte solutions is not calculated in most geochemical modeling programs. It's secondary in importance to species distributions, saturation indices, and so on, but it's our opinion that a simple calculation is better than nothing. The Phillips correlation described above, which is the default method for GWB12 and older releases, was designed for geothermal applications, so it works best at higher temperatures and salinities. The correlation is known to be valid for NaCl solutions from 10 < T < 350 °C, 0.25 < m < 5 molal, and P < 50 MPa and greater than the fluid’s vapor pressure. Your fluid is outside (below) the range of valid salinities and very close to the lower T limit. GWB14 by default uses the Batzle-Wang method (Batzle, M. and Z. Wang, 1992, Seismic properties of pore fluids. Geophysics 57, 1396–1408) for calculating density. It was fit over the range 20 < T < 350 °C and 0 < m < 8 molal, so it works better over a range of conditions. I checked a NaCl fluid of the same ionic strength and temperature as your fluid in GWB14.0.1 and calculated a density of 0.998 g/cm3. PHREEQC's method is quite new. It requires a large number of parameters, but it looks interesting. Regards, Brian Farrell Aqueous Solutions
  23. Dear GWB users, We are pleased to announce our latest maintenance release for GWB subscribers, GWB 14.0.1. The 14.0.1 update improves appearance of legend box in scatter data plots; fixes an issue when several ChemPlugin instances share an ion exchange dataset, resolves a reliability issue in pause/resume feature in X1t/X2t, updates Rxn's outblock feature, resolves basis swapping issue when using Davis-Leckie polydentate formalism, and provides fixes for all known issues. Update from 14.0.0 at no charge to ensure you have all the newest features and bug fixes. Existing installations should automatically update to this release, unless auto-update is disabled. In that case, users should update their installations from the Help menu of any GWB app. Regards, Brian Farrell Aqueous Solutions
  24. Dear GWB users, We are pleased to announce our latest maintenance release for GWB12, GWB 12.0.6. The 12.0.6 update improves the appearance of the legend box in scatter data plots; fixes an issue when several ChemPlugin instances share an ion exchange dataset, resolves a reliability issue in pause/resume feature in X1t/X2t, updates Rxn's outblock feature, and provides fixes for all known issues. Update from 12.0.0-12.0.5 at no charge to ensure you have all the newest features and bug fixes. Existing installations should automatically update to this release, unless auto-update is disabled. In that case, users should update their installations from the Help menu of any GWB app. Regards, Brian Farrell Aqueous Solutions
  25. Hi again, This issue was previously fixed with the release of GWB 14.0.0 for GWB subscribers. It is now available in the latest maintenance release for GWB12, 12.0.06. Regards, Brian Farrell Aqueous Solutions LLC
×
×
  • Create New...