Skip to content

Diavolumes or removal in constant- or variable-volume diafiltration

dsp_diafiltration

Works out the diavolumes for a removal target, or the removal after a number of diavolumes.

Runs
On the server
Level
Checked against a reference: Lorenzi et al. 2016's appendix table (p. 37), and mpmath at 50 digits on their equations
Ask your assistant

What it is

Returns diavolumes for a removal target, or removal after N diavolumes, by exp(-N S) or the retentate mass balance. Use when planning buffer exchange or impurity washout, or the product lost through a membrane, at a stated sieving coefficient. Not for concentrating a retentate: use `dsp_uf_concentration`. mode and solveFor are required; in variable-volume mode N is permeate volume over initial volume and the flow ratio a is required.

Field: Downstream processing.

What it does

You give

  • mode (required): 'constant-volume' (buffer added at the permeate rate) or 'variable-volume' (at a stated ratio a of the permeate rate).
  • solveFor (required): 'diavolumes' for a removal target, or 'removed-fraction' after a stated number of diavolumes.
  • sievingCoefficient (required): Sieving coefficient S = Cp/Cb of the species, from 0 (fully retained) to 1 (freely passing). Must be at least 0 and at most 1.
  • diavolumes: Diavolumes N; required when solveFor is 'removed-fraction'. In variable-volume mode, permeate volume over initial volume. Must be at least 0 DV. Optional.
  • targetRemovedFraction: Fraction of the species to remove, between 0 and 1; required when solveFor is 'diavolumes'. Must be above 0 and below 1. Optional.
  • diafiltrationRatio: Ratio a of diafiltration buffer flow to permeate flow; required in variable-volume mode. Must be at least 0. Optional.

No request is recorded for this tool.

Limits

  • Research and education arithmetic for downstream process development on the values you supply.
  • Binding capacities, fluxes, Vmax, sieving and correction factors are yours and are never looked up or defaulted.
  • Each result holds only under the assumptions stated with it, and sizing or scale-up from a model is given without a prediction error, because none is available.
  • Not a process design, validation, batch-release or regulatory calculation; makes no compliance claim.
  • Assumes a constant sieving coefficient, a well-mixed retentate and no hold-up or adsorption loss.
  • Every computed number a reply returns, other than an integer or an exact decimal, is rounded once to 12 significant figures: to the nearest, a change of at most 5 × 10⁻¹² of its value, except that a lower bound is rounded down and an upper bound up, a change of less than 1 × 10⁻¹¹; the method computes, and decides any pass or fail, on the unrounded value.

It will not answer when

  • a fully retained species (S = 0) is never removed, so no number of diavolumes reaches a removal target.
  • a = 1 exactly in variable-volume mode is constant-volume diafiltration.
  • a = 0 adds no buffer: that is batch concentration.
  • 1 + N(a - 1) is zero or below: the retentate would be empty.
Every input, with its units6 inputs
  • mode (required): 'constant-volume' (buffer added at the permeate rate) or 'variable-volume' (at a stated ratio a of the permeate rate).
  • solveFor (required): 'diavolumes' for a removal target, or 'removed-fraction' after a stated number of diavolumes.
  • sievingCoefficient (required): Sieving coefficient S = Cp/Cb of the species, from 0 (fully retained) to 1 (freely passing). Must be at least 0 and at most 1.
  • diavolumes: Diavolumes N; required when solveFor is 'removed-fraction'. In variable-volume mode, permeate volume over initial volume. Must be at least 0 DV. Optional.
  • targetRemovedFraction: Fraction of the species to remove, between 0 and 1; required when solveFor is 'diavolumes'. Must be above 0 and below 1. Optional.
  • diafiltrationRatio: Ratio a of diafiltration buffer flow to permeate flow; required in variable-volume mode. Must be at least 0. Optional.
Every refusal, with its code4 refusals
CodeWhen
SPECIES_FULLY_RETAINEDa fully retained species (S = 0) is never removed, so no number of diavolumes reaches a removal target.
USE_CONSTANT_VOLUME_MODEa = 1 exactly in variable-volume mode is constant-volume diafiltration.
USE_UF_CONCENTRATIONa = 0 adds no buffer: that is batch concentration.
RETENTATE_VOLUME_EXHAUSTED1 + N(a - 1) is zero or below: the retentate would be empty.

The calculation

The method's equations, constants and worked example.

Diavolumes and removal in constant- or variable-volume diafiltrationdiafiltration@1.0.1

Equation 1

C/C0=exp(-NS)

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

SymbolMeaning
Cconcentration after N diavolumes, g/L
C0initial concentration, g/L
Ndiavolumes, buffer added over retentate volume, DV
Ssieving coefficient

Source 1.

Equation 2

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.

SymbolMeaning
Vretentate volume, L
V0initial retentate volume, L
Npermeate volume over initial volume (qp t / V0), reported in diavolumes, DV
adiafiltration flow over permeate flow (qd/qp)
Ssieving coefficient (R = 1 - S)
Msolute mass in the retentate, g
M0initial solute mass in the retentate, g

Source 1.

Conventions

  • 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

A definition, not a model: the equation states what the quantity means. A different convention gives a different number.

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:

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.

Sources

  1. 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

    Used for: Diavolumes and removal in constant- or variable-volume diafiltration. At: equation (2), p. 31; equation (9) and (10), p. 31.

    Read in full, 10 November 2026

How it is checked

Level

Checked against a reference.

Checked 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.

Cases

No case set is linked to this version.

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.

What was not checked, in fullfrom the method records
  • 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.
Changes to its methods0 changes

No change is logged for these method versions.