Next Article in Journal
Computational Approach for the Fluid-Structure Interaction Design of Insect-Inspired Micro Flapping Wings
Next Article in Special Issue
Actin Turnover Required for Adhesion-Independent Bleb Migration
Previous Article in Journal
Analysis of Carleman Linearization of Lattice Boltzmann
Previous Article in Special Issue
The Role of the Double-Layer Potential in Regularised Stokeslet Models of Self-Propulsion
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Optimal Design of Bacterial Carpets for Fluid Pumping

1
Department of Mathematics and BioInspired Syracuse, Syracuse University, 900 South Crouse Avenue, Syracuse, NY 13244, USA
2
Department of Mathematics, Syracuse University, 900 South Crouse Avenue, Syracuse, NY 13244, USA
3
Department of Mathematics, University of San Diego, 5998 Alcalá Park, San Diego, CA 92110, USA
4
Department of Mathematics and Statistics, James Madison University, 800 South Main Street, Harrisonburg, VA 22807, USA
5
Department of Mathematics, Applied Mathematics and Statistics, Case Western Reserve University, 10090 Euclid Avenue, Cleveland, OH 44106, USA
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Fluids 2022, 7(1), 25; https://doi.org/10.3390/fluids7010025
Submission received: 6 October 2021 / Revised: 11 December 2021 / Accepted: 29 December 2021 / Published: 5 January 2022

Abstract

:
In this work, we outline a methodology for determining optimal helical flagella placement and phase shift that maximize fluid pumping through a rectangular flow meter above a simulated bacterial carpet. This method uses a Genetic Algorithm (GA) combined with a gradient-based method, the Broyden-Fletcher-Goldfarb-Shanno (BFGS) algorithm, to solve the optimization problem and the Method of Regularized Stokeslets (MRS) to simulate the fluid flow. This method is able to produce placements and phase shifts for small carpets and could be adapted for implementation in larger carpets and various fluid tasks. Our results show that given identical helices, optimal pumping configurations are influenced by the size of the flow meter. We also show that intuitive designs, such as uniform placement, do not always lead to a high-performance carpet.

1. Introduction

Bacterial carpets consist of multiple flagellated bacteria naturally or artificially adhered to a surface, with the flagella positioned outward into the fluid. The geometry of the surrounding fluid may be open [1] or it may be inside a tube or microscale channel [2]. The study of fluid flow or pumping by bacterial carpets has been of significant interest in microfluidics for the past couple of decades. There are numerous experimental studies on flow and mixing induced by helices [3,4,5], biomimetic cilia [6,7], and bacterial carpets [1,2,8,9,10].
These carpets can be modeled using various numerical representations of flagella by rigid or flexible helices. Because of the small length scales involved, these fluids are often modeled as low-Reynolds-number, Newtonian fluids [11]. Additionally, a number of numerical studies have been performed to examine the effect of these carpets on mixing and pumping [12,13,14,15]. Several of these studies have observed that helical placement and phase shifts alter the qualitative and quantitative characteristics of the fluid flow. However, to the best of the authors’ knowledge, no existing work has systematically looked at optimizing flow subject to these helical parameters.
Ideally these bacterial carpets are created in order to control or achieve either a directional flow or mixing in the fluid. In this study, the authors outline an approach to maximize the volume of fluid pumped through a flow meter placed slightly above the simulated helices subject to several variables such as the locations of the helices and their phase shifts. Such an optimization problem faces the following two fundamental challenges. First, a priori knowledge of what makes a carpet ‘good’ at pumping is lacking. Second, function evaluations for the objective task (pumping) are computationally costly fluid simulations. We seek a method that strikes a balance between reliability in finding the optimal carpet and computational efficiency.
The fluid simulations outlined in Section 2.1, Section 2.2 and Section 2.3 are based on those from [12,13] for simulating fluid flows induced by one or more rigid helical structures rotating with each helix attached to a wall (semi-infinite domain). Section 2.4 outlines a method which first employs a genetic algorithm [16,17,18] applied to a surrogate model in order to obtain a good starting guess for an optimal carpet. Compared to the full model, the surrogate model can be simulated at a substantially reduced computational cost. This carpet is then used as the initial solution in a gradient-based method [19,20,21,22,23,24,25] to find the optimal carpet. Our method takes advantage of the genetic algorithm’s ability to perform a global search along with the efficiency and accuracy of the gradient-based method. The procedure outlined here addresses optimizing the flow subject to helical parameters and has broad utility as a framework which may be adapted for a multitude of future applications. This method is tested and validated in Section 3 for cases of one, two, three, and four helices.

2. Methods

We model a bacterial carpet as a collection of rigid, helical filaments attached to a stationary planar wall and immersed in a viscous fluid. In Section 2.1, we lay out the Method of Regularized Stokeslets (MRS) used to solve the fluid equations. Section 2.2 and Section 2.3 describe the setup of both the rigid helices and the flow meter developed and utilized as a measure for the optimization described in Section 2.4.

2.1. Fluid Solver

The methods described in this section are pulled directly from [12,13]. The fluid is governed by the incompressible Stokes equations
p + μ Δ u = F ,
· u = 0 ,
where p ( x ) is fluid pressure, μ is fluid viscosity, u ( x ) is fluid velocity, and F ( x ) is an external force density acting on the fluid. Using the MRS [26,27], we characterize the external force at each point x k as a smooth concentrated force F k ( x ) = f k ψ ϵ ( | x x k | ) . Here, f k is a constant vector and ψ ϵ is a smooth approximation of the Dirac delta function commonly referred to as a blob function. In this work,
ψ ϵ ( r ) = 15 ϵ 4 8 π ( r 2 + ϵ 2 ) 7 / 2 .
The forces acting on the fluid come from the N points discretizing the rigid bodies in the fluid. Note that the MRS calculates the exact solution due to a regularized point force. To model a helical filament with nonzero effective thickness, we distribute regularized point forces along its centerline. Implementing the MRS, the velocity u at any point x resulting from forces f k located at positions x k is
u ( x ) = k = 1 N f k ( r k 2 + 2 ϵ 2 ) + ( f k · ( x x k ) ) ( x x k ) 8 π ( r k 2 + ϵ 2 ) 3 / 2 ,
where r k = | x x k | . Note that the forces are implemented at the positions x k , and the velocity can be evaluated at any point x without requiring an underlying computational grid for the fluid domain, hence the velocity is defined everywhere.
When evaluating the velocity at the positions x k , Equation (3) can be written as
U = A F
where A is 3 N × 3 N , U is 3 N × 1 and contains the N velocities u ( x k ) , and F is 3 N × 1 and contains the N forces f k . To prescribe the kinematics of the rigid, rotating helices, one must define the velocities at the N points on the helices and solve the linear system (4) for the N forces that result in the desired velocity. These forces can then be used in Equation (3) to find the resulting velocity at any point in the unbounded domain. In practice, we solve a non-dimensional system, as is shown in detail in [12].
To incorporate a stationary planar wall, the method of images for regularized Stokeslets [28] is used to enforce a no-slip ( u = 0 ) boundary condition. In this formulation, an image source consisting of a regularized Stokeslet, doublet, dipole, and rotlet is mirrored across the boundary. This results in an infinite planar wall at which the velocity is zero, and no underlying grid is required to model the wall. In previous work [13], it was shown that the choice of boundary condition affects the efficiency of a bacterial carpet at pumping fluid. Therefore, we expect that when a different boundary condition is considered, such as the periodic boundary condition [29,30], the optimal configuration of the carpet will change. In terms of implementation, the optimization methods described in Section 2.4 still apply; the only change is how the objective function of the optimization problem (see Section 2.3) should be evaluated. (To be more precise, using a different boundary condition only affects how the flow field is calculated within the objective function.)

