# Bioreactor run simulation

`bioreactor_simulate` · Runs: Held: built, not on the server yet · Level: Tested, not reference-checked

Simulates a bioreactor run with a growth model, from a preset and your changes.

**Why it is held.** Its calls need a key on this server and its method has not yet been checked against a reference, and a tool at that level is not offered by key alone.

Research and education software; not medical advice, and not for diagnosis or treatment decisions. It computes from the inputs it receives. It does not check the person's data, design or sample.

[Catalogue](https://www.drybench.com/mcp/catalogue) / [Fermentation](https://www.drybench.com/mcp/catalogue/fermentation)

[Open in Drybench Bioreactor](https://www.drybench.com/bioreactor/app)

```cite
Bioreactor run simulation (bioreactor_simulate), Drybench MCP server 1.0.0; unstructured-growth-model@2.1.0 (Checked against a reference); modified-rosenbrock@1.1.0 (Checked against a reference); dissolved-oxygen-balance@2.0.0 (Checked against a reference); kla-value-scaled@2.3.0 (Checked against a reference); van-t-riet-kla@2.3.0 (Checked against a reference); feed-law@1.0.0 (Checked against a reference); oxygen-rescue-cascade@1.0.0 (Tested, not reference-checked); https://www.drybench.com/mcp/tools/bioreactor-simulate
```

## What it is

Runs one bioreactor run from a preset and changes: an unstructured growth model (Monod uptake with maintenance and product) with the dissolved-oxygen balance and the feed law, solved by a modified Rosenbrock method; when dissolved oxygen falls below the setpoint, also the rescue cascade within the vessel's limits. Returns the headline, flagged intervals, events, balances and time series in h. Series are sampled evenly by index from the stored points, first and last kept; events are at result.run.events. A peak or minimum can fall between samples. Every range in conventions includes its bounds.

Field: [Fermentation](https://www.drybench.com/mcp/catalogue/fermentation). It is the same calculation as [Drybench Bioreactor](https://www.drybench.com/bioreactor/app), called by an AI assistant through the server.

## What it does

**You give**

- `preset` (required): One of e-coli-fed-batch, s-cerevisiae-fed-batch, pichia-aox1, chemostat, custom, or a published version as \<id>\@\<n>; an id alone takes its current version.
- `changes`: By parameter id in drybench://data/bioreactor-presets: a number as { value, unit } in its listed unit, an option by its word, a formula as text, "none" where accepted.
- `horizon`: Hours to simulate, a whole number from 1 to 240. Default: the preset's horizon.
- `rescue`: Run the rescue cascade when dissolved oxygen falls below the setpoint. Default true.
- `points`: At most this many sampled points per series, 2 to 200. Default 100.

No request is shown while this tool is held.

**Limits**

- The design rate holds growth at μset only if the culture's uptake is μset/Yxs + (α·μset + β)/Yps + ms with the values entered, and biomass grows exponentially at μset from X0·V0.
- It is arithmetic on the values entered and is not checked against a measured culture.
- The substrate fed is the single limiting substrate.
- 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.

Every reply also carries its app's limits line: "Teaching and estimation model, not a validated process model."

**It will not answer when**

- The feed is no richer than the broth (Sf at or below S0): no starting rate holds growth at μset (status refused).
- A law without its rate, an exponential feed with neither F0 nor the design inputs, or a product term above zero without Yps.
- Both F0 and design inputs given.
- An argument the chosen law does not read.

### Every input, with its units

5 inputs

- `preset` (required): One of e-coli-fed-batch, s-cerevisiae-fed-batch, pichia-aox1, chemostat, custom, or a published version as \<id>\@\<n>; an id alone takes its current version.
- `changes`: By parameter id in drybench://data/bioreactor-presets: a number as { value, unit } in its listed unit, an option by its word, a formula as text, "none" where accepted.
- `horizon`: Hours to simulate, a whole number from 1 to 240. Default: the preset's horizon.
- `rescue`: Run the rescue cascade when dissolved oxygen falls below the setpoint. Default true.
- `points`: At most this many sampled points per series, 2 to 200. Default 100.

### Every refusal, with its code

8 refusals

| Code | When |
| --- | --- |
| `design-rate-undefined` | The feed is no richer than the broth (Sf at or below S0): no starting rate holds growth at μset (status refused). |
| `MISSING_ARGUMENT` | A law without its rate, an exponential feed with neither F0 nor the design inputs, or a product term above zero without Yps. |
| `AMBIGUOUS_INITIAL_RATE` | Both F0 and design inputs given. |
| `NOT_FOR_THIS_LAW` | An argument the chosen law does not read. |
| `NOT_USED` | Yps given when both product terms are zero. |
| `TOO_MANY_ROWS` | The step would lay out more pump-sheet rows than the tool's limit. |
| `MISSING_UNIT` | A quantity without its unit. |
| `INVALID_UNIT` | A unit other than the one the argument takes. |

## The calculation

7 methods, each with its equations, constants and worked example.

### [Unstructured growth model: Monod (Haldane and Andrews for methanol), Pirt's maintenance, Luedeking and Piret's product with its own yield, balances with volume change](https://www.drybench.com/methods/m/unstructured-growth-model/2.1.0)

`unstructured-growth-model@2.1.0`

No equation is recorded for this version.

Kind of method: not recorded.

Worked example: not recorded for unstructured-growth-model\@2.1.0.

### [Modified Rosenbrock (W-) formula with an analytic Jacobian, error control, its continuous extension and located events](https://www.drybench.com/methods/m/modified-rosenbrock/1.1.0)

`modified-rosenbrock@1.1.0`

No equation is recorded for this version.

Kind of method: not recorded.

Worked example: not recorded for modified-rosenbrock\@1.1.0.

### [Dissolved oxygen by its own balance, dC/dt = kLa(C\* − C) − OUR + (Fin/V)(Cfeed − C), with C\* from the exhaust gas and Benson and Krause's solubility](https://www.drybench.com/methods/m/dissolved-oxygen-balance/2.0.0)

`dissolved-oxygen-balance@2.0.0`

No equation is recorded for this version.

Kind of method: not recorded.

Worked example: not recorded for dissolved-oxygen-balance\@2.0.0.

### [A kLa value at the setup's agitation and gas flow, scaled to other settings by Van 't Riet's exponents with Hughmark's gassed-power ratio (the power number cancels); your readings at several rpm interpolated log-log](https://www.drybench.com/methods/m/kla-value-scaled/2.3.0)

`kla-value-scaled@2.3.0`

No equation is recorded for this version.

Kind of method: not recorded.

Worked example: not recorded for kla-value-scaled\@2.3.0.

### [kLa by Van 't Riet's correlation with Hughmark's gassed power (coalescing constants as Yawalkar et al. 2002 quote them)](https://www.drybench.com/methods/m/van-t-riet-kla/2.3.0)

`van-t-riet-kla@2.3.0`

No equation is recorded for this version.

Kind of method: not recorded.

Worked example: not recorded for van-t-riet-kla\@2.3.0.

### [Feed laws (constant, or exponential at a set growth rate with a pump limit) and the pump sheet's interval averages](https://www.drybench.com/methods/m/feed-law/1.0.0)

`feed-law@1.0.0`

**Equation 1**

```text
F(t) = F0·e^{μset·(t − t0)} from the feed's start t0, held at the pump's limit once it reaches it. The source prints F(t) = (μset/Yx/s + m)·(X_F·V_F/S_F)·e^{μset(t − t_F)}: the same exponential in time from the start of feeding.
```

| Symbol | Meaning |
| --- | --- |
| `F` | feed rate, L/h |
| `μset` | the specific growth rate the feed is designed to hold, 1/h |
| `t, t0` | time from inoculation, and the time the feed starts, h |

Source 1.

**Equation 2**

```text
F0 = [μset/Yxs + (α·μset + β)/Yps + ms]·X0·V0/(Sf − S0), used only when the caller gives the design inputs in place of F0. With no product term (α = β = 0) and no residual substrate (S0 = 0) this is the source's starting rate, (μset/Yx/s + m)·X_F·V_F/S_F. The product term and the subtraction of S0 are not in the source read.
```

| Symbol | Meaning |
| --- | --- |
| `Yxs` | true biomass yield on substrate, g/g |
| `ms` | maintenance coefficient, g/(g.h) |
| `α, β` | growth-associated and non-growth-associated product coefficients, g/g, g/(g.h) |
| `Yps` | product yield on substrate; required when α or β is above zero, g/g |
| `X0, V0` | biomass concentration and culture volume when the feed starts, g/L, L |
| `Sf, S0` | substrate concentration in the feed, and residual substrate in the broth at the start, g/L |

Source 1.

Two readings: source 1 can be read as The source's starting rate with two further terms: the substrate spent on product, (α·μset + β)/Yps, added to the uptake, and the residual substrate S0 subtracted from the feed concentration or as The source's equation as printed: uptake μset/Yx/s + m only, and the feed concentration S\_F alone in the divisor. This project takes The source's starting rate with two further terms: the substrate spent on product, (α·μset + β)/Yps, added to the uptake, and the residual substrate S0 subtracted from the feed concentration, because The engine's comment gives the two terms as this project's decisions (its ruling of 6 October 2026 on the design rate, and D-0155 on the product allocation). Neither is anchored on a source read. They vanish when α = β = 0 and S0 = 0, the case the hand case works. A difference from the source, reported with this record. Taking The source's equation as printed: uptake μset/Yx/s + m only, and the feed concentration S\_F alone in the divisor would give a different result.

**Equation 3**

```text
The constant law: F(t) = F from the feed's start.
```

| Symbol | Meaning |
| --- | --- |
| `F` | the rate the caller states, L/h |

**Equation 4**

```text
Volume fed by time t on one piece of the law: F·(t − t0) for a constant rate
F0·(e^{μ(t − t0)} − 1)/μ for an exponential one. The feed stops at the end time, or when the culture volume reaches the maximum volume, whichever comes first.
```

| Symbol | Meaning |
| --- | --- |
| `V` | volume fed since the start, L |

**Equation 5**

```text
Each pump-sheet row gives the rate to set for the interval it starts: the law's average over that interval, F(a)·(e^{μΔt} − 1)/(μΔt), which is F(a) itself for a constant rate. Rows fall every step from the start, and wherever the law changes.
```

| Symbol | Meaning |
| --- | --- |
| `Δt` | length of the interval, h |

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 feed-law\@1.0.0, 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**

- law = exponential
- start = 5 h
- initialVolume = 4 L
- until = 8 h
- pumpSheetStep = 1 h
- growthRate = 0.35 1/h
- biomassYield = 1.28 g/g
- maintenance = 0.12 g/(g·h)
- growthAssociatedProduct = 0 g/g
- nonGrowthAssociatedProduct = 0 g/(g·h)
- biomass = 5 g/L
- substrate = 0 g/L
- feedConcentration = 141 g/L

**Steps**

1. uptake: μset/Yx/s + m = 0.393437500 g/(g.h), from μset = 0.35 1/h, Yx/s = 1.28 g/g, m = 0.12 g/(g·h).
2. F0: F(t\_F) = (μset/Yx/s + m)·X\_F·V\_F/S\_F = 0.0558067376 L/h, from X\_F = 5 g/L (chosen here), V\_F = 4 L, S\_F = 141 g/L; gives design.initialRate.
3. F-at-6h: F(t) = F(t\_F)·e^{μset(t − t\_F)} = 0.0791935303 L/h, from t = 6 h, t\_F = 5 h.
4. average-5-to-6h: interval average = F(a)·(e^{μΔt} − 1)/(μΔt), the integral of the law over the interval divided by its length = 0.0668194078 L/h, from a = 5 h, b = 6 h.
5. average-6-to-7h: interval average = F(a)·(e^{μΔt} − 1)/(μΔt), the integral of the law over the interval divided by its length = 0.0948212532 L/h, from a = 6 h, b = 7 h.
6. average-7-to-8h: interval average = F(a)·(e^{μΔt} − 1)/(μΔt), the integral of the law over the interval divided by its length = 0.134557763 L/h, from a = 7 h, b = 8 h.
7. fed-by-8h: volume fed = F(t\_F)·(e^{μset(t − t\_F)} − 1)/μset = 0.296198424 L, from t = 8 h; gives volumeFed.

The working, as the case writes it:

```text
F(t) = (μset/Yx/s + m)·(X_F·V_F/S_F)·e^{μset(t − t_F)}
its integral from t_F to t is F(t_F)·(e^{μset(t − t_F)} − 1)/μset.
```

**Answer**

- design.initialRate = 0.0558067376 L/h
- volumeFed = 0.296198424 L

Where these values came from: our own exact-arithmetic script and a hand-worked case; Baez A, Majdalani N, Shiloach J. Microb Cell Fact 2014;13:50, Methods, 'Bioreactor culture conditions' (the feeding equation).

The build has not run this example through the tool.

Worked by an AI session on 2026-11-12. No person has yet worked this case.

### [Oxygen rescue cascade: agitation, gas flow, inlet O₂, then a feed cap, each the smallest step on its grid that holds the setpoint, within the vessel's limits](https://www.drybench.com/methods/m/oxygen-rescue-cascade/1.0.0)

`oxygen-rescue-cascade@1.0.0`

No equation is recorded for this version.

Kind of method: not recorded.

Worked example: not recorded for oxygen-rescue-cascade\@1.0.0.

## Sources

1. Baez A, Majdalani N, Shiloach J. Production of recombinant protein by a novel oxygen-induced system in Escherichia coli. Microb Cell Fact 2014;13:50. Used for: Feed laws (constant, or exponential at a set growth rate with a pump limit) and the pump sheet's interval averages. At: equation the feeding equation (unnumbered), section Methods, Bioreactor culture conditions. **Read in full, 12 November 2026**

**Cited, not read**

2. Strandberg L, Andersson L, Enfors SO. The use of fed batch cultivation for achieving high cell densities in the production of a recombinant protein in Escherichia coli. FEMS Microbiol Rev 1994;14:53-56. (Citation as Baez et al. 2014's reference list gives it.) Used for: Feed laws (constant, or exponential at a set growth rate with a pump limit) and the pump sheet's interval averages. Not fetched: the reference Baez et al. 2014 cite for their feeding equation. Whether it prints the equation in the same form was not checked. Listed for a person to read. **Not read**

Read by AI-assisted sessions. No person has checked these readings.

## How it is checked

**Level:** Tested, not reference-checked, the lowest of its 7 methods.

**Checked against:** Unstructured growth model: Monod (Haldane and Andrews for methanol), Pirt's maintenance, Luedeking and Piret's product with its own yield, balances with volume change: State variables checked against SciPy 1.17.0 Radau on 33 scenarios (SciPy's Radau at a relative tolerance of 1e-9, an absolute tolerance a hundredth of the engine's for every state): each point within the larger of 1e-5 of its value, a time shift of max(1e-4 h, 1e-5 of the elapsed time) times its slope, and its floor; inside the window after a change of aeration or feed, the series computed from dissolved oxygen on value alone; events within 1e-3 h; the carbon and electron balances close within 0.5 percent; the right-hand sides agree within 1e-12 relative at 13 states (2026-10-07). Draft until the independent bioprocess reviewer signs the equations, the presets and the fixtures (Q-19). Modified Rosenbrock (W-) formula with an analytic Jacobian, error control, its continuous extension and located events: SciPy 1.17.0 Radau on the same 33 scenarios, with one step and the linear solve compared with NumPy 2.3.5 and LAPACK, and fixed-step RK4's failure at kLa 1,000 per hour kept as a regression test (2026-10-07). Draft until the independent bioprocess reviewer signs the equations, the presets and the fixtures (Q-19). Dissolved oxygen by its own balance, dC/dt = kLa(C\* − C) − OUR + (Fin/V)(Cfeed − C), with C\* from the exhaust gas and Benson and Krause's solubility: Air saturation checked against the USGS DOTABLES program's own output at 9 temperatures and pressures, and the exhaust-gas balance on 3 cases, by SciPy 1.17.0 (2026-10-07). Draft until the independent bioprocess reviewer signs the equations, the presets and the fixtures (Q-19). A kLa value at the setup's agitation and gas flow, scaled to other settings by Van 't Riet's exponents with Hughmark's gassed-power ratio (the power number cancels); your readings at several rpm interpolated log-log: An independent NumPy float64 reference at 18 settings (value and readings; agitation, gas flow, volume, reference-basis flow, Hughmark's cap) within 1e-12 relative (verification 0.6.0, 24 October 2026). The non-coalescing exponents are checked as arithmetic only and remain Unverified. Draft until the independent bioprocess reviewer signs the equations, the presets and the fixtures (Q-19). kLa by Van 't Riet's correlation with Hughmark's gassed power (coalescing constants as Yawalkar et al. 2002 quote them): The correlation checked against the same equations in SciPy 1.17.0 at 10 settings, two outside the range (2026-10-07); the coalescing coefficients are read from Yawalkar 2002 (Table 2); the non-coalescing coefficients and the approximate domain are cited to Van 't Riet 1979 and remain Unverified until the paper is read; Hughmark geometry limits are sourced through Yawalkar 2002. Np=5 remains a nominal geometry assumption. These checks establish equation consistency, not predictive accuracy in a particular broth. Draft until the independent bioprocess reviewer signs the equations, the presets and the fixtures (Q-19). Feed laws (constant, or exponential at a set growth rate with a pump limit) and the pump sheet's interval averages: An independent Python decimal reference at 40 digits: 12 feeds (constant, exponential, pump limit, the rescue's cap, the Vmax and end-time stops), every pump-sheet row and total, and 4 design rates, within 1e-12 relative (verification 0.7.0, 24 October 2026). Draft until the independent bioprocess reviewer signs the equations, the presets and the fixtures (Q-19). Oxygen rescue cascade: agitation, gas flow, inlet O₂, then a feed cap, each the smallest step on its grid that holds the setpoint, within the vessel's limits: Unit-tested: every step stays within the vessel's limits, each is the smallest on its grid that holds the setpoint, and the cascade's order holds (6 October 2026). The rescued runs are checked against SciPy's Radau like any other run.

**Cases:** Unstructured growth model: Monod (Haldane and Andrews for methanol), Pirt's maintenance, Luedeking and Piret's product with its own yield, balances with volume change: No case set is linked to this version. Modified Rosenbrock (W-) formula with an analytic Jacobian, error control, its continuous extension and located events: No case set is linked to this version. Dissolved oxygen by its own balance, dC/dt = kLa(C\* − C) − OUR + (Fin/V)(Cfeed − C), with C\* from the exhaust gas and Benson and Krause's solubility: No case set is linked to this version. A kLa value at the setup's agitation and gas flow, scaled to other settings by Van 't Riet's exponents with Hughmark's gassed-power ratio (the power number cancels); your readings at several rpm interpolated log-log: No case set is linked to this version. kLa by Van 't Riet's correlation with Hughmark's gassed power (coalescing constants as Yawalkar et al. 2002 quote them): No case set is linked to this version. Feed laws (constant, or exponential at a set growth rate with a pump limit) and the pump sheet's interval averages: No case set is linked to this version. Oxygen rescue cascade: agitation, gas flow, inlet O₂, then a feed cap, each the smallest step on its grid that holds the setpoint, within the vessel's limits: No case set is linked to this version.

**Worked example:** Published worked example, run through the tool: Xu 2020 batch Monod, every sampled point on the printed implicit solution (equation 5).

**Hostile inputs:** Sent 10 malformed, extreme and misspelt calls. None broke it, and every call with an undeclared argument, or with text in place of a number or a true/false value, was declined with a reason. Run 2026-11-12-2 of 12 November 2026, server 0.11.0.

**Same answer:** Called twice and with its arguments in another order, it gave the same result. Run 2026-11-12-2 of 12 November 2026, server 0.11.0.

**Not checked:** Unstructured growth model: Monod (Haldane and Andrews for methanol), Pirt's maintenance, Luedeking and Piret's product with its own yield, balances with volume change: Not recorded. Its absence does not mean everything was checked. Modified Rosenbrock (W-) formula with an analytic Jacobian, error control, its continuous extension and located events: Not recorded. Its absence does not mean everything was checked. Dissolved oxygen by its own balance, dC/dt = kLa(C\* − C) − OUR + (Fin/V)(Cfeed − C), with C\* from the exhaust gas and Benson and Krause's solubility: Not recorded. Its absence does not mean everything was checked. A kLa value at the setup's agitation and gas flow, scaled to other settings by Van 't Riet's exponents with Hughmark's gassed-power ratio (the power number cancels); your readings at several rpm interpolated log-log: Not recorded. Its absence does not mean everything was checked. kLa by Van 't Riet's correlation with Hughmark's gassed power (coalescing constants as Yawalkar et al. 2002 quote them): Not recorded. Its absence does not mean everything was checked. Feed laws (constant, or exponential at a set growth rate with a pump limit) and the pump sheet's interval averages: The source read prints the feeding equation as a method it used, citing Strandberg et al. 1994 for it; that paper was not read, and no source that derives the equation was read. Oxygen rescue cascade: agitation, gas flow, inlet O₂, then a feed cap, each the smallest step on its grid that holds the setpoint, within the vessel's limits: Not recorded. Its absence does not mean everything was checked.

**Open:** Its calls need a key on this server and its method has not yet been checked against a reference, and a tool at that level is not offered by key alone.

No independent scientist has yet reviewed this.

### What was not checked, in full

from the method records

[Feed laws (constant, or exponential at a set growth rate with a pump limit) and the pump sheet's interval averages](https://www.drybench.com/methods/m/feed-law/1.0.0)

- The source read prints the feeding equation as a method it used, citing Strandberg et al.
- 1994 for it; that paper was not read, and no source that derives the equation was read.
- The design rate's product term and its subtraction of residual substrate are not in the source read; no hand case works them.
- The hand case uses the source's printed values with no product and no residual substrate, and a starting biomass chosen for the case (the source prints none).
- The pump limit, the end-time and maximum-volume stops and the constant law are not worked by hand.
- Whether a culture fed this way grows at μset is not checked here: no measured culture is among the cases.
- No published case set names feed-law\@1.0.0 by its exact key.
- No case runs this method through the served tool on its production runtime.

### What this project's records still lack

6 things

- A case worked by hand from the source's equation for unstructured-growth-model\@2.1.0 and modified-rosenbrock\@1.1.0 and dissolved-oxygen-balance\@2.0.0 and kla-value-scaled\@2.3.0 and van-t-riet-kla\@2.3.0 and oxygen-rescue-cascade\@1.0.0.
- A run of the worked example through the tool for feed-law\@1.0.0.
- The equation for unstructured-growth-model\@2.1.0 and modified-rosenbrock\@1.1.0 and dissolved-oxygen-balance\@2.0.0 and kla-value-scaled\@2.3.0 and van-t-riet-kla\@2.3.0 and oxygen-rescue-cascade\@1.0.0.
- The constants with their sources for unstructured-growth-model\@2.1.0 and modified-rosenbrock\@1.1.0 and dissolved-oxygen-balance\@2.0.0 and kla-value-scaled\@2.3.0 and van-t-riet-kla\@2.3.0 and oxygen-rescue-cascade\@1.0.0.
- A case set linked to this version for all seven methods.
- A record of what was not checked for unstructured-growth-model\@2.1.0 and modified-rosenbrock\@1.1.0 and dissolved-oxygen-balance\@2.0.0 and kla-value-scaled\@2.3.0 and van-t-riet-kla\@2.3.0 and oxygen-rescue-cascade\@1.0.0.

### Changes to its methods

0 changes

No change is logged for these method versions.
