Cees Haringa1, Wenjun Tang1,2, Henk J Noorman1,2. 1. Biotechnology Department, Bioprocess Engineering, Delft University of Technology, Delft, The Netherlands. 2. Department of Biotechnology, Bioprocess Engineering group, Faculty of Applied Sciences, Delft University of Technology, Royal DSM, Delft, The Netherlands.
Abstract
The compartment model (CM) is a well-known approach for computationally affordable, spatially resolved hydrodynamic modeling of unit operations. Recent implementations use flow profiles based on Computational Fluid Dynamics (CFD) simulations, and several authors included microbial kinetics to simulate gradients in bioreactors. However, these studies relied on black-box kinetics that do not account for intracellular changes and cell population dynamics in response to heterogeneous environments. In this paper, we report the implementation of a Lagrangian reaction model, where the microbial phase is tracked as a set of biomass-parcels, each linked with an intracellular composition vector and a structured reaction model describing their intracellular response to extracellular variations. A stochastic parcel tracking approach is adopted, in contrast to the resolved trajectories used in CFD implementations. A penicillin production process is used as a case study. We show good performance of the model compared with full CFD simulations, both regarding the extracellular gradients and intracellular pool response, using the mixing time as a matching criterion and taking into account that the mixing time is sensitive to the number of compartments. The sensitivity of the model output towards some of the inputs is explored. The coarsest representative CM requires a few minutes to solve 80 h of flow time, compared with approximately 2 weeks for a full Euler-Lagrange CFD simulation of the same case. This alleviates one of the major bottlenecks for the application of such CFD simulations towards the analysis and optimization of industrial fermentation processes.
The compartment model (CM) is a well-known approach for computationally affordable, spatially resolved hydrodynamic modeling of unit operations. Recent implementations use flow profiles based on Computational Fluid Dynamics (CFD) simulations, and several authors included microbial kinetics to simulate gradients in bioreactors. However, these studies relied on black-box kinetics that do not account for intracellular changes and cell population dynamics in response to heterogeneous environments. In this paper, we report the implementation of a Lagrangian reaction model, where the microbial phase is tracked as a set of biomass-parcels, each linked with an intracellular composition vector and a structured reaction model describing their intracellular response to extracellular variations. A stochastic parcel tracking approach is adopted, in contrast to the resolved trajectories used in CFD implementations. A penicillin production process is used as a case study. We show good performance of the model compared with full CFD simulations, both regarding the extracellular gradients and intracellular pool response, using the mixing time as a matching criterion and taking into account that the mixing time is sensitive to the number of compartments. The sensitivity of the model output towards some of the inputs is explored. The coarsest representative CM requires a few minutes to solve 80 h of flow time, compared with approximately 2 weeks for a full Euler-Lagrange CFD simulation of the same case. This alleviates one of the major bottlenecks for the application of such CFD simulations towards the analysis and optimization of industrial fermentation processes.
Assessing the impact of environmental heterogeneity in industrial fermentations is a challenging aspect of process development. The disparity between timescales of nutrient uptake and of mixing may lead to nutrient gradients (Oosterhuis & Kossen, 1984) which may impact performance (Enfors et al., 2001; Larsson et al., 1996) and pose a scale‐up risk. From the cellular perspective, heterogeneous environments translate to temporal fluctuations, which experimental “scale‐down simulation” studies aim to replicate (Lara et al., 2006; Neubauer & Junne, 2010; Wang et al., 2015). Ideally, scale‐down studies represent the (expected) large‐scale environment, but quantifying this environment is not trivial for existing fermentors, let alone conceptual designs. Due to experimental limitations, quantification of the large‐scale environment often relies on simulations, combining Computational Fluid Dynamics (CFD) with “Computational Reaction Dynamics” (CRD). To incorporate the adaptation of microbes to fluctuating conditions, population balances (Morchain et al., 2013, 2016; Pigou & Morchain, 2014) or Lagrangian reaction models with biomass represented by virtual particles (parcels) are used (Lapin et al., 2004, 2006). While CFD considers detailed hydrodynamics, the computational burden constrains the use of combined CFD‐CRD. Even with considerable simplifications, weeks of simulation time may be required for a fed‐batch process.Compartment models (CMs) form a middle ground between ideal reactor models and full CFD. Originally they were based on experimental data (Oosterhuis & Kossen, 1984; Vrábel et al., 1999, 2001), now CFD is typically used as a basis (Bezzo et al., 2003, 2004; Delafosse et al., 2014). Combined with black‐box kinetics (Nadal‐Rey et al., 2021, 2020; Spann, Gernaey, et al., 2019; Spann, Glibstrup, et al., 2019; Tajsoleiman et al., 2019), large‐scale gradients are estimated in seconds. However, black‐box kinetics assume instantaneous equilibrium between intra‐ and extracellular conditions, which is questionable. As for CFD, more realistic reaction dynamics can be incorporated via population balances (Pigou & Morchain, 2014; Pigou et al., 2017) or parcel‐based models. A methodology for parcel tracking in CM exists (Delafosse et al., 2015), but biokinetics were not included. In this study we implement reaction dynamics in a CM with parcel tracking. We focus on the technical implementation and benchmarking against CFD simulations. Whilst a considerable reduction in computation time is already evident, further numerical optimization is a subject for further study.
MODEL SETUP
We present a CFD‐based CM with the biomass phase represented by computational particles, called parcels (Haringa et al., 2017), each representing biomass, with the overall biomass concentration, the liquid‐filled reactor volume, and the number of parcels. Although CM simulations differ from CFD, we adhere to the terminology “Eulerian” and “Lagrangian” to distinguish fields (liquid phase) and parcels (biomass phase; Delafosse et al., 2015). Penicillin production in a stirred fermentor is used as a case study; the CFD simulations underlying the CM were previously described by Haringa et al. (2016, 2018).
Compartment generation and flux calculation
Compartments are generated by clustering gridcells in CFD solver ANSYS FLUENT through a user‐defined function (UDF). A homogeneous cylindrical compartment grid with , , divisions in the respective dimensions is used (Delafosse et al., 2014); is the total number of compartments. The cases in this study are codified by the number of divisions as . The compartment generation procedure is summarized in Figure 1a (green box) and graphically outlined in Figure 1b. A compartment number is assigned to each gridcell (Figure 1b3) based on spatial coordinates. Compartment properties, for example, volume , are summed for each compartment in a cell‐loop (Figure 1b4). The convective intercompartment liquid‐phase mass flux (from compartments to ) is computed by summing the fluxes over all gridcell‐faces on the compartment interface where the flux direction is to ; from to is computed over the faces with reversed direction. Hence, (Figure 1b5). Together, the fluxes form the intercompartment convective flux matrix (Equation 1) where the negative diagonal term contains the flux out of compartment , and the other nonzero entries in a row indicate fluxes into compartment from neighbors (Delafosse et al., 2015).
Figure 1
(a) Compartment modeling workflow. (Green boxes) Generation of compartments in ANSYS FLUENT. (Orange) Transfer from FLUENT to Julia. (Blue) Setup and solving of the compartment model in Julia, for different reaction coupling scenarios. (b) Illustration of compartment generation algorithm in ANSYS FLUENT. (b1) CFD Solution. (b2) Define (geometric) compartment division. (b3) Loop over cells to assign compartment number . (b4) Loop over cells to compute compartment aggregate quantities, for example, compartment volume. (b5) Loop over faces to compute convective fluxes through compartment interfaces, as a sum of gridcell‐face fluxes on said interface. (b6) Loop over faces to compute turbulent fluxes through compartment interfaces, as the sum of gridcell‐face fluxes based on turbulent kinetic energy on said interface. CFD, Computational Fluid Dynamics
(a) Compartment modeling workflow. (Green boxes) Generation of compartments in ANSYS FLUENT. (Orange) Transfer from FLUENT to Julia. (Blue) Setup and solving of the compartment model in Julia, for different reaction coupling scenarios. (b) Illustration of compartment generation algorithm in ANSYS FLUENT. (b1) CFD Solution. (b2) Define (geometric) compartment division. (b3) Loop over cells to assign compartment number . (b4) Loop over cells to compute compartment aggregate quantities, for example, compartment volume. (b5) Loop over faces to compute convective fluxes through compartment interfaces, as a sum of gridcell‐face fluxes on said interface. (b6) Loop over faces to compute turbulent fluxes through compartment interfaces, as the sum of gridcell‐face fluxes based on turbulent kinetic energy on said interface. CFD, Computational Fluid DynamicsThe turbulent intercompartment fluxes, collected in turbulent flux matrix , are determined by summing the turbulent gridcell‐face flux (computed using Equation 2) over the compartment interfaces (Delafosse et al., 2014). Here, is the turbulent kinetic energy. In contrast to convection, turbulence is assumed to be bidirectional, hence (Figure 1b6).This direct computation approach of intercompartment fluxes from the CFD face‐fluxes results in excellent closure of the compartment mass balances. The stochastic parcel tracking method presented next is also compatible to other means of compartment generation, such as compartment clustering based on, for example, the velocity field (Bezzo et al., 2003, 2004; Tajsoleiman et al., 2019), as well as with unstructured compartment layouts. Parcel transport between compartments depends solely on fluxes and volumes, not on the interface shape. We do note that there is a risk of overestimating fluxes with rugged compartment interfaces, an issue that is further laid out in Supporting Information Appendix C, but does not currently apply.Matrices and and further compartment information (e.g., volumes) are transferred to Julia v1.5 (https://julialang.org/) as textfiles for CM–CRD calculations. The CM is a system of ODEs describing the species balances of intra‐ and extracellular components. The current implementation considers the liquid and parcel phase, resulting in differential equations, with the number of liquid‐phase species, and the number of intracellular pools in the model. A schematic overview of the CM implementation in Julia is provided in Figure 1a (blue box); the steps are outlined in the next sections.Currently, we focus on glucose as a substrate (). For penicillin production oxygen limitations may also play a role. As discussed in Haringa et al. (2016), no oxygen data were available for the studied process, and limitations were seemingly absent in a fermentor. Considering this combined with the focus on Lagrangian implementation in CM, that the underlying CFD did not include oxygen, and that the biokinetic model is not configured for oxygen limitation, its impact is omitted. A more complete physical process description will be considered in future work.
Parcel position updating
Parcel positions are updated within the ordinary differential equation (ODE)‐update function every timestep. Compared with precomputed position vectors (Delafosse et al., 2015) there is a memory benefit and small performance penalty. Parcel transport consists of two steps: (1) determining whether a parcel leaves compartment , and (2) determining the destination compartment in case it does. The first is determined by the compartment residence time: , where is the absolute total flowrate (convective plus turbulent) leaving compartment , drawn from . This links parcel transport to liquid flow, assuming that parcels are ideal flow‐followers (representing micron‐sized cells with low Stokes numbers). Assuming ideal mixing in each compartment, the probability of parcel leaving compartment in timespan equals . For step (2), the relative probability for jumping to compartment is , with the flowrate from to . Practically, the two steps can be combined by a “jump quantifier” as shown in pseudocode‐algorithm 1; if is negative, the parcel stays in place. If it is positive, ranges from 0 to 1 and determines the destination compartment.As parcel transport is based on the same fluxes as liquid transport, mixing based on the parcel concentration should yield the same results as for a liquid tracer. We validated the implementation by confirming that the mixing time measured from both perspectives is equal (see Section 3.1).
Mass balances and reaction calculations
For liquid‐phase species, the mole balances are given by Equation (3), with the feed vector (0 in nonfeed compartments) and the reaction vector.Depending on the model setup, is computed in different ways, with the reaction vector entry associated with compartment :If only mixing is studied, .If unstructured liquid‐phase kinetics are used, with computed from the local substrate concentration.For parcel‐based kinetics, is computed as the sum of the uptake by all parcels residing in gridcell (Equation 4), with the uptake and the quantity of biomass related to parcel .For parcel‐based kinetics, the kinetic equations are calculated for each parcel. For an unstructured model, uptake rate is solely a function of , with the compartment containing . For structured kinetics, both uptake rate and other (intracellular) rates may be a function of and intracellular metabolite‐ and enzyme pools linked to . The balances of the intracellular metabolite pools associated are determined by multiplication of reaction vector with stoichiometric matrix (Equation 5), here, represents pool dilution due to growth. For enzymatic pools, other equations may apply, according to the specific model formulation.The resulting set of equations is solved with the dynamic stepsize Bogacki–Shampine 3/2 method (Bogacki & Shampine, 1989) implemented in differentialequations.jl (Rackauckas & Nie, 2017); this method balances accuracy and speed (Supporting Information Appendix B). The solver was controlled using the relative tolerance and maximum timestep size . We note the best solver may vary depending on the problem size and stiffness.
Geometry and setup
The CM is applied to a penicillin production process. The stirred tank has diameter and liquid‐filled height . In this model development stage, the broth is assumed to behave as a single phase, Newtonian liquid; inclusion of aeration and rheology add complexity, but do not affect the general modeling approach. The bottom impeller (8 blade Rushton) has diameter and off‐bottom clearance , the top impeller (6 blade Rushton) and mutual impeller clearance . The stirring speed is 98 RPM. The frozen flow CFD model used for CFD is described in Haringa et al. (2016).
Modeling steps
The CM was used in four steps, described below. We use , , () as the base‐case compartment layout. Unless otherwise mentioned, , an integrator RelTol of 0.001 is used, and the maximum integrator timestep size .
Mixing study
Mixing is studied by injecting a tracer at . In CFD, a volume with diameter was patched with at , using a frozen flowfield, and setting turbulent Schmidt number (Haringa et al., 2016). For liquid‐phase mixing in the CM, is set to at in the injection‐containing compartment, , and stepsize . Mixing time is the time after which , measured by a point‐probe at , off‐center, compared with the injection plane. Parcel tracking is validated by comparing Eulerian and Lagrangian mixing. Lagrangian mixing is quantified by releasing parcels in the injection compartment and monitoring the local parcel concentration . Instead of a probe, the coefficient of mixing (volume‐weighted coefficient of variation, Equation 6) is used to monitor volumetric mixing with registered when (Hartmann et al., 2006).
Black‐box kinetics
Black‐box kinetics are used in two ways: coupled to the liquid phase, for comparison with CFD (Haringa et al., 2016), and coupled to the parcel phase, to validate the parcel‐based reaction implementation. The black‐box model considers only substrate uptake using Monod kinetics (Equation 7), with maximum uptake rate and affinity (de Jonge et al., 2011). The biomass concentration was fixed at . In the Lagrangian implementation, the biomass per parcel equals , with the total reactor volume. A constant glucose feed of is set at .
Structured kinetics—chemostat
Structured kinetics are implemented using the penicillin model (Tang et al., 2017), described in Supporting Information Appendix D. The ATP mass balance is replaced by an algebraic formulation to improve stability (Haringa et al., 2018); this modification means (4 metabolic, 4 enzymatic). Chemostat‐mode is implemented by fixing the pool size of , fixing , and setting a constant feed . Two parameter sets for uptake kinetics from Haringa et al. (2018) are used: “TU‐A,” with and (the model parameters of Tang et al.), and “TU‐B” with and , the black‐box model parameters of de Jonge et al. (2011). A sensitivity study (based on “TU‐B”), reported in Supporting Information Appendix B for brevity, is conducted towards the penicillin production rate () and computation time, addressing the impact of , , , integrator tolerance and integration algorithm.
Structured kinetics—fed‐batch
In the fed‐batch setup, and do vary, but the total reactor volume remains fixed, due to the limitations of the underlying CFD. A feed profile (Figure 7a) is imposed, with the feed‐rate , corrected for the fixed volume, being sampled every . A of process‐time is modeled, starting at , with and using .
Figure 7
Dynamics of a fed‐batch simulation for two compartment realizations with stochastic parcel tracking and parcel‐based kinetics (base‐case and A18R2 with ), compared with the full CFD simulation, an ideal‐mixed model, and plant data (Haringa et al., 2018). (a) Imposed feed profile. (b) Biomass concentration (legend applies to c and d, too). (c) Growth rate. (d) Specific penicillin production rate. (e) Parcel‐averaged intracellular pools. The dashed lines indicate 1 standard deviation. (f) Histograms of three pools (amino acids, transporter enzymes, and penicillin production enzymes) showing population heterogeneity at the end of the process. (Orange) Current simulation. (Transparent blue) CFD simulation from prior work (Haringa et al., 2018). CFD, Computational Fluid Dynamics
RESULTS AND DISCUSSION
I: Flow and mixing
Liquid‐phase mixing in the Eulerian CM is verified versus CFD results (Haringa et al., 2016). Mixing curves collected at the probe location (see Section 2.5.1) for selected cases are shown in Figure 2a; the mixing time versus number of compartments is visualized in Figure 2b. In line with Delafosse et al. (2014), matches CFD well for large , but ideally we want to be small to minimize computational demand. In the low ‐range, a broad scatter in is observed: few radial compartments result in an overestimation of (by underresolving the circulation), while few axial compartments leads to underestimation of (by underresolving axial mixing resistance). Properly balancing and can lead to a good solution in terms of . Keep in mind that this solution is not “grid‐independent,” it is acquired by balancing out errors. Still, if the predicted magnitude of the gradient and subsequent metabolic calculations are not impacted by the low , this forms a pragmatic, computationally manageable approach to model heterogeneity similar to the coarse manual compartmentalization used by Spann, Gernaey et al. (2019). We further explore the impact of in Section 3.3. Overall we conclude the mixing features observed in the CFD are well represented in the CM model, provided is chosen appropriately (or set large enough). A more elaborate mixing verification, including comparison to lab‐scale data (Jahoda et al., 2007), is presented in Supporting Information Appendix A.
Figure 2
Mixing behavior in the compartment model. (a) Mixing curve (single‐point measurement) for several realizations of the compartment model compared with the CFD result. Note that the cases were selected based on agreement with the CFD simulation; more cases are discussed in Supporting Information Appendix A. (b) Point‐based mixing time versus number of compartments (colored by ) for the full range of tested compartment realizations. (c) Comparison between Eulerian (tracer‐based) and Lagrangian (parcel‐based) mixing time, using the coefficient of mixing, for various . in these cases (). CFD, Computational Fluid Dynamics; CM, compartment model
Mixing behavior in the compartment model. (a) Mixing curve (single‐point measurement) for several realizations of the compartment model compared with the CFD result. Note that the cases were selected based on agreement with the CFD simulation; more cases are discussed in Supporting Information Appendix A. (b) Point‐based mixing time versus number of compartments (colored by ) for the full range of tested compartment realizations. (c) Comparison between Eulerian (tracer‐based) and Lagrangian (parcel‐based) mixing time, using the coefficient of mixing, for various . in these cases (). CFD, Computational Fluid Dynamics; CM, compartment modelThe parcel tracking algorithm is validated by computing the parcel mixing time with in the base‐case CM. Figure 2c compares the tracer‐based and parcel‐based CoM‐curves, revealing excellent agreement for large . For low , statistical fluctuations in the local parcel concentration prohibit the mixing threshold from being reached, but this is not necessarily problematic: if fluctuations are fast compared with the reaction timescale (), they do not propagate (significantly) in the reaction model. Importantly, the first of Figure 2c shows the rate of mixing is not affected by low ; deviations from the Eulerian curve only occur when stochastic effects set in. In Supporting Information Appendix A we show that the mixing rate deviates for large due to a bias towards long compartment residence times. However, when kinetics are included, adaptive timestepping keeps small, sufficiently mitigating this effect (Supporting Information Appendix B).
II: Black‐box kinetics
Black‐box Monod kinetics are implemented in both the Eulerian and Lagrangian frameworks, to verify the substrate gradient with respect to CFD. The (E)xcess/(L)imitation/(S)tarvation regime definition (Haringa et al., 2016) is used for visualization. Figure 3 compares the regime distribution for various compartment layouts, for both Eulerian and Lagrangian couplings, with CFD. The finite causes fluctuations in local biomass concentration for Lagrangian coupling, inducing spurious substrate concentration fluctuations and hence regime fluctuations. These fluctuations are averaged out over (ca. 30 mixing times). With both coupling methods the regime distribution is reproduced to a satisfactory degree. The size of the E and L regime is slightly larger in the Lagrangian CM (quantified in Table 1 over a full process simulation), while the average residence time is somewhat lower (Table 2). These deviations are small, but may have some impact on the ‐results with a coupled metabolic model.
Figure 3
Regime analysis in the compartment model using Monod kinetics. (Left) Full CFD model (). Compartment models layouts from left to right: A18R2T1 (, ), A26R6T1 (, ), A48R12T6 (, )). “L” indicates the time‐averaged Lagrangian result, “E” the Eulerian result. (Red) Excess, . (Blue) Starvation, . (Yellow) Limitation, in between. CFD, Computational Fluid Dynamics
Table 1
Comparison of mean extracellular substrate concentration and the regime division for different ; other settings equal that of the base‐case
Np=100
Np=1000
Np=5000
CM (Euler)
CFD (Euler)
Cs¯
4.23 ⋅ 10−5
4.17 ⋅ 10−5
4.15 ⋅ 10−5
3.92 ⋅ 10−5
3.44 ⋅ 10−5
Cs,p¯
3.84 ⋅ 10−5
3.97 ⋅ 10−5
3.99 ⋅ 10−5
3.81 ⋅ 10−5
3.29 ⋅ 10−5
Excess (%)
9.0 ± 5.5
9.1 ± 2.0
8.9 ± 1.0
8.7
6.8
Limit. (%)
37.5 ± 10.6
35.7 ± 4.3
35.7 ± 2.4
33.9
36.2
Starv. (%)
53.5 ± 11.1
55.2 ± 4.6
55.4 ± 2.5
57.4
57.0
Note: The Lagrangian results are averaged over 80 h, the margin indicates 2 standard deviations. is the mean volumetric substrate concentration (mol/kg), the mean substrate concentration registered by parcels (mol/kg). For the Lagrangian cases, the regime distribution is reported from the parcel perspective. In the Eulerian case, parcels were tracked as passive concentration readers to compute .
Abbreviations: CFD, Computational Fluid Dynamics; CM, compartment model.
Table 2
Average regime residence times in CM and CFD simulations, registered per transition pattern
Case
τreg¯s, CM (Lagrange)
τreg¯s, CM (Euler)
τreg¯s, CFD
LEL
3.09
3.01
3.65
LSL
5.06
5.65
9.37
ELE
3.13
3.54
4.67
ELS
5.36
5.67
6.45
SLE
5.61
5.92
5.39
SLS
2.06
2.07
3.77
Note: CM simulations were conducted with , flow‐time, and .
Abbreviations: CFD, Computational Fluid Dynamics; CM, compartment model.
Comparison of mean extracellular substrate concentration and the regime division for different ; other settings equal that of the base‐caseNote: The Lagrangian results are averaged over 80 h, the margin indicates 2 standard deviations. is the mean volumetric substrate concentration (mol/kg), the mean substrate concentration registered by parcels (mol/kg). For the Lagrangian cases, the regime distribution is reported from the parcel perspective. In the Eulerian case, parcels were tracked as passive concentration readers to compute .Abbreviations: CFD, Computational Fluid Dynamics; CM, compartment model.Average regime residence times in CM and CFD simulations, registered per transition patternNote: CM simulations were conducted with , flow‐time, and .Abbreviations: CFD, Computational Fluid Dynamics; CM, compartment model.Regime analysis in the compartment model using Monod kinetics. (Left) Full CFD model (). Compartment models layouts from left to right: A18R2T1 (, ), A26R6T1 (, ), A48R12T6 (, )). “L” indicates the time‐averaged Lagrangian result, “E” the Eulerian result. (Red) Excess, . (Blue) Starvation, . (Yellow) Limitation, in between. CFD, Computational Fluid DynamicsThe spurious oscillations in local substrate concentrations due to the finite are visualized in Figure 4 in three compartments; lower results in stronger oscillations. A consistent, positive offset in can be observed, which is more pronounced at low . In brief (further discussed in Supporting Information Appendix B.2), this offset occurs because at low , uptake only occurs in a subset of compartments (those containing parcels), raising in “empty” compartments, and consequently the average volumetric substrate concentration (Haringa et al., 2017). Whether these spurious oscillations propagate into the intracellular response depends on the timescales; if the timescale of artificial extracellular oscillations matches the timescales related to intracellular pools, artificial intracellular oscillations may be observed, which could result in erroneous results (e.g., if there are irreversible or hysteresis effects in the metabolic model). Currently, some oscillations are observed in pool (especially with low ), but these do not substantially propagate to other intracellular pools due to their longer turnover times. A second effect observed for low is a discrepancy between the volumetric mean and mean concentration registered by parcels, , because parcels by definition reside in compartments where uptake is active. The discrepancy strongly reduces for large , but does not vanish completely for as some inhomogeneity in the parcel distribution exists, by the long‐residence time bias discussed in Section 3.1. These observations are discussed in Supporting Information Appendix B.2.
Figure 4
Oscillations in substrate concentration, measured at three different axial locations: at the feed point (top lines), at (middle lines) and at (bottom lines). (Light gray lines) , (dark gray) , and (black) . The red lines represent the Eulerian solution
Oscillations in substrate concentration, measured at three different axial locations: at the feed point (top lines), at (middle lines) and at (bottom lines). (Light gray lines) , (dark gray) , and (black) . The red lines represent the Eulerian solutionFor further comparison, lifelines are collected over flowtime with sampling interval in both the Eulerian and Lagrangian models (in the Eulerian model, parcels are passive tracers). Example lifelines are shown in Figure 6, top. The lifelines are subjected to the regime‐analysis method (Haringa et al., 2016) to compare flow phenomena between the CM and CFD, Figure 5. As in CFD, a moving average filter with a window of and a “fuzzy boundary” filter of for excess and are applied to remove short, low‐amplitude regime transitions (see Haringa et al., 2016 for details). The residence time distributions for the Lagrangian (dark lines) and Eulerian (light lines) nearly perfectly overlap (Figure 5a). Compared with CFD (Figure 5b), very similar features are observed, albeit with more prominent short‐time peaks (especially for SLS and LSL). Because of the ideal mixing assumption, parcels can instantly jump back and forth in CM, whereas in CFD a circulation trajectory through a regime has to be followed. These effects are also reflected in the mean residence times (Table 2), which are similar, but except SLE, slightly shorter in the CM. Generally, is slightly shorter in the Lagrangian implementation. This may reflect that, by taking up substrate, parcels introduce additional dynamics in their direct environment that somewhat affect the distributions.
Figure 6
(Top) Example lifelines of specific glucose uptake rate (scaled with ) for a parcel in the base‐case (red) and coarse model (A18R2, yellow) compared with the CFD case (black), using the chemostat setup. (Bottom) Pool dynamics of the CFD simulations versus CM base‐case. (Black) CFD, parameter set “TU‐B.” (Gray) CFD, parameter set “TU‐A.” (Red) CM, parameter set “TU‐B.” (Blue) CM, parameter set “TU‐A.” CFD, Computational Fluid Dynamics; CM, compartment model
Figure 5
Regime analysis (Haringa et al., 2016) for the base‐case CM model (a), compared with CFD results (b). Results represent the nonnormalized number of counts. (a1, a2) CM results for the excess (red) and starvation regime (blue) with a linear and logarithmic y‐axis, respectively; dark lines represent Lagrangian reaction coupling, light lines Eulerian coupling. (a3, a4) Results for the limitation regime, discriminated by trajectory. (b) CFD results (Haringa et al., 2016); the difference in the number of counts (y‐axis) compared with (a) originates from differences in and timespan. CFD, Computational Fluid Dynamics; CM, compartment model
Regime analysis (Haringa et al., 2016) for the base‐case CM model (a), compared with CFD results (b). Results represent the nonnormalized number of counts. (a1, a2) CM results for the excess (red) and starvation regime (blue) with a linear and logarithmic y‐axis, respectively; dark lines represent Lagrangian reaction coupling, light lines Eulerian coupling. (a3, a4) Results for the limitation regime, discriminated by trajectory. (b) CFD results (Haringa et al., 2016); the difference in the number of counts (y‐axis) compared with (a) originates from differences in and timespan. CFD, Computational Fluid Dynamics; CM, compartment model
III: Structured kinetics: Chemostat
With structured kinetics, of flowtime is simulated to establish steady‐state intracellular pools. The CM simulations are compared with CFD in Figure 6, bottom, with . Data were stored every to minimize time spent on data writing, and averaged over all parcels. The base‐case CM with parameter set “TU‐A” shows a near‐perfect match with the CFD result, with a relative offset in of ca. . This is despite an overestimation of the excess zone and underestimation of the starvation zone, indicating these impacts cancel each other out (details in Supporting Information Appendix B.6). The results with parameter set “TU‐B” show ca. relative offset in the predicted , indicating that for this case, the impact of the larger excess zone/higher observed by parcels in the CM dominates (Table 2, further discussed in Supporting Information Appendix B.2). These results indicate that selection of the compartment layout only using may lead to a margin of error in predictions; a more thorough evaluation, aimed at matching the (black‐box) regime distribution, may provide more accurate results. This will be investigated in future work. In Table 3, results are shown for several other compartment layouts with similar , revealing the limited impact of and . While CFD required around 1 day of computation per hour of flow time (with frozen flow, and ), the CM requires slightly more than an hour to run 80 h of flow time for the base‐case, and ca. for the coarsest implementation. Naturally, the numbers will be dependent on the model complexity: while low facilitates a fast runtime, it is not suitable to study the potential emergence of population heterogeneity; this requires larger with due computational cost. A wide range of model settings are analyzed in Supporting Information Appendix B.
Table 3
Performance of various compartment realizations in predicting in chemostat configuration
Compartments
Parcels
Runtime (s)
qp(end)
%diff.CFD
CFD(TU‐A)
2500
>106
3.57⋅10−4
–
A26R6T1
1000
4363
3.54⋅10−4
−0.8
A18R2T1
36
183
3.54⋅10−4
−0.9
CFD(TU‐B)
2500
>106
2.99⋅10−4
–
A26R6T1
1000
4247
2.67⋅10−4
−10.5
A48R10T6
1000
29,602
2.78⋅10−4
−6.9
A18R2T1
1000
3973
2.74⋅10−4
−8.3
A18R2T1
36
201
2.79⋅10−4
−6.6
Note: In all cases, the total flowtime is , , RelTol = 0.001. The top rows match the Computational Fluid Dynamics (CFD) simulation “TU‐A” from (Haringa et al., 2018), the bottom rows match CFD simulation “TU‐B.” More cases are reported in Supporting Information Appendix B.
Performance of various compartment realizations in predicting in chemostat configurationNote: In all cases, the total flowtime is , , RelTol = 0.001. The top rows match the Computational Fluid Dynamics (CFD) simulation “TU‐A” from (Haringa et al., 2018), the bottom rows match CFD simulation “TU‐B.” More cases are reported in Supporting Information Appendix B.(Top) Example lifelines of specific glucose uptake rate (scaled with ) for a parcel in the base‐case (red) and coarse model (A18R2, yellow) compared with the CFD case (black), using the chemostat setup. (Bottom) Pool dynamics of the CFD simulations versus CM base‐case. (Black) CFD, parameter set “TU‐B.” (Gray) CFD, parameter set “TU‐A.” (Red) CM, parameter set “TU‐B.” (Blue) CM, parameter set “TU‐A.” CFD, Computational Fluid Dynamics; CM, compartment model
IV: Structured kinetics: Fed‐batch
To conclude, we compare the CM with fed‐batch CFD (Haringa et al., 2018). We are currently subject to the same simplifications as in CFD, particularly assuming a constant volume. In future work, this limitation may be lifted, for example, by stepwise updating of the compartment volumes (Nadal‐Rey et al., 2021). Biomass per parcel and the glucose transporter concentration are dynamic pools in the fed‐batch simulation. Figure 7 compares CFD, the CM base‐case in fed‐batch mode, and a low‐resolution CM‐case (, , ). In addition, ideally mixed black‐box and 9‐pool model simulations are added. The industrial data shows that in the first , rapidly drops (Figure 7c), despite the growth rate being near the optimum (Douma et al., 2011, 2010) (Figure 7c). This drop is attributed to the heterogeneous substrate concentration in the tank. By definition, this is not accounted for in the ideally mixed simulations ( and ), which predict a steady until drops due to increasing at a constant feed rate (Figure 7a). Overall, predicts a lower than because the parameterization of the structured model gives a slightly lower maximum (Tang et al., 2017). The CM and CFD simulations do predict the initial drop in , where the parcel‐bound kinetics, that allows parcels to be out of equilibrium with their surroundings, is essential to predict the rate of change in (instant adaptation of to local would induce a much larger drop; Haringa et al., 2016). Both the CM and CFD do overpredict slightly more than the ideally mixed models (Figure 7b). Because this is not the case for compared with , it is likely a result of the CFD assumptions (e.g., constant volume, hence ) rather than model parameterization. This may be tested in future work if the dynamic volume is implemented. Important for the current scope is that the CM models, even with low resolution, are in excellent agreement with CFD for the model under consideration. Due to the stochasticity induced by low , the growth rate (Figure 7c) is more strongly oscillating in the CM simulations, but no systemic offset is observed.Dynamics of a fed‐batch simulation for two compartment realizations with stochastic parcel tracking and parcel‐based kinetics (base‐case and A18R2 with ), compared with the full CFD simulation, an ideal‐mixed model, and plant data (Haringa et al., 2018). (a) Imposed feed profile. (b) Biomass concentration (legend applies to c and d, too). (c) Growth rate. (d) Specific penicillin production rate. (e) Parcel‐averaged intracellular pools. The dashed lines indicate 1 standard deviation. (f) Histograms of three pools (amino acids, transporter enzymes, and penicillin production enzymes) showing population heterogeneity at the end of the process. (Orange) Current simulation. (Transparent blue) CFD simulation from prior work (Haringa et al., 2018). CFD, Computational Fluid DynamicsIf we consider the intracellular pools (Figure 7e), we see good agreement between CM and CFD, with minor offsets in mean pool size and the standard deviation, the latter being representative of population heterogeneity. The emergence of population heterogeneity in the base‐case CM is visualized in figure 7f, showing the distribution of the amino acid pool, glucose transporter pool, and penicillin‐producing enzyme pool. As in Figure 7e, we observe good qualitative agreement with a minor quantitative offset compared with CFD. As for the CFD approach, the CM approach is capable of making predictions regarding the emergence of population heterogeneity, although we must stress (as in Haringa et al., 2018) that the predictions regarding population heterogeneity have not been experimentally verified. At this point, they mostly serve to present hypotheses for experimental follow‐up, which we regard as an interesting future avenue.
CONCLUSIONS
We report a CM with stochastic parcel tracking to represent the biotic phase to allow coupling of structured multipool models, akin to Lagrangian tracking in CFD simulations. The extracellular conditions experienced by microbes in these models can be monitored and used in scale‐down design. The use of CM provides a strong computational gain; even simplified Euler–Lagrange CFD can take weeks for a full batch—compared with minutes for the coarsest CM. While the substrate gradient layout matches well, the simplified hydrodynamics in CM lead to slight differences in the substrate distribution compared with CFD, resulting a relative offset in the microbial response of up to depending on the kinetic parameter set. The compartment layouts were selected based on a single‐point mixing criterion, which may not fully reflect mixing and hence substrate distribution in the whole reactor. We expect that compartment selection based on matching the substrate distribution (with black‐box kinetics) reduces the offset. The CM simulations run faster than real‐time, opening up new applications in, for example, process optimization, that are out of reach for full CFD. A number of physical simplifications were made in the model setup, equaling those in the CFD model. Future extensions may aim at improving the physical process model, by including, for example, the gas phase, mass transfer, and volume changes in fed‐batch processes (Nadal‐Rey et al., 2021). Further gains in runtime may be possible by numerical optimization, considering solvers that are better suited for the stochastic nature of parcel tracking than regular ODE‐solvers, or making use of the notion that successive exponential decay processes aggregate to a Poisson process. The current implementation focused on a simple, geometrical compartment division. This can be improved using phenomenological compartmentalization, for example, based on the flowfield (Tajsoleiman et al., 2019) or substrate distribution, or using relevant timescales in the process to guide compartmentalization. The stochastic parcel tracking implementation is compatible with other means of compartmentalization, as it is based only on compartment volumes and intercompartment fluxes.
Algorithm 1. Pseudocode for the jump determination algorithm used in the CM model
1: ψ=rand(1) #draw uniform random number between 0 and 1
2: Qjump=Pjump(p,i)−ψPjump(p,i) # jump quantifier 3: if Qjump=<0 not jumping
4: else Qjump>0 jump, determine destination
5: if Pdest,1>=Qjump jump to 1st neighbor
6: elseif (Pdest,1+Pdest,2)>=Qjump jump to second neighbor
7: elseif (Pdest,1+Pdest,2+⋯+Pdest,m)>=Qjump jump to mth neighbor
Authors: S O Enfors; M Jahic; A Rozkov; B Xu; M Hecker; B Jürgen; E Krüger; T Schweder; G Hamer; D O'Beirne; N Noisommit-Rizzi; M Reuss; L Boone; C Hewitt; C McFarlane; A Nienow; T Kovacs; C Trägårdh; L Fuchs; J Revstedt; P C Friberg; B Hjertager; G Blomsten; H Skogman; S Hjort; F Hoeks; H Y Lin; P Neubauer; R van der Lans; K Luyben; P Vrabel; A Manelius Journal: J Biotechnol Date: 2001-02-13 Impact factor: 3.307
Authors: Rutger D Douma; Peter J T Verheijen; Wim T A M de Laat; Joseph J Heijnen; Walter M van Gulik Journal: Biotechnol Bioeng Date: 2010-07-01 Impact factor: 4.530
Authors: Lodewijk P de Jonge; Nicolaas A A Buijs; Angela ten Pierick; Amit Deshmukh; Zheng Zhao; Jan A K W Kiel; Joseph J Heijnen; Walter M van Gulik Journal: Biotechnol J Date: 2011-08 Impact factor: 4.677
Authors: Gisela Nadal-Rey; Dale D McClure; John M Kavanagh; Sjef Cornelissen; David F Fletcher; Krist V Gernaey Journal: Biotechnol Adv Date: 2020-11-19 Impact factor: 14.227
Authors: Robert Spann; Jens Glibstrup; Klaus Pellicer-Alborch; Stefan Junne; Peter Neubauer; Christophe Roca; David Kold; Anna Eliasson Lantz; Gürkan Sin; Krist V Gernaey; Ulrich Krühne Journal: Biotechnol Bioeng Date: 2018-12-31 Impact factor: 4.530
Authors: Cees Haringa; Wenjun Tang; Amit T Deshmukh; Jianye Xia; Matthias Reuss; Joseph J Heijnen; Robert F Mudde; Henk J Noorman Journal: Eng Life Sci Date: 2016-09-14 Impact factor: 2.678