Radiation Lab M-Phreefiteq
LAB OVERVIEW · M-PHREEFITEQ

A web geochemistry laboratory for
radionuclide migration in radioactive waste disposal

In the browser, with no installation – a quantitative analysis of the chain of geochemical mechanisms that controls radionuclide migration in deep geological disposal.

RedoxSpeciationSolubilitySorptionTransport
Cross-section of a deep geological repository – a groundwater path through the strata to the disposal canister (multi-barrier system)

Origin of the name – three tools combined

Dissolved ions in a beaker and an input table – MINTEQ-style table input
M

MINTEQ input style

The simplicity of entering a chemical composition as if filling in a table. Calculation conditions are set up in a browser form, with no scripting.

Crystal lattice and ions inside a water droplet – PHREEQC aqueous chemistry calculation
P

PHREEQC calculation engine

The original native library distributed by the USGS performs every chemical calculation. It is not an approximate implementation.

Sigmoidal fitted curve passing through experimental points – FITEQL-style parameter estimation
F

FITEQL constant fitting

Reproduces on the web the tradition of statistically estimating surface complexation constants (log K) from experimental data.

The original programs – the story of three tools

The name M-Phreefiteq overlays three programs that shaped the history of geochemical modeling. This section sets out what each tool was and exactly how it relates to this laboratory.

PHREEQC U.S. Geological Survey · 1980–present

An aqueous geochemical calculation program developed by David Parkhurst of the U.S. Geological Survey (USGS); the name stands for pH–REdox–EQuilibrium (written in C). It started from its predecessor PHREEQE (Fortran) in 1980 and was rewritten as PHREEQC in 1995; version 2 (1999) added one-dimensional reactive transport and reaction kinetics, and version 3 (2013) added the Pitzer high-salinity model and the IPhreeqc module for coupling with other programs. Speciation, saturation indices, mineral equilibria, ion exchange, surface complexation, transport and inverse modeling – it is the de facto world standard in groundwater geochemistry and disposal safety assessment, and the USGS still maintains it as free, public software.

Its relationship with this laboratory is the most direct. Every chemical calculation behind the screen is performed by the original native IPhreeqc library (3.8.6) distributed by the USGS – it is not an approximate re-implementation, so the results obtained here are the same calculation as desktop PHREEQC.

Parkhurst, D.L. & Appelo, C.A.J. (2013) Description of Input and Examples for PHREEQC Version 3. USGS Techniques and Methods 6-A43.

FITEQL Westall · 1982–1999

A program for estimating equilibrium constantsreleased in 1982 by John Westall (MIT, later Oregon State University). It fits chemical equilibrium models to experimental data by nonlinear least squares to estimate log K – it was the first to standardize exactly what the M-Phreefiteq Fit laboratory does today. Many of the constants in 40 years of surface complexation literature were obtained with FITEQL, and the WSOS/DF convention of judging goodness of fit by weighted residuals also comes from this program. Maintenance stopped with the final version 4.0 (1999), and today it is a tool that is hard both to obtain and to run.

The Fit laboratory carries this workflow onto the web – it uses global optimization (differential evolution) instead of the classic algorithm that was sensitive to local convergence, and reports modern statistics such as R² and BIC alongside WSOS/DF.

Herbelin, A.L. & Westall, J.C. (1999) FITEQL 4.0: A Computer Program for Determination of Chemical Equilibrium Constants. Report 99-01, Oregon State University.

MINTEQA2 U.S. Environmental Protection Agency · 1991

Its lineage goes back to REDEQL (1972) at MIT and Westall's MINEQL (1976). The U.S. Environmental Protection Agency (EPA) combined these with a verified thermodynamic database and released MINTEQA2 (1991), which became the most widely used equilibrium speciation model in environmental regulation and contamination assessment. Its hallmark is a simple input style in which components are entered as if filling in a table, and its successor Visual MINTEQ (KTH, Sweden) carries on that tradition.

It connects with this laboratory in two ways. First, the table-style component input indicated by the M in the name; second, the laboratory bundles the EPA MINTEQA2 v4 thermodynamic database (minteq.v4.dat), so you can calculate directly with that data set.

Allison, J.D., Brown, D.S. & Novo-Gradac, K.J. (1991) MINTEQA2/PRODEFA2, A Geochemical Assessment Model for Environmental Systems. EPA/600/3-91/021.

In short – the simplicity of input comes from MINTEQ, the accuracy of calculation from PHREEQC, and the methodology of parameter estimation from FITEQL. The legacy of the three tools continues inside a single browser, with no installation.

Figure 1 – Radionuclide migration lifecycle (deep geological disposal) · stages ①–⑧

The full path of radionuclides disposed of several hundred meters underground until they reach the biosphere. Each stage is controlled by different environmental factors (temperature, pH, pe, ionic strength, minerals), and the numbers below match the diagram and the descriptions.

Well (drinking water)Biosphere (surface environment)Sealed access shaft0 m (surface)Depth ~500 mGroundwater flowCanisterDisposal tunnel – canister in bentonite bufferCanisterBentoniteRockMulti-barrier close-upBuffer zone(sharp boundary)Fracture transport and sorption zone (broad)Sorption sites – distributed over the whole zone①Groundwater inflow②Canister corrosion③Release④Speciation, redox⑤Buffer sorption⑥Fracture transport⑦Dilution⑧Biosphere, dose

