# Diavolumes and removal in constant- or variable-volume diafiltration, version 1.0.1

diafiltration\@1.0.1: this version's equations with their symbols, each constant's value, their sources and whether each was read, a worked example where the record holds one, its level and what it was checked against, the number of cases, and what was not checked. This version's record is not rewritten; a correction is added under Changes.

## What this page can and cannot show

**Level: Checked against a reference; Lorenzi 2016 eqs. (2), (9), (10); agrees with their appendix table, p. 37; constant S, no Donnan. Reference kind: our own exact-arithmetic script and a hand-worked case; the source's own worked example, the printed table, and Python fractions and mpmath for the values it does not print, mpmath 1.4.1; Python 3.13.18.**

Checked by this project, not independently reviewed. Every method on this page has its equations, constants, sources and cases on record, and its cases agree with the stated reference within the stated tolerance. A reader can follow each method's worked example by hand; that shows the stated method gives the stated answer for one set of inputs, and does not test the code. The other cases and their values are not printed, so a reader cannot re-run these checks. No independent scientist has yet reviewed them.

[Every version of this method](https://www.drybench.com/methods/m/diafiltration) · [Every method](https://www.drybench.com/methods/m) · [What the levels mean](https://www.drybench.com/methods/levels)

## Version 1.0.1

**Level: Checked against a reference; Lorenzi 2016 eqs. (2), (9), (10); agrees with their appendix table, p. 37; constant S, no Donnan. Reference kind: our own exact-arithmetic script and a hand-worked case; the source's own worked example, the printed table, and Python fractions and mpmath for the values it does not print, mpmath 1.4.1; Python 3.13.18.** `diafiltration@1.0.1`

Built, not hosted. Generated from a snapshot of the library's records taken on 2026-11-25, as committed on 2026-11-25. A later snapshot replaces this one, so these records and this page can change.

**Verification statement:** Lorenzi et al. 2016 eq. (2) at constant volume and eqs. (9), (10) at variable volume, re-read at source 14 November 2026; the mass balance was re-derived for this project. Both modes agree with Lorenzi's appendix table to its four printed decimals. Every output compared with a second implementation in Python by a separate agent of the same model family (47 cases, 30 at the edges) and checked with mpmath at 50 digits.

Diavolumes for a removal target, or removal after N diavolumes, at a constant sieving coefficient: C/C0 = exp(-N S) at constant volume; the retentate mass balance at a diafiltration-to-permeate flow ratio a otherwise.

- **How results are reported:** none: full double precision, no rounding
- **Uncertainty:** Arithmetic on the values supplied; no uncertainty is propagated from them.
- **Reference, as its record states it:** Lorenzi et al. 2016's appendix table (p. 37), and mpmath at 50 digits on their equations
- **Level confirmed by this project's ruling of** 14 November 2026

[What this page can and cannot show](#what-this-page-can-and-cannot-show)

### What was checked

131 cases in 3 files, linked by this exact version.

Run through the tool at build against our own exact-arithmetic script and a hand-worked case; the source's own worked example, the printed table, and Python fractions and mpmath for the values it does not print, mpmath 1.4.1; Python 3.13.18: 111 agree within the tolerance the file states, 20 refuse as the case expects, 0 differ, 0 were not run.

- **File 1, 19 cases**
  - **Where the expected values came from:** our own exact-arithmetic script and a hand-worked case
  - **Recorded on:** 2026-11-10
  - **Reference:** mpmath and Python fractions, mpmath 1.4.1; Python 3.13.18; licence BSD-3-Clause
  - **Tolerance as the file states it:** relative 1e-12 on diavolumes and volume ratio (absolute 1e-18 below 1e-6 in each value's own unit); absolute 1e-12 on remaining and removed fractions; statuses and codes exact

- **File 2, 47 cases**
  - **Where the expected values came from:** our own exact-arithmetic script and a hand-worked case
  - **Recorded on:** 2026-11-14
  - **Reference:** second implementation (Python 3.13), 2026-11-14; licence BSD-3-Clause
  - **Tolerance as the file states it:** diavolumes and fractions relative 1e-14 (absolute 1e-304 below 1e-290, in each value's unit); statuses and codes exact

- **File 3, 65 cases**
  - **Where the expected values came from:** the source's own worked example, Lorenzi R, Raghunath B, Mok Y, Chan K. Simulation of process performance on contaminant removal using constant and non-constant volume diafiltration modeling. BioProcessing J 2016;15(2):30-37, doi:10.12665/J152.Lorenzi; appendix table, p. 37, 'Theoretical Calculated Yield for R = 0 (full passage of contaminants)', printed to four decimals
  - **Recorded on:** 2026-11-14
  - **Reference:** the printed table, and Python fractions and mpmath for the values it does not print, mpmath 1.4.1; Python 3.13.18; licence BSD-3-Clause
  - **Tolerance as the file states it:** absolute 5e-5 on the removed fraction (half a unit in the fourth printed decimal); relative 1e-12 on the echoed diavolumes, the volume ratio and the remaining fraction, which are worked here (absolute 1e-18 below 1e-6 in each value's unit); statuses and codes exact

Apart from the worked example, the cases and their values are not printed here. This shows agreement with this project's recorded cases. It does not show that a method suits your work, and it is not a qualification.

### What was not checked

Donnan and binding effects that change the sieving coefficient; discontinuous diafiltration; the paper's experimental data were not refitted. Outputs are held at relative 1e-14, not to the last bit: near an empty retentate (a = 0.75, N = 3.999999) the remaining fraction is 4 ulps from the exact value. A percentage is converted from its shortest decimal (kit, Exact conversion); 100.00000000000001 % and 99.9 % were left out of the second implementation's fixture for that reason.

### Definition or model

A closed form: the result follows from the inputs by the equations alone.

### Equations

**Equation 1**

```equation
C/C0 = exp(-N S)
removed = 1 - C/C0, so N = -ln(1 - removed) / S
```

| Symbol | Meaning and unit |
| --- | --- |
| C | concentration after N diavolumes, g/L |
| C0 | initial concentration, g/L |
| N | diavolumes, buffer added over retentate volume, DV |
| S | sieving coefficient |

Source: Lorenzi R, Raghunath B, Mok Y, Chan K. Simulation of process performance on contaminant removal using constant and non-constant volume diafiltration modeling. BioProcessing J 2016;15(2):30-37, equation (2), p. 31, version of record (the journal's PDF, Summer 2016); read in full on 2026-11-10 by an AI-assisted session; not yet checked by a person. Read from the file itself, SHA-256 beginning 4bbad8690ab6. Free to read (free to download; BioProcessing Journal keeps copyright, all rights reserved, republication by permission (its open access policy, bioprocessingjournal.com/pdf/openaccess.pdf); no open licence), checked 2026-11-11. No erratum found (searched Crossref works record (updated-by, update-to, relation), Crossref filter updates:\<doi> (no notice points at it; includes the Retraction Watch data), the article page at bioprocessingjournal.com), 2026-11-11.

**Equation 2**

```equation
V/V0 = 1 + N (a - 1)
M/M0 = (V/V0)^(-S/(a - 1)), a > 0, a != 1. N follows the text's qp t/V0
the appendix legend prints qd t/V0, and the appendix table follows qp. The refusals are decided in this order: in variable-volume mode a = 1 (USE_CONSTANT_VOLUME_MODE), then a = 0 (USE_UF_CONCENTRATION), then S = 0 when solving for diavolumes (SPECIES_FULLY_RETAINED), then 1 + N(a - 1) <= 0 (RETENTATE_VOLUME_EXHAUSTED)
in constant-volume mode SPECIES_FULLY_RETAINED is the only refusal. Lorenzi's appendix table (p. 37) prints a yield of 1.0000 at a = 0.8, N = 5, where 1 + N(a - 1) = 0
the method refuses that point as RETENTATE_VOLUME_EXHAUSTED.
```

| Symbol | Meaning and unit |
| --- | --- |
| V | retentate volume, L |
| V0 | initial retentate volume, L |
| N | permeate volume over initial volume (qp t / V0), reported in diavolumes, DV |
| a | diafiltration flow over permeate flow (qd/qp) |
| S | sieving coefficient (R = 1 - S) |
| M | solute mass in the retentate, g |
| M0 | initial solute mass in the retentate, g |

Source: Lorenzi R, Raghunath B, Mok Y, Chan K. Simulation of process performance on contaminant removal using constant and non-constant volume diafiltration modeling. BioProcessing J 2016;15(2):30-37, equation (9) and (10), p. 31, version of record (the journal's PDF, Summer 2016); read in full on 2026-11-10 by an AI-assisted session; not yet checked by a person. Read from the file itself, SHA-256 beginning 4bbad8690ab6. Free to read (free to download; BioProcessing Journal keeps copyright, all rights reserved, republication by permission (its open access policy, bioprocessingjournal.com/pdf/openaccess.pdf); no open licence), checked 2026-11-11. No erratum found (searched Crossref works record (updated-by, update-to, relation), Crossref filter updates:\<doi> (no notice points at it; includes the Retraction Watch data), the article page at bioprocessingjournal.com), 2026-11-11.

### Conventions

What each mode computes:

- `mode = constant-volume`: buffer added at the permeate rate, so the retentate volume stays constant; N, the diavolumes, is buffer volume added over the retentate volume
- `mode = variable-volume`: buffer added at a ratio a of the permeate flow, so the retentate volume changes; N is permeate volume over the initial retentate volume, not buffer volume added

### Constants

Constants: none used.

### Worked example

Worked example: one case of diafiltration\@1.0.1, from its inputs through each step to the answer. Values are written as a person writes them; the working carries more digits, so your own figure may differ in the last digit shown.

**Inputs**

- mode = constant-volume
- solveFor = diavolumes
- sievingCoefficient = 1
- targetRemovedFraction = 0.99

**Steps**

1. remaining = 0.01, from targetRemovedFraction; by equation 1; gives remainingFraction.
2. diavolumes = 4.6051702 DV, from remaining, sievingCoefficient; by equation 1; gives diavolumes.

The working, as the case writes it:

```equation
N = ln(1/0.01)/1 = ln 100 = 4.6052
```

**Answer**

- `remainingFraction` = **0.01**
- `diavolumes` = **4.6051702 DV**

Where these values came from: our own exact-arithmetic script and a hand-worked case; Lorenzi R, Raghunath B, Mok Y, Chan K. BioProcessing J 2016;15(2):30-37, doi:10.12665/J152.Lorenzi, eq. (2): C = C0 exp(-N\_D S); exact arithmetic by eq. (2), consistent with Lorenzi et al.'s 'about five' diavolumes read off their Figure 4.

At build the tool returned this answer within the tolerance the file states: relative 1e-12 on diavolumes and volume ratio (absolute 1e-18 below 1e-6 in each value's own unit); absolute 1e-12 on remaining and removed fractions; statuses and codes exact.

Who worked this case: not recorded.

### What it refuses, and its input ranges

- `SPECIES_FULLY_RETAINED`: a fully retained species (S = 0) is never removed, so no number of diavolumes reaches a removal target Next: If the sieving coefficient given was not measured, give the measured one; a fully retained species is never removed, and solveFor 'removed-fraction' says so for any number of diavolumes.
- `USE_CONSTANT_VOLUME_MODE`: a = 1 exactly in variable-volume mode is constant-volume diafiltration Next: Call again with mode 'constant-volume', which is this case.
- `USE_UF_CONCENTRATION`: a = 0 adds no buffer: that is batch concentration Next: Use dsp\_uf\_concentration: with no buffer added, this is batch concentration.
- `RETENTATE_VOLUME_EXHAUSTED`: 1 + N(a - 1) is zero or below: the retentate would be empty Next: At this diafiltrationRatio the retentate empties first; no change of input makes this computable on these data.

### Changes

No correction is logged for diafiltration\@1.0.1.

## Tools that use it

- [`dsp_diafiltration`](https://www.drybench.com/methods/tools/dsp-diafiltration)

## Cite this version

Diavolumes and removal in constant- or variable-volume diafiltration. Drybench; diafiltration\@1.0.1; [https://www.drybench.com/methods/m/diafiltration/1.0.1](https://www.drybench.com/methods/m/diafiltration/1.0.1) (accessed \[date\]).
