haotianblog
GITT Diffusion Coefficient Analyser
Search
Ask the AI

GITT Diffusion Coefficient Analyser

Turn the time, current and potential data of a GITT (galvanostatic intermittent titration) experiment into a solid-state diffusion coefficient D for every pulse, each labelled with the result of a set of validity checks. The fit uses the exact solution of diffusion in a spherical particle (or a dense film) rather than the textbook short-time formula, and the result exports directly as a PyBaMM diffusivity function.

Nothing is uploaded. Parsing, fitting, plotting and export all run in your own browser. The tool’s only network request is the download of the example file from this site, when you press “Load example data”.

What GITT measures

GITT splits a charge or discharge into many small steps. Each step passes a constant current I for τ seconds (one pulse), then switches off and waits for the potential to relax to equilibrium, so the equilibrium potential moves from E0 to E4. How fast the potential moves during the pulse and the rest that follows depends on how fast lithium diffuses in the solid particle, and those transients are where D comes from.

Potential during one GITT step: rest potential E0, a jump to E1 at switch-on, E2 at the end of the pulse, a drop to E3 at switch-off, relaxation to E4 E₀E₁E₂ E₃E₄ ΔEtΔEs τI Et IRIR
One pulse and one rest (schematic, delithiation). ΔEs is the difference between the relaxed potentials before and after; ΔEt is the change while the current flows, after the IR step.

The formula and its symbols

The classic Weppner–Huggins expression (Nickol et al. 2020 write its sphere form, with V/S = r/3, as their Eq. 11):

$$D=\frac{4}{\pi\tau}\left(\frac{V}{S}\right)^{2}\left(\frac{\Delta E_s}{\Delta E_t}\right)^{2}$$
  • \(\tau\): pulse duration (s).
  • \(V/S\): volume of the active material divided by the surface it exposes to the electrolyte (m). The original writes \(m_B V_M/(M_B S)\), where \(m_B V_M/M_B\) is exactly the active volume \(V\).
  • \(\Delta E_s=E_4-E_0\): the difference between the relaxed potentials before and after the pulse, i.e. the change of the equilibrium potential over the step.
  • \(\Delta E_t=E_2-E_1\): the change while the current flows, starting from the first sample after switch-on (after the IR step).
  • Condition: \(\tau\ll L^2/D\), a pulse short enough that the lithium does not yet “see” the far side of the particle.

There is also a slope form. While the current flows, \(E\) is roughly a straight line in \(\sqrt{t}\) with slope \(m=\mathrm{d}E/\mathrm{d}\sqrt{t}\), and

$$D=\frac{4}{\pi}\left(\frac{V}{S}\cdot\frac{\Delta E_s}{\tau\,m}\right)^{2}$$

D is in m²/s. Much of the literature quotes cm²/s, a factor of 104 apart: 10−11 cm²/s is 10−15 m²/s. PyBaMM uses m²/s.

The geometry factor: one length, a factor of 9

D is proportional to \((V/S)^2\), so any error in the length is squared. For a spherical particle of radius R,

$$\frac{V}{S}=\frac{\tfrac{4}{3}\pi R^{3}}{4\pi R^{2}}=\frac{R}{3}$$

Using R itself as V/S is a common mistake. The table gives the D that the same data yield with different “lengths”, relative to the correct value (the particle radii and surface areas in the last rows are those reported by Nickol et al. 2020 for an NCM523 electrode, Table I):

Length or area usedD relative to the correct value
V/S = R/3 (sphere, correct)1x
Radius R9x too large
Diameter d36x too large
d/34x too large
Secondary-particle radius 5 µm vs primary 0.25 µm (which one applies depends on whether the electrolyte penetrates the secondary particles)400x apart
BET area of the electrode as S (1.62 m²/g, against 0.13 m²/g for 5 µm spheres)about 155x too small
Geometric (footprint) electrode area as Stoo large by \((3\varepsilon_{am}L_{el}/R)^2\): hundreds of times for a typical porous electrode

So geometry and size have no default in this tool, and the length actually used is printed above the results. For a dense film with one face to the electrolyte, V/S is simply its thickness L.

Note also that what GITT really measures is \(D/R^2\); D itself depends on the R you assume. To use the result in a model whose particle radius is R′, rescale it as \(D^{\prime}=D\,(R^{\prime}/R)^2\). The exported PyBaMM code says so in its comments.