2.2. Helical Flagellum

As in previous work [12,13], we model each bacterial flagellum as a rotating helical filament, x c = ( x c , y c , z c ) , whose centerline, parametrized by σ , is
x c ( σ ) = α tanh ( τ σ ) cos 2 π σ λ + ϕ , y c ( σ ) = α tanh ( τ σ ) sin 2 π σ λ + ϕ , z c ( σ ) = σ ,
for 0 σ L . Here, L is the height of the helix, α is the helical radius, τ is a tapering parameter, λ is the helical pitch, and ϕ is the phase shift. We then discretize each helix into n equally spaced points. As in the Refs. [13,31], we choose parameters to be close to the typical dimensions of Escherichia coli bacteria. All default parameters, given in non-dimensional units, are listed in Table 1.
The kinematics of each helix are prescribed using the time-dependent rotation matrix
R ω = cos ( ω t ) sin ( ω t ) 0 sin ( ω t ) cos ( ω t ) 0 0 0 1
with angular velocity ( 0 , 0 , ω ) . A negative value of ω results in a clockwise rotation when viewed from above. At any point in time, the position of the helix is given by
x ( t ) = R ω x c + x b ,
where x b is the location of the base point.
In this work, the helices are assumed to be rigid. Under this assumption, we can prescribe their shape and motion as above. In many biophysical problems, the shape and motion of cilia or flagella are a result of fluid-structure interactions and typically unknown a priori. Models that are more suitable for these problems can be found in [32,33], for example. Although the model described here is not realistic in some applications, such as carpets made up of live bacteria, it is appropriate for man-made carpets and allows for a straight-forward investigation into questions of optimization.

2.3. Measurement of Pumping

In order to quantify fluid pumping by a carpet of helices described in Section 2.2, we measure the volume of fluid pumped upward through a flow meter stationed above the carpet during one rotation of the helices, as in the Ref. [13].
More precisely, the flow meter is chosen to be the following square “patch” parallel to the no-slip wall at z = 0 :
( x , y , z m ) | 0 x W and 0 y W ,
where z m is greater than the height L of the helices and W denotes the width of the patch. Figure 1 shows such a flow meter above a carpet consisting of two helices. We note that the only boundary of the fluid is the infinite, planar, and solid wall at z = 0 , on which the flow vanishes. The flow meter simply provides a means of quantifying pumping and is not physically placed in the fluid. Thus, it has no effect on the fluid flow.
Let θ R d contain all the design parameters that we aim to optimize. As specified in Section 3, in this work, the design parameters are the ( x , y ) coordinates of the base points and the phase shifts of the helices. Nevertheless, the methods described in this section and in Section 2.4 still apply if different design parameters are considered. The following function then quantifies pumping for a carpet whose configuration is determined by the choice of θ :
f ( θ ) = 0 W 0 W 0 T u 3 x , y , z m , t , θ d t d x d y ,
where T is the time that it takes for the helices to perform one rotation and u 3 x , y , z m , t , θ denotes the z- direction fluid velocity at a point ( x , y , z m ) on the flow meter (7) at time t. Given θ , we estimate f ( θ ) as follows. We first approximate the triple integral in Equation (8) by the following double integral:
0 W 0 W k = 1 N t u 3 x , y , z m , t k 1 , θ · Δ t d x d y ,
where N t is the number of time steps, Δ t = T / N t is the size of the time step, and t k 1 = ( k 1 ) · Δ t for k = 1 , 2 , , N t ; and then we evaluate (9) using a quadrature rule. The values of T and N t used in the numerical experiments can be found in Table 1. The fluid velocities u 3 at the quadrature points discretizing the flow meter (7) are calculated using the MRS.
As outlined in Section 2.1, at each time point t k 1 , calculating the forces exerted by the points on the helices to the surrounding fluid requires solving a linear system (4) whose coefficient matrix is of size 3 N × 3 N , where N is the number of points. The computational cost, using the standard “big O ” notation, is therefore O N 3 . After the forces have been calculated, evaluating u 3 x , y , z m , t k 1 , θ at N q quadrature points entails O N q N additional operations (see Equation (3)). In summary, the computational complexity of evaluating f ( θ ) is
O N 3 + O N q N · N t .
This implies that the computational cost of evaluating f ( θ ) increases cubically with the number of helices in the carpet, assuming that the same number of points are used to discretize each helix. The computational cost also increases with the size of the flow meter since more quadrature points are needed to approximate the integral (9) if the same accuracy is desired.

2.4. Optimization

To optimize the helical parameters of a bacterial carpet for a task (fluid pumping in the case of this work), we must solve the following optimization problem:
Find θ * that maximizes f ( θ ) ,
where θ R d contains d design parameters, such as the locations of the helices and their phase shifts, f ( θ ) : R d R is a scalar function that measures the performance of the carpet at the task. (Depending on the task and definition of f ( θ ) , we may wish to maximize or minimize f ( θ ) . In this work, the goal is to maximize f ( θ ) ). Unfortunately, an analytic form of f ( θ ) is usually unavailable and evaluating it entails numerical simulations of the fluid around the carpet. To solve (11), we need to apply a numerical optimization algorithm, which in turn requires evaluating f at different θ ’s. In this section, we discuss two such algorithms: Genetic Algorithms (GAs) which are gradient-free and typically used to find a global optimizer, and the Broyden–Fletcher–Goldfarb–Shanno (BFGS) algorithm, a gradient-dependent, quasi-Newton method that can converge to a local optimizer quickly if a good estimate is given. To find a global optimizer of f ( θ ) efficiently, we propose to use a hybrid method that exploits both a GA’s ability at identifying a global optimizer and the BFGS algorithm’s fast convergence.

2.4.1. Genetic Algorithms (GAs)

GAs [16,17,18] are often applied to find the global minimum or maximum of a function. They “evolve” a pool of candidate solutions towards better solutions through an iterative process inspired by natural selection. More specifically, the best solutions of the current generation are selected, recombined, and possibly mutated to produce the next generation of solutions. We first randomly select the initial generation of solutions. In each iteration that follows, a portion of the current generation of solutions is chosen at random to be “parents” to the next generation. The solutions that produce lower (higher) function values are more likely to be chosen, if the minimum (maximum) is sought. Two parent solutions can be combined as follows to produce a “child” solution. Every entry of the child solution is set to the corresponding entry of one of the parents, depending on the result of a coin flip. We can also mutate a parent solution to produce a child solution by adding a number taken from a Gaussian distribution with mean 0 to each entry of the parent solution. GAs return the best solution among the final generation of candidate solutions as the optimizer. We note that the methods described above are not unique, and there exist many options for the creation of the initial population and the selection, crossover, and mutation of the parent solutions. Custom methods that are tailored to the optimization problem (11) at hand can also be devised. Like natural selection, GAs are stochastic, and therefore, their performance may be affected by the sequence of random numbers used.
GAs and gradient-free optimization methods in general suffer from slow convergence. As will be shown in Section 3.1, even for the simplest carpet made up of a single helix, a GA entails thousands of evaluations of the objective function. This can be prohibitively expensive for fluid problems such as the ones considered here.

2.4.2. The Broyden-Fletcher-Goldfarb-Shanno (BFGS) Algorithm

