Supplemental Material: Collective motion of driven semiflexible filaments tuned by soft repulsion and stiffness
I Simulation model
Our semiflexible filaments are modeled as discretized wormlike chains kratky49 with rigid, inextensible segments. We adopt the algorithm for constrained Brownian dynamics of bead-rod wormlike chains with anisotropic friction by Montesi et. al montesi05 . The details that follow are an overview of the algorithm introduced in their paper, with the addition of interactions and self-propulsion forces.
Filaments are represented by sites and segments, with fixed segment length , contour length , and anisotropic friction, . The position of each site is updated using a midstep algorithm
(1) | ||||
where is the time step, is the initial velocity of site at initial position , and is the velocity of site recalculated at the midstep position , but using the same stochastic forces as in . Each site is assigned an orientation, corresponding to the orientation of the segment attaching it to site ,
(2) |
The orientation of the last site of the filament is set equal to that of its only neighboring segment, so that .
The velocity of each site is
(3) |
where is an anisotropic mobility tensor, and is the mobility of site in response to a force on site . The total force on site is the sum
(4) |
The deterministic forces include filament bending forces, metric forces, tension forces, and external forces from interactions. are the random forces contributing to the Brownian motion of the filament, and are geometrically-projected such that the forces due not break the constraints due to the fixed segment length, and are described in detail by Montesi et al. montesi05 .
The mobility tensor can be written as an inverse site friction tensor
(5) | ||||
where is a vector tangent to site , the symbol denotes the outer product, and the parallel and perpendicular friction coefficients corresponding to site are and respectively. The tangent vector is the average of the orientations of its neighboring segments,
(6) |
for , and , at the chain ends. The position update routine in Eqn. 1 can be rewritten in terms of the inverse site friction tensor as
(7) | ||||
(8) |
The diffusivity of the wormlike chain is , where is the local friction due to site , which depends on the filament aspect ratio where is the diameter of the chain. In the regime of rigid, infinitely thin rods, the coefficient of friction is given by doi88 ,
(9) |
where . In the finite aspect ratio case, this friction coefficient is multiplied by a geometric factor
(10) |
Therefore, each site experiences a local friction given by
(11) |
The bending energy of a discrete wormlike chain for is approximated by
(12) |
where is the bending rigidity, which is related to the persistence length of the wormlike chain as . Note that we are adopting the convention that the previous equation is true in all dimensions of wormlike chains, unlike the convention adopted by Landau and Lifshitz where landau86 . This results in a Kuhn length that depends on dimensionality, , which is critical when analyzing the correlations of the wormlike chain for , as discussed later.
The bending force is . The implementation of the bending forces coincides with metric forces, which come from a metric pseudo-potential
(13) |
and is the metric tensor, which is an tridiagonal matrix. has diagonal terms and the off-diagonal terms depend on the cosine of the angle between neighboring segments, . The metric pseudo-potential is necessary for the filament conformation to have the expected statistical behavior in the flexible limit, .
It was shown in the work of Pasquali et al. pasquali02 that the bending forces and metric forces could be calculated together as one force term,
(14) |
where replaces the true bending rigidity as an effective rigidity with a conformational dependence,
(15) |
The derivative in Eqn. 14 can be evaluated from
(16) |
so the two forces can be written
(17) |
For an inextensible wormlike chain, the positions of sites must satisfy constraints where
(18) |
for . Differentiating the constraints with respect to the site positions yields a vector
(19) |
The geometrically projected random forces must satisfy the property
(20) |
so that the dimensional vector of random forces is locally tangent to the dimensional hypersurface to which the system is confined.
The geometrically projected random forces are calculated from
(21) | ||||
where are the unprojected random forces and is the component of the dimensional unprojected random force vector along direction . The unprojected random forces at each timestep are
(22) | ||||
where is a spatial vector whose elements are uniformly distributed random numbers between montesi05 ; grassia95 .
To calculate , we solve the set of linear equations
(23) |
where is the metric tensor. In matrix notation, this is equivalent to solving for , and can be solved in steps using LU decomposition for tridiagonal matrices. Once the system is solved for , we use Eqn. 21 to solve for the geometrically projected random forces. While the deterministic forces are recalculated and applied at each half step of the simulation, the geometrically projected random forces are only calculated once per full simulation step at the initial site positions , and applied at each half step of the algorithm.
To calculate the tension , we require that the system constraints are constant, i.e. . This is equivalent to solving the system of linear equations
(24) |
where . In matrix notation, this can be written as , where is another tridiagonal matrix
(25) |
or
(26) |
with diagonal and off-diagonal elements
(27) | ||||
and can be solved in a similar manner as Eqn. 23. The tension forces are then
(28) |
External forces include forces from filament-filament interactions and self-propulsion forces from the driving of molecular motors. The filament-filament interaction forces are calculated from the derivative of the general exponential model potential (GEM-8)
(29) |
where is the minimum distance between neighboring filament segments and is the unit length used in the simulation, defined to be the diameter of a filament.
Forces from molecular motors are modeled in our simulations as a uniform force density that is directed along the local filament segment orientations,
(30) |
The assumptions of this model are that lattice defects are negligible for observing collective behavior of gliding filaments, and that motor binding and unbinding events occur at fast enough rates such that their behavior need not be explicitly included in the model. These assumptions are guided by experimental observations that filament velocities are constant in gliding assays, despite the presence of filament crossing events that certainly require a large number of unbinding and binding events liu11 .
II Model implementation
Simulation software for the filament model is written in C++ and is publicly available online moore20 . The simulations were run on the Summit computing cluster anderson17 and parallelized using OpenMP. The simulations presented in this work required approximately CPU hours of computation, as a conservative estimate, plus additional resources for post-processing and analysis.
III Model validation