Even with the right length, the classic formula reads low on spheres

The formula is the short-time solution for semi-infinite diffusion. The surface of a sphere runs ahead of it because each shell holds less lithium the closer it is to the centre. The exact change of surface concentration of a sphere at constant current (\(j\) the current density at the particle surface, in units of \(jR/(DF)\)) is

$$f_{\mathrm{sph}}(x)=3x+\frac{1}{5}-2\sum_{n=1}^{\infty}\frac{e^{-a_n^{2}x}}{a_n^{2}}$$

Here \(x=Dt/R^2\) and \(a_n\) is the n-th positive root of \(\tan a_n=a_n\) (\(a_1\approx 4.4934\)). The short-time expansion is \(f_{\mathrm{sph}}\approx 2\sqrt{x/\pi}+x\). The first term is the \(\sqrt{t}\) law the classic formula relies on; the \(+x\) is the spherical correction, and it makes the error arrive earlier than intuition suggests. With \(\hat\tau=D\tau/R^2\), the classic formulas return the following fraction of the true D:

\(\hat\tau=D\tau/R^2\)W-H endpoint√t slope (fitted from 0.1τ to τ)
0.00320.900.87
0.020.770.70
0.10.540.44
0.250.350.26

Two concrete cases. A 10-minute pulse on a 5 µm particle with D = 10−15 m²/s has \(\hat\tau=0.024\), and the classic formula is already about a quarter low. The protocol of Chen et al. (2020) (τ = 150 s, R = 5.22 µm, with the D = 4×10−15 m²/s of PyBaMM’s Chen2020 positive electrode) gives \(\hat\tau=0.022\) and a reading of 0.76 of the truth. In the literature GITT experiments compiled by Kang and Chueh, most reports, converted to dimensionless time with their own D and length, extend beyond 0.25, which is past the usual safe limit of the semi-infinite assumption even for a planar system, and spheres fare worse.

For a slab (dense film) all these forms stay within 1% up to \(\hat\tau=0.1\); the problem is mainly a spherical one.

What this tool computes

Instead of the short-time approximation it fits the exact solution. The headline result comes from the relaxation after the pulse:

$$E(t_r)=b_r+K\left[f\big(\theta(t_r+\tau)\big)-f(\theta\,t_r)\right]$$ $$\theta=\frac{D}{L^{2}},\qquad K=\frac{\Delta E_s}{B(\theta\tau)}$$

Here \(t_r\) is the time since switch-off, \(f\) the exact sphere (or slab) solution, \(B\) the change of the bulk average (\(B=3x\) for a sphere, \(B=x\) for a slab) and \(L\) the radius or film thickness. The only free parameters are \(D\) and the offset \(b_r\): the amplitude is fixed by \(\Delta E_s\), and neither the current nor the electrode area enters. There is no current during the relaxation, hence no IR drop, so a resistance that changes during the pulse does not bias it. The fit window starts 5% of τ after switch-off, by which time the double-layer transient has normally died away; Nickol et al. found it under 1 s above 0 °C at medium lithiation, but 30–100 s below −10 °C at x > 0.9, where it can still overlap the window. The fit scans 121 grid points in \(\log_{10}D\) and refines by golden section; if the optimum lands on the edge of the grid or the 95% profile interval is unbounded, the table says “not identified” rather than printing a number. When the relaxation carries too little information, the same model is fitted to the pulse instead, and the pulse’s detail says why.

A larger source of error than geometry is the curvature of the OCV. During one pulse the particle surface moves \(f/B\) times as far in stoichiometry as the bulk average, about 3x at \(\hat\tau=0.02\), and more for shorter pulses. Treating the OCV as a straight line over that range put the relaxation fit at 0.26–4.75x of the truth, pulse by pulse, on synthetic NMC811 data with a known D, and at 0.08–6.2x on graphite. So by default the model’s surface state is mapped to a potential through the measured OCV (the relaxed potential at the end of every rest, PCHIP-interpolated) before it is compared with the data. On the synthetic NMC811 and graphite runs, the worst pulse that passes every check is 5.6% and 9.7% off respectively. Pulses that warn or fail can still be off by several times (graphite plateaus, OCV extrapolated past the last rest), so a D is only as good as its checks. The linear-OCV result of the reference implementation is one switch away under “Advanced”.