The BFGS algorithm [21,22,23,24,25] is an iterative method for optimization that starts with an initial guess θ 0 and calculates a new estimate as
θ k + 1 = θ k + α k δ k , f o r   k = 0 , 1 , 2 , ,
where α k is a scalar and δ k a search direction. Like in Newton’s method, the search direction δ k in Equation (12) is obtained by solving a linear system
H k δ k = f ( θ k ) ,
where f ( θ k ) is the gradient of f at θ k . In Newton’s method, the coefficient matrix H k in Equation (13) is the Hessian matrix associated with f at θ k , whereas the BFGS algorithm uses an approximation to the Hessian instead that is considerably easier to calculate and invert. After δ k has been calculated, α k in Equation (12) is then chosen to be the scalar that optimizes f θ k + α δ k . When an analytic form of f ( θ ) is unavailable, such as in the problems considered here, the gradient f ( θ k ) needs to be approximated numerically, for example, by the forward difference method.
The BFGS algorithm converges rapidly to a local optimizer of f ( θ ) if the initial guess θ 0 is close to it. However, the algorithm may get “stuck” at a local optimizer that is not global if θ 0 is not carefully chosen; unfortunately, for the problems considered here, it remains unclear how to choose it. As will be shown in Section 3, even for simple carpets, the initial configuration that we intuit may turn out to be inferior.

2.4.3. The Hybrid Method

To take advantage of both a GA’s higher reliability at finding the global optimizer and the BFGS algorithm’s higher efficiency given a good initial guess, we propose to use a hybrid approach for solving (11) that consists of the following two steps:
Step 1:
find a maximizer θ of s ( θ ) using a GA, where s is a surrogate model for f;
Step 2:
find a maximizer θ * of f ( θ ) using the BFGS algorithm with θ as the initial guess for θ * .
The surrogate model s ( θ ) should be significantly cheaper to evaluate than f ( θ ) so that it is feasible to apply a GA to it in Step 1, yet it should also be sufficiently representative of f ( θ ) so that θ will be close to θ * and thus the BFGS algorithm will converge quickly in Step 2. The s ( θ ) that we use employs coarser temporal, spatial discretization and will be specified in Section 3.

3. Results

All the computational results are obtained in MATLAB® version R2017a on a virtual machine equipped with two Intel® Xeon® E7-8890 v4 Processors with twenty-four cores per processor and 64GB of RAM. MATLAB’s Parallel Computing Toolbox is used to parallelize the computations. Default parameters are given in Table 1 and do not vary throughout the numerical experiments. Using a different set of values will only affect the evaluation of the objective function and does not affect how the optimization methods described in Section 2.4 will be implemented. The design parameters are chosen to be the phase shifts and ( x , y ) coordinates of the bases of the helices, and we aim to determine their optimal values that achieve maximal pumping using the methods in Section 2.4. We consider carpets made up of a single helix (Section 3.1), a pair of helices (Section 3.2), and multiple helices (Section 3.3).
Applying the hybrid method described in Section 2.4.3 to the optimization problem (11) entails evaluating the objective function f ( θ ) and its surrogate s ( θ ) repeatedly at different θ ’s. As shown in Table 1, the spatial and temporal discretization used in s is about ten times as coarse as the discretization used in f. For flow meters of various sizes and carpets consisting of various numbers of helices, we compare the runtimes required to evaluate f ( θ ) and s ( θ ) . Specifically, we consider three values of the width W of the flow meter (7): 2.5 , 5, and 10 as well as cases of one, two, and four helices. The runtimes entailed by evaluating f ( θ ) and s ( θ ) for each combination of W and number of helices are listed in Table 2. Here, and for the rest of the paper, runtimes are measured in seconds by MATLAB’s tic and toc commands. Recall that a double integral must be evaluated to calculate f ( θ ) or s ( θ ) (see (9)). We use MATLAB’s function integrate2 with its default setting to approximate this integral numerically.
As seen in Table 2, the time to evaluate both f ( θ ) and s ( θ ) increases with the number of helices and the size of the flow meter; this is expected given the computational complexity (10). The runtime increases with the size of the flow meter because more quadrature points are needed as the domain of integration in (9) increases. For the same flow meter and number of helices, evaluating s ( θ ) is significantly cheaper than evaluating f ( θ ) .

3.1. A Single Helix

We first consider the case of a single helix by investigating the following question: Where should the helix be placed to maximize pumping? We fix all design parameters of the helix except for the ( x , y ) coordinates of its base point, that is, θ = x b , y b R 2 in the optimization problem (11).
In Figure 2, we show the streamlines drawn based on the instantaneous fluid velocity around a rotating helix. As can be seen in Figure 2d,e, the helix moves the fluid near its tip upward while rotating, and there are also regions of downward flow away from the helix. A more detailed experimental analysis of the flow field around a single rotating helix can be found in [31] and a numerical study was performed in [12,13].
Since we consider an incompressible Newtonian fluid, as the width W of the flow meter (7) approaches infinity, the volume of the fluid pumped through the meter goes to zero regardless of the values of the design parameters. However, in applications, only flow meters of finite sizes are of interest, and the volume of fluid that is transported through a finite flow meter does change depending on the placement of the helix relative to the flow meter.
We consider a square flow meter defined by (7) and three values of W: 2.5 , 5, and 10. In Figure 3b,d,f, we show the surface and contour plots of f ( θ ) over the domain [ 0 , W ] × [ 0 , W ] corresponding to W = 2.5 , 5, and 10, respectively. For each W, in order to produce the pair of plots, we sample f at the following uniformly distributed grid points:
( i 1 ) · W 100 , ( j 1 ) · W 100 i , j = 1 101 .
As can be seen in Figure 3b,d,f, for all three values of W, global maximizers of f lie on the diagonals of the domain. It is interesting to note that while the global maximizer is the center W 2 , W 2 of the domain and unique when W = 2.5 or 5, there are four global maximizers located near the four corners of the domain when W = 10 . While intuition might lead one to expect the center to be the global maximizer, in fact, it is a local minimizer when W = 10 , and the global maximum ( 0.0389 ) is considerably larger than this local minimum ( 0.0250 ). This clearly demonstrates the importance of quantitative analysis when searching for an optimal design of a bacterial carpet.
To further investigate why the optimal location of the helix is near the corners instead of the center of the domain when the width of the flow meter is 10, in Figure 4, we draw the contour plots of the instantaneous z-direction fluid velocity on the flow meter when the helix is based at one of the four optimal locations (Figure 4a) and when it is based at the center of the domain (Figure 4b). Comparing the two contour plots, we observe that when the helix is based at the center, a considerably larger region on the flow meter has small negative z-direction velocity. More precisely, the areas enclosed by the level curves corresponding to z-direction velocities 0.00025 , 0.0005 , 0.00075 , and 0.0009 in Figure 4b are almost twice as large as their counterparts in Figure 4a. In addition, Figure 4 also helps explain why the optimal location of the helix is at the center when the width of the flow meter is 2.5 or 5: both flow meters are small enough that placing the helix at the center maximizes the region with large positive z-direction velocity while creating no region or only a negligible region where the z-direction velocity is negative.
We apply both the hybrid method described in Section 2.4.3 and a GA to solve (11) and compare their performance. In Step 1 of the hybrid method, we apply a GA to find a maximizer θ of s ( θ ) , the surrogate model of f ( θ ) (see Table 1 and Table 2 for a comparison of the two functions); and in Step 2 of the hybrid method, we apply the BFGS algorithm with initial guess θ to find a maximizer θ * of f ( θ ) . In Table 3, we list the maximizers θ and θ * found in the hybrid method for flow meters (7) of widths 2.5 , 5, and 10. In Figure 3a,c,e, we also display the top views of the optimal carpets corresponding to the three flow meters respectively. Table 4 and Table 5 contain the numbers of iterations, the numbers of function evaluations, and the runtimes of the hybrid method and a GA, respectively. We use MATLAB’s ga function, an implementation of a GA, to find maximizers for both s ( θ ) and f ( θ ) . The default setting of ga is used except that parallel computing is enabled and the range of the initial generation of candidate solutions is set to [ 0 , W ] × [ 0 , W ] . We note that GAs are not deterministic (see Section 2.4.1). Thus, for reproducibility of the results presented in Table 3, Table 4 and Table 5, we reset the seed of MATLAB’s random number generators to 0 using the command rng default before calling the function ga. We use MATLAB’s fminunc function with its default setting, which implements the BFGS algorithm, to find a maximizer of f ( θ ) in Step 2 of the hybrid method (Both MATLAB functions ga and fminunc are for the minimization of a given objective function. Since we wish to maximize s ( θ ) or f ( θ ) instead, in our MATLAB implementation, we use s ( θ ) or f ( θ ) as the objective function).
As seen in Table 4 and Table 5, for all three flow meters, the hybrid method is significantly more efficient than the GA, requiring 90 % less runtime. Although the GA requires about three thousand function evaluations to converge whether it is applied to s ( θ ) or f ( θ ) , since s ( θ ) is considerably cheaper to evaluate (see Table 2), applying the GA to s ( θ ) is also considerably cheaper. In the hybrid method, once the estimate θ is found by the GA in Step 1, the BFGS algorithm, which starts with θ , converges quickly to the maximizer θ * in Step 2, requiring only two or three iterations and less than 20 function evaluations. Moreover, we can see that the hybrid method is more accurate than the GA by comparing the maximizers x b * , y b * and x b * * , y b * * found by the two methods, respectively (see Table 3 and Table 5). We also observe that the runtimes of both the hybrid method and GA increase with the size of the flow meter. Note that since the initial candidate solutions are randomly chosen in the GA, in the case where the flow meter is 10 × 10 , both the hybrid method and GA may find different maximizers in different runs if we do not reset the seed of the random number generators to the same number.
To demonstrate the robustness of the GA at finding a good initial guess in Step 1 of the hybrid method, for the case where the flow meter is 10 × 10 , we apply the GA to s ( θ ) sixty-four times and initialize the random number generators based on the current time using the command rng shuffle before each run. The GA uses a different sequence of random numbers in each run due to the re-initialization. In Figure 5a, we display all sixty-four θ ’s found by the GA. They form four clusters around the four maximizers of f ( θ ) (see Figure 3f), and the sizes of the clusters are 20, 19, 10, and 15. This demonstrates that the GA applied to s ( θ ) always finds an initial guess θ close to one of the maximizers of f ( θ ) , although the maximizer may differ from run to run depending on the sequence of random numbers used. Runtime of the GA varies with the seed of the random number generators as well. In Figure 5b, we show a histogram of the sixty-four runtimes, the majority of which is less than 1800 s.