We tested the model to ensure agreement with theory for Brownian wormlike chains. Filament diffusion was validated by measuring the mean-squared displacement (MSD) and vector correlation function (VCF) for filaments in the rigid regime () and matching the expected values for slender, rigid filaments doi88 (Fig. 1).

Filament bending was validated by ensuring that the conformations sampled by a filament at thermal equilibrium matched the expected statistical behavior. The distribution of angles between joining filament segments should be a Boltzmann distribution . Following Montesi et al. montesi05 , we fit a histogram of filament angles from our simulation and found good agreement with the theoretical distribution (Fig. 2).
We validated the mean-square end-to-end distance of the filaments in 2D. With our choice of for , is given by the equation
(31) |
which differs from the usual result of a Kratky-Porod wormlike chain by the replacement kratky49 . We see an apparent softening of the filament in the presence of activity, in agreement with recent reports of the same effect isele-holder15 ; singh18 ; gupta19 ; peterson20 . We plot the apparent persistence length derived from the observed as a function of Péclet number in Fig. 3. The softening is appreciable at lower rigidities and vanishes for increasingly rigid filaments.


We also validated the bending model by quantifying the filament buckling behavior for rigid filaments that were placed under a load. For a rigid filament with a persistence length , we expect the maximum load that an unconstrained filament can withstand before buckling to be given by Euler’s critical load for a column, . To measure the critical load, we linearly increased a Hookean spring force between filament ends and recorded the force at the time when the end-to-end distance of the filament sharply deviated from the filament contour length. Varying both contour length and persistence length, we compared our measured values of the critical load to theory and found good agreement with the expected values (Fig. 4).
IV Simulation parameters
Key parameters of our simulation include the filament length , diameter , persistence length , driving force per unit length , repulsive energy , simulation box diameter , and filament packing fraction . In our simulations, all filaments have an aspect ratio , and the system size is . In our dimensionless reduced units, , , and are set to unity, where is the diffusion coefficient of a sphere with diameter . The driving force in reduced units is , , and , so that the corresponding Péclet numbers are , , . When the repulsive energy in the GEM-8 potential has a value , the repulsive interaction between particles induces a maximum force equal to the driving force. The repulsion parameter is then rescaled to be so that corresponds to fully impenetrable filaments in the absence of any additional forces for any given Péclet number.
The dimensionless parameters of interest when exploring the phase behavior of collective semiflexible filaments are , the rescaled energy , and packing fraction , where is the area of the simulation box and is the total area occupied by spherocylindrical filaments. The timestep used in our half step integration algorithm was , where is the average time for a sphere of diameter to diffuse its own diameter. The active timescale is the time required for a filament to traverse its own length , which is , , for respectively.
Filaments in the simulation were initialized by randomly inserting filaments parallel to one axis of the simulation box in a nematic arrangement, and allowing the filaments to diffuse for steps before driving the filaments. Simulations terminated once they were determined to have reached a steady state, when order parameters appeared to converge to constant values.
V Order parameters
Six global order parameters quantify the system phase behavior, including polar order , nematic order , average contact number , average local polar order , average spiral number , and number fluctuations . In addition, we quantified the dynamical flocking behavior of the system by characterizing the fraction of flocking filaments as well as the frequencies that filaments joined or left the flocking state, and respectively, which are both normalized by the number of filaments in the initial state. All order parameters are time averaged over the final 10% of the simulation.
The polar order is the normalized magnitude of the total orientation vector of all filament segments,
(32) |
where is the orientation of the filament segment for filaments each composed of segments. The polar order varies from , where filaments have fully isotropic directional arrangement, to , where all filaments are aligned in the same direction.
The nematic order is the maximum eigenvalue of the 2D nematic order tensor
(33) |
where is the unit tensor. The nematic order varies from , with fully isotropic directional arrangement, to where all filaments are parallel or antiparallel along the same axis.
The contact number and local polar order parameters follow previous work measuring the collective behavior of active polar particles kuan15 . The contact number is a measure of crowding in the system, and is calculated on a filament segment-wise basis,
(34) |
where is the minimum distance between segments and , and with the sum excluding all intrafilament segments. The parameter determines the effective cutoff for interparticle distances, which we choose to be to only consider the contributions from nearby particles to the sum. The contact number is a purely positive quantity, ranging approximately from –. The average contact number is the system average of the segment contact number.
The degree of local polar ordering is determined by measuring the polar order of each segment relative to their nearest neighbors, and is weighted by the segment contact number,
(35) |
where the sum again excludes intrafilament segments. The local polar order ranges from , where a segment is surrounded by filaments of opposite polarity, to , where a segment is surrounded by neighboring segments with the same polarity. The average local polar order is the system average of the local polar order of all filament segments.
The spiral number is a measure of filament spiraling, and is calculated by measuring the angle swept by traversing the contour of filament from tail to head originating from the center of curvature of the filament. The average spiral number is the system average
(36) |
A filament with segments that are on average oriented in a straight line will have , since the center of curvature is at a distance from the filament, and a filament bent into a perfect circle has . Since filaments are not bent into perfect circles when they form a spiral, a filament spiral can be stable with a spiral number as low as . Filaments may also be wound very tightly and have a spiral number .
Number fluctuations are a measure of density fluctuations in the system. The number fluctuations are determined by drawing a box of size and observing the number of filaments in the box at time . By time averaging the filament number within the box, one can arrive at a mean and standard deviation , which is a measure of the number fluctuations. By measuring and for progressively larger box sizes, one can measure the scaling of the number fluctuations relative to , . For equilibrium systems with particles positioned at random, the central limit theorem guarantees that . However, systems with collective behavior have been shown to exhibit “giant number fluctuations” (GNF), with . Flocking systems that have long-range order in 2D, such as the Vicsek model at low temperature, have vicsek95 ; toner98 ; ginelli16 . We use the scaling of the number fluctuations as an order parameter to determine the long-range ordering of the system, and find values of that range between – (Fig. 5).
We categorized the flocking behavior of filaments using the individual local order parameters and contact numbers for filaments. Following previous work kuan15 , we determine a filament to be flocking if . We also distinguish between filaments at the flock interior and exterior by labeling flocking filaments with as interior flocking filaments and as exterior flocking filaments. We then tracked transitions between the three states, not flocking (NF), interior flocking (IF), and exterior flocking (EF) in order to determine the switching rates.

