Supplemental Information for “Chemical herding as a multiplicative factor for top-down manipulation of colloids ”
I Gradient vector field
In this section, we give the equations for the gradient vector field (GVF) used to set the trajectory of the herder. A GVF is a function that produces a direction for the herder to move at each time step. (Recall that is the position of the herder, is the target position for the herder, and is the set of the positions of each follower.) We use a modified version of the GVF presented by Wilhelm and Clem to calculate the direction that will move the herder to while avoiding collisions with the follower particles.
The GVF is described by
(1) |
where is the 2D vector that guides the herder to its optimal placement , and is the vector that repels the herder from obstacle . Also, is a decay function that determines how far from obstacle the repulsion persists, defined as
(2) |
where (the distance between obstacle and the herder). For followers, we set , where the value of was chosen by trial and error to ensure the particles do not overlap. In simulations with multiple herders, we set a different value of for herders to prevent them from moving too close to each other, settling on a value of m.
Each of the terms in Equation (1) is further divided into a convergence term and a circulation term. The convergence terms make the herder either approach its target or avoid an obstacle. The circulation terms help the GVF avoid singularities, or points where . Each term is weighted appropriately, giving
(3) | |||
(4) |
which introduces the functions ,,, and that will be defined in the following paragraphs, as well as a set of constant weights. To calculate , we used a convergence weight and a circulation weight , meaning there is no circulation when the herder is far from any obstacle. To calculate each we used a convergence weight , meaning the herder will be repelled from obstacles, and a circulation weight , which will bias the particle into clockwise movement around obstacles. These parameters were selected by trial and error.
The convergence and circulation terms of the portion of the GVF that make the herder approach its goal are
(5) |
and
(6) |
where is the angle between the desired path and the -axis.
The convergence and circulation terms that prevent the herder from colliding with an obstacle centered at are
(7) |
and
(8) |
where and .
The GVF, as given so far, encounters a problem when the followers are close together. When an unchased follower is too close to the chased follower, treating that unchased follower as an obstacle may prevent the herder from ever reaching its optimal placement . Our heuristic for solving this problem is that we consider only those followers that are located further than from as obstacles to be included in the sum in Equation (1). Collisions with obstacles closer than that are deemed necessary.
In Equation (1), gives the direction for the herder to move. We would also like the herder to move at the maximum speed allowed by the physical system. However, since the controller is discrete in time, care must be taken to ensure the herder does not overshoot its target. Thus the force applied to the herder dynamics is set to be
(9) |
where is the vector from the herder to its target position and is the timestep of the controller. This velocity ensures that the herder moves at a speed of until it is within the distance from its optimal position that it can move in a single timestep, then it slows to avoid overshooting. We used a value of s.
II Pseudo-steady state approximation
In this section, we use dimensional analysis to show that a pseudo-steady state approximation can be used to find the concentration field around a herder. We start with the reaction-diffusion equation
(10) |
We then nondimensionalize using , , , and . For the time scale , we use the length of time it takes the herder to move a chased particle a distance of , which, from Equation 39 of the main paper, is given by . Then, substituting in the dimensionless variables, we have
(11) |
If the Peclet number is small, then diffusion will dominate over the motion of the herder, and the term of Equation (10) will be negligible. Using the values of parameters given in the main paper, we have . Since this is much smaller than unity, we conclude that a pseudo-steady state approximation is valid. We have also verified the validity of the pseudo-steady state solution numerically to our satisfaction.