3.2. A Pair of Helices

We now apply the hybrid method to find an optimal design of a carpet consisting of two helices for fluid pumping. We set the phase shift of the first helix to zero ( ϕ 1 = 0 ) and let the design parameters be the ( x , y ) coordinates of the base points of the two helices and the phase shift of the second helix. That is,
θ = x b 1 , y b 1 , x b 2 , y b 2 , ϕ 2 R 5 .
This optimization problem (11) is significantly more difficult to solve than the one in Section 3.1, not only because there are more design parameters (five instead of two) but also because the computational cost of evaluating f ( θ ) and s ( θ ) increases with the number of helices (see (10)) as is shown in Table 2.
In Figure 6, we show the streamlines drawn based on the instantaneous fluid velocity around a pair of rotating helices. As can be seen in Figure 6d,e, the helices move the fluid near their tips upward while rotating. A more detailed analysis of the flow field around a pair of rotating helices can be found in [13].
We again consider a square flow meter (7) and three values of W, as in Section 3.1. The maximizers found by the hybrid method are listed in Table 6 and the top views of the corresponding optimal carpets are displayed in Figure 7. We use θ = x b 1 , y b 1 , x b 2 , y b 2 , ϕ 2 to denote the maximizer of s ( θ ) found by the GA and θ * = x b 1 * , y b 1 * , x b 2 * , y b 2 * , ϕ 2 * to denote the maximizer of f ( θ ) found by the BFGS algorithm using θ as its initial guess. The iteration counts, numbers of function evaluations, and runtimes of the GA and BFGS algorithm are reported in Table 7.
As can be seen in Table 6 and Figure 7, the hybrid method suggests that in order to maximize pumping, we should place the pair of helices along the diagonal of the domain [ 0 , W ] × [ 0 , W ] and set the phase shift of the second helix to π (recall that the phase shift of the first helix is fixed at 0). These results are consistent with what was observed in [13] in that pumping was maximized when the difference between the phase shifts is π . However, we note that while this does maximize pumping, the distance between the optimal locations of the helices is sufficiently large so that when they are placed at these locations, the choice of phase shifts has a minimal impact on pumping. (For a pair of helices, the effect of the difference between their phase shifts on pumping has been studied in [13], where they were placed at various distances apart.) This is similarly observed for the cases of three and four helices considered in Section 3.3. We conjecture that the choice of phase shifts will play a greater role when the optimal locations of the helices are forced to be closer to one another, such as when there are more helices or when the flow meter is smaller.
Table 7 shows that, like in the case of a single helix, although a large number of iterations and function evaluations are needed for the GA to find the initial guess, θ , once it is found, the BFGS algorithm only requires a relatively small number of iterations and function evaluations to converge to the maximizer, θ * . Additionally, the total runtime of the hybrid method increases with the size of the flow meter.
In the case with one helix, because we were optimizing over only two parameters, the ( x , y ) coordinates of the base of the helix, we could easily visualize the objective function. Now however, we are optimizing over five parameters (the base coordinates of each helix, and the phase shift of the second) so it is more difficult to visualize our objective function in a useful way. In order to investigate how the placement of the pair of helices affects the carpet’s performance at pumping, for the flow meters (7) with widths W = 5 and 10, we fix the phase shifts of both helices, the location of one of the them and calculate f ( θ ) as the location of the other helix is varied. To be more precise, we fix all the design parameters of the optimal carpets shown in Figure 7b,c except for the location of the lower helix. We then examine the value of f ( θ ) as we move the lower helix along the dashed line shown in Figure 8a,c. This line goes through the base points x b 1 * , y b 1 * and x b 2 * , y b 2 * of the two helices in the optimal carpet found by the hybrid method. As can be seen in Figure 8b, when W = 5 , the pumping capability of the carpet first grows as the distance increases, peaks as the moving helix reaches its optimal position x b 1 * , y b 1 * found by the hybrid method, and then starts to decline as the distance increases further. For the case W = 2.5 , the graph of f ( θ ) is quite similar and not shown here. As shown in Figure 8d, the graph of f ( θ ) is even more interesting in the case of W = 10 . As the distance increases, the value of f ( θ ) first increases to reach a local maximum and then decreases to reach a local minimum, before it increases again to the global maximum when the moving helix is at its optimal position x b 2 * , y b 2 * calculated by the hybrid method. In Figure 8, a few sample locations of the moving helix as well as the corresponding values of f ( θ ) are marked for reference.