Before any calculation the tool tests itself on built-in data with a known answer (the exact-solution values, the finite-size factors, the whole analysis chain) and computes nothing if any check fails. That lesson comes from this site’s EIS fitter: the most dangerous failure of a fitter is quietly returning a wrong number that looks normal.

How ΔEs and ΔEt are measured

  • E0 and E4: a least-squares line through the last 10% of each rest, evaluated at the end of the rest, rather than the last sample. Its standard error gives the uncertainty of ΔEs. D goes as ΔEs², so a 1% error in ΔEs is 2% in D: with ΔEs = 0.8 mV and 0.2 mV of noise the median error in D was 26%.
  • E1: the first sample with current on. It is ill-defined in itself, because that sample comes one logging interval after the switch and already contains some diffusion. Moving E1 by one interval changed the classic D by 25% for 60 s pulses. So ΔEt is used only by the classic formulas; the tool’s own fits carry the IR drop in a free offset, and the relaxation has no current at all.
  • Switching time: cyclers log the step-boundary row on different sides, so the switching time itself is uncertain by half a logging interval. The tool takes the midpoint between neighbouring samples, refits with the switching time moved by half an interval either way, and reports the change of D as check C11 (about 5.7% for a 60 s pulse logged every second).
  • Direction comes from the potential: if it sits below E0 during the pulse, the pulse is a lithiation. The sign convention of the current, or a current without a sign, does not matter.

Conditions and common misuse

  • The potential must be the working electrode against Li/Li⁺. A full-cell voltage mixes two electrodes and nothing in the data can separate them, which is why the tool asks you to confirm it. A two-electrode half cell also carries the overpotential of the lithium counter electrode, worst at low temperature; use a three-electrode cell where you can.
  • The pulse must be short: \(\hat\tau\le 0.3\) is fine; towards 1 the potential becomes linear in time with a slope that does not depend on D, D cannot be identified, and the tool says so.
  • The rest must be long: an unrelaxed ΔEs is wrong, and D goes as its square. For spheres rest at least \(0.2R^2/D\), about 8–10 τ at \(\hat\tau=0.02\) and about 200 τ at \(\hat\tau=0.001\). On synthetic data, 300 s rests after 120 s pulses failed the relaxation check on 26 of 40 pulses, and the pulse-based D read 13–20% high.
  • Plateaus and two-phase regions: the single-phase diffusion model does not apply there, and the D has no physical meaning. A ΔEs under 1 mV is flagged (C1) and one of the wrong sign for the direction fails (C2).
  • Resistance changing during the pulse: when the charge-transfer resistance changes with state, every pulse-based D goes wrong silently. On synthetic data a 5% resistance drift put the pulse-based D off by 1.6–2.2x while the fit residual stayed near 1%; the relaxation fit was unaffected (check C8 compares the two).
  • One pulse spans a stoichiometry range: the surface sweeps several times the average step, and where D(x) is steep, which x a D belongs to is itself uncertain. The table gives the assigned position, the chart draws the range as a bar, and check C10 measures the problem. For more resolution, a smaller Δx per step helps more than a shorter pulse.
  • Different D in the two directions: Kang and Chueh show that a composition-dependent overpotential systematically makes pulse-based GITT read higher in one direction than the other, so a lithiation/delithiation difference is not by itself evidence of direction-dependent diffusion. The export takes one direction by default.
  • Porous electrodes can be reaction-limited: the result is then an apparent D of the spherical diffusion model, meaningful inside an SPM or DFN with the same radius, OCV and kinetics, not a material constant.
  • Parasitic currents at small pulse currents shift ΔEs; Kang and Chueh’s remedy is to repeat the measurement with at least three different currents. The tool does not handle this yet.

Every pulse goes through a set of checks (C1–C14, with C3 split into a model prediction and a measured drift); its status (ok, warn, fail) is the worst band among the checks that count, and each check’s value and thresholds are shown in the pulse’s detail. The main ones:

Checkokwarn
C1 signal-to-noise of ΔEs≥ 20≥ 10; |ΔEs| < 1 mV is at least a warning
C3 relaxation completeness (model residual)≤ 2%≤ 5%
C4 \(\hat\tau=D\tau/L^2\)≤ 0.3≤ 1
C5 width of the 95% interval≤ 0.3 decade≤ 1 decade
C6 fit residual≤ 2%≤ 5%
C8 relaxation-fit D over pulse-fit D1/1.5 to 1.5warn outside
C13 surface state outside the measured OCV≤ 2%warn above

