# Bioreactor run simulation

`bioreactor_simulate` is a tool of the Drybench MCP server. It runs the same engine and reporting rules as Drybench Bioreactor.

## What it answers

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.

**Limits:**

- Teaching and estimation model, not a validated process model.
- It computes from the inputs it receives. It does not check the person's data, design or sample.
- 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.

> Research and education software; not for diagnosis or treatment decisions.
>
> A simulation, not a forecast. Every output follows from the model equations and the parameters you entered. It is a teaching and estimation model, not a validated process model, and not a prediction for any real strain, vessel or process.

## What this page can and cannot show

Weakest level among this tool's methods: Tested, not reference-checked. Below the top level: 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 (Tested, not reference-checked). Reference kind not recorded for 7 of 7 methods.

Not fully recorded, and not independently reviewed. Items marked "Not recorded" are missing from this project's records for the version named. Apart from any worked example shown, the cases and their values are not printed, so a reader cannot re-run these checks. No independent scientist has yet reviewed these methods or checks.

[Open Drybench Bioreactor](https://www.drybench.com/bioreactor/app) · [Drybench Bioreactor: methods and checks](https://www.drybench.com/methods/bioreactor) · [What the levels mean](https://www.drybench.com/methods/levels) · [Every assistant tool](https://www.drybench.com/methods/tools)

## Inputs

An omitted input takes the default its description states; the reply's `inputsReceived` shows what was given. Any input not listed here is refused.

- `preset` (string, 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` (object, optional): 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` (object, optional): Hours to simulate, a whole number from 1 to 240. Default: the preset's horizon.
  - `value` (number, required)
  - `unit` (string, required): One of `h`.
- `rescue` (boolean, optional): Run the rescue cascade when dissolved oxygen falls below the setpoint. Default true.
- `points` (integer, optional): At most this many sampled points per series, 2 to 200. Default 100.

## What it withholds or refuses

A refusal, a withheld value or another named status is an answer: the reply gives the reason and no number in its place; an absent value is not zero. Invalid input means nothing ran.

- `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). (`feed-law@1.0.0`)
- `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. (`feed-law@1.0.0`)
- `AMBIGUOUS_INITIAL_RATE`: Both F0 and design inputs given. (`feed-law@1.0.0`)
- `NOT_FOR_THIS_LAW`: An argument the chosen law does not read. (`feed-law@1.0.0`)
- `NOT_USED`: Yps given when both product terms are zero. (`feed-law@1.0.0`)
- `TOO_MANY_ROWS`: The step would lay out more pump-sheet rows than the tool's limit. (`feed-law@1.0.0`)
- `MISSING_UNIT`: A quantity without its unit. (`feed-law@1.0.0`)
- `INVALID_UNIT`: A unit other than the one the argument takes. (`feed-law@1.0.0`)

## How to cite a number from it

Every reply carries a cite line. It names, in order: the tool and the server version; each method the call went through, with its version and level (and the limit beside a level where the method's record narrows it); the receipt, the first 12 characters of the hashes of the arguments and of the result; and the address where its methods are described. Quote it with any number taken from the reply.

The receipt identifies a computation; it is not a signature. It holds no time, so the same arguments on the same server and method versions give the same receipt, and anyone can call the tool again and compare; a later method version can change the output hash.

This page has no example for this tool yet. The cite line's form, with placeholders where a call's own values go:

```cite
bioreactor_simulate, server 1.0.0; status invalid-input, nothing ran; no method record; receipt <input hash, 12 characters>/<output hash, 12 characters>; methods https://www.drybench.com/methods/bioreactor; page https://www.drybench.com/methods/tools/bioreactor-simulate. There is no result to quote; this line identifies the call and its receipt.
```

## Methods

Every method and reference the tool's replies cite, with its version and level. A reply names the methods that call went through.

### 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

- **Method:** `unstructured-growth-model@2.1.0`
- **Level:** Checked against a reference. Reference kind: not recorded. This level uses the apps' wider definition on the levels page.
- **Reference:** Monod J. Annu Rev Microbiol 1949;3:371-394; Andrews JF. Biotechnol Bioeng 1968;10:707-723; Pirt SJ. Proc R Soc B 1965;163:224-231; Luedeking R, Piret EL. J Biochem Microbiol Technol Eng 1959;1:393-412. Oxygen and CO₂ from carbon and degree-of-reduction balances on biomass and product (product-composition 1.0.0), ammonium the nitrogen source; verification 0.15.0. [doi:10.1146/annurev.mi.03.100149.002103](https://doi.org/10.1146/annurev.mi.03.100149.002103)
- **How it was checked:** 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).
- What was not checked: not recorded for unstructured-growth-model\@2.1.0. Its absence does not mean everything was checked.
- [Method, sources and checks](https://www.drybench.com/methods/m/unstructured-growth-model)
- [On Drybench Bioreactor's methods page: Run](https://www.drybench.com/methods/bioreactor#run)

### Modified Rosenbrock (W-) formula with an analytic Jacobian, error control, its continuous extension and located events

- **Method:** `modified-rosenbrock@1.1.0`
- **Level:** Checked against a reference. Reference kind: not recorded. This level uses the apps' wider definition on the levels page.
- **Reference:** Shampine LF, Reichelt MW. The MATLAB ODE Suite. SIAM J Sci Comput 1997;18(1):1-22, §3.1 (implemented from the paper only). [doi:10.1137/S1064827594276424](https://doi.org/10.1137/S1064827594276424)
- **How it was checked:** Checked against 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).
- What was not checked: not recorded for modified-rosenbrock\@1.1.0. Its absence does not mean everything was checked.
- [Method, sources and checks](https://www.drybench.com/methods/m/modified-rosenbrock)
- [On Drybench Bioreactor's methods page: Run](https://www.drybench.com/methods/bioreactor#run)

### 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

- **Method:** `dissolved-oxygen-balance@2.0.0`
- **Level:** Checked against a reference. Reference kind: not recorded. This level uses the apps' wider definition on the levels page.
- **Reference:** Benson and Krause, as the USGS documents them: Office of Water Quality Technical Memorandum 2011.03, attachment eqs. 7 and 9 to 11 (read 6 October 2026).
- **How it was checked:** 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).
- What was not checked: not recorded for dissolved-oxygen-balance\@2.0.0. Its absence does not mean everything was checked.
- [Method, sources and checks](https://www.drybench.com/methods/m/dissolved-oxygen-balance)
- [On Drybench Bioreactor's methods page: Run](https://www.drybench.com/methods/bioreactor#run)

### 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

- **Method:** `kla-value-scaled@2.3.0`
- **Level:** Checked against a reference. Reference kind: not recorded. This level uses the apps' wider definition on the levels page.
- **Reference:** Yawalkar AA et al. Can J Chem Eng 2002;80:840-848, Tables 2 and 3 (the exponents and Hughmark's gassed power). [doi:10.1002/cjce.5450800507](https://doi.org/10.1002/cjce.5450800507)
- **How it was checked:** Checked against 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).
- What was not checked: not recorded for kla-value-scaled\@2.3.0. Its absence does not mean everything was checked.
- [Method, sources and checks](https://www.drybench.com/methods/m/kla-value-scaled)
- [On Drybench Bioreactor's methods page: Run](https://www.drybench.com/methods/bioreactor#run)

### kLa by Van 't Riet's correlation with Hughmark's gassed power (coalescing constants as Yawalkar et al. 2002 quote them)

- **Method:** `van-t-riet-kla@2.3.0`
- **Level:** Checked against a reference. Reference kind: not recorded. This level uses the apps' wider definition on the levels page.
- **Reference:** Van 't Riet K. Ind Eng Chem Process Des Dev 1979;18:357-364; Yawalkar AA et al. Can J Chem Eng 2002;80:840-848 (Tables 2 and 3). The non-coalescing form is 0.002(Pg/V)^0.7 vs^0.2, kLa in s−1, power density W/m³ and velocity m/s. Experimental ranges are approximate. Rushton Np = 5 is a nominal default, not a physical constant: Kaiser SC et al. Eng Life Sci 2017;17(5):500-511, doi:10.1002/elsc.201600096 (§3.3.1, Table 3; read 24 October 2026) compile 3.6 to 5.9 for fully turbulent Rushton turbines in four-baffled flat-bottomed vessels, varying with D/T and blade thickness, and measured 4.17 ± 0.14 themselves (three baffles, torospherical base). Across that range Pg/V moves by −28 to +18 percent and kLa by −12 to +7 percent. Additive multi-impeller power needs calibration. [doi:10.1021/i260071a001](https://doi.org/10.1021/i260071a001)
- **How it was checked:** 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).
- What was not checked: not recorded for van-t-riet-kla\@2.3.0. Its absence does not mean everything was checked.
- [Method, sources and checks](https://www.drybench.com/methods/m/van-t-riet-kla)
- [On Drybench Bioreactor's methods page: Run](https://www.drybench.com/methods/bioreactor#run)

### Feed laws (constant, or exponential at a set growth rate with a pump limit) and the pump sheet's interval averages

- **Method:** `feed-law@1.0.0`
- **Level:** Checked against a reference. Reference kind: not recorded. This level uses the apps' wider definition on the levels page.
- **How it was checked:** Checked against 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).
- What was not checked: 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. The hand case is a draft worked by an AI session on 12 November 2026 from the source's equation; this session also ran it through the tool on this repository's head and the tool agreed, a check made once and not kept as a test. No case runs this method through the served tool on its production runtime. No person has worked these cases or read these sources; the reading and checks recorded here were made by AI sessions.
- [Method, sources and checks](https://www.drybench.com/methods/m/feed-law)
- [On Drybench Bioreactor's methods page: Run](https://www.drybench.com/methods/bioreactor#run)

### 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

- **Method:** `oxygen-rescue-cascade@1.0.0`
- **Level:** Tested, not reference-checked. Reference kind: not recorded. This level uses the apps' wider definition on the levels page.
- **How it was checked:** 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.
- What was not checked: not recorded for oxygen-rescue-cascade\@1.0.0. Its absence does not mean everything was checked.
- [Method, sources and checks](https://www.drybench.com/methods/m/oxygen-rescue-cascade)
- [On Drybench Bioreactor's methods page: Rescue](https://www.drybench.com/methods/bioreactor#rescue)

No independent scientist has yet reviewed these checks. [What the levels mean](https://www.drybench.com/methods/levels).

## Changes to its methods

- No correction is logged for unstructured-growth-model\@2.1.0.
- No correction is logged for modified-rosenbrock\@1.1.0.
- No correction is logged for dissolved-oxygen-balance\@2.0.0.
- No correction is logged for kla-value-scaled\@2.3.0.
- No correction is logged for van-t-riet-kla\@2.3.0.
- No correction is logged for feed-law\@1.0.0.
- No correction is logged for oxygen-rescue-cascade\@1.0.0.

## Where it runs

The local MCP server serves this tool; the hosted MCP connection does not.

## Methods and checks

- [Drybench Bioreactor: methods and checks](https://www.drybench.com/methods/bioreactor)
- [Reference checks: Drybench Bioreactor](https://www.drybench.com/methods/bioreactor/checks)
- [What the levels mean](https://www.drybench.com/methods/levels)
- [Every assistant tool](https://www.drybench.com/methods/tools)