3.3. Multiple Helices

We also apply the hybrid method to determine optimal designs that maximize pumping for carpets consisting of three and four helices. The design parameters are the ( x , y ) coordinates of the base points and phase shifts of the helices. (The phase shift of the first helix is fixed at 0, as in Section 3.2). Thus, there are eight and eleven design parameters in these two cases respectively.
In the top two rows and bottom two rows of Figure 9, we show the streamlines drawn based on the instantaneous fluid velocity around three and four rotating helices, respectively. As can be seen in Figure 9d,e,i,j, the helices move the fluid near their tips upward while rotating.
We again consider the square flow meter (7) whose width is W = 5 and display the top views of the optimal carpets in Figure 10. Interestingly, the helices approximately form an equilateral triangle when there are three of them (Figure 10a) and a square when there are four (Figure 10b) and both shapes are centered at 2.5 , 2.5 . The differences between the phase shifts of two helices located on adjacent vertices are 2 π 3 and π in the two cases respectively.
For the case of four helices, we also examine the objective function f ( θ ) for a family of carpets which includes the optimal one found by the hybrid method. They share the following properties: the base points of the four helices form a square centered at 2.5 , 2.5 , each of its four edges is parallel to the x or y axis, and the difference in the phase shifts of two helices located on adjacent vertices is π . In Figure 11a, we illustrate three such carpets whose base points are marked by crosses. The optimal carpet found by the hybrid method is also plotted for reference. For this family of carpets, we plot the value of f ( θ ) against the width of the square in Figure 11b, which indicates that as the square becomes larger, the ability of the carpet to pump first increases and then decreases, reaching its maximum at the width predicted by the hybrid method. One key observation can be made from Figure 11 that when the four helices are uniformly distributed within the domain [ 0 , 5 ] × [ 0 , 5 ] , that is, when the width of the square is 2.5 , the pumping is sub-optimal. Once again, this shows that intuition does not necessarily lead to optimal carpet design.
In Table 8, we report the numbers of iterations, numbers of function evaluations as well as runtimes of the hybrid method. Comparing Table 4, Table 7 and Table 8, we note that the computational cost of the hybrid method increases progressively with the number of helices. This is again due to the growing number of design parameters and cost of evaluating f ( θ ) and s ( θ ) (see (10) and Table 2).

4. Discussion

We outlined and validated a numerical method for optimizing a fabricated bacterial carpet for fluid pumping through a rectangular flow meter placed just above the helix or helices representing the bacterial flagella. The optimal placement of bacteria in a carpet has many practical applications in biofluidics, as well as the study of food capture or transport of nutrients for or by microorganisms [1,2,8,9,34,35]. To the authors’ knowledge, this is the first study to investigate optimization of carpet design for a flow task or objective. While other methods have previously numerically studied the effects of relative helical positions and phase shifts on pumping [13], this method is the first to study the selection of helical placement and phase shift to maximize fluid pumping.
The optimization problems considered here are challenging for several reasons. Firstly, local maximizers that are not global do exist, and gradient-based methods can converge quickly to these, missing a global maximizer. Secondly, the chosen objective function is not explicitly known, and evaluating it entails computationally expensive fluid simulations. Our approach first employs a GA to perform a global search for an initial solution, then uses this as the starting point for a gradient-based method to perform local searches for the optimal carpet. The GA is applied to a surrogate model for the objective function, which uses coarser temporal and spatial discretization to reduce computational costs. Once an initial solution is found by the GA, the gradient-based method is able to quickly and accurately identify a maximizer in its local vicinity.
The framework developed here is versatile and not limited to optimizing pumping or by the measurement tool employed here (the flow meter). It could also be adapted to consider more design parameters. That is, the carpet could be optimized for mixing or any other fluid task for which an objective function can be determined, or for other helical parameters. For example, since tilt plays an important role in pumping with synthetic flagella for biomedical devices [12,36], we might include tilt in future studies. This would introduce new complications since, for example with multiple helices, solving the optimization problem will be more complicated to avoid flagella physically overlapping.
Our results show that, with the current measurement of pumping, the optimal carpet design depends significantly on the size of the flow meter. Intuitive designs, such as uniform placement, do not always lead to a high-performance carpet. These results highlight the importance of quantitative analysis.
We observed that computing an optimal carpet becomes substantially more expensive as the number of helices increases. At one level, the efficiency of the GA could be improved by using custom methods for crossover and mutation that are more tailored to bacterial carpets. At another level, we want to reduce the computational costs associated with fluid simulation. For example, we might consider implementing regularized Stokeslet segments to reduce the number of points used to model the helices [37]. Additionally, when the number of helices is large, more sophisticated methods must be applied to solve for the forces exerted by the helices on the fluid [38] and calculate the fluid velocities from helical forces [39].

Author Contributions

Conceptualization, M.W.R., A.B., E.S. and L.Z.; methodology, M.W.R.; software, M.W.R.; validation, M.W.R. and W.L.; formal analysis, M.W.R. and W.L.; investigation, M.W.R. and W.L.; resources, M.W.R. and W.L.; data curation, M.W.R.; writing—original draft preparation, M.W.R., A.B., E.S. and L.Z.; writing—review and editing, M.W.R., W.L., A.B., E.S. and L.Z.; visualization, M.W.R., W.L. and L.Z.; funding acquisition, M.W.R. and E.S. All authors have read and agreed to the published version of the manuscript.

Funding

M.W.R. and W.L. were supported, in part, by the National Science Foundation under grant DMS-1818833 (PI: M.W.R.).

Data Availability Statement

The data presented in this study are available on request from the corresponding author.

Acknowledgments