“ok” means only that a pulse passed every check the data allow. The checks cannot see a full-cell voltage, a wrong particle radius, a reaction-limited electrode or a parasitic current, nor a wrong current unit (which moves the x axis, not D); the result is only as valid as those inputs and assumptions. A “warn” pulse can be off by a factor of two or more and should not be quoted on its own.

Input format

  • Three columns: time, current, potential, separated by commas, semicolons, tabs or spaces (detected automatically). Decimal commas, preamble lines, a separate units row under the header, text columns such as a step type, and Chinese or English column names all work.
  • Units are read from the column names (s, min, h, ms; A, mA, µA, nA; V, mV), and time may be Neware-style [days-]hh:mm:ss text. Where a column name carries no unit the tool guesses from typical values and asks you to confirm below the column pickers: a current unit off by 1000 puts the stoichiometry axis off by 1000.
  • Time must be total time. Step time restarts at every step; the tool notices time going backwards, refuses, and asks for the other column.
  • Pulse detection: a run of samples with |I| above 10% of the maximum and a constant sign, at least 3 samples long, with at least 3 rest samples before and after, τ/Δt ≥ 20 and at least 8 samples in the fit window. Pulses that miss any of these are skipped, with the reason.
  • Geometry and size are required. Stoichiometry mapping is optional: the starting x, plus either the charge per unit x, Qx (mAh), or the final x, or the PyBaMM parameters \(c_{\max}\), \(\varepsilon_{am}\), electrode area and thickness (\(Q_x=F c_{\max}\varepsilon_{am}A L_{el}/3.6\)), or the active mass times the specific charge per unit x. Without it the x axis is the SOC of the titration window.

Output

  • D against stoichiometry: colour gives the status, the vertical bar the 95% interval (fit profile, noise in ΔEs, OCV interpolation sensitivity and an empirical floor of 0.025 decade, combined), and the horizontal bar the range the particle surface swept during that pulse. The classic W-H values can be overlaid for comparison.
  • Per-pulse table: direction, position, τ, \(\hat\tau\), ΔEs, ΔEt, D, 95% interval, method, status and the checks that did not pass.
  • Pulse detail: E against \(\sqrt{t}\) for the pulse and against \(u=\sqrt{t_r+\tau}-\sqrt{t_r}\) for the relaxation, with both fits and their residuals; the D from every estimator on that pulse, including the classic forms and the bias predicted for them at that \(\hat\tau\); every check’s value.
  • Downloads: CSV (about 60 columns per pulse, every intermediate quantity included), JSON (with the inputs and the self-test result) and PyBaMM code, all generated in the browser.

Export to PyBaMM

In PyBaMM 26.5 the parameters are Positive particle diffusivity [m2.s-1] and Negative particle diffusivity [m2.s-1], called as a function f(sto, T) where sto is the x used here. The exported code looks like this:

def gitt_particle_diffusivity(sto, T):
    # hold the end values outside the measured stoichiometry window
    x = pybamm.maximum(pybamm.minimum(sto, float(_gitt_sto[-1])), float(_gitt_sto[0]))
    log10_D = pybamm.Interpolant(_gitt_sto, _gitt_log10_D, x,
                                 name="gitt_log10_D", interpolator="linear")
    return 10 ** log10_D

parameter_values["Positive particle diffusivity [m2.s-1]"] = gitt_particle_diffusivity
  • One direction, ok pulses only (warn pulses can be included), sorted by x, with duplicate x merged. PyBaMM’s Interpolant accepts duplicate x but rejects decreasing x.
  • log10D is interpolated linearly: across several decades a cubic in D overshoots.
  • End values are held outside the measured range: by default the Interpolant extrapolates without bound.
  • The comments state the radius used and the rescaling \(D^{\prime}=D\,(R^{\prime}/R)^2\), the temperature, the estimator and the stoichiometry inputs. The stoichiometry mapping must use the \(c_{\max}\) and active volume of the target parameter set, or the x axes will not match.
  • Half-cell models only allow a positive working electrode, so a graphite half-cell result goes in the Positive slot there and in the Negative slot of a full cell. Multi-phase parameter sets take a prefix such as Primary: . An optional activation energy adds an Arrhenius factor.
  • If you validate an export by re-simulation, refine PyBaMM’s particle mesh: the default 20 radial points distort GITT transients enough that a fit to the simulated data returns 0.87 of the true D (0.98 with 400 points).