Only the total fraction of flocking filaments and the ratio of switching frequencies between the not-flocking state and flocking state were used as order parameters for clustering the simulation results. However, we found that saturation of the number of flocking filaments (giant flock phase) occurs when a large number of filaments are in the IF state, indicating that kinetic trapping of filaments plays an important role in stabilizing giant flocks, as observed in previous work kuan15 .
VI High-dimensional clustering of order parameters
In order to label the simulation phases, simulation order parameters were grouped by Péclet number and packing fraction and clustered using the k-means clustering algorithm as implemented by the scikit-learn Python package scikit-learn . Initially, all order parameters values were standardized by , where is the order parameter value for a simulation, and and are the mean and standard deviation of the same order parameter over all simulations with the same Péclet number and packing fraction. The scaled order parameters were then processed using principal component analysis, and all but the six largest components were discarded. These values were then clustered using k-means clustering for different numbers of clusters , until increasing the number of clusters no longer significantly reduced the overall cost function of the algorithm. After simulations were assigned to clusters, the final simulation state behaviors were observed and labeled.
VII Filament alignment probability
In order to determine the probability that two intersecting filaments align upon collision , we simulated intersections of two filaments for initial collision angles evenly ranging between and in the presence of Brownian noise. We repeated this process while varying and in order to determine the overall probability that two randomly-oriented filaments would align upon collision for a given filament stiffness and repulsivity (Fig. 6).
VIII Filament directional persistence
The filament orientation autocorrelation was calculated using
(37) |
where is the orientation of the filament at time , and the correlation was averaged over intervals of duration (Fig. 7). The filament orientation is determined by averaging over the orientation of filament segments.
Filament orientation autocorrelation lifetimes lengthen with increasing filament rigidity . For a fixed repulsion , a longer orientation autocorrelation lifetime correlates with collective motion, which suggests that the angular persistence of filament trajectories contributes to the formation of persistent flocks and bands. For more ballistic trajectories, filaments that align can remain aligned for longer time, thus increasing the probability of aligning with more filaments along that trajectory, which may cause the accumulation of aligned filaments to form persistent flocks.