Select a stage number in the diagram or a card below; the two are linked and highlight each other.

Support level key – the scope of M-Phreefiteq support for each stage (same marks as the colored circles next to the stage numbers in the diagram)
SupportedDark blue circle – the calculation can be run directly in M-Phreefiteq. The responsible page is named next to the mark.
Partially supportedLight blue circle – the geochemical processes can be calculated (for example, reducing conditions simulated through the pe input), but the coupled physical processes (thermo-hydraulic coupling, corrosion kinetics, regional 3D flow) are outside the supported scope.
Out of scopeGray circle – an adjacent field outside the scope of M-Phreefiteq. M-Phreefiteq results (concentrations, fluxes) are passed on as input data to the tools of that field.
  1. ①Groundwater inflow and resaturationPartially supported

    After closure, groundwater from the host rock slowly saturates the bentonite buffer. Decay heat keeps temperatures elevated for the first tens to hundreds of years, and as saturation proceeds the setting for chemical reactions develops.

    Controlling environmental factors: Temperature (decay heat) · degree of saturation (wetting) · groundwater composition · Temperature, ionic strength and composition can be entered; THM coupling is out of scope

  2. ②Disposal canister corrosion and failurePartially supported

    At depth the environment is oxygen-depleted and reducing – the canister (copper/cast iron) corrodes very slowly, but after hundreds to thousands of years it eventually fails and release begins. Corrosion reactions keep the surroundings even more reducing.

    Controlling environmental factors: Eh/pe (reducing) · sulfide · salinity · Reducing conditions simulated through the pe input; corrosion kinetics is out of scope

  3. ③Radionuclide release – source termSupported

    Radionuclides begin to dissolve in groundwater. The maximum dissolved concentration is set by the solubility limit – under reducing conditions Se, Tc, U and others are held to extremely low concentrations.

    Controlling environmental factors: pH · pe · temperature · competing ions · Calculator 🎯 auto-fit (solubility limit)

  4. ④Speciation and redox stateSupported

    Even for the same element, mobility differs greatly between species – SeO₄²⁻ is highly mobile while HSe⁻ is fixed in minerals. pH and pe determine the speciation, and speciation controls every subsequent stage.

    Controlling environmental factors: pH · pe · ionic strength · complexing ligands · Calculator speciation and SI

  5. ⑤Buffer sorption and diffusion retardationSupported

    The low permeability of the bentonite buffer blocks groundwater flow (diffusion-dominated), and surface sorption captures radionuclides and retards their migration. Sorption constants (log K) are the key input for the performance of this barrier.

    Controlling environmental factors: Buffer mineralogy and site density · porewater chemistry · Fit laboratory (parameter estimation) → Transport simulator 'buffer diffusion' mode (diffusion-dominated + sorption retardation)

  6. ⑥Near-field fracture transportSupported

    Trace amounts of radionuclides that pass the buffer migrate with groundwater flow in rock fractures – advection, dispersion and sorption act together, and the stronger the sorption, the later the arrival (retardation factor Rf).

    Controlling environmental factors: Flow velocity · dispersivity · sorption on fracture minerals · Transport simulator (1D advection–dispersion–sorption; decay included when a half-life is entered)

  7. ⑦Far-field dilution and natural attenuationPartially supported

    Over long transport distances radionuclides mix into the regional groundwater system and are diluted, and they are continuously attenuated by precipitation, sorption and decay. Only long-lived radionuclides remain at significant concentrations.

    Controlling environmental factors: Groundwater flow system · regional geochemistry · Geochemical reactions supported; regional 3D flow is out of scope

  8. ⑧Biosphere arrival and dose assessmentOut of scope

    When radionuclides reach the biosphere via wells, rivers and other routes, the dose to humans is assessed – this is the final stage of the safety assessment, and the geochemical results (concentrations, fluxes) are its input.

    Controlling environmental factors: Exposure pathways · lifestyle scenarios · Out of scope – M-Phreefiteq output is the input to dose assessment codes

In summary – M-Phreefiteq quantitatively calculates the core stages controlled by geochemistry (③–⑥) of the lifecycle, simulates the stages before release (①, ②) through environmental condition inputs, and treats regional flow and dose assessment (⑦, ⑧) as neighboring fields to which its output is passed as input.

How it works – four core functions

Equilibrium calculation Calculator

The entered water composition is converted into a PHREEQC SOLUTION input and the original engine calculates the equilibrium. Speciation, saturation indices and solubility limits (auto-fit) are all read directly from the engine output and displayed as they are.

Constant fitting Fit laboratory

A surface complexation model is fitted to experimental sorption edges to estimate log K. It runs in two stages, a global search (differential evolution) followed by precise convergence (least squares), and PHREEQC performs a forward calculation at every iteration, so the chemistry is always rigorous. Uncertainties (±), the correlation matrix and WSOS/DF are reported.

Transport prediction Transport simulator