On a 40-pulse synthetic titration with a known D(x) (PyBaMM SPM, Xu2019 OCV), the default export (ok pulses only) was 0.89–1.02 of the true D inside the measured range. The low end lies in a stretch where the D(x) gradient check (C10) left only warn pulses and the export interpolates across the gap; with warn pulses included it was 0.95–1.03. Put back into PyBaMM, the export reproduced the whole GITT with an RMS potential error of 0.15 mV (0.07 mV with warn pulses), against 1.04 mV for an export built from the classic W-H formula. The same code in the positive slot of ParameterValues("Chen2020") solved a 1C DFN discharge normally.

Example data

“Load example data” downloads a synthetic GITT file (about 0.5 MB of plain text; its first lines state where it comes from). It is not a measurement. It was generated with an independent finite-volume solver for diffusion in a sphere: the NMC811 OCV of PyBaMM’s Chen2020 set, R = 5 µm, a constant D = 1.0×10−15 m²/s, 20 ten-minute delithiation pulses each followed by a 1.5-hour rest, x from 0.87 down to 0.27, Qx = 4 mAh, plus a 15 Ω series resistance, an 8 Ω / 5 s RC element and 0.3 mV of potential noise quantised to 0.1 mV.

On it the tool reports 14 ok pulses, 4 warnings and 2 failures. The 14 ok pulses give 0.986–1.011 of the true D. On the same 14 pulses the classic W-H formula returns 0.49–0.94 (its predicted finite-size bias at this \(\hat\tau\) alone is 0.75), and the linear-OCV relaxation fit 0.73–1.30. In the last two pulses the surface leaves the measured OCV range (C13); the second-to-last also fails the D(x) gradient check (C10) and the last one is not fully relaxed (C3), so both are marked fail.

Privacy

Your file is read locally with the browser’s FileReader; data and results exist only in the current tab and are gone when you close it. Nothing is sent back to the server, and the CSV, JSON and PyBaMM downloads are generated in the browser. The only network request is the one you trigger yourself by loading the example file above.

References

  1. W. Weppner, R. A. Huggins, Determination of the Kinetic Parameters of Mixed-Conducting Electrodes and Application to the System Li3Sb, J. Electrochem. Soc. 124 (1977) 1569–1578. doi:10.1149/1.2133112 (the equations on this page follow the restatements in Nickol et al. 2020, Eqs. 8–11, and Kang and Chueh 2021, Part I, Eq. 2)
  2. S. D. Kang, W. C. Chueh, Galvanostatic Intermittent Titration Technique Reinvented: Part I. A Critical Review, J. Electrochem. Soc. 168 (2021) 120504. doi:10.1149/1945-7111/ac3940
  3. S. D. Kang, J. J. Kuo, N. Kapate, J. Hong, J. Park, W. C. Chueh, Galvanostatic Intermittent Titration Technique Reinvented: Part II. Experiments, J. Electrochem. Soc. 168 (2021) 120503. doi:10.1149/1945-7111/ac3939
  4. A. Nickol, T. Schied, C. Heubner, M. Schneider, A. Michaelis, M. Bobeth, G. Cuniberti, GITT Analysis of Lithium Insertion Cathodes for Determining the Lithium Diffusion Coefficient at Low Temperature: Challenges and Pitfalls, J. Electrochem. Soc. 167 (2020) 090546. doi:10.1149/1945-7111/ab9404
  5. C.-H. Chen, F. Brosa Planella, K. O’Regan, D. Gastol, W. D. Widanage, E. Kendrick, Development of Experimental Techniques for Parameterization of Multi-scale Lithium-ion Battery Models, J. Electrochem. Soc. 167 (2020) 080534. doi:10.1149/1945-7111/ab9050 (PyBaMM’s Chen2020 parameter set)
  6. A. E. Gümrükçüoğlu, J. Burridge, K. O’Regan, E. Kendrick, J. M. Foster, A fast and accurate method for inferring solid-state diffusivity in lithium-ion battery active materials, J. Energy Storage 153 (2026) 120831. doi:10.1016/j.est.2026.120831; preprint arXiv:2404.16658

Related tools and articles

Scroll down