The authors would like to thank the Department of Mathematics and Statistics at James Madison University for supporting a collaborative research meeting in 2019. L Zhao also thanks the support of ACES+ ADVANCE Opportunity Grant from CWRU.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Darnton, N.; Turner, L.; Breuer, K.; Berg, H.C. Moving fluid with bacterial carpets. Biophys. J. 2004, 86, 1863–1870. [Google Scholar] [CrossRef] [Green Version]
  2. Kim, M.J.; Breuer, K.S. Use of bacterial carpets to enhance mixing in microfluidic Systems. J. Fluids Eng. 2006, 129, 319–324. [Google Scholar] [CrossRef] [Green Version]
  3. Purcell, E.M. The efficiency of propulsion by a rotating flagellum. Proc. Natl. Acad. Sci. USA 1997, 94, 11307–11311. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  4. Liu, B.; Breuer, K.S.; Powers, T.R. Helical swimming in Stokes flow using a novel boundary-element method. Phys. Fluids 2013, 25, 061902. [Google Scholar] [CrossRef] [Green Version]
  5. Liu, B.; Powers, T.R.; Breuer, K.S. Force-free swimming of a model helical flagellum in viscoelastic fluids. Proc. Natl. Acad. Sci. USA 2011, 108, 19516–19520. [Google Scholar] [CrossRef] [Green Version]
  6. Shields, A.R.; Fiser, B.L.; Evans, B.A.; Falvo, M.R.; Washburn, S.; Superfine, R. Biomimetic cilia arrays generate simultaneous pumping and mixing regimes. Proc. Natl. Acad. Sci. USA 2010, 107, 15670–15675. [Google Scholar] [CrossRef] [Green Version]
  7. Hanasoge, S.; Hesketh, P.; Alexeev, A. Microfluidic pumping using artificial magnetic cilia. Microsyst. Nanoeng. 2018, 4. [Google Scholar] [CrossRef] [Green Version]
  8. Stone, H.; Stroock, A.; Ajdari, A. Engineering flows in small devices: Microfluidics toward a lab-on-a-Chip. Annu. Rev. Fluid Mech. 2004, 36, 381–411. [Google Scholar] [CrossRef] [Green Version]
  9. Hesse, W.R.; Kim, M.J. Visualization of flagellar interactions on bacterial carpets. J. Microsc. 2009, 233, 302–308. [Google Scholar] [CrossRef]
  10. Kim, H.; Cheang, U.K.; Kim, D.; Ali, J.; Kim, M.J. Hydrodynamics of a self-actuated bacterial carpet using microscale particle image velocimetry. Biomicrofluidics 2015, 9, 024121. [Google Scholar] [CrossRef] [Green Version]
  11. Lauga, E. Bacterial hydrodynamics. Annu. Rev. Fluid Mech. 2016, 48, 105–130. [Google Scholar] [CrossRef] [Green Version]
  12. Buchmann, A.; Fauci, L.; Leiderman, K.; Strawbridge, E.; Zhao, L. Flow induced by bacterial carpets and transport of microscale loads. In Applications of Dynamical Systems in Biology and Medicine; Jackson, T., Radunskaya, A., Eds.; Springer: New York, NY, USA, 2015; Volume 158, The IMA Volumes in Mathematics and its Applications; pp. 35–53. [Google Scholar] [CrossRef]
  13. Buchmann, A.; Fauci, L.J.; Leiderman, K.; Strawbridge, E.; Zhao, L. Mixing and pumping by pairs of helices in a viscous fluid. Phys. Rev. E 2018, 97, 023101. [Google Scholar] [CrossRef] [Green Version]
  14. Mathijssen, A.J.T.M.; Guzmán-Lastra, F.; Kaiser, A.; Löwen, H. Nutrient transport driven by microbial active carpets. Phys. Rev. Lett. 2018, 121, 248101. [Google Scholar] [CrossRef] [Green Version]
  15. Ding, Y.; Nawroth, J.C.; McFall-Ngai, M.J.; Kanso, E. Mixing and transport by ciliary carpets: A numerical study. J. Fluid Mech. 2014, 743, 124–140. [Google Scholar] [CrossRef] [Green Version]
  16. Goldberg, D.E. Genetic Algorithms in Search, Optimization and Machine Learning, 1st ed.; Addison-Wesley Longman Publishing Co., Inc.: Boston, MA, USA, 1989. [Google Scholar]
  17. Mitchell, M. An Introduction to Genetic Algorithms; MIT Press: Cambridge, MA, USA, 1998. [Google Scholar]
  18. Whitley, D. A genetic algorithm tutorial. Stat. Comput. 1994, 4, 65–85. [Google Scholar] [CrossRef]
  19. Curry, H.B. The method of steepest descent for non-linear minimization problems. Q. Appl. Math. 1944, 2, 258–261. [Google Scholar] [CrossRef] [Green Version]
  20. Lemaréchal, C. Cauchy and the gradient method. Doc. Math. 2012, Extra Volume ISMP, 251–254. [Google Scholar]
  21. Broyden, C.G. The convergence of a class of double-rank minimization algorithms: 1. General considerations. IMA J. Appl. Math. 1970, 6, 76–90. [Google Scholar] [CrossRef]
  22. Broyden, C.G. The convergence of a class of double-rank minimization algorithms: 2. The new algorithm. IMA J. Appl. Math. 1970, 6, 222–231. [Google Scholar] [CrossRef] [Green Version]
  23. Fletcher, R. A new approach to variable metric algorithms. Comput. J. 1970, 13, 317–322. [Google Scholar] [CrossRef] [Green Version]
  24. Goldfarb, D. A family of variable-metric methods derived by variational means. Math. Comput. 1970, 24, 23–26. [Google Scholar] [CrossRef]
  25. Shanno, D.F. Conditioning of quasi-Newton methods for function minimization. Math. Comput. 1970, 24, 647–656. [Google Scholar] [CrossRef]
  26. Cortez, R. The method of regularized Stokeslets. SIAM J. Sci. Comput. 2001, 23, 1204–1225. [Google Scholar] [CrossRef]
  27. Cortez, R.; Fauci, L.; Medovikov, A. The method of regularized Stokeslets in three dimensions: Analysis, validation, and application to helical swimming. Phys. Fluids 2005, 17, 031504. [Google Scholar] [CrossRef]
  28. Ainley, J.; Durkin, S.; Embid, R.; Boindala, P.; Cortez, R. The method of images for regularized Stokeslets. J. Comput. Phys. 2008, 227, 4600–4616. [Google Scholar] [CrossRef]
  29. Leiderman, K.; Bouzarth, E.L.; Cortez, R.; Layton, A.T. A regularization method for the numerical solution of periodic Stokes flow. J. Comput. Phys. 2013, 236, 187–202. [Google Scholar] [CrossRef]
  30. Nguyen, H.N.; Leiderman, K. Computation of the singular and regularized image systems for doubly-periodic Stokes flow in the presence of a wall. J. Comput. Phys. 2015, 297, 442–461. [Google Scholar] [CrossRef]
  31. Zhong, S.; Moored, K.; Pinedo, V.; Garcia-Gonzalez, J.; Smits, A. The flow field and axial thrust generated by a rotating rigid helix at low Reynolds numbers. Exp. Therm. Fluid Sci. 2013, 46, 1–7. [Google Scholar] [CrossRef]
  32. Meng, F.; Bennett, R.R.; Uchida, N.; Golestanian, R. Conditions for metachronal coordination in arrays of model cilia. Proc. Natl. Acad. Sci. USA 2021, 118. [Google Scholar] [CrossRef] [PubMed]
  33. Chakrabarti, B.; Fürthauer, S.; Shelley, M.J. A multiscale biophysical model gives quantized metachronal waves in a lattice of cilia. arXiv 2021, arXiv:cond-mat.soft/2108.01693. [Google Scholar]
  34. Beebe, D.J.; Mensing, G.A.; Walker, G.M. Physics and applications of microfluidics in biology. Annu. Rev. Biomed. Eng. 2002, 4, 261–286. [Google Scholar] [CrossRef] [PubMed]
  35. Rusconi, R.; Garren, M.; Stocker, R. Microfluidics expanding the frontiers of microbial ecology. Annu. Rev. Biophys. 2014, 43, 65–91. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  36. Zhao, L. Fluid-Structure Interaction in Viscous Dominated Flows. Ph.D. Thesis, The University of North Carolina at Chapel Hill, Chapel Hill, NC, USA, 2010. [Google Scholar]
  37. Cortez, R. Regularized Stokeslet segments. J. Comput. Phys. 2018, 375, 783–796. [Google Scholar] [CrossRef] [Green Version]
  38. Rostami, M.W.; Olson, S.D. Fast algorithms for large dense matrices with applications to biofluids. J. Comput. Phys. 2019, 394, 364–384. [Google Scholar] [CrossRef]
  39. Rostami, M.W.; Olson, S.D. Kernel-independent fast multipole method within the framework of regularized Stokeslets. J. Fluids Struct. 2016, 67, 60–84. [Google Scholar] [CrossRef]