IX High density simulations
Simulations were run at and , for , , and , and for values of ranging from – in order to explore the parameter space at higher filament densities and search for density-dependent phase behavior. We find that the giant flock phase becomes more stable at a larger range of values of with increasing density (Fig. 8). At , we found that multiple polar bands can coexist in the giant flocking phase, resulting in nematic laning, and is stable over a wide range of repulsivity. We also ran one simulation at at and , and find the giant flock/nematic laning phase to be stable at higher values of (Fig. 9).

We labeled the results by comparing the high density order parameter values to the results from simulations at lower filament densities. The only major inconsistency in the order parameter values between the labeled phases for low and high densities is the global polar order parameter , which is high in the giant flock phase at densities , and is closer to zero at higher densities due to the presence of nematic laning bands. However, we classify nematic laning as a type of giant flocking phase, since the underlying dynamical behavior is similar.
X Intrinsic curvature
An intrinsic curvature was added to the filament model by modifying the bending potential in Eqn. 12 to have an offset angle ,
(38) |
where is the angle between site orientations and , and corresponds to the expected angle between two segments of length with a curvature per unit length .
It can be shown that the term in the sum of Eqn. 38 can be rewritten as
(39) |
where is a rotation matrix that rotates the orientation vector by an angle ,
(40) |
and its inverse rotates the orientation vector by an angle . The combined bending and metric forces from Eqn. 14 with intrinsic curvature are therefore
(41) |
which can be expanded in the same way as Eqn. 17.
We ran a simulation with intrinsic curvature radians/, with packing fraction , filament length , system box length , rigidity , and repulsion (Fig. 17). The filaments coalesce into a single polar band, which then buckles and reassembles at an angle rotated in the direction of filament curvature. This buckling and rotation behavior continues for the length of the simulation. The rotation of the polar order vector has been observed in filament gliding assay experiments and simulations of bead-spring filament models with intrinsic curvature kim18 .
References
- [1] O. Kratky and G. Porod. Röntgenuntersuchung gelöster fadenmoleküle. Recueil des Travaux Chimiques des Pays-Bas, 68(12):1106–1122, 1949.
- [2] Alberto Montesi, David C. Morse, and Matteo Pasquali. Brownian dynamics algorithm for bead-rod semiflexible chain with anisotropic friction. The Journal of Chemical Physics, 122(8):084903, February 2005.
- [3] Masao Doi and S. F. Edwards. The Theory of Polymer Dynamics. Clarendon Press, 1988.
- [4] L.D. Landau, E.M. Lifshitz, A.M. Kosevich, J.B. Sykes, L.P. Pitaevskii, and W.H. Reid. Theory of elasticity: Volume 7. Course of theoretical physics. Elsevier Science, 1986. Citation Key: landau1986theory tex.lccn: 86002450.
- [5] Matteo Pasquali and David C. Morse. An efficient algorithm for metric correction forces in simulations of linear polymers with constrained bond lengths. The Journal of Chemical Physics, 116(5):1834–1838, February 2002.
- [6] P. S. Grassia, E. J. Hinch, and L. C. Nitsche. Computer simulations of Brownian motion of complex systems. Journal of Fluid Mechanics, 282:373–403, January 1995.
- [7] Lynn Liu, Erkan Tüzel, and Jennifer L Ross. Loop formation of microtubules during gliding at high density. Journal of Physics: Condensed Matter, 23(37):374104, September 2011.
- [8] Jeffrey M. Moore. Simcore v0.2.2. Zenodo, May 2020.
- [9] Jonathon Anderson, Patrick J. Burns, Daniel Milroy, Peter Ruprecht, Thomas Hauser, and Howard Jay Siegel. Deploying RMACC Summit: An HPC Resource for the Rocky Mountain Region. In Proceedings of the Practice and Experience in Advanced Research Computing 2017 on Sustainability, Success and Impact, PEARC17, pages 8:1–8:7, New Orleans, LA, USA, 2017. ACM.
- [10] Rolf E. Isele-Holder, Jens Elgeti, and Gerhard Gompper. Self-propelled worm-like filaments: Spontaneous spiral formation, structure, and dynamics. Soft Matter, 11(36):7181–7190, 2015.
- [11] Shalabh K. Anand and Sunil P. Singh. Structure and dynamics of a self-propelled semiflexible filament. Physical Review E, 98(4):042501, Oct 2018.
- [12] Nisha Gupta, Abhishek Chaudhuri, and Debasish Chaudhuri. Morphological and dynamical properties of semiflexible filaments driven by molecular motors. Physical Review E, 99(4):042405, Apr 2019.
- [13] Matthew S. E. Peterson, Michael F. Hagan, and Aparna Baskaran. Statistical properties of a tangentially driven active filament. Journal of Statistical Mechanics: Theory and Experiment, 2020(1):013216, Jan 2020.
- [14] Hui-Shun Kuan, Robert Blackwell, Loren E. Hough, Matthew A. Glaser, and M. D. Betterton. Hysteresis, reentrance, and glassy dynamics in systems of self-propelled rods. Physical Review E, 92(6), December 2015.
- [15] Tamás Vicsek, András Czirók, Eshel Ben-Jacob, Inon Cohen, and Ofer Shochet. Novel Type of Phase Transition in a System of Self-Driven Particles. Physical Review Letters, 75(6):1226–1229, August 1995.
- [16] John Toner and Yuhai Tu. Flocks, herds, and schools: A quantitative theory of flocking. Physical Review E, 58(4):4828–4858, Oct 1998.
- [17] Francesco Ginelli. The physics of the vicsek model. The European Physical Journal Special Topics, 225(11):2099–2117, Nov 2016.
- [18] F. Pedregosa, G. Varoquaux, A. Gramfort, V. Michel, B. Thirion, O. Grisel, M. Blondel, P. Prettenhofer, R. Weiss, V. Dubourg, J. Vanderplas, A. Passos, D. Cournapeau, M. Brucher, M. Perrot, and E. Duchesnay. Scikit-learn: Machine learning in Python. Journal of Machine Learning Research, 12:2825–2830, 2011.
- [19] Kyongwan Kim, Natsuhiko Yoshinaga, Sanjib Bhattacharyya, Hikaru Nakazawa, Mitsuo Umetsu, and Winfried Teizer. Large-scale chirality in an active layer of microtubules and kinesin motor proteins. Soft Matter, 14(17):3221–3231, 2018.