PHREEQC TRANSPORT calculates a one-dimensional column (advection–dispersion–sorption) mode and a diffusion-dominated (buffer) mode. The breakthrough curve compared with a conservative tracer and the retardation factor (Rf) are key indicators in disposal safety assessment.

Constant library My constants DB

Constants estimated by fitting can be saved and reused immediately in the Transport simulator – the research cycle connects into a single flow.

Predict with literature DBExperimentFittingMy constants DBRe-predict
Basis for confidence
3.8.6Original USGS PHREEQC native engine – no in-house equations
88+27Automated engine and web tests run on every change
6Bundled thermodynamic DBs – source and version tracked by content fingerprint
12.69Literature log K reproduction example – checked against Dzombak & Morel (1990)
  • Golden tests – cases with a physically known answer, such as recovering the true values in the Se(IV)–magnetite fit and tracer arrival at 1 pore volume, are checked continuously.
  • Reproducible outputs – fitting results are provided as a PHREEQC SURFACE_SPECIES block as is, so they can be verified independently in desktop PHREEQC.

System architecture

The web interface and the calculation engine are separated. PHREEQC is a native program and fitting involves thousands of repeated calculations, so a dedicated calculation server separate from the web server is required. The browser always calls the same address, so you do not need to be aware of this structure.

The engine absorbs the notation differences (element and species names, supported features) among the six structurally different thermodynamic DBs – you only need to pick one from the list.

Bundled thermodynamic databases

DatabaseSourceFeatures
wateq4f.datUSGS WATEQ4FTrace elements such as Se and Fe – default
phreeqc.datUSGSStandard general-purpose
minteq.v4.datUS EPA MINTEQA2MINTEQ-compatible
llnl.datLLNLLarge thermodynamic data set
sit.datThermoChimie/NEASIT model, standard in radioactive waste work
pitzer.datUSGS PHRQPITZHigh salinity (no surface complexation)

Verification and validation (V&V)

Whether this laboratory's calculations are correct is checked by comparison, not by claim. The principle is simple – have an independent reference that we did not buildsolve the same problem, and see whether the answers agree. There are three layers of reference. First, when the official outputs of the official examples distributed by the USGS with PHREEQC (seawater speciation ex1, transport with cation exchange ex11) are recalculated with this service's engine and databases, the ionic strength, saturation indices and complex concentrations are identical to the official outputs. Second, when the 25 measuredCs–illite sorption isotherm points published in Nagra Technical Report NTB 99-04 (Poinssot, Baeyens and Bradbury, 1999, Switzerland) are refitted through the Fit laboratory pipeline, the published selectivity coefficients log K 6.95 (FES) / 3.60 (type II) are recovered within ±0.1 (R² 0.98). Third, the transport and input assembly layers were checked against a separately written numerical solution independent of PHREEQC (finite-difference diffusion) and hand-written PHREEQC inputs.

Independent referenceItem verifiedResult
Official USGS distributed outputs (ex1, ex11)Engine + all thermodynamic DBsAll items identical
Nagra NTB 99-04 measured isothermFitting pipelinePublished constants recovered within ±0.1 · R² 0.98
Hand-written PHREEQC input (diff comparison)Input assembly layerAgreement to machine precision
Independent finite-difference numerical solutionTransport (diffusion) layerAgreement within 2.7%
Batch equilibrium theoretical value (Rf)Transport retardation indicatorAgreement within 1.5%

All of the comparisons above are fixed in the repository as automated tests (147 engine tests), and CI reruns them every time the code changes – verification is not a one-time snapshot but a regression gate that is always running. The full validation report, including the history of defects found and fixed, is published in the repository at docs/12-validation-review.md. The version history records corrections and their effect on earlier results.

Limitations

  • The engine is validated against the official USGS PHREEQC example outputs (ex1, ex11) and the measured Cs–illite isotherm of Nagra NTB 99-04; it is not yet V&V for licensing — it has not been through the verification and validation required of safety assessment codes, so use the results for research, teaching and preliminary review only.
  • Because of the free hosting plan, the engine goes into standby after 15 minutes without use, and restarting on the first request takes about 1 minute.
  • Surface complexation models supported are NEM, DDL and CCM. TLM is not a native PHREEQC feature and there are no plans to support it; CD-MUSIC is on the roadmap.
  • Transport calculations support two modes, advection–dispersion (column) and diffusion-dominated (buffer), and radioactive decay (half-life input). Daughter chains are not tracked – only the parent radionuclide mass decays.
  • My constants DB is stored in the browser you are using – back it up with [Export to file] in the Fit laboratory.
  • The reliability of the results depends on the validity of the inputs – final interpretation requires expert judgment.

Terminology: sorption is used as the general term for uptake on solids; inputs to the solution composition are called components (elements), and the subjects of radioactive transport are called radionuclides.

Maintainer

This tool is built and maintained in a personal capacity by one person who works at a nonprofit organization in the radiation field. It is not a program issued or endorsed by that organization, and the organization bears no responsibility for the content of this site. If a result looks wrong or you see something to fix, your message goes directly to that person — contact@radiation-lab.com.