Figure 1. A sketch of a carpet consisting of two helices and a square flow meter (7) above it. The top view of the helices is also shown. The bases of the helices are attached to an infinite, planar, and solid wall located at z = 0 .
Figure 1. A sketch of a carpet consisting of two helices and a square flow meter (7) above it. The top view of the helices is also shown. The bases of the helices are attached to an infinite, planar, and solid wall located at z = 0 .
Fluids 07 00025 g001
Figure 2. Streamlines of the flow around a single rotating helix at the midpoint of a cycle. The location and phase shift of the helix are shown in Figure 3c. Top row: Streamlines plotted using only the x- and y-direction fluid velocities on the slice planes located at z = 0.1 (a), z = 1.1 (b), and z = 2.5 (c). Bottom row: Streamlines plotted using only the y- and z-direction fluid velocities on the slice planes located at x = 1.25 , 2.5 , 3.75 (d); streamlines plotted using only the x- and z-direction fluid velocities on the slice planes located at y = 1.25 , 2.5 , 3.75 (e).
Figure 2. Streamlines of the flow around a single rotating helix at the midpoint of a cycle. The location and phase shift of the helix are shown in Figure 3c. Top row: Streamlines plotted using only the x- and y-direction fluid velocities on the slice planes located at z = 0.1 (a), z = 1.1 (b), and z = 2.5 (c). Bottom row: Streamlines plotted using only the y- and z-direction fluid velocities on the slice planes located at x = 1.25 , 2.5 , 3.75 (d); streamlines plotted using only the x- and z-direction fluid velocities on the slice planes located at y = 1.25 , 2.5 , 3.75 (e).
Fluids 07 00025 g002
Figure 3. The top views of the optimal carpets found by the hybrid method (a,c,e) and the surface and contour plots of f ( θ ) (b,d,f) in the case of a single helix. The three rows correspond to three sizes of the flow meter (7): W = 2.5 (a,b), 5 (c,d), and 10 (e,f).
Figure 3. The top views of the optimal carpets found by the hybrid method (a,c,e) and the surface and contour plots of f ( θ ) (b,d,f) in the case of a single helix. The three rows correspond to three sizes of the flow meter (7): W = 2.5 (a,b), 5 (c,d), and 10 (e,f).
Fluids 07 00025 g003
Figure 4. Contour plots of the z-direction velocity on the flow meter (7) with W = 10 at the midpoint of a cycle in the case of a single rotating helix. The phase shift of the helix is 0. (a): The location of the helix is shown in Figure 3e. (b): The helix is based at ( 5 , 5 ) , the center of the domain.
Figure 4. Contour plots of the z-direction velocity on the flow meter (7) with W = 10 at the midpoint of a cycle in the case of a single rotating helix. The phase shift of the helix is 0. (a): The location of the helix is shown in Figure 3e. (b): The helix is based at ( 5 , 5 ) , the center of the domain.
Fluids 07 00025 g004
Figure 5. The estimate θ found by Step 1 of the hybrid method and the runtime of this step as the seed of the random number generators varies for the case of a single helix. The flow meter is (7) with W = 10 . Step 1 is repeated sixty-four times and a different seed is used each time. (a): Clustering of the sixty-four θ ’s around the four maximizers of f ( θ ) . (b): Histogram of the sixty-four runtimes.
Figure 5. The estimate θ found by Step 1 of the hybrid method and the runtime of this step as the seed of the random number generators varies for the case of a single helix. The flow meter is (7) with W = 10 . Step 1 is repeated sixty-four times and a different seed is used each time. (a): Clustering of the sixty-four θ ’s around the four maximizers of f ( θ ) . (b): Histogram of the sixty-four runtimes.
Fluids 07 00025 g005
Figure 6. Streamlines drawn from the flow around a pair of rotating helices at the midpoint of a cycle. The locations and phase shifts of the helices are shown in Figure 7b. Top row: Streamlines plotted using only the x- and y-direction fluid velocities on the slice planes located at z = 0.1 (a), z = 1.1 (b), and z = 2.5 (c). Bottom row: Streamlines plotted using only the y- and z-direction fluid velocities on the slice planes located at x = 1.25 , 2.5 , 3.75 (d); streamlines plotted using only the x- and z-direction fluid velocities on the slice planes located at y = 1.25 , 2.5 , 3.75 (e).
Figure 6. Streamlines drawn from the flow around a pair of rotating helices at the midpoint of a cycle. The locations and phase shifts of the helices are shown in Figure 7b. Top row: Streamlines plotted using only the x- and y-direction fluid velocities on the slice planes located at z = 0.1 (a), z = 1.1 (b), and z = 2.5 (c). Bottom row: Streamlines plotted using only the y- and z-direction fluid velocities on the slice planes located at x = 1.25 , 2.5 , 3.75 (d); streamlines plotted using only the x- and z-direction fluid velocities on the slice planes located at y = 1.25 , 2.5 , 3.75 (e).
Fluids 07 00025 g006
Figure 7. Top views of the optimal carpets consisting of a pair of helices found by the hybrid method. The three panels correspond to three sizes of the flow meter (7): W = 2.5 (a), 5 (b), and 10 (c).
Figure 7. Top views of the optimal carpets consisting of a pair of helices found by the hybrid method. The three panels correspond to three sizes of the flow meter (7): W = 2.5 (a), 5 (b), and 10 (c).
Fluids 07 00025 g007
Figure 8. The graph of f ( θ ) as the location of one helix varies along a straight line while the location of the other helix and the phase shifts of both helices remain fixed. The two rows correspond to two sizes of the flow meter (7): W = 5 (a,b) and 10 (c,d). (a,c): The top view of the optimal carpet with the path of the moving helix marked by a dashed line. (b,d): The value of f ( θ ) as the distance between the base points of the helices increases. In (ad), the crosses correspond to a few sample locations along the dashed line.
Figure 8. The graph of f ( θ ) as the location of one helix varies along a straight line while the location of the other helix and the phase shifts of both helices remain fixed. The two rows correspond to two sizes of the flow meter (7): W = 5 (a,b) and 10 (c,d). (a,c): The top view of the optimal carpet with the path of the moving helix marked by a dashed line. (b,d): The value of f ( θ ) as the distance between the base points of the helices increases. In (ad), the crosses correspond to a few sample locations along the dashed line.
Fluids 07 00025 g008
Figure 9. Streamlines drawn from the flow around three (ae) and four (fj) rotating helices at the midpoint of a cycle. The locations and phase shifts of the helices in the two cases are shown in Figure 10a,b respectively. (ac) and (fh): Streamlines plotted using only the x- and y-direction fluid velocities on the slice planes located at z = 0.1 (a,f), z = 1.1 (b,g), and z = 2.5 (c,h). (d,i): Streamlines plotted using only the y- and z-direction fluid velocities on the slice planes located at x = 1.25 , 2.5 , 3.75 . (e,j): Streamlines plotted using only the x- and z-direction fluid velocities on the slice planes located at y = 1.25 , 2.5 , 3.75 .
Figure 9. Streamlines drawn from the flow around three (ae) and four (fj) rotating helices at the midpoint of a cycle. The locations and phase shifts of the helices in the two cases are shown in Figure 10a,b respectively. (ac) and (fh): Streamlines plotted using only the x- and y-direction fluid velocities on the slice planes located at z = 0.1 (a,f), z = 1.1 (b,g), and z = 2.5 (c,h). (d,i): Streamlines plotted using only the y- and z-direction fluid velocities on the slice planes located at x = 1.25 , 2.5 , 3.75 . (e,j): Streamlines plotted using only the x- and z-direction fluid velocities on the slice planes located at y = 1.25 , 2.5 , 3.75 .
Fluids 07 00025 g009
Figure 10. The top views of the optimal carpets consisting of three (a) and four (b) helices found by the hybrid method. The flow meter is (7) with W = 5 .
Figure 10. The top views of the optimal carpets consisting of three (a) and four (b) helices found by the hybrid method. The flow meter is (7) with W = 5 .
Fluids 07 00025 g010
Figure 11. The base points of helices belonging to a few square carpets (a) and the value of f ( θ ) as the width of the square increases (b). The three crosses in (b) correspond to the three carpets marked by crosses in (a). The difference in the phase shifts of two helices located on adjacent vertices is π . The flow meter is (7) with W = 5 .
Figure 11. The base points of helices belonging to a few square carpets (a) and the value of f ( θ ) as the width of the square increases (b). The three crosses in (b) correspond to the three carpets marked by crosses in (a). The difference in the phase shifts of two helices located on adjacent vertices is π . The flow meter is (7) with W = 5 .
Fluids 07 00025 g011
Table 1. Default parameter values given in non-dimensional units.
Table 1. Default parameter values given in non-dimensional units.
ParameterDescriptionValue
ϵ blob size0.01 (for f) or 0.1 (for s)
μ viscosity1
Laxial length of helix2.2
α helical radius0.085
τ tapering parameter1000
λ helical pitch 2 π α
ω angular speed 2 π
npoints per helix158 (for f) or 16 (for s)
Ttime to perform one rotation 2 π / | ω |
N t number of time steps per rotation1000 (for f) or 100 (for s)
z m flow meter location2.5
Table 2. The runtimes of evaluating f ( θ ) and s ( θ ) when the carpet consists of one, two, or four helices and the width of the flow meter (7) is 2.5 , 5, or 10.
Table 2. The runtimes of evaluating f ( θ ) and s ( θ ) when the carpet consists of one, two, or four helices and the width of the flow meter (7) is 2.5 , 5, or 10.
WOne HelixTwo HelicesFour Helices
f s f s f s
2.5 165 9.8 449 17.1 763 25.3
5244 13.4 823 23.9 1365 44.8
10489 19.4 1416 40.3 2494 79.8
Table 3. The maximizers found by the hybrid method for the case of a single helix and three sizes of the flow meter (7): W = 2.5 , 5, and 10.
Table 3. The maximizers found by the hybrid method for the case of a single helix and three sizes of the flow meter (7): W = 2.5 , 5, and 10.
WStep 1: GA Applied to sStep 2: BFGS Applied to f
x b , y b x b * , y b *
2.5 ( 1.2679 , 1.2630 ) ( 1.2500 , 1.2500 )
5 ( 2.3757 , 2.5106 ) ( 2.5000 , 2.5000 )
10 ( 1.7245 , 8.2893 ) ( 1.7104 , 8.2895 )
Table 4. The runtimes, iteration counts, and numbers of function evaluations entailed by the hybrid method for the case of a single helix and three sizes of the flow meter (7): W = 2.5 , 5, and 10. (Forty-eight computer cores are used).
Table 4. The runtimes, iteration counts, and numbers of function evaluations entailed by the hybrid method for the case of a single helix and three sizes of the flow meter (7): W = 2.5 , 5, and 10. (Forty-eight computer cores are used).
WStep 1: GA Applied to sStep 2: BFGS Applied to fTotal
# of Iter.# of s Eval.Runtime# of Iter.# of f Eval.RuntimeRuntime
2.5 6633508772122071084
553270011703183861556
1064325017172154612178
Table 5. The maximizers found by the GA and the runtimes, iteration counts, and numbers of function evaluations entailed by the GA for the case of a single helix and three sizes of the flow meter (7): W = 2.5 , 5, and 10. (Forty-eight computer cores are used).
Table 5. The maximizers found by the GA and the runtimes, iteration counts, and numbers of function evaluations entailed by the GA for the case of a single helix and three sizes of the flow meter (7): W = 2.5 , 5, and 10. (Forty-eight computer cores are used).
W x b * * , y b * * # of Iter.# of f Eval.Runtime
2.5 ( 1.2679 , 1.2630 ) 67340019,639
5 ( 2.4461 , 2.4573 ) 55280024,784
10 ( 1.7245 , 1.6907 ) 64325038,741
Table 6. The maximizers found by the hybrid method for the case of a pair of helices and three sizes of the flow meter (7): W = 2.5 , 5, and 10.
Table 6. The maximizers found by the hybrid method for the case of a pair of helices and three sizes of the flow meter (7): W = 2.5 , 5, and 10.
WStep 1: GA Applied to sStep 2: BFGS Applied to f
x b 1 , y b 1 x b 2 , y b 2 ϕ 2 x b 1 * , y b 1 * x b 2 * , y b 2 * ϕ 2 *
2.5 ( 1.6099 , 0.8510 ) ( 0.9640 , 1.6778 ) 3.0700 ( 1.5405 , 0.9276 ) ( 0.9595 , 1.5724 ) 3.1420
5 ( 3.1618 , 1.7583 ) ( 1.9989 , 2.9001 ) 3.2090 ( 3.0124 , 1.9583 ) ( 1.9877 , 3.0416 ) 3.1410
10 ( 1.6746 , 8.3083 ) ( 8.3767 , 1.8351 ) 3.1491 ( 1.7091 , 8.2913 ) ( 8.2909 , 1.7087 ) 3.1491
Table 7. The runtimes, iteration counts, and numbers of function evaluations entailed by the hybrid method for the case of a pair of helices and three sizes of the flow meter (7): W = 2.5 , 5, and 10. (Forty-eight computer cores are used).
Table 7. The runtimes, iteration counts, and numbers of function evaluations entailed by the hybrid method for the case of a pair of helices and three sizes of the flow meter (7): W = 2.5 , 5, and 10. (Forty-eight computer cores are used).
WStep 1: GA Applied to sStep 2: BFGS Applied to fTotal
# of Iter.# of s Eval.Runtime# of Iter.# of f Eval.RuntimeRuntime
2.5 105530021741913225954769
568345020211711442736294
101206050622944225658794
Table 8. The runtimes, iteration counts, and numbers of function evaluations entailed by the hybrid method for the cases of three and four helices. The flow meter is (7) with W = 5 . (Forty-eight computer cores are used).
Table 8. The runtimes, iteration counts, and numbers of function evaluations entailed by the hybrid method for the cases of three and four helices. The flow meter is (7) with W = 5 . (Forty-eight computer cores are used).
# ofStep 1: GA Applied to sStep 2: BFGS Applied to fTotal
Helices# of Iter.# of s Eval.Runtime# of Iter.# of f Eval.RuntimeRuntime
three7815,80012,4796136861521,094
four15932,00030,1783845045,72975,907
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Rostami, M.W.; Liu, W.; Buchmann, A.; Strawbridge, E.; Zhao, L. Optimal Design of Bacterial Carpets for Fluid Pumping. Fluids 2022, 7, 25. https://doi.org/10.3390/fluids7010025

AMA Style

Rostami MW, Liu W, Buchmann A, Strawbridge E, Zhao L. Optimal Design of Bacterial Carpets for Fluid Pumping. Fluids. 2022; 7(1):25. https://doi.org/10.3390/fluids7010025

Chicago/Turabian Style

Rostami, Minghao W., Weifan Liu, Amy Buchmann, Eva Strawbridge, and Longhua Zhao. 2022. "Optimal Design of Bacterial Carpets for Fluid Pumping" Fluids 7, no. 1: 25. https://doi.org/10.3390/fluids7010025

Article Metrics

Back to TopTop