## Abstract

A diverse range of natural and artificial self-propelled particles are known and are used nowadays. Among them, active Brownian particles (ABPs) and run-and-tumble particles (RTPs) are two important classes. We numerically study non-interacting ABPs and RTPs strongly confined to different maze geometries in two dimensions. We demonstrate that by means of geometrical confinement alone, ABPs are separable from RTPs. By investigating *Matryoshka*-like mazes with nested shells, we show that a circular maze has the best filtration efficiency. Results on the mean first-passage time reveal that ABPs escape faster from the center of the maze, while RTPs reach the center from the rim more easily. According to our simulations and a rate theory, which we developed, ABPs in steady state accumulate in the outermost region of the *Matryoshka*-like mazes, while RTPs occupy all locations within the maze with nearly equal probability. These results suggest a novel technique for separating different types of self-propelled particles by designing appropriate confining geometries without using chemical or biological agents.

## Introduction

Active particle systems have attracted a lot of attention during the last decades^{1,2,3}. Much effort has been devoted to study and mimic the motion of motile bacteria, molecular motors, and other natural low-Reynolds-number swimmers^{4,5,6,7,8,9,10,11,12,13,14,15}. With the significant advance of micro- and nanotechnology, different powerful artificial micro- and nanoswimmers have been fabricated. Examples include Janus particles, catalytic micro-jets and magnetic nano-propellers^{16,17,18,19}.

With respect to their swimming strategies, self-propelled particles are categorized into two main classes. On the one hand, one considers run-and-tumble particles (RTPs) such as motile *E. Coli* bacteria and *Chamydomonas algae*^{5}. Basically, these microswimmers move on straight lines, *runs*, with constant speed *v*_{0} and reorient randomly, *tumble*, with rate *α*. On the other hand, active Brownian particles (ABPs) refer to the second class of self-propelled particles with spherical Janus particles and non-tumbling mutant strains of *E. Coli*^{20} as examples. This type of active particles moves with constant speed *v*_{0} but their direction changes gradually due to their rotational diffusivity *D*_{r}. Despite their different moving strategies, RTPs and ABPs behave similarly on large length and time scales; like passive Brownian particles (PBP) they exhibit translational diffusion. More precisely, a pure ABP and a pure RTP diffuse with the same translational diffusion constant, if (*d*−1)*D*_{r} = *α*, where *d* is spatial dimension^{21}. Furthermore, they sediment almost similarly in a gravitational field^{22,23,24,25} or become trapped in harmonic potentials^{25,26,27,28}.

Several experimental and theoretical studies have demonstrated that after an encounter with a wall microswimmers slide along the wall for some time, before they leave it^{18,29,30,31,32}. This peculiar scattering behavior can cleverly be employed to rectify the motion of microswimmers in micro- and nanochambers^{29,30,31,33,34,35}, to trap these particles^{36,37,38,39,40,41}, and to extract mechanical work from their random motion^{42,43,44,45,46}. Furthermore, since microswimmers have to reorient to leave a surface, both RTPs and ABPs strongly accumulate at bounding walls in the regime of strong confinement, where the persistence length of straight runs is much larger than the box dimension^{18,42,47,48,49,50,51}. However, the density peak observed at the wall disappears by increasing the size of the surrounding box, *i.e.*, when leaving this regime^{50}.

Despite of their similar properties in bulk and confinement on large scales, ABPs and RTPs interact differently with obstacles on small scales^{52}. These differences can have a substantial impact. For example, wild-type and aflagellated mutants of *Salmonella* or other microbes infect host cells with different efficiencies^{53}. So, it is of crucial importance to separate different types of active particles or microswimmers from each other. It has already been demonstrated that active particles can be separated from passive colloids by using funnel-shaped barriers^{29} or the tendency of active particles to accumulate in corners^{19,54,55}. Different types of active particles are also separable from each other according to their chiralities and linear or angular speeds^{56}. However, a powerful tool or strategy to separate ABPs and RTPs from each other is missing.

In this article, we present such a strategy by investigating active particles in suitable geometries analogous to mazes, which are illustrated in Fig. 1. Mazes or labyrinths are interesting complex geometries and solving them, *i.e.*, proceeding from the entrance to the exit, has been a challenging problem for many centuries. For example, using chemotaxis, active particles are able to solve mazes and find the shortest path towards the exit^{57,58,59}. Here, we consider non-interacting ABPs and RTPs inside the different two-dimensional mazes of Fig. 1, but without any chemical field. Using computer simulations to determine mean first-passage times and stationary probability distributions, we demonstrate that ABPs are faster than RTPs in moving from the center to the rim of circular and square mazes, while RTPs reach the center more easily. This suggests the nested regular mazes of Fig. 1(a) and (b) as excellent tools for separating active particles from each other, with an advantage for the circular shape as we will demonstrate.

## Materials and Methods

We consider a single self-propelled particle that is either an ABP or RTP. We place it at a specific starting point inside the maze and monitor its dynamics until it reaches the target point using two-dimensional Brownian dynamics simulations. To obtain the full statistics for an ensemble of non-interacting active particles, we perform many simulation runs to generate different realizations for the same initial condition.

### Particle Dynamics

The position vectors of both model particles evolve according to the same over-damped dynamics

Here, the overdot indicates time derivative, *v*_{0} is the particle’s self-propulsion speed, which is kept constant during the simulations, and its intrinsic direction of motion is given by the unit vector , where *θ* is the orientation angle with respect to an arbitrarily chosen *x* axis. The particle interacts with walls by a simple repulsive force (see e.g. refs 49 and 60) implemented such that the total particle velocity along the normal of the wall is zero at contact:

The unit vector indicates the local normal, *R* is the particle radius, which sets the length scale of our problem, and denotes the closest distance between particle center and nearest point on the wall. Since removes the normal component of the self-propulsion velocity, active particles slide along the walls, which reproduces experimental observations^{18,29,30,31}. In the following, we neglect translational diffusion for both types of particles (*D*_{t} = 0). More details about the numerical method are provided in the supplementary material.

Most importantly, ABP and RTP differ in the dynamics governing their orientation angle. An ABP changes its self-propulsion direction continuously due to rotational diffusion. Thus,

where *D*_{r} is the particle’s rotational diffusion constant and *η* is unbiased (<*η*(*t*)> = 0) and uncorrelated (<*η*(*t*)*η*(*t*′)> = *δ*(*t*−*t*′)) white noise. In contrast, an RTP changes its direction abruptly with rate *α* at each time step,

The sum runs over all tumble events that stochastically happen at times *T*_{i}. The tumble angle Δ*θ*_{i} is selected with equal probability from the range between 0 and 2*π*.

At long times the motion of ABPs and RTPs becomes diffusive in unconfined space. The respective diffusion constants agree if the equivalence condition (*d*−1)*D*_{r} = *α* (with *d* the spatial dimension) is fulfilled^{21}. We will use this relation to compare the results for ABPs and RTPs to each other. In two dimensions, *τ*_{r} = 1/*D*_{r} is the persistence time of an ABP, on which the particle orientation decorrelates. For an RTP the equivalent time *τ*_{r} = 1/*α* is the mean run time between two tumble events. To characterize the motion of both particle types, we will use the *persistence number*

which compares the length of straight runs to the particle diameter, and vary it in the range *P*_{r} ∈ [1.5, 75.0].

To investigate the single-particle behavior of ABPs and RTPs, we propose three geometries analogous to mazes; a circular, square, and non-regular (random) maze. Each maze is characterized as follows.

### Types of Mazes

#### Circular maze

Figure 1(a) shows a picture of the circular maze. It consists of five concentric circular shells (walls) nested inside each other, similar to a Russian *Matryoshka* doll. The inner-shell radius is *r*_{1} = 1.8*R* and the other ones obey *r*_{i}−*r*_{i−1} = 2.05*R* (for *i* = 2, 3, 4, 5). So the width of each circular annulus (zone) is a little larger than the diameter of the particle. Using these values, the particle effectively moves on one-dimensional circular paths with varying speed depending on particle orientation . Except of the outer shell, all other shells have an opening to let the particle transfer between adjacent zones. All these openings have the same width equal to 3*R* and are opposite to each other for neighboring shells.

We study the ability of both active-particle types to solve the maze in two cases. In the first case, we initially place the particle in the central zone of the maze and wait until it reaches the outer zones (this case is briefly called *outwards*). In the second case, we initially place the particle in the outermost annulus and wait until it reaches the central zone of the maze (*inwards*). In both cases, the initial particle orientation is along . We measure the mean first-passage time (MFPT) for the particle to pass through each opening [as numbered in Fig. 1(a)]. The numerical simulations run over 200 realizations for the outwards and between 30–200 for the inwards case.

#### Square maze

We investigate the effect of wall curvature by considering a square maze analogous to the circular one. As shown in Fig. 1(b), the square maze consists of five concentric square shells nested inside each other. Their edge lengths equal the diameter of the corresponding circle in the circular maze. Initial conditions are similar to the circular maze. The results for the MFPTs are obtained by averaging over 200 initializations for both the outwards and inwards case.

#### Non-regular maze

We consider a random (non-regular) maze to find out how the absence of regularity of the previous geometries affects the particle behavior. The non-regular maze studied here [Fig. 1(c)] is a branched maze with several dead ends, one entrance, one exit, and a single solution. It is constructed in such a way that its lane width equals the zone width of the *Matryoshka*-like mazes described before. The self-propelled particle is initially placed at the point of the maze marked Start in Fig. 1(c) with random velocity direction and the MFPT is measured for the particle to reach the End point. Results are obtained by averaging over 200 initializations.

## Results

### Circular maze (outwards)

We find that the MFPT not only changes systematically with persistence number *P*_{r} but it also depends on the type of the self-propelled particle. Figure 2(a) shows the MFPT of both particle types for the outwards initialization. For both types of particles, the MFPT decreases with *P*_{r}. However, the ABP (solid symbols) always reaches the openings in the confining walls faster than the RTP (open symbols). Both observations can be understood by carefully analyzing how the self-propelled particles move along the walls. At large persistence number *P*_{r} (strong confinement regime), the ABP performs a random walk along convex boundaries. While its mean orientation is aligned with the local boundary normal, the momentary orientation fluctuates about the normal and thereby leads to short drift motions^{49}. By sliding along the walls, the ABP readily finds the wall openings and escapes through them successively (see Supplementary movie 1). In contrast, the RTP detaches from the wall during a tumble event where it reorients abruptly (see supplementary movie 2). This strategy seems to be less efficient for finding the openings, since the RTP does not use the guiding walls as much as the ABP does. Thus, the MFPTs are larger in this case. By decreasing *P*_{r}, both particles more often detach from the walls and the exit times increase accordingly.

In case of an ABP, a simple random-walk model describes the asymptotic behavior of the MFPT in the limit of large persistence number *P*_{r}. In this case the particle orientation is mostly aligned with the local boundary normal and the orientation angle *θ* also describes the location of the ABP in the annulus [see Fig. 3(a)]. We can now calculate the MFPT to go from one wall opening to the next one and thereby to pass to the next zone in the maze. The total MFPT is then the sum over all openings reached. The orientation angle just changes by rotational diffusion. So, in order to escape through an opening, the orientation angle has to diffuse from *θ*_{0} (the position of the previous opening) either to *θ*_{1} or *θ*_{2} [see Fig. 3(a)]. This is equivalent to the first-passage problem of a particle diffusing in one dimension with two absorbing boundaries at *θ*_{1} and *θ*_{2}. Using the standard formalism^{61,62}, which we summarize in the supplementary material, the MFPT for a particle initially at *θ*_{0} for reaching one of the absorbing boundaries can be calculated:

To calculate the MFPT for reaching opening *i*, we choose *θ*_{0} = *π*. Furthermore, the angles *θ*_{1} and *θ*_{2} depend on the shell index, which we summarize in the supplementary material. As the black horizontal lines in Fig. 2(a) demonstrate, we obtain good agreement with the simulation results at large *P*_{r} (see supplementary material for a quantitative comparison). At small *P*_{r}, the intrinsic direction is no longer aligned with the local boundary normal and the described theory is not applicable any more. In this regime, the self-propelled particle frequently detaches from the wall due to the more pronounced rotational diffusion. As a result, the mean exit time becomes larger than the asymptotic expression of Eq. (6). This behavior is confirmed in Fig. 2(a).

We also investigated how the MFPT increases from one shell to the other by plotting the MFPT versus the opening or shell index *i*. As shown in Fig. 2(c) and (d), for increasing persistence number the slope of the lines in the double-logarithmic plot declines from *γ* = 3 to *γ* = 1 for ABP and from *γ* = 3 to *γ* = 2 for RTP. As explained in the previous paragraph, at large *P*_{r} the MFPT of an ABP to proceed from one opening to the next one is purely governed by rotational diffusion and thus the same for all openings. Therefore, the total MFPT increases linearly in *i*, which gives the slope *γ* = 1. At small *P*_{r} the intrinsic direction is no longer perpendicular to the wall. Its rotational diffusion is so fast that the ABP performs an effective translational diffusion along the annulus with radius *r*_{i} ∝ *i*. So, the MFPT to reach and escape from opening *i* scales with and the total MFPT grows proportional to *i*^{3}, which gives *γ* = 3. The same explanation also holds for RTPs at small *P*_{r}. At large *P*_{r} the distances between successive reorientation events are also large (see supplementary movie 2). So a few ballistic steps are sufficient to reach opening *i* and we can roughly estimate the mean exit time as proportional to *r*_{i} ∝ *i*. Thus, the total MFPT grows like *i*^{2}, which gives *γ* = 2.

We also determined the probability density function for the first-passage times (FPT) needed to reach opening *i*. Examples are presented in Fig. S3 of the supplementary material. They all reveal an exponential decay with an existing MFPT.

### Circular maze (inwards)

The most interesting result arises by initializing the self-propelled particles from the outermost zone of the maze [inwards case in Fig. 1(a)]. We find that the ABP enters the inner zones of the maze much less readily than the RTP. As demonstrated in Fig. 2(b), the MFPT for the ABP is several orders of magnitude larger than for the RTP and diverges with increasing *P*_{r}. This is because at large *P*_{r}, the velocity vector of the ABP always points radially outward and rotational diffusion typically only allows for small changes in its direction. Thus, when arriving at an opening, it is very unlikely that the ABP fully reverses its orientation to enter the opening. The probability to enter the opening decreases drastically with increasing *P*_{r} since the ABP is faster and therefore spends less time close to the opening. Thus, the MFPT ultimately diverges. In contrast, an RTP always has a finite probability to reverse its direction and thereby to enter the openings towards the inner parts of the maze. We also find a non-monotonic behavior in the MFPT for an ABP entering the 4^{th} opening. At small *P*_{n} or small *v*_{0} the ABP hardly moves towards the opening. Thus, the time to reach it and thereby the MFPT increases again with decreasing *P*_{n} ∝ *v*_{0}. A similar non-monotonic behavior is also reported in recent results on optimal search strategies for an ABP looking for a target at the center of a confining circular domain^{63}.

When we let our simulations run for a sufficiently long time, both in the outwards and the inwards case, the particle distribution reaches the same steady state and the particles occupy zone *n* in the circular maze with probability *p*_{n}. In Fig. 4(a), we plot *p*_{n}/*n* for different *P*_{r}, where the zone index *n* is proportional to the zone radius. Clearly, this probability is constant for PBPs that do not have any internal driving. They spread over the whole maze with uniform density just by thermal diffusion. However, at large *P*_{r}, ABPs only accumulate in the outermost zone (index 5), while the inner zones remain unoccupied. This is in agreement with the diverging MFPTs plotted in Fig. 2(b) for the inwards case. Only for *P*_{r} ≈ 1 do ABPs also reach the center of the maze. In contrast, RTPs with their ability to perform large reorientations also settle in the inner zones even at large *P*_{r}. All these findings are nicely illustrated in Fig. 4(b), where we directly plot the color-coded probability density in the circular maze. So by using this maze, RTPs can be separated from ABPs very well under confinement.

When generating the steady state distributions, one has to be sure that the system has relaxed to the steady state starting from an initial condition. To estimate the relevant relaxation times, we developed a linear rate theory. The probabilities *p*_{n}(*t*) for occupying zone *n* are elements of the state vector |*ψ*(*t*)> = |*p*_{1}, *p*_{2}, *p*_{3}, *p*_{4}, *p*_{5}>, which evolves in time according to

The transition matrix *Q* contains the transition or hoping rates *k*_{mn} between neighboring zones as introduced in Fig. 3(b). The detailed form of *Q* is given in the supplementary material. For different *P*_{r}, we determined the rates *k*_{mn} from simulations of the outwards case, which corresponds to the initial condition |*ψ*(*t*)> = |(1, 0, 0, 0, 0)>. The eigenvalues of *Q* are the relaxation rates of characteristic relaxation modes. One zero eigenvalue belongs to the steady state, which we discussed in Fig. 4. The inverse of the next smallest eigenvalue gives the largest relaxation time *τ*_{relax}, one generally has to wait before steady state is reached. We plot *τ*_{relax} versus *P*_{r} in Fig. S5 in the supplementary material.

### Square maze

To find out how wall curvature affects particle separation, we examine the square maze of Fig. 1(b) with square walls nested inside each other. The simulation results for the MFPTs are similar to the circular maze [compare Fig. 5 to Fig. 2(a)]. In the outwards case the ABP escapes from the inner zones faster than the RTP [see Fig. 5(a)], while in the inwards case the RTP enters the inner zones more easily with MFPTs close to the values of the circular maze [see Fig. 5(b) and supplementary movie 5]. However, a careful inspection of the inwards case reveals an important difference between the two mazes; the strong increase of the MFPT with increasing *P*_{r} for an ABP is more pronounced in the circular maze [see Fig. 2(b)]. Thus, the MFPTs for ABPs differ significantly in both mazes by several orders of magnitude for increasing *P*_{r}. In addition, while in the circular maze the MFPTs of ABP and RTP at small *P*_{r} differ from each other, especially for the innermost opening [see Fig. 2 (b)], they are nearly identical in the square maze. We consider these differences to be due to wall curvature. As argued before, ABPs tend to stay at walls with positive curvature for large *P*_{r}, while they easily leave walls with negative curvature^{49,60}. Therefore, an ABP in the circular maze needs to make a full 180° turn close to an opening in order to enter this opening, which is a rare event. In contrast, in the square maze an ABP can slide on both sides of the straight walls. Therefore, by rotational diffusion it can face the wall with the opening and then just slide to the opening to enter it (see supplementary movie 6). This scenario obviously takes less time compared to the circular maze and the MFPTs of the square maze are smaller.

The steady-state distributions of the square maze plotted in Fig. 6 show similar behavior compared to the circular maze (see Fig. 4). However, we realize that the differences between the ABP, RTP, and PBP are not as strong. In particular, at *P*_{r} = 1.5 all particle types now show a uniform distribution throughout the square maze. In addition, the active particles strongly accumulate in the corners of the square maze, especially at large *P*_{r}, which is in line with previous experimental observations on both ABPs^{19,49,54,55} and RTPs^{42,43,44} and other theoretical works with different geometries^{39,40,64}. Finally, we have also formulated the rate theory based on Eq. (7). The largest relaxation time, necessary for identifying the steady state, is plotted in Fig. S5 of the supplementary material.

### Non-regular maze

Finally, we investigated the non-regular maze of Fig. 1(c). In contrast to the nested mazes, no significant difference between the MFPTs of an ABP and an RTP are observable in Fig. 7(a). This is due to two features: first of all, the pattern is irregular and second, nested structures as in the regular mazes are absent. In particular, the second feature generated the difference between both types of active particle. For example, whenever an ABP, starting from the outermost zone of the circular maze, enters the 4^{th} opening at large *P*_{r}, it is more probable for it to return to the outermost zone rather than to enter the 3^{rd} opening, since for most of the time its orientation points radially outwards. Therefore, the nested structure of Matryoshka-like mazes drastically decreases the probability for the ABP to enter the inner regions of the maze and amplifies the difference between the two active-particle types. This feature is missing in the non-regular maze.

We also determined the spatial probability distribution of both active-particle types in steady state [see Fig. 7(b)]. It does not show any significant difference between ABPs and RTPs neither at low nor at high persistence number *P*_{r}. However, corner accumulation is still observable in this maze and it is more pronounced at large *P*_{r}. Interestingly, at *P*_{r} = 1.5 the particle density increases from the top (starting point) to the bottom (end point), while for large *P*_{r} the distribution is more uniform throughout the maze. Finally, we tested whether the size of the maze affected these results by performing simulations with a maze twice as large but with the same structure. Again, no difference was observed between both active-particle types (results not shown).

## Discussion

In this article we have explored the behavior of two important and widespread types of active particles inside different mazes. Namely, non-interacting active Brownian particles and run-and-tumble particles strongly confined in Matryoshka-like mazes show large differences both in their mean first-passage times and their stationary probability distributions. In particular, run-and-tumble particles enter the maze and easily move towards the center, while active Brownian particles escape faster towards the rim. In steady state, persistent ABPs accumulate in the outermost region of the maze, while RTPs spread more uniformly in all regions. This peculiar phenomenon is more pronounced in mazes with curved boundaries. Our work suggests Matryoshka-like mazes as excellent devices to separate different types of active particles from each other with potential technological and biomedical applications. In contrast, a random maze is not able to distinguish between both active-particle types.

In experiments, regular mazes can be fabricated using microfabrication techniques^{19,29,45} and used to efficiently separate different types of self-propelled particles without any biological or chemical agent. Our work also has biomedical relevance for separating bacteria from other microorganisms or passive objects such as blood cells. In future work it will be interesting to study the collective behavior of active particles in these strongly confining complex structures^{65,66} and to explore their potential for optimal search strategies^{38,63,67}.

## Additional Information

**How to cite this article**: Khatami, M. *et al*. Active Brownian particles and run-and-tumble particles separate inside a maze. *Sci. Rep.* **6**, 37670; doi: 10.1038/srep37670 (2016).

**Publisher's note:** Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

## References

- 1.
Ramaswamy, S. The Mechanics and Statistics of Active Matter.

*Annu. Rev. Condens. Matter Phys.***1**, 323–345 (2010). - 2.
Marchetti, M. C.

*et al.*Hydrodynamics of soft active matter.*Rev. Mod. Phys.***85**, 1143–1189 (2013). - 3.
Zöttl, A. & Stark, H. Emergent behavior in active colloids.

*J. Phys. Condens. Matter***28**, 31 (2016). - 4.
Jülicher, F., Ajdari, A. & Prost, J. Modeling molecular motors.

*Rev. Mod. Phys.***69**, 1269–1281 (1997). - 5.
Polin, M., Tuval, I., Drescher, K., Gollub, J. P. & Goldstein, R. E. Chlamydomonas Swims with Two “Gears” in a Eukaryotic Version of Run-and-Tumble Locomotion.

*Science***325**, 487 (2009). - 6.
Bennett, R. R. & Golestanian, R. Emergent run-and-tumble behavior in a simple model of Chlamydomonas with intrinsic noise.

*Phys. Rev. Lett.***110**, 1–5 (2013). - 7.
Najafi, A. & Golestanian, R. Simple swimmer at low Reynolds number: Three linked spheres.

*Phys. Rev. E***69**, 062901 (2004). - 8.
Leoni, M., Kotar, J., Bassetti, B., Cicuta, P. & Lagomarsino, M. C. A basic swimmer at low Reynolds number.

*Soft Matter***5**, 472–476 (2009). - 9.
Golestanian, R., Liverpool, T. & Ajdari, A. Propulsion of a Molecular Machine by Asymmetric Distribution of Reaction Products.

*Phys. Rev. Lett.***94**, 220801 (2005). - 10.
Howse, J.

*et al.*Self-Motile Colloidal Particles: From Directed Propulsion to Random Walk.*Phys. Rev. Lett.***99**, 048102 (2007). - 11.
Schmitt, M. & Stark, H. Swimming active droplet: A theoretical analysis.

*EPL (Europhysics Letters)***101**, 44008 (2013). - 12.
Kümmel, F.

*et al.*Circular Motion of Asymmetric Self-Propelling Particles.*Phys. Rev. Lett.***110**, 198302 (2013). - 13.
Ebrahimian, M., Yekehzare, M. & Ejtehadi, M. R. Low-Reynolds-number predator.

*Phys. Rev. E***92**, 1–5 (2015). - 14.
Alizadehrad, D., Krüger, T., Engstler, M. & Stark, H. Simulating the Complex Cell Design of Trypanosoma brucei and Its Motility.

*PLoS Comput. Biol.***11**, e1003967 (2015). - 15.
Adhyapak, T. C. & Stark, H. Zipping and entanglement in flagellar bundle of

*E. coli*: Role of motile cell body.*Phys. Rev. E***92**, 1–7 (2015). - 16.
Ghosh, A. & Fischer, P. Controlled propulsion of artificial magnetic nanostructured propellers.

*Nano Lett.***9**, 2243–2245 (2009). - 17.
Jiang, H. R., Yoshinaga, N. & Sano, M. Active motion of a Janus particle by self-thermophoresis in a defocused laser beam.

*Phys. Rev. Lett.***105**, 1–4 (2010). - 18.
Volpe, G., Buttinoni, I., Vogt, D., Kümmerer, H.-J. & Bechinger, C. Microswimmers in patterned environments.

*Soft Matter***7**, 8810 (2011). - 19.
Restrepo-Pérez, L., Soler, L., Martnez-Cisneros, C. S., Sánchez, S. & Schmidt, O. G. Trapping self-propelled micromotors with microfabricated chevron and heart-shaped chips.

*Lab Chip***14**, 1515–8 (2014). - 20.
Tavaddod, S., Charsooghi, M. A., Abdi, F., Khalesifard, H. R. & Golestanian, R. Probing passive diffusion of flagellated and deflagellated Escherichia coli.

*Eur. Phys. J. E***34**, 1–7 (2011). - 21.
Cates, M. E. & Tailleur, J. When are active Brownian particles and run-and-tumble particles equivalent? Consequences for motility-induced phase separation.

*EPL (Europhysics Letters)***101**, 20010 (2013). - 22.
Tailleur, J. & Cates, M. E. Sedimentation, trapping, and rectification of dilute bacteria.

*EPL (Europhysics Letters)***86**, 60002 (2009). - 23.
Palacci, J., Cottin-Bizonne, C., Ybert, C. & Bocquet, L. Sedimentation and Effective Temperature of Active Colloidal Suspensions.

*Phys. Rev. Lett.***105**, 088304 (2010). - 24.
Enculescu, M. & Stark, H. Active Colloidal Suspensions Exhibit Polar Order under Gravity.

*Phys. Rev. Lett.***107**, 058301 (2011). - 25.
Solon, A. P., Cates, M. E. & Tailleur, J. Active brownian particles and run-and-tumble particles: A comparative study.

*Eur. Phys. J. Spec. Top.***224**, 1231–1262 (2015). - 26.
Nash, R. W., Adhikari, R., Tailleur, J. & Cates, M. E. Run-and-tumble particles with hydrodynamics: Sedimentation, trapping, and upstream swimming.

*Phys. Rev. Lett.***104**, 1–4 (2010). - 27.
Pototsky, A. & Stark, H. Active brownian particles in two-dimensional traps.

*EPL (Europhysics Letters)***98**, 50004 (2012). - 28.
Hennes, M., Wolff, K. & Stark, H. Self-induced polar order of active brownian particles in a harmonic trap.

*Phys. Rev. Lett.***112**, 1–5 (2014). - 29.
Galajda, P., Keymer, J., Chaikin, P. & Austin, R. A wall of funnels concentrates swimming bacteria.

*J. Bacteriol.***189**, 8704–7 (2007). - 30.
Denissenko, P., Kantsler, V., Smith, D. J. & Kirkman-Brown, J. Human spermatozoa migration in microchannels reveals boundary-following navigation.

*Proc. Natl. Acad. Sci. USA***109**, 8007–10 (2012). - 31.
Kantsler, V., Dunkel, J., Polin, M. & Goldstein, R. E. Ciliary contact interactions dominate surface scattering of swimming eukaryotes.

*Proc. Natl. Acad. Sci. USA***110**, 1187–92 (2013). - 32.
Schaar, K., Zöttl, A. & Stark, H. Detention Times of Microswimmers Close to Surfaces: Influence of Hydrodynamic Interactions and Noise.

*Phys. Rev. Lett.***115**, 038101 (2015). - 33.
Wan, M., Olson Reichhardt, C., Nussinov, Z. & Reichhardt, C. Rectification of Swimming Bacteria and Self-Driven Particle Systems by Arrays of Asymmetric Barriers.

*Phys. Rev. Lett.***101**, 018102 (2008). - 34.
Koumakis, N., Maggi, C. & Di Leonardo, R. Directed transport of active particles over asymmetric energy barriers.

*Soft matter***10**, 5695–701 (2014). - 35.
Das, S.

*et al.*Boundaries can steer active Janus spheres.*Nat. commun.***6**, 8999 (2015). - 36.
Kaiser, A., Popowa, K., Wensink, H. H. & Löwen, H. Capturing self-propelled particles in a moving microwedge.

*Phys. Rev. E***88**, 022311 (2013). - 37.
Chepizhko, O. & Peruani, F. Diffusion, Subdiffusion, and Trapping of Active Particles in Heterogeneous Media.

*Phys. Rev. Lett.***111**, 1–5 (2013). - 38.
Reichhardt, C. & Olson Reichhardt, C. J. Active matter transport and jamming on disordered landscapes.

*Phys. Rev. E***90**, 012701 (2014). - 39.
Takagi, D., Palacci, J., Braunschweig, A. B., Shelley, M. J. & Zhang, J. Hydrodynamic capture of microswimmers into sphere-bound orbits.

*Soft Matter***10**, 3–8 (2014). - 40.
Sipos, O., Nagy, K., Di Leonardo, R. & Galajda, P. Hydrodynamic Trapping of Swimming Bacteria by Convex Walls.

*Phys. Rev. Lett.***114**, 258104 (2015). - 41.
Spagnolie, S. E., Moreno-Flores, G. R., Bartolo, D. & Lauga, E. Geometric capture and escape of a microswimmer colliding with an obstacle.

*Soft Matter***11**, 3396–3411 (2015). - 42.
Angelani, L., Di Leonardo, R. & Ruocco, G. Self-Starting Micromotors in a Bacterial Bath.

*Phys. Rev. Lett.***102**, 048104 (2009). - 43.
Di Leonardo, R.

*et al.*Bacterial ratchet motors.*Proc. Natl. Acad. Sci. USA***107**, 9541–5 (2010). - 44.
Sokolov, A., Apodaca, M. M., Grzybowski, B. A. & Aranson, I. S. Swimming bacteria power microscopic gears.

*Proc. Natl. Acad. Sci. USA***107**, 969–74 (2010). - 45.
Koumakis, N., Lepore, A., Maggi, C. & Di Leonardo, R. Targeted delivery of colloids by swimming bacteria.

*Nat. commun.***4**, 2588 (2013). - 46.
Kaiser, A.

*et al.*Transport Powered by Bacterial Turbulence.*Phys. Rev. Lett.***112**, 158101 (2014). - 47.
Rothschild, L. Non-random distribution of bull spermatozoa in a drop of sperm suspension.

*Nature***198**, 1221 (1963). - 48.
Berke, A., Turner, L., Berg, H. & Lauga, E. Hydrodynamic Attraction of Swimming Microorganisms by Surfaces.

*Phys. Rev. Lett.***101**, 038102 (2008). - 49.
Fily, Y., Baskaran, A. & Hagan, M. F. Dynamics of self-propelled particles under strong confinement.

*Soft matter***10**, 5609–17 (2014). - 50.
Vladescu, I. D.

*et al.*Filling an emulsion drop with motile bacteria.*Phys. Rev. Lett.***113**, 5 (2014). - 51.
Elgeti, J. & Gompper, G. Run-and-tumble dynamics of self-propelled particles in confinement.

*EPL (Europhysics Letters)***109**, 58003 (2015). - 52.
Brown, A. T.

*et al.*Swimming in a Crystal.*Soft Matter***12**, 33–35 (2015). - 53.
Achouri, S.

*et al.*The frequency and duration of Salmonella – macrophage adhesion events determines infection efficiency.*Phil. Trans. R. Soc. B***370**, 20140033 (2015). - 54.
Kaiser, A., Wensink, H. H. & Löwen, H. How to Capture Active Particles.

*Phys. Rev. Lett.***108**, 268307 (2012). - 55.
Guidobaldi, A.

*et al.*Geometrical guidance and trapping transition of human sperm cells.*Phys. Rev. E***89**, 032720 (2014). - 56.
Mijalkov, M. & Volpe, G. Sorting of chiral microswimmers.

*Soft Matter***9**, 6376 (2013). - 57.
Nakagaki, T., Yamada, H. & Tóth, A. Maze-solving by an amoeboid organism.

*Nature***407**, 470 (2000). - 58.
Lagzi, I., Soh, S., Wesson, P. J., Browne, K. P. & Grzybowski, B. A. Maze solving by chemotactic droplets.

*J. Am. Chem. Soc.***132**, 1198–1199 (2010). - 59.
Reynolds, A. M. Maze-solving by chemotaxis.

*Phys. Rev. E***81**, 5–7 (2010). - 60.
Fily, Y., Baskaran, A. & Hagan, M. F. Dynamics and density distribution of strongly confined noninteracting nonaligning self-propelled particles in a nonconvex boundary.

*Phys. Rev. E***91**, 1–11 (2015). - 61.
Muthukumar, M.

*Polymer Translocation*(CRC Press, 2016). - 62.
Gardiner, C. W.

*Handbook of stochastic methods for physics, chemistry and the natural sciences, vol. 13 of Springer Series in Synergetics*, third edn (Springer-Verlag, Berlin, 2004). - 63.
Wang, J., Chen, Y., Yu, W. & Luo, K. Target search kinetics of self-propelled particles in a confining domain.

*J. Chem. Phys.***144**, 204702 (2016). - 64.
Ray, D., Reichhardt, C. & Reichhardt, C. J. O. Casimir effect in active matter systems.

*Phys. Rev. E***90**, 013019 (2014). - 65.
Grossman, D., Aranson, I. S. & Ben Jacob, E. Emergence of agent swarm migration and vortex formation through inelastic collisions.

*New J. Phys.***10**, 023036 (2008). - 66.
Seyed-Allaei, H. & Ejtehadi, M. R. Vortex with fourfold defect lines in a simple model of self-propelled particles.

*Phys. Rev. E***93**, 1–14 (2016). - 67.
Rupprecht, J.-F., Bénichou, O. & Voituriez, R. Optimal search strategies of run-and-tumble walks.

*Phys. Rev. E***94**, 1–9 (2016).

## Acknowledgements

We would like to acknowledge invaluable discussions with Seyed Hamid Seyed-allaei. We also thank Andreas Zöttl for fruitful discussions at an early stage of the work, Ramin Golestanian and Julien Tailleur for useful comments on the project, and Pietro Cicuta for bringing reference [53] to our attention. This work was supported in part by DFG through the research training group GRK 1558 and the priority program SPP 1726 (grant number STA352/11), Iran National Science Foundation (grant number 93031724), and Iran’s National Elites Foundation.

## Author information

## Affiliations

### Department of Physics, Sharif University of Technology, P.O. Box 11155-9161, Tehran, Iran

- Maryam Khatami
- & Mohammad Reza Ejtehadi

### Institut für Theoretische Physik, Technische Universität Berlin, Hardenbergstrasse 36, 10623 Berlin, Germany

- Maryam Khatami
- , Katrin Wolff
- , Oliver Pohl
- & Holger Stark

### School of Nano-Science, Institute for Research in Fundamental Sciences (IPM), P.O. Box 19395-5531, Tehran, Iran

- Mohammad Reza Ejtehadi

## Authors

### Search for Maryam Khatami in:

### Search for Katrin Wolff in:

### Search for Oliver Pohl in:

### Search for Mohammad Reza Ejtehadi in:

### Search for Holger Stark in:

### Contributions

M.K., K.W., M.R.E. and H.S. designed the research; M.K. and K.W. performed the simulations; M.K., O.P., K.W. and M.R.E. analyzed the data; M.K., M.R.E. and H.S. wrote the manuscript; and all authors reviewed it.

### Competing interests

The authors declare no competing financial interests.

## Corresponding author

Correspondence to Maryam Khatami.

## Supplementary information

## Rights and permissions

This work is licensed under a Creative Commons Attribution 4.0 International License. The images or other third party material in this article are included in the article’s Creative Commons license, unless indicated otherwise in the credit line; if the material is not included under the Creative Commons license, users will need to obtain permission from the license holder to reproduce the material. To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/

## About this article

## Comments

By submitting a comment you agree to abide by our Terms and Community Guidelines. If you find something abusive or that does not comply with our terms or guidelines please flag it as inappropriate.