Beruflich Dokumente
Kultur Dokumente
00
Release date: 1/4/2012
Significant changes in Upgrade 4.00
Modified the code to calculate the electrical conductivity of the water sample at 25C. The
output (*.out and *.EQP) reports the calculated conductivity and the conductivity imbalance
(SCI).
100
The electrical conductivity is calculated using the method of McCleskey and other (2011). The
method is based on new measurements reported by McCleskey (2011).
OPEN-FILE REPORT
OF THE UNITED STATES GEOLOGICAL SURVEY
User's manual for WATEQ4F, with revised thermodynamic data base
and test cases for calculating speciation of major,
trace, and redox elements in natural waters
By James W. Ball and D. Kirk Nordstrom
Open-File Report 91-183
U.S. Geological Survey
July, 1991
****************************************
DEPARTMENT OF THE INTERIOR
MANUEL LUJAN JR., Secretary
U. S. Geological Survey
Dallas L. Peck, Director
****************************************
===============
VERSION HISTORY
===============
See the extensive comment section at the beginning of the WATEQ4F source code for
complete details of software modifications.
******************************************************************************
March, 1991: Version 2.00 Upgrade of WATEQ4F includes selenium and uranium species,
coupled redox reactions, and data base compatible with that of Nordstrom and others (1990).
Open-File Report 91-183 published July, 1991, describing Version 2.00.
******************************************************************************
October, 1991: Version 2.10 Upgrade of WATEQ4F corrects several errors in the Version 2.00
code.
******************************************************************************
September, 1992: Version 2.20 Upgrade of WATEQ4F includes interactive specifying of input
and output file names, and free-format input of individual lines of water analysis input data.
Compiler changed to Lahey F77L.
******************************************************************************
September, 1993: Version 2.21 Upgrade of WATEQ4F corrects a few minor errors in the source
code and modifies the code slightly to make it a bit more robust.
******************************************************************************
August, 1994: Version 2.22 Upgrade of WATEQ4F corrects errors in the activity product
calculations for 7 minor minerals.
******************************************************************************
September, 1995: Version 2.30 Upgrade of WATEQ4F adds
1. Capability for WATEQ4F to execute from a network (non-writable) drive. This modification
consists of querying the user for a default path to which writing to disk is permitted. Code was
added at all places where writing to disk is possible, to specify the path of a writable disk and
directory.
2. A check for existence of the user's input water analysis data file in the writable path.
******************************************************************************
May, 1998: Version 2.31 Upgrade of WATEQ4F adds calculation and printing of input versus
calculated conductance imbalance.
******************************************************************************
November, 1999: Version 2.40 Upgrade of WATEQ4F adds modification of subroutine INPUT
to read data saved from an Excel spreadsheet in comma-separated format. A specific spreadsheet
format is required, and data items must be in a specific order (See Creating WATEQ4F Input
Files above).
December, 1999: Changed Log K and delta H for jarosite, reaction 205, per Baron and Palmer
(1996, GCA 60[185]) as follows:
Log K from -9.21 1.1 to -11.0 0.3; delta H from -31.28 to -45.0
(Modifications needed for TABLE2 only)
January, 2000: Added analytical expression for Log K for BaSO4(aq), reaction 543, per Monnin
(1999, Chem Geol 153[187]) as follows:
Log K = 2.8243-166.629/T; at 298.15K: log K = 2.265, delta H = 0.762 kcal mol-1
******************************************************************************
March, 2000: Version 2.41 Upgrade of WATEQ4F adds modification of subroutine OUTPCH to
generate a file of semicolon-separated plotting parameters suitable for opening by Microsoft
Excel. Removed output of log AP values for minerals, to decrease the size of the file so that it
could be accommodated by Excel's maximum of 230 columns.
******************************************************************************
July, 2000: Version 2.42 Upgrade of WATEQ4F adds total and speciated ionic strength to the
Excel output file.
******************************************************************************
January, 2001: Version 2.43 Upgrade of WATEQ4F adds capability to read and discard an initial
data record from the input file. This allows leaving the header record in the .CSV file for easier
subsequent data modifications.
Added equivalents per million cations and equivalents per million anions to the Excel output file.
******************************************************************************
August, 2002: Version 2.44 Upgrade of WATEQ4F adds revision of thermodynamic data for
arsenic hydrolysis species and oxide and sulfide minerals, and addition of two new aqueous
thioarsenite species and the mineral phase amorphous orpiment, per Nordstrom and Archer
(2002). Source code was modified to add calculations for the three new species and modify the
stoichiometry for the arsenolite and claudetite activity product calculations.
Removed capability for WATEQ4F to execute from a network (non-writable) drive. WATEQ4F
now reads from and writes to only the drive and directory from which it is executed.
Changed the name of the default input file to WATEQ4F.CSV from WATEQ4F.DAT.
Changed output to the spreadsheet-compatible file to output trace elements in milligrams per
liter, rather than micrograms per liter, to be consistent with other output data.
******************************************************************************
October, 2002: Version 2.45 and 2.46 Upgrades of WATEQ4F add the capability to specify,
external to the computer code, the list of minerals, dissolved species activities, and dissolved
component concentrations written to the spreadsheet-compatible output file. Modify input files
TABLE5, TABLE6, and TABLE7, respectively, to specify the lists.
******************************************************************************
April, 2003: Version 2.47 and 2.48 Upgrades of WATEQ4F update thermodynamic data for
kAs/As3, As2O5 (Nordstrom and Archer, 2002), AlSO4+, and Al(SO4)2 - (Nordstrom et al,
1990) species. Adds microcrystalline gibbsite mineral species (index #651). Removes duplicate
input of DOC from the input data. NOTE that earlier datasets are NOT compatible.
******************************************************************************
July, 2003: Version 2.49 Upgrade to WATEQ4F restores the '****' end-of-file flag to correctly
terminate execution when reading the .CSV file. WATEQ4F otherwise continued reading blank
records. Adds code to trap and fix lowercase concentration units input. Program now accepts
'mg/l', 'mg/L', 'ppm', 'mmol', and 'mol' units on input. Fixes a minor error in OUTPCH, wherein
values tested for writing to the spreadsheet compatible output file had to be greater than -100.
Values now must be greater than -1000. This error caused charge and conductance imbalances
less than -100 to be discarded.
******************************************************************************
August, 2003: Version 2.60 Upgrade to WATEQ4F uses a new compiler, Lahey/Fujitsu Fortran
95 Express, Version 5.7. The delimiter for the spreadsheet output file has been changed to a TAB
from a semicolon; this facilitates reading the file into Excel. The maximum number of aqueous
complexes or mineral species that can be chosen for the spreadsheet output file has been
increased to 250 (the Excel limitation of 237 still applies, however). A Y2K-compatible date and
time function has been implemented. Several minor errors were corrected. V was being input and
output as Hg it is now V. The character string containing the sample description has been
lengthened to allow the sample collection date to be appended to it.
******************************************************************************
October, 2003: Version 2.61 Upgrade to WATEQ4F removes the H4AsO4+ species from the
aqueous speciation calculations. The species is now thought not to exist.
******************************************************************************
December, 2003: Version 2.62 Upgrade to WATEQ4F significantly revises the spreadsheet
output features.
******************************************************************************
May, 2004: Version 2.63 Upgrade to WATEQ4F adds the version number and execution date
and time to the top of the printed output file.
******************************************************************************
WATEQ4F, VERSION 3.00
1. Added subroutine CHROME to include Cr speciation in the model.
2. Added Cr mineral species to the model
******************************************************************************
During execution, WATEQ4F will display on the screen the title of each problem defined in the
input file as it works on that particular problem.
WATEQ4F automatically gets the time and date of the simulation run from the computer and
writes this time and date stamp in the first few lines of the output file. Of course, if your
computer does not maintain the correct time and date, these will also be incorrect in your
output file. The calls to the computer's time and date are specific to Lahey/Fujitsu Fortran
95 Express, and take place in subroutine SOLUTS. If you want to recompile WATEQ4F
with a different compiler, simply delete or comment out the section that uses the call to
subroutine DATE_AND_TIME in SOLUTS.FOR, or substitute similar code appropriate
to your microcomputer FORTRAN compiler.
REFERENCES
Ball, J. W., and Nordstrom, D. K., 1991, User's manual for WATEQ4F, with revised
thermodynamic data base and test cases for calculating speciation of major, trace, and
redox elements in natural waters: U.S. Geological Survey Open-File Report 91-183, 189
pp. (revised and reprinted August 1992).
Nordstrom, D. K., Plummer, L. N., Langmuir, Donald, Busenberg, Eurybiades, May, H. M.,
Jones, B. F., and Parkhurst, D. L., 1990, Revised chemical equilibrium data for major
water-mineral reactions and their limitations In Melchior, D.C., and Bassett, R.L., eds.,
Chemical modeling in aqueous systems II: Washington D.C., American Chemical
Society Symposium Series 416, pp. 398-413.
Nordstrom, D.K., and Archer, D.G., 2002, Arsenic thermodynamic data and environmental
geochemistry In Welch, A.H. and Stollenwerk, K.G., eds., Arsenic in groundwater:
Kluwer, in press.
McCleskey, R.B., Nordstrom, D.K., Ryan, J.N., and Ball, J.W., 2011, A New Method of
Calculating Electrical Conductivity With Applications to Natural Waters (in press):
Geochimica et Cosmochimica Acta.
[http://www.sciencedirect.com/science/article/pii/S0016703711006181]
McCleskey, R.B., 2011, Electrical conductivity of electrolytes found in natural waters from (5 to
90) C: Journal of Chemical & Engineering Data, v. 56, p. 317-327.
[http://dx.doi.org/10.1021/je101012n]
*** WARNING ***
Although WATEQ4F has been used by the U. S. Geological Survey, no warranty, expressed or
implied, is made by the USGS as to the accuracy or functioning of the programs and related
program materials nor shall the fact of distribution constitute any such warranty, and no
responsibility is assumed by the USGS in connection therewith.