Yiyang Wua,
Guzhong Chena,
April Ramosb and
Kyle J. M. Bishop
*a
aDepartment of Chemical Engineering, Columbia University, New York, NY, USA. E-mail: kyle.bishop@columbia.edu
bDepartment of Chemistry, Barnard College, New York, NY, USA
First published on 26th August 2025
Magnetic microrobots capable of navigating complex fluid environments typically rely on real-time feedback to adjust external fields for propulsion and guidance. As an alternative, we explore the use of field-programmable rheotaxis, in which time-periodic magnetic fields drive directional migration of ferromagnetic particles in simple shear flows. Using a deterministic model that couples magnetic torques to hydrodynamic interactions near a surface, we show that the frequency, magnitude, and waveform of the applied field can encode diverse rheotactic behaviors—including downstream, upstream, and cross-stream migration relative to the flow. We analyze the mechanisms underlying these responses for canonical fields and use this understanding to design complex waveforms that optimize migration speed and direction. Our results reveal a tradeoff between performance and robustness: high-performance designs enable upstream motion but are sensitive to system parameters, whereas robust designs operate in the linear response regime with more modest performance gains. These findings establish a general strategy for programming flow-guided navigation in magnetic colloids and suggest routes toward self-guided microrobots that respond predictably to fluid environments without external feedback.
One strategy to overcome these limitations is to develop microrobots that guide their own motion in response to local environmental cues.16–18 While feedback control systems can dynamically adjust magnetic fields to direct individual particles along prescribed trajectories,19,20 these approaches require continuous tracking and are difficult to scale in systems with many particles or limited visual access. Autonomous behaviors inspired by biological taxis—such as artificial chemotaxis,21 phototaxis,22 and rheotaxis23—offer a compelling alternative. In such systems, the self-propelled motion of an active particle is directed by local gradients without the need for global information or external actuation.24 Achieving similar self-guided behavior in magnetically driven particles presents difficulties, as they typically move along field-specified directions and thus lack the autonomy characteristic of self-propelled particles.
Nevertheless, recent work suggests that time-varying fields with appropriate symmetries can encode the self-guided navigation of magnetic particles in response to local gradients.1 In particular, toggled rotating fields direct the migration of ferromagnetic spheres up topographic gradients on solid substrates, thereby enabling multiple particles to navigate complex landscapes in a common field.25 As explained by predictive models, the time-averaged response derives from interactions between field-driven particle rotation and asymmetries in the particle environment. By tuning the waveform of the driving field, these models predict other responses—including rapid migration up, down, or perpendicular to a local incline.26 These results motivate efforts to extend field programmable migration strategies to other types of environmental gradients, including fluid shear.
Rheotaxis describes the directed migration of micro-organisms27,28 or active particles23,29–33 in response to external shear flows. Such flows create a locally anisotropic environment defined by three mutually orthogonal directions: the flow direction, the velocity gradient direction, and the vorticity direction. Upstream migration against the flow direction—termed positive rheotaxis—is often a primary focus; however, other responses are possible, such as cross-stream migration in the vorticity direction.31 While some micro-organisms exhibit rheotaxis in bulk flows,34 it is more commonly observed near solid boundaries, where hydrodynamic interactions break symmetry and bias propulsion. For example, spermatozoa and flagellated bacteria migrate upstream due to the “weathervane effect,” in which shear flow reorients the swimmer about a pivot near the wall.29,35 Analogous behavior is observed in phoretic colloids, where competition between external shear and self-generated interfacial flows leads to a stable upstream orientation near a boundary.23,29,33
Here, we investigate the possibility of field-programmable rheotaxis in a ferromagnetic sphere positioned above a planar wall in simple shear flow (Fig. 1). We construct a deterministic model of the particle's rotational and translational dynamics by coupling magnetic torques to low-Reynolds-number hydrodynamics in the sphere-wall geometry. By tuning the frequency, magnitude, and waveform of the time-periodic driving field, we identify a range of rheotactic behaviors—including upstream, downstream, and cross-stream migration—relative to the flow direction. For each driving field, we quantify the rheotactic velocity as a function of two key dimensionless parameters: the ratio of the field frequency to the particle's magnetic relaxation rate, and the ratio of shear-induced and magnetic torques. We show that oscillating fields directed normal to the surface enhance downstream migration, while in-plane rotating fields induce cross-stream migration perpendicular to the flow direction. Using evolutionary optimization algorithms, we identify driving protocols that achieve upstream migration and evaluate their sensitivity to system parameters. We discuss the feasibility of realizing these behaviors experimentally, as well as strategies for enhancing their magnitude through anisotropic particle shapes. These results demonstrate a general strategy for designing time-periodic fields that enable self-guided microrobots with programmable responses to asymmetric fluid environments.
In the absence of inertial effects (i.e., at low Reynolds number), the linear and angular velocity of the particle depend linearly the external forces and torques as
![]() | (1) |
![]() | (2) |
![]() | (3) |
![]() | (4) |
![]() | (5) |
Here, B0 is the characteristic magnitude of the applied field, and ω0 is a magnetic relaxation rate for particle rotation about an axis parallel to the surface. With these units, the shear-induced force and torque are expressed as
![]() | (6) |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | (7) |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | (8) |
![]() | (9) |
Ux = κ(Bx![]() ![]() ![]() ![]() ![]() ![]() | (10) |
ΔUy = Uy − Unmy = κ(By![]() ![]() ![]() ![]() ![]() ![]() | (11) |
For further context, we consider the flow conditions encountered by engineered particles within the human vasculature. Such particles should be comparable in size to red blood cells (a ≈ 2 μm) to allow access to capillary vessels while minimizing the effects of Brownian motion. As they move through the vasculature, particles encounter shear rates ranging from = 20 s−1 in veins to 2000 s−1 in small arteries.47 Using the above estimate for the relaxation rate of a magnetic Janus sphere, the dimensionless shear rate varies from Γ = 0.06 to 6 across these conditions. Depending on the targeted shear conditions, the parameter Γ can be further tuned by varying the magnetic moment m through addition of more or less magnetic material during particle fabrication.
Field | B(t) = | Response |
---|---|---|
Static | ez | Upstream, −ey |
Oscillating | cos![]() |
Downstream, +ey |
Rotating | cos![]() ![]() |
Cross-stream, ±ex, ±ey |
![]() ![]() | (12) |
ΔUy = κ![]() ![]() | (13) |
Fig. 2 shows the time-averaged velocity difference 〈ΔUy〉 between a magnetic and non-magnetic particle as a function of shear rate Γ. For Γ < Γc = (β + κα)−1, the magnetic torque is sufficient to suppress shear-induced rotation, locking the particle orientation at a fixed angle. In this regime, the magnetic particle translates more slowly than a non-magnetic particle by ΔUy = κΩnmx = −κ(β + κα)Γ, which increases linearly with shear rate. Above the critical shear rate, shear-induced torques overcome magnetic alignment, leading to time-periodic particle rotation along the surface. This “slipping” behavior leads to a reduction in the time-averaged velocity difference, which follows the relation . At the transition point Γ = Γc, the velocity difference reaches a maximum value of −κ.
In dimensional units, this maximum velocity difference is ΔUy = −κaω0 = −YbmB0/6πηa2, which corresponds to −73 μm s−1 for the magnetic Janus sphere described above. For comparison, a non-magnetic particle under the same flow conditions moves at Uy = 1.3 mm s−1, indicating that torque-driven motions are relatively slow compared to particle convection with the flow. For an engineered particle with moment m ∝ a3B0, this response scales linearly with particle size a and quadratically with the applied field strength B0. The particle-wall surface separation ξ influences the strength of rotation-translation coupling as described by the mobility coefficient Yb. The maximum velocity difference is achieved at a critical shear rate of c = ω0(β + κα)−1, which corresponds to 1200 s−1 for the magnetic Janus sphere and can be further enhanced by increasing the magnetic moment m. Below, we focus on field-driven particle dynamics at smaller shear rates Γ < Γc, where the characteristic magnetic torque is stronger than the shear-induced torque.
B(t) = cos![]() | (14) |
As in the static case, the particle's magnetic moment relaxes to and evolves within the yz plane as described by the Euler angle θ. The angular dynamics of eqn (8) simplify to
![]() ![]() ![]() ![]() | (15) |
ΔUy = κ![]() ![]() ![]() ![]() | (16) |
There is no cross-stream motion in the x-direction (Ux = 0). Using the estimated mobility ratios, we integrate these equations numerically to determine the time-averaged velocity difference 〈ΔUy〉. Further analytical analysis of the particle dynamics in the oscillating field is provided in the SI.
Fig. 3a shows the time-averaged velocity difference versus the driving frequency ω for different values of the shear rate Γ. These calculations identify two critical frequencies ω1 and ω2, which mark qualitative changes in the particle's rotational dynamics. Between these frequencies (ω1 < ω < ω2), the particle completes one full rotation per cycle of the oscillating field, resulting in synchronized dynamics with 〈〉 = −ω. Averaging eqn (15) and (16) and substituting this result gives the average translational velocity difference
〈ΔUy〉 = κ(ω + Ωnmx) for ω1 < ω < ω2 | (17) |
![]() | ||
Fig. 3 Oscillating field. (a) Time-averaged velocity difference 〈ΔUy〉 between a magnetic and non-magnetic particle as a function of field frequency ω for different shear rates Γ. Markers denote results from numerical integration; the dashed line shows the approximation of eqn (17), valid for frequencies ω1 < ω < ω2. (b) The frequencies ω1 and ω2 increase with shear rate and bound the shaded region, where particle rotation is synced to the oscillating field. |
At higher frequencies (ω > ω2), synchronized rotation is lost when the combination of the magnetic and shear torques become insufficient to rotate the particle at speeds required by the oscillating field. Because the shear flow enhances particle rotation, the step-out frequency ω2 increases with increasing shear rate Γ (Fig. 3b). Above this critical value, the field moves through multiple oscillation cycles for every full rotation of the particle. In the limit as ω → ∞, the rapidly oscillating field allows for shear-induced particle rotation, and the average particle velocity approaches that of a non-magnetic particle (〈ΔUy〉 → 0; see SI for details).
At lower frequencies (ω < ω1), synchronized rotation is lost when shear flow alone rotates the particle through multiple revolutions during that portion of the oscillation cycle when the field strength is low enough to allow shear-induced rotation. In the low shear regime (Γ ≪ 1), the critical frequency ω1 scales quadratically with the shear rate (Fig. 3b), since shear-induced rotation scales like Γ as does the fraction of the oscillation cycle during which such rotation is allowed (see SI). In this regime, synchronized rotation in the oscillating field can enable large enhancements in the particle's angular velocity relative to that of a non-magnetic particle. For Γ = 10−3, the average angular velocity increases 500-fold from 〈〉 = Ωnmx = −2.7 × 10−4 for a non-magnetic particle to 〈
〉 = −ω for a magnetic particle driven by an oscillating field at the optimal frequency ω = ω2(Γ) = 0.13.
These results demonstrate that oscillating fields can significantly increase the speed of particle migration along the flow direction. In the absence of magnetic actuation, the particle travels at the baseline velocity Unmy = (μα + κβ)Γ. In the absence of shear, the oscillating field alone produces no net migration without inertial effects (neglected here), which can enable symmetry-breaking instabilities.48 Only through the combination of oscillatory torque and steady shear does the particle achieve directed migration—enhancing downstream motion by ΔUy ≈ 0.042 at Γ = 1. The relative magnitude of such enhancements (ΔUy/Unmy) is greatest at low shear rates, where the speed of field-driven particle translation can exceed that of shear-driven motion by more than an order-of-magnitude. Importantly, while the field powers particle motion, the direction of migration is dictated by the flow, a hallmark of rheotaxis.
B(t) = cos![]() ![]() | (18) |
In the absence of the external shear (Γ = 0), the particle rotates about the z-axis but does not translate. For rotation frequences below the step-out threshold ωc = λ, the particle rotates in phase with the applied field, Ω = ωez. Above this critical frequency, the magnetic torque cannot overcome viscous resistance, and the average angular velocity decreases as .
In the presence of shear, the flow tilts the axis of rotation, resulting in net particle motion along the vorticity direction (±ex), depending on the sign of ω. Fig. 4 shows the time-averaged x-velocity as a function of the rotation frequency ω and the shear rate Γ, computed by numerical integration. At low frequencies and shear rates, the oscillation-averaged velocity is well approximated by the following expression derived using perturbation analysis (see SI).26
![]() | (19) |
![]() | ||
Fig. 4 Rotating field. Time-averaged particle velocity in the x-direction, perpendicular to flow, as a function of (a) frequency ω and (b) shear rate Γ. Markers show numerical integration results; solid lines show the approximation of eqn (19), valid at low ω and Γ. All quantities are made dimensionless using the characteristic scales of eqn (5). |
For positive rotation frequencies and shear rates, the particle translates in the ex direction perpendicular to the direction of flow. Reversing the rotation direction drives the particle to translate in the opposite −ex direction.
The rotating field also modulates particle motion in the flow direction (i.e., ey). At low frequencies and shear rates, the oscillation-averaged velocity is approximated by
![]() | (20) |
The first term (order ω0Γ1) describes the suppression of shear-driven translation due to field-induced resistance to rotation. This slow down is half of that created by a static field, as the particle's shear-induced rotation is prohibited only during a fraction of the rotation period. The second term (order ω2Γ1) describes a small frequency-dependent enhancement to the downstream velocity due to the rotating field. The perturbative predictions are in quantitative agreement with numerical simulations (Fig. S2).
The rotating field breaks the mirror symmetry of the particle-wall-field system thereby enabling cross-stream migration in the x-direction perpendicular to both the flow direction (y-direction) and the surface normal (z-direction). By contrast, the static and oscillating fields detailed above are symmetric to reflection about the x-direction. The time-averaged particle velocity shares this mirror symmetry thereby prohibiting cross-stream migration for those fields. Both the rotating magnetic field and the linear shear field exhibit a different symmetry that combines 180° rotation about the x-direction followed by reflection about that direction. In the absence of symmetry-breaking instabilities, this rotation-reflection symmetry is also incompatible with cross-stream migration in the x-direction. The presence of the solid wall serves to break the rotation-reflection symmetry of the external fields to allow for the cross-stream migration described by eqn (19). For large surface separations, the mobility coefficient κ approaches zero thereby eliminating the hydrodynamic coupling between magnetic torque and particle translation.
As a representative case, we consider a family of right-handed, time-periodic fields with m = 3 fold rotational symmetry, defined by
![]() | (21) |
The design space also includes the shear rate Γ, which sets the strength of the shear-induced torque relative to the characteristic magnetic torque. While simulations fix the flow direction along ey, this direction is assumed to be unknown in practice. Accordingly, we represent the orientation and phase of the driving field relative to the flow using an in-plane rotation angle ν and a phase offset σ, such that B(ωt) = Rz(ν)Bref(ωt + σ). Finally, we standardize the initial conditions by orienting the particle's magnetic moment along the ez direction in a static field prior to application of the time-periodic waveform at t = 0. Given these inputs, we integrate the particle dynamics numerically in time to determine the transient orientation u(t) and position xp(t). The key figure of merit is the oscillation-averaged particle velocity 〈U〉, which characterizes the rheotactic response in the imposed shear flow.
Fig. 5 shows the optimized driving field and the resulting particle trajectory for a representative parameters set: m = 3, ω = 0.2, Γ = 0.02, and ν = 0. In the absence of shear, the field drives periodic particle rotation without net translation. The applied shear field breaks the symmetry of the particle environment, resulting in net upstream migration—against the flow—at an average speed of −0.0089 (equivalent to 0.28 particle radii per cycle). In addition to upstream drift, the particle exhibits cross-stream migration along the x-direction. This lateral motion can be eliminated if desired by alternating between the optimized right-handed field and its mirror image reflected about the ex direction.25
While effective in achieving the desired rheotactic response, the designed field is sensitive to its orientation ν relative to the flow. As shown in Fig. 5c, variations in ν can reverse the direction of migration, with 〈Uy〉 switching from negative (upstream) to positive (downstream). For certain orientations, the dynamics become bistable: the migration direction depends not only on ν but also on the particle's initial orientation or the phase of the applied waveform. While the orientation-averaged drift remains biased in the upstream direction, this behavior does not constitute true “self-guided” rheotaxis, as it depends on the relative orientation of the field and the flow.
Furthermore, the migration velocity is sensitive to both the oscillation frequency ω and the shear rate Γ, highlighting the complexity of the design landscape. Deviations from the parameter values used during optimization can substantially reduce or eliminate the desired upstream migration. These sensitivities arise from the nonlinear coupling of magnetic actuation to shear-induced torques, which gives rise to nonlinear rheotactic responses. As discussed below, more robust “self-guided” behaviors can be achieved by designing fields that operate in the linear response regime, where the migration velocity scales linearly with the applied shear.
〈U〉 = (〈U01〉 + 〈U11〉ω + 〈U21〉ω2)Γ + … | (22) |
Here, the vector coefficients 〈Uij〉 quantify contributions of order ωiΓj. Notably, the expansion excludes field-driven motion in the absence of shear (Γ = 0), since such contributions vanish for fields with m-fold rotational symmetry. Higher-order terms in ω and Γ are neglected under the assumption that both parameters remain sufficiently small. Importantly, the leading-order coefficients 〈Uij〉 can be computed efficiently for any candidate waveform B(ωt) using a multiple scale perturbation scheme detailed in the SI.26,50 By operating within this linear response regime—where 〈U〉 ∝ Γ—the particle's migration velocity becomes effectively independent of the field orientation angle ν, enabling robust and orientation-agnostic rheotactic behavior.
Using the perturbative expansion in eqn (22), we optimize specific components of the migration velocity—such as cross-stream or upstream motion—by varying the oscillation frequency ω, shear rate Γ, and field waveform B(ωt), parameterized by the Fourier coefficients a0, a1, b1, etc. To ensure the validity of the truncated expansion, both ω and Γ are constrained to lie within bounds ω < ω* and Γ < Γ*. As detailed in the SI, these limits are chosen such that higher order terms are successively smaller than the leading order contributions by a specified factor 0 < f < 1. For instance, the time-averaged coefficients in the x direction satisfy the condition, |〈Uxij〉| < fi+j−2|〈Ux11〉|, for positive integers i and j with 0 ≤ i + j ≤ 4. This heuristic ensures that the particle's magnetic moment can continuously follow the trajectory of the driving field, thereby preserving the assumptions underpinning the linear response approximation. Within these bounds, the frequency ω and shear rate Γ are optimized via linear programming, while the waveform coefficients are optimized using differential evolution.
Fig. 6 shows the result of this procedure for maximizing the rate of cross-stream migration, 〈Ux11〉ωΓ. For the optimized field (Fig. 6a), the linear rheotactic response 〈Ux11〉ωΓ, with 〈Ux11〉 = 0.0318, remains valid up to frequencies ω* = 0.122 and shear rates Γ* = 2.29. Under these conditions, the orientation of the driving field relative to the flow direction does has no effect on the oscillation-averaged particle migration (Fig. 6b). Fig. 6c confirms the validity of the perturbative approximation: the numerically computed velocity 〈Ux〉 closely matches the predicted linear trend for small ω and Γ. The optimized cross-stream velocity is ∼220% larger than that of the simpler rotating field analyzed above (Fig. 6c asterisk * vs. circle ○). This modest improvement illustrates a key trade-off: while restricting the dynamics to the linear response regime yields robust and orientation-independent behavior, it limits the performance gains that could otherwise be achieved using more complex time-varying fields operating in the nonlinear regime.
Attempts to enhance upstream rheotaxis in the linear response regime were less successful. At zeroth order in frequency, fields designed to maximize −〈Uy01〉Γ were inferior to the simple static field, which enables upstream migration with a maximum velocity, ΔUy = −κ, relative to that of a non-magnetic particle (Fig. 2). At second order, fields designed to maximize −〈Uy21〉ω2Γ produce only negligible upstream contributions. These results suggest that other strategies are needed—for example, non-spherical particles—to enable field-driven upstream migration that is invariant to flow orientation.
The slow rates of cross-stream rheotaxis for the magnetically driven sphere compared to that of an active particle highlight fundamental differences in their respective mechanisms. For the field-driven particle, there is no propulsion velocity in the absence of shear, and the velocity components—both perpendicular and parallel to the flow—scale linearly with shear rate. In this linear response regime, the migration angle for magnetic rheotaxis is independent of the shear rate. By contrast, for the active particle, the shear field orients the propulsion velocity Up perpendicular to the flow direction; however, its magnitude is largely shear-independent—determined instead by chemically fueled phoretic propulsion. As a result, the migration angle can be increased by reducing the magnitude of the share rate (assuming other contributions due to Brownian motion and gravity remain negligible).
For the prototypical magnetic Janus sphere44–46 detailed above, cross-stream rheotaxis under optimal conditions drives particle migration at speeds 〈Ux〉 = 6 μm s−1 for shear rates of = 800 s−1, typical of the human vasculature.47 The migration rate is similar to the propulsion speed of an active particle but small compared to the convective velocity Uy = 800 μm s−1 in the applied shear flow—consistent with the small migration angles noted above.
In principle, such rheotactic responses could be applied to microrobot navigation or particle separations; however, further enhancements are needed to motivate experimental demonstrations. For instance, consider a dilute mixture of magnetic and non-magnetic spheres traveling along the floor of a spiral-shaped microfluidic channel. Application of a time-periodic field optimized for cross-stream rheotaxis (Fig. 6a) would drive the selective migration of the magnetic particles across the full channel width W after traveling a distance of ∼140W along the flow direction. Future enhancements in field-driven rheotaxis could avoid the need for such long channels and enable downstream, upstream, and cross-stream responses at speeds exceeding the flow velocity.
The possibility of such enhancements is motivated by our present results for the oscillating field (Fig. 3) for downstream migration and the designed field for upstream migration (Fig. 5). These fields operate outside of the linear response regime to enable field-driven particle migration at speeds exceeding the flow velocity. Future work should explore the design of such fields in a manner that preserves the rotational-invariance of the rheotactic response as demonstrated by the oscillating field but not by the designed field.
Further enhancements in field-programmable rheotaxis could be achieved by expanding the design space to include anisotropic particle shapes. In particular, ellipsoidal particles introduce new couplings in the hydrodynamic mobility matrix that link torque-driven rotation to particle translation above a solid wall. Unlike spheres, prolate ellipsoids experience orientation-dependent torques in shear flows that tend to align their long axis with the flow direction, thereby enabling new modes of field-responsive behavior.36 In practice, magnetic colloids have been prepared by two common strategies: (1) deposit magnetic materials (e.g., cobalt, iron) onto particle monolayers by vapor deposition51,52 and (2) incorporate magnetic nanoparticles within polymeric colloids.53 Anisotropic particles have been demonstrated using both methods by stretching polymeric colloids within a sacrificial matrix;54,55 however, it remains a challenge to quantify and control the direction of particle magnetization relative to particle shape.
Realizing programmable rheotaxis in experimental systems will require strategies to (i) enhance performance within the linear response regime, and/or (ii) improve the robustness of optimized designs operating in the nonlinear regime. Toward this goal, we are exploring the use of non-spherical particles, such as ellipsoids, to strengthen the coupling between magnetic and shear-induced torques. If successful, these advances could lay the groundwork for self-guided microrobots capable of autonomous navigation through complex microstructured environments, such as the human vasculature, where local flows and boundaries naturally guide particle motion for biomedical applications. Such real world environments introduce new challenges to investigate and overcome such as (i) the effects of time-periodic shear rates, (ii) the impact of non-Newtonian rheology, and (iii) the need for rotational invariance in three dimensions rather than two demonstrated herein.
Data for this article, including Mathematica and Python notebooks for computing field-driven particle dynamics, are available on github at https://doi.org/10.5281/zenodo.15792129.
This journal is © The Royal Society of Chemistry 2025 |