Skip to main content
eLife logoLink to eLife
. 2024 Dec 19;13:RP96129. doi: 10.7554/eLife.96129

Mapping spatial patterns to energetic benefits in groups of flow-coupled swimmers

Sina Heydari 1,, Haotian Hang 1,, Eva Kanso 1,2,
Editors: Marcus M Seldin3, Christian Rutz4
PMCID: PMC11658766  PMID: 39700223

Abstract

The coordinated motion of animal groups through fluids is thought to reduce the cost of locomotion to individuals in the group. However, the connection between the spatial patterns observed in collectively moving animals and the energetic benefits at each position within the group remains unclear. To address this knowledge gap, we study the spontaneous emergence of cohesive formations in groups of fish, modeled as flapping foils, all heading in the same direction. We show in pairwise formations and with increasing group size that (1) in side-by-side arrangements, the reciprocal nature of flow coupling results in an equal distribution of energy requirements among all members, with reduction in cost of locomotion for swimmers flapping inphase but an increase in cost for swimmers flapping antiphase, and (2) in inline arrangements, flow coupling is non-reciprocal for all flapping phase, with energetic savings in favor of trailing swimmers, but only up to a finite number of swimmers, beyond which school cohesion and energetic benefits are lost at once. We explain these findings mechanistically and we provide efficient diagnostic tools for identifying locations in the wake of single and multiple swimmers that offer opportunities for hydrodynamic benefits to aspiring followers. Our results imply a connection between the resources generated by flow physics and social traits that influence greedy and cooperative group behavior.

Research organism: Other

Introduction

Flow interactions are thought to allow flying and swimming animals to derive energetic benefits when moving in groups (Weihs, 1973). However, direct assessment of such benefits is challenging, chiefly because animal groups do not generally conform to regular patterns – individuals in these groups dynamically change their position relative to their neighbors (Partridge and Pitcher, 1979; Svendsen et al., 2003; Marras et al., 2015; Ashraf et al., 2017; Mirzaeinia et al., 2020). Also, because direct energetic measurements in moving animals, flying or swimming, are notoriously difficult and often unreliable as proxy for hydrodynamic energy savings (Herskin and Steffensen, 1998; Killen et al., 2012; Marras et al., 2015; Li et al., 2020; Zhang and Lauder, 2023a; Thandiackal and Lauder, 2023; Zhang and Lauder, 2023b; Marras and Porfiri, 2012). These difficulties hinder a direct mapping from the spatial pattern of the group to the energetic benefits or costs incurred at each position within the group.

An understanding of how the spatial arrangement of individuals within a group influences their cost of locomotion can provide insights into the evolution of social structures, resource allocation, and overall fitness of each individual in cooperative activities such as foraging, mating, and evasion (Whitehead, 1997; Couzin et al., 2002; Couzin and Krause, 2003; Croft et al., 2008; Bajec and Heppner, 2009; Farine and Whitehead, 2015; Jiao et al., 2023). It could also guide the design of bio-inspired engineering systems and algorithms that steer groups of entities, such as swarms of autonomous robotic vehicles, underwater or in flight, that collaborate to achieve a desired task while minimizing energy consumption and improving the overall system efficiency (Leonard and Fiorelli, 2001; Zhu et al., 2019; Coppola et al., 2020; Li et al., 2021; Berlinger et al., 2021).

To understand the potential energetic benefits of group movement, various direct and indirect approaches have been employed. Li et al., 2020, associated energy savings in pairs of flapping robotic swimmers with a linear relationship between their flapping phase lag and relative distance. Based on this, a strategy, called vortex phase matching, was extrapolated for how fish should behave to maximize hydrodynamic benefits: a follower fish should match its tailbeat phase with the local vorticity created by a leader fish. Pairs of freely swimming fish seemed to follow this linear phase-distance relationship even with impaired vision and lateral line sensing, i.e., in the absence of sensory cues about their relative position and neighbor-generated flows. Interestingly, the same linear phase-distance relationship was uncovered independently in flapping hydrofoils and accredited solely to flow interactions (Zhu et al., 2014; Newbolt et al., 2019; Newbolt et al., 2022). It is therefore unclear whether vortex phase matching is an active strategy, mediated by sensing and feedback control, that fish employ to minimize energy expenditure, or if it arises passively through flow interactions between flapping swimmers. Importantly, active or passive, it is unclear if this strategy scales to groups larger than two.

In an effort to directly gauge the energetic benefits of schooling, metabolic energetic measurements were recently performed in solitary and groups of eight fish, and impressive energetic savings were attributed to schooling compared to solitary swimming when the fish were challenged to swim at high speeds (Zhang and Lauder, 2023b). Lamentably, the study made no mention of the spatial patterns assumed by these physically thwarted individuals (Zhang and Lauder, 2023b). In an independent previous study (Ashraf et al., 2017), changes in spatial patterns and tailbeat frequencies were reported in similar experiments, albeit with no energetic measurements. Specifically, Ashraf et al., 2017, showed that, when challenged to sustain higher swimming speeds, the fish in a group rearranged themselves in a side-by-side pattern as the speed increased, presumably to save energy.

Taking together the results of Zhang and Lauder, 2023b; Ashraf et al., 2017, are we to conclude that side-by-side formations are more energetically beneficial than, say, inline or diagonal formations? The answer is not simple! The metabolic measurements of Marras et al., 2015, in a school of eight fish report that side-by-side formations, though beneficial, produce the least energetic savings compared to diagonal formations (Weihs, 1973). In an experimental study of a single fish interacting with a robotic flapping foil, the freely swimming fish positioned itself in an inline formation in the wake of the flapping foil, supporting the hypothesis that swimming in the wake of one another is an advantageous strategy to save energy in a school (Thandiackal and Lauder, 2023). Why did the fish in the experiments of Ashraf et al., 2017, self-organize in a side-by-side formation when challenged to swim at higher swimming speeds?

The answer is not simple because ample hydrodynamic mechanisms for energy savings in fish schools have been stipulated for each possible configuration – side-by-side, inline, and diagonal (see, e.g., Figure 1 of Zhang and Lauder, 2023b) – but no assessment is provided of the relative advantage of these configurations. For example, side-by-side formations, where fish mirror each other by flapping antiphase, are thought to create a wall-like effect that reduces swimming cost (Zhang and Lauder, 2023b; Fish and Hui, 1991). A fish swimming in the wake between two leading fish encounters a reduced oncoming velocity, leading to reduced drag and thrust production (Weihs, 1973). Inline formations, where fish swim in tandem, are thought to provide benefits to both leader and follower, by an added mass push from follower to leader (Fish and Hui, 1991; Usherwood et al., 2011) and a reduced pressure on the follower (Kurt and Moored, 2018). All of these mechanisms can in principle be exploited by schooling fish as they dynamically change their relative spacing in the group. But are these mechanisms equally advantageous? Or is there a hierarchy of hydrodynamic benefits depending on the relative position within the school? The literature offers no comparative analysis of the energetic savings afforded by each of these configurations.

The study of Marras et al., 2015, is arguably the closest to addressing this question, but, to map the energetic benefits for pairwise configurations, the authors employed statistical averages in a school of eight fish, thus inevitably combining the various hydrodynamic mechanisms at play and cross-polluting the estimated benefits of each configuration. A cleaner analysis in pairs of flapping foils shows that these relative positions – side-by-side, inline, and diagonal – all emerge spontaneously and stably due to flow interactions (Newbolt et al., 2022), but provides no method for estimating the energetic requirements of these formations, let alone comparing them energetically. Even vortex phase matching makes no distinction between side-by-side, inline, or diagonal pairs of fish (Li et al., 2020). It simply postulates that an unknown amount of energetic benefit is acquired when the linear phase-distance relationship is satisfied. Thus, to date, despite the widespread notion that group movement saves energy, a direct comparison of the energetic savings afforded by different spatial formations remains lacking. Importantly, it is unknown whether and how the postulated benefits scale with increasing group size.

Here, to circumvent the challenges of addressing these questions in biological systems, we formulate computational models that capture the salient hydrodynamic features of single and pairs of swimming fish. Namely, we represent each fish as a freely swimming hydrofoil undergoing pitching oscillations about its leading edge. A single flapping hydrofoil shares many hydrodynamic aspects with its biological counterpart, including an alternating, long-lived pattern of vorticity in its wake (Triantafyllou et al., 1993; Triantafyllou et al., 2000; Lauder et al., 2011; Verma et al., 2017; Smits, 2019). These similarities have been demonstrated repeatedly, within biologically relevant ranges of flapping parameters (Triantafyllou et al., 1993; Taylor et al., 2003), for different geometries (Von Ellenrieder et al., 2003; Taira and Colonius, 2009; Green et al., 2011; Ayancik et al., 2019), material properties (Moored et al., 2014; Quinn et al., 2014; Ayancik et al., 2019), and flapping kinematics (Tytell and Lauder, 2004; Kern and Koumoutsakos, 2006; Hultmark et al., 2007). In this study, we show, based on our own simulations and by conducting a thorough literature survey, that flow interactions, with no sensing and feedback control, lead to emergent formations that preserve the linear phase-distance relationship uncovered independently in live and robotic fish (Li et al., 2020; Thandiackal and Lauder, 2023) and in flapping hydrofoils (Zhu et al., 2014; Newbolt et al., 2019; Newbolt et al., 2022). This relationship is preserved irrespective of geometry (Ramananarivo et al., 2016; Newbolt et al., 2019; Newbolt et al., 2022), material properties (Kim et al., 2010; Zhu et al., 2014; Peng et al., 2018; Arranz et al., 2022), and flapping kinematics (Heydari and Kanso, 2021; Kurt et al., 2021). The universality of this relationship serves as strong validation of our models and anchors our subsequent exploration of the opportunities for hydrodynamic benefits available in a given flow field.

Importantly, we go beyond two swimmers to investigate flow interactions in larger groups and find that inline formations differentially distribute hydrodynamic savings to members within the school, favoring trailing swimmers, but only up to a certain school size, while side-by-side formations equally distribute hydrodynamic savings and scale to arbitrary number of swimmers without loss of cohesion. Our findings provide a direct mapping from the school’s spatial pattern to the energetic savings experienced by its members. Importantly, our results raise an interesting hypothesis that the dynamic repositioning of members within a fish school could be driven by greed and competition to occupy hydrodynamically advantageous positions and open up opportunities for analyzing the role of flow physics in the evolution of cooperative versus greedy behavior in animal groups.

Results

Mathematical models of flow-coupled flapping swimmers

Inspired by the experiments of Newbolt et al., 2019; Li et al., 2020, we study self-organization in the context of flapping swimmers, coupled passively via the fluid medium, with no mechanisms for visual (McKee et al., 2020; Guthrie, 1986; Fernald, 1989; Douglas and Djamgoz, 2012; Lombana and Porfiri, 2022), flow sensing (Engelmann et al., 2000; Ristroph et al., 2015; Colvert and Kanso, 2016; Hang et al., 2023), or feedback control (Verma et al., 2018; Jiao et al., 2021; Li et al., 2021; Figure 1). The swimmers are rigid, of finite body length L and mass per unit depth m, and undergo pitching oscillations of identical amplitude A and frequency f in the (x,y)-plane of motion, such that the pitching angle for swimmer j is given by θj=Asin(2πft+ϕj), j=1,2,,N, where N is the total number of swimmers. In pairwise interaction, we set ϕ1=0 and ϕ2=ϕ, with ϕ being the phase lag between the oscillating pair. We fixed the lateral distance between the swimmers to lie in the range [L,L], and allowed the swimmers to move freely in the x-direction in an unbounded two-dimensional fluid domain of density ρ and viscosity μ.

Figure 1. Flow-coupled swimmers self-organize into stable pairwise formations.

(A) Inline (=0,ϕ=π/2), (B) diagonal (=L/2,ϕ=0), (C) inphase side-by-side (=L/2,ϕ=0), and (D) antiphase side-by-side (=L/2,ϕ=π) in computational fluid dynamics (CFD) (left) and vortex sheet (VS) (right) simulations. Power savings at steady state relative to respective solitary swimmers are reported in Figure 3. Parameter values are A=15, Re = 2πρAfL/μ=1645 in CFD, and fτdiss=2.45 in VS simulations. Corresponding hydrodynamic moments are given in Figure 1—figure supplement 4. Simulations at different Reynolds numbers and dissipation times are given in Figure 1—figure supplements 13.

Figure 1.

Figure 1—figure supplement 1. Computational fluid dynamics (CFD) simulations of pairwise formations.

Figure 1—figure supplement 1.

Vorticity field (left column) and flow agreement parameter 𝕍 (right column) in the wake of a pair of inline and inphase swimmers Reynolds number Re=206 (A), 308 (B), 411 (C), 1645 (D), respectively. The pitching amplitude of leader and follower is set to A=15, except in (A), where the follower is pitching at A=13.5.
Figure 1—figure supplement 2. Vortex sheet (VS) simulations of pairwise formations.

Figure 1—figure supplement 2.

Snapshots of the swimmers (left column) and flow agreement parameter 𝕍 (right column) in the wake of a pair of swimmers in the VS model for dissipation time 2.45T (A), 3.45T (B), 4.45T (C), and 9.45T(D), respectively. The pitching amplitude is set to A=15, and the pitching frequency to f=1.
Figure 1—figure supplement 3. Computational fluid dynamics (CFD) and vortex sheet (VS) simulations at various flow properties.

Figure 1—figure supplement 3.

(A) Separation distance versus time in a pair of swimmers in the CFD model for five values of Reynolds numbers ReA=206,308,411,822,1645 (Figure 1—figure supplement 1). (B) Separation distance versus time in a pair of swimmers in the VS model for five values of dissipation time τdiss=2.45T,3.45T,4.45T,9.45T, (Figure 1—figure supplement 2). Separation distance d is normalized by swimming speed U for each cases, respectively. In (A, B), the swimmers stabilize near d/UT=1. The pitching amplitude of leader and follower is set to A=15, except in ReA=206 , where the follower is pitching at A=13.5 to avoid collision.
Figure 1—figure supplement 4. Hydrodynamic moment acting on pairs of flapping swimmers.

Figure 1—figure supplement 4.

(A) Inline (=0,ϕ=0), (B) diagonal (=L/4,ϕ=0), (C) inphase side-by-side (=L/2,ϕ=0), and (D) antiphase side-by-side (=L/2,ϕ=π) in computational fluid dynamics (CFD) (left) and vortex sheet (VS) (right) simulations. For each simulation, we show the active torque Ma exerted by the swimmers after a time tss, ensuring that steady state has been reached. The non-reciprocity in the effects of leader on follower in inline and diagonal configuration is apparent. In the side-by-side configurations, a simple shift of the data in the inphase flapping case and a simple mirror symmetry in the antiphase flapping case would show that flow coupling is reciprocal.

When unconstrained, the swimmers may drift laterally relative to each other, as illustrated in dipole models (Tsang and Kanso, 2013; Kanso and Cheng Hou Tsang, 2014) and high-fidelity simulations of undulating swimmers (Gazzola et al., 2014; Verma et al., 2018). However, this drift occurs at a slower time scale than the swimming motion, and can, in principle, be corrected by separate feedback control mechanisms (Zhu et al., 2022). Here, we focus on the dynamics in the swimming direction.

Hereafter, all parameters are scaled using the body length L as the characteristic length scale, flapping period T=1/f as the characteristic time scale, and ρL2 as the characteristic mass per unit depth. Accordingly, velocities are scaled by Lf, forces by ρf2L3, moments by ρf2L4, and power by ρf3L4.

The equations governing the free motion xj(t) of swimmer j are given by Newton’s second law (here, the downstream direction is positive),

mx¨j=Fjsinθj+Djcosθj. (1)

The hydrodynamic forces on swimmer j are decomposed into a pressure force Fj acting in the direction normal to the swimmer and a viscous drag force Dj acting tangentially to the swimmer. These forces depend on the fluid motion, which, in turn, depends on the time history of the states of the swimmers.

To maintain their pitching motions, swimmers exert an active moment Ma about the leading edge, whose value is obtained from the balance of angular momentum. The hydrodynamic power P expended by a flapping swimmer is given by P=Maθ˙.

To compute the hydrodynamic forces and swimmers’ motion, we used two fluid models (Figure 1—figure supplements 13). First, we employed a computational fluid dynamics (CFD) solver of the Navier-Stokes equations tailored to resolving fluid-structure interactions (FSI) based on an adaptive mesh implementation of the immersed boundary method (IBM) (IBAMR, 2024; Griffith et al., 2007; Bhalla et al., 2013). Then, we solved the same FSI problem, in the limit of thin swimmers, using the more computationally efficient inviscid vortex sheet (VS) model (Nitsche and Krasny, 1994; Huang et al., 2016; Huang et al., 2018; Heydari and Kanso, 2021; Hang et al., 2022). To emulate the effect of viscosity in the VS model, we allowed shed vorticity to decay after a dissipation time τdiss; larger τdiss correlates with larger Reynolds number Re in the Navier-Stokes model; see SI for a brief overview of the numerical implementation and validation of both methods.

Flow coupling leads to stable emergent formations

We found, in both CFD and VS models, that pairs of swimmers self-organize into relative equilibria at a streamwise separation distance d that is constant on average, and swim together as a single formation at an average free-swimming speed U (Figures 1 and 2). We distinguished four types of relative equilibria: inline, diagonal, side-by-side inphase, and side-by-side antiphase (Figure 1, Video 1).

Figure 2. Emergent equilibria in pairwise formations.

Figure 2.

(A) Time evolution of scaled streamwise separation distance d/UT for a pair of inline swimmers at ϕ=0. Depending on initial conditions, the swimmers converge to one of two equilibria at distinct separation distance. (B) At =L/2, d/UT changes slightly compared to inline swimming in (A). Importantly, a new side-by-side inphase equilibrium is now possible where the swimmers flap together at a slight shift in the streamwise direction. (C) Starting from the first equilibrium in (A), d/UT increases linearly as we increase the phase lag ϕ between the swimmers.

Video 1. Pairs of flow-coupled swimmers self-organize into stable inline, staggered, or side-by-side formation.

Download video file (2.7MB, mp4)

Energetic benefits depend on the spatial pattern. Results based on flapping foils in computational fluid dynamics (CFD) simulations.

Inline formations at =0 arise when the follower positions itself, depending on its initial distance from the leader, at one of many inline equilibria, each with its own basin of attraction (Figure 2A). These inline equilibria occur at average spacing d that is approximately an integer multiple of UT, consistent with previous experimental (Becker et al., 2015; Ramananarivo et al., 2016; Newbolt et al., 2019) and numerical (Zhu et al., 2014; Park and Sung, 2018; Peng et al., 2018; Dai et al., 2018; Heydari and Kanso, 2021; Arranz et al., 2022) findings.

When offsetting the swimmers laterally at 0 (Figure 2B), the leader-follower equilibria that arise at =0 shift slightly but persist, giving rise to diagonal leader-follower equilibria (Newbolt et al., 2022). Importantly, at a lateral offset , inphase swimmers (ϕ=0) that are initially placed side-by-side reach a relative equilibrium where they travel together at a close, but non-zero, average spacing dL. That is, a perfect side-by-side configuration of inphase flapping swimmers is unstable but the more commonly observed configuration (Li et al., 2020) where the two swimmers are slightly shifted relative to each other is stable. This configuration is fundamentally distinct in terms of cost of transport from the mirror-symmetric side-by-side configuration that arises when flapping antiphase at ϕ=π (Figure 3A). Both side-by-side equilibria were observed experimentally in heaving hydrofoils (Newbolt et al., 2022), albeit with no assessment of the associated hydrodynamic power and cost of transport.

Figure 3. Hydrodynamic benefits and linear phase-distance relationship in pairwise formations.

Figure 3.

(A) Change in cost of transport compared to solitary swimmers for the inline, diagonal, side-by-side inphase, and side-by-side antiphase formations shown in Figure 1. (B) Emergent formations in pairs of swimmers in computational fluid dynamics (CFD) and vortex sheet (VS) models satisfy a linear phase-distance relationship, consistent with experimental (Ramananarivo et al., 2016; Newbolt et al., 2019; Li et al., 2020; Kurt et al., 2021; Thandiackal and Lauder, 2023) and numerical (Kim et al., 2010; Peng et al., 2018; Heydari and Kanso, 2021; Arranz et al., 2022) studies. With the exception of the antiphase side-by-side formation, swimmers in these formations have a reduced average cost of transport compared to solitary swimming.

We next examined the effect of varying the phase ϕ on the emergent traveling formations. Starting from initial conditions so as to settle on the first equilibrium d/UT1 when ϕ=0, and increasing ϕ, we found, in both CFD and VS simulations, that the spacing d/UT at equilibrium increased with increasing ϕ (Figure 2C). This increase is linear, as evident when plotting d/UT as a function of ϕ (Figure 3B). Indeed, in Figure 3B, we plotted the emergent average separation distance d/UT as a function of ϕ for various values of . Except for the antiphase side-by-side formation, the linear phase-distance relationship ϕ/2πd/UT persisted for 0.

The key observation, that pairs of flapping swimmers passively self-organize into equilibrium formations, is independent of both scale and fluid model. In our CFD simulations (Figure 1—figure supplements 1 and 3), we tested a range of Reynolds number Re=ρUL/μ from 200 to 2000, which covers the entire range of existing CFD simulations (Becker et al., 2015; Arranz et al., 2022), where Re ∼O(102), and experiments (Becker et al., 2015; Newbolt et al., 2019; Newbolt et al., 2022), where Re ∼O(103). In our VS simulations, we varied τdiss from 2.45T to (Figure 1—figure supplements 2 and 3). Note that the separation distance d is scale-specific and increases with Re; at low Re, a compact inline formation is reached where the two swimmers ‘tailgate’ each other, as observed in Peng et al., 2018. However, the scaled separation distance d/UT remains nearly constant for all Re and τdiss (Figure 1—figure supplement 3).

The fact that these equilibria emerge in time-forward simulations is indicative of stability (Strogatz, 1994). A more quantitative measure of linear stability can be obtained numerically by perturbing each equilibrium, either by applying a small impulsive or step force after steady state is reached (Newbolt et al., 2022) or by directly applying a small perturbation to the relative equilibrium distance between the two swimmers and examining the time evolution of d and F to quantify variations in hydrodynamic force δF as a function of signed variations in distance δd from the equilibrium (Heydari and Kanso, 2021). In either case, we found that the force-displacement response to small perturbations at each equilibrium exhibited the basic features of a linear spring-mass system, where δF/δd is negative, indicating that the hydrodynamic force acts locally as a restoring spring force that causes the initial perturbation to decay and that stabilizes the two swimmers together at their equilibrium relative position. Larger values of |δF/δd| imply faster linear convergence to the stable equilibrium and thus stronger cohesion of the pairwise formation. Results of this quantitative stability analysis are discussed in subsequent sections.

Emergent formations save energy compared to solitary swimming

We evaluated the hydrodynamic advantages associated with these emergent formations by computing the hydrodynamic power Psingle of a solitary swimmer and Pj of swimmer j in a formation of N swimmers.

We calculated the cost of transport COTj=Pj/mU, of swimmer j and the change in COT compared to solitary swimming ΔCOTj=(COTsingleCOTj)/COTsingle (Figure 3A). We also calculated the average change in cost of transport ΔCOT=jNΔCOTj/N for each formation (Figure 3B). In all cases, except for the antiphase side-by-side formation, in both CFD and VS simulations, the swimmers traveling in equilibrium formations save power and cost of transport compared to solitary swimming. The savings are larger at tighter lateral spacing .

For inline and diagonal formations, these hydrodynamic benefits are granted entirely to the follower, whose hydrodynamic savings can be as high as 60% compared to solitary swimming (Figure 3A; Heydari and Kanso, 2021). Intuitively, because in 2D flows, vortex-induced forces decay with the inverse of the square of the distance from the vortex location, flow coupling between the two inline or diagonal swimmers is non-reciprocal; the follower positioned in or close to the leader’s wake interacts more strongly with that wake than the leader interaction with the follower’s wake (Figure 1—figure supplements 1A, B and 4A, B).

In side-by-side formations, by symmetry, flow coupling between the two swimmers is reciprocal, or nearly reciprocal in inphase flapping (Figure 1—figure supplements 1C, D and 4C, D). Thus, hydrodynamics benefits or costs are expected to be distributed equally between the two swimmers. Indeed, for inphase flapping, the hydrodynamic benefits are shared equally between both swimmers. For antiphase flapping the cost is also shared equally (Figure 3A).

The biased distribution of benefits in favor of the follower in inline and diagonal formations could be a contributing factor to the dynamic nature of fish schools (Svendsen et al., 2003; Mirzaeinia et al., 2020). The egalitarian distribution of benefits in the inphase side-by-side formation could explain the abundance of this pairwise configuration in natural fish populations (Li et al., 2020) and why groups of fish favor this configuration when challenged to swim at higher speeds (Ashraf et al., 2017; Lombana and Porfiri, 2022).

Linear phase-distance relationship in emergent formations is universal

To probe the universality of the linear phase-distance relationship, we compiled, in addition to our CFD and VS results, a set of experimental (Ramananarivo et al., 2016; Newbolt et al., 2019; Li et al., 2020) and numerical (Kim et al., 2010; Peng et al., 2018; Heydari and Kanso, 2021; Kurt et al., 2021; Arranz et al., 2022) data from the literature (Table 1). Data including CFD simulations of deformable flapping flags (✩) (Kim et al., 2010), (❏) (Zhu et al., 2014) and flexible airfoil with low aspect ratio () (Arranz et al., 2022), physical experiments with heaving () (Ramananarivo et al., 2016; Newbolt et al., 2019) and pitching () (Kurt et al., 2021) rigid hydrofoils, fish-foil interactions (*) (Thandiackal and Lauder, 2023), and fish-fish interactions () measured in pairs of both intact and visually and/or lateral line-impaired live fish (Li et al., 2020) are superimposed on Figure 3B. All data collapsed onto the linear phase-distance relationship ϕ/2πd/UT, with the largest variability exhibited by live fish with close streamwise distance, where the interaction between fish bodies may play a role. The side-by-side inphase formations trivially satisfy this linearity because d/UTϕ/2π=0, but the side-by-side antiphase formations don’t satisfy; in the latter, d/UT=0 while ϕ/2π=1.

Table 1. Data collection from published literature.

We calculated the Reynolds numbers based on swimming speed (ReU=ρUL/μ) and flapping velocity (ReA=2πρAfL/μ), where f=1/T is the flapping frequency. Missing values are either not applicable or not available.

Reference Study type System Distance Phase ReU ReA
Kim et al., 2010 Numerical Flapping flags Head-to-head ϕ[0,2π] 200
–400
Zhu et al., 2014 Numerical Heaving flexible foils ϕ[0,π] 500 200
Ramananarivo et al., 2016 Experimental Heaving foils Tail-to-head ϕ=0 103
–104
102
–103
Peng et al., 2018 Numerical Heaving flexible foils Tail-to-head ϕ=0 509 200
Newbolt et al., 2019 Experimental Heaving foils Tail-to-head ϕ[0,2π] 103
–104
102
–103
Li et al., 2020 Experimental Goldfish Head-to-head ϕ[0,2π] 105 104
Kurt et al., 2021 Experimental Pitching foils Tail-to-head ϕ[0,2π] 9950 18,850
Heydari and Kanso, 2021 Numerical Heaving plates Tail-to-head ϕ=0
Pitching plates Head-to-head ϕ=0
Arranz et al., 2022 Numerical Heaving flexible foils (3D) Tail-to-head ϕ[0,2π] 176 200
Thandiackal and Lauder, 2023 Experimental Fish-foil interactions Tail-to-head ϕ[0,2π] 20·103 (foil) 50·103 (foil)
40·103 (fish)
Becker et al., 2015 * Experimental Heaving foils Tail-to-head ϕ=0
,π
102
–104
Park and Sung, 2018 * Numerical Heaving flexible foils ϕ[0,2π] 60
–1100
100
–1200
Dai et al., 2018 * Numerical Pitching + heaving foils ϕ=0
,π
440 600
*

Data not included in Figure 3.

These findings strongly indicate that flow-coupled flapping swimmers passively organize into stable traveling equilibrium formations with linear phase-distance relationship. This relationship is independent of the geometric layout (inline versus laterally offset swimmers), flapping kinematics (heaving versus pitching), material properties (rigid versus flexible), tank geometry (rotational versus translational), fidelity of the fluid model (CFD versus VS versus particle model), and system (biological versus robotic, 2D versus 3D). Observations that are robust across such a broad range of systems are expected to have common physical and mechanistic roots that transcend the particular set-up or system realization.

Importantly, this universal relationship indicates that flow physics passively positions a swimmer at locations d where the swimmer’s flapping phase ϕ matches the local phase of the wake ϕwake=2πd/UT, such that the effective phase ϕeff=ϕϕwake is zero. Importantly, because the quantity UT is nearly equal to the wavelength of the wake of a solitary swimmer, the phase ϕwake=2πd/UT is practically equal to the phase of a solitary leader. These observations have two major implications. First, they are consistent with the vortex phase matching introduced in Li et al., 2020, as a strategy by which fish maximize hydrodynamic benefits. However, they proffer that vortex phase matching is an outcome of passive flow interactions among flapping swimmers, and not necessarily an active strategy implemented by fish via sensing and feedback mechanisms. Second, they led us to hypothesize that emergent side-by-side formations can be predicted from symmetry arguments, while emergent inline and diagonal formations can be predicted entirely from kinematic considerations of the leader’s wake without considering two-way flow coupling between the two swimmers.

Leader’s wake unveils opportunities for stable emergent formations

To challenge our hypothesis that the leader’s wake contains information about the emergent pairwise equilibria, we examined the wake of a solitary swimmer in CFD and VS simulations (Figure 4A and B). By analyzing the wake of a solitary swimmer, without consideration of two-way coupling with a trailing swimmer, we aimed to assess the opportunities available in that wake for a potential swimmer, undergoing flapping motions, to position itself passively in the oncoming wake and extract hydrodynamic benefit.

Figure 4. Prediction of relative equilibria in the wake of a solitary swimmer.

Figure 4.

(A, B) Snapshots of vorticity and fluid velocity fields created by a solitary swimmer in computational fluid dynamics (CFD) and vortex sheet (VS) simulations and corresponding flow agreement parameter 𝕍 fields for a virtual follower at ϕ=0. Locations of maximum 𝕍 values (i.e. peaks in the flow agreement parameter field) coincide with the emergent equilibria in inphase pairwise formations (indicated by black circles). Contour lines represent flow agreement parameter at ±0.25, ±0.5. Thrust parameter 𝕋 is shown at =0 and =0.5L. A negative slope 𝕋/d indicates stability of the predicted equilibria. See also Figure 1—figure supplements 1 and 2.

Therefore, in the following analysis, we treated the potential swimmer as a ‘virtual’ particle located at a point (x,y) in the oncoming wake and undergoing prescribed transverse oscillations Asin(2πftϕ) in the y-direction, at velocity 𝐯(t;ϕ)=2πAfcos(2πftϕ)𝐞y, where 𝐞y is a unit vector in the y-direction. The oncoming wake is blind to the existence of the virtual particle. Guided by our previous findings that stable equilibrium formations in pairwise interactions occur at zero effective phase ϕeff=ϕϕwake=0, where the net hydrodynamic force on the trailing swimmer is zero and where small perturbations lead to negative force gradients, we introduced two assessment tools: a flow agreement parameter field 𝕍(x,y;ϕ) that measures the degree of alignment, or matching, between the flapping motion of the virtual particle and the transverse flow of the oncoming wake, and a thrust parameter field 𝕋(x,y;ϕ) that estimates the potential thrust force required to undergo such flapping motions.

Specifically, inspired by Arranz et al., 2022, and following Heydari and Kanso, 2021, we defined the flow agreement parameter𝕍(x,y;ϕ) using 1Ttt+T𝐯𝐮dt, where t is chosen after the oncoming wake has reached steady state, normalized by 1Ttt+T𝐯𝐯dt (Appendix E). The normalized 𝕍(x,y;ϕ) describes how well the oscillatory motion 𝐯(t;ϕ) of the virtual particle matches the local transverse velocity 𝐮(x,y,t) of the oncoming wake (Heydari and Kanso, 2021). Positive (negative) values of 𝕍 indicate that the flow at (x,y) is favorable (unfavorable) to the flapping motion of the virtual follower.

In Figure 4A and B, we show 𝕍(x,y;ϕ=0) as a field over the physical space (x,y) for ϕ=0. Blue regions indicate where the local flow favors the follower’s flapping motion. In both CFD and VS simulations, the locations with the maximum flow agreement parameter closely coincide with the stable equilibria (black circles) obtained from solving pairwise interactions. These findings imply that hydrodynamic coupling in pairs of flapping swimmers is primarily non-reciprocal – captured solely by consideration of the effects of the leader’s wake on the follower. This non-reciprocity allows one, in principle, to efficiently and quickly identify opportunities for hydrodynamic benefits in the leader’s wake, without the need to perform costly two-way coupled simulations and experiments.

Importantly, our findings suggest a simple rule for identifying the locations of stable equilibria in any oncoming wake from considerations of the flow field of the wake itself: a potential swimmer undergoing a flapping motion at phase ϕ tends to position itself at locations (x,y) of maximum flow agreement V(x,y;ϕ) between its flapping motion and the oncoming wake.

To verify this proposition, we show in Figure 5A, as a function of phase ϕ, the streamwise locations of the local maxima of 𝕍(x,y;ϕ) computed based on the CFD and VS models, and scaled by UT, where U is the speed of the solitary swimmer. We superimpose onto these results the equilibrium configurations obtained from pairwise interactions in the context of the CFD (), VS (), and time-delay particle () models, where we modified the latter to account for non-zero lateral offset (Appendix D and Figure 5—figure supplement 1). Predictions of the equilibrium configurations based on maximal flow agreement parameter agree remarkably well with actual equilibria based on pairwise interactions, and they all follow the universal linear phase-distance relationship shown in Figure 2B.

Figure 5. Prediction of energetically beneficial, stable equilibria in the wake of a solitary swimmer at various phase lags and lateral offsets.

(A) Location of maximum 𝕍 as a function of phase lag ϕ in the wake of solitary leaders in computational fluid dynamics (CFD) and vortex sheet (VS) simulations. For comparison, equilibrium distances of pairwise simulations in CFD, VS, and time-delay particle models (Figure 5—figure supplement 1) are superimposed. Agreement between 𝕍-based predictions and actual pairwise equilibria is remarkable. (B) 𝕍 values also indicate the potential benefits of these equilibria, here shown as a function of lateral distance for a virtual inphase follower in the wake of a solitary leader in CFD and VS simulations. The power savings of an actual follower in pairwise formations in CFD and VS simulations are superimposed. (C) A negative slope 𝕋/d of the thrust parameter 𝕋 indicates stability and |𝕋/d| expresses the degree of cohesion of the predicted formations, here, shown as a function of for an inphase virtual follower. |F/d| obtained from pairwise formations in VS and time-delay particle models are superimposed (Figure 5—figure supplement 1). Results in (B and C) are normalized by the corresponding maximum values to facilitate comparison.

Figure 5.

Figure 5—figure supplement 1. Time-delay particle model.

Figure 5—figure supplement 1.

(A) Schematics of time-delayed particle model (Newbolt et al., 2019; Ramananarivo et al., 2016) and its extension to laterally offset swimmers. Each swimmer generates hydrodynamic thrust via oscillating vertically, which also leaves a wake behind it. The follower swimmer interacts with the wake of the leader. (B) For an inphase pair, starting at initial distance d/UT=1.15, we incrementally increase the lateral offset from =0 to =L. (inset) Lateral decay of flow speed in the wake of a solitary swimmer in the vortex sheet model (blue line) and the fitted exponential curve (red line). The lateral exponential decay in the time-delay particle model takes the form exp(|/1.6|2.73). (C) The hydrodynamic force F2 acting on the follower as a function of the corresponding distance from the equilibrium. Due to the decay of the leader’s wake in the lateral direction (see inset in A), the hydrodynamic force F2 experienced by the follower decreases in magnitude at increasing lateral offset . Orange lines show the linear change in force at the corresponding equilibria. The slope δF/δd is a measure of linear stability. Negative slopes imply stable formations for all L, but these slopes become more shallow as we increase .

The wake of a solitary swimmer contains additional information that allows us to evaluate the relative power savings of a potential follower and relative stability of the pairwise formation directly from the leader’s wake, without accounting for pairwise interactions. Assessment of the relative power savings follows directly from the maximal value of the flow agreement parameter: larger values imply more power savings and reduced cost of transport. To verify this, we calculated the maximal 𝕍(x,y;ϕ) in the wake of the solitary swimmer, where we expected the follower to position itself in pairwise interactions. In Figure 5B, we plotted these 𝕍 values as a function of lateral distance for ϕ=0. We superimposed the power savings ΔP based on pairwise interactions of inphase swimmers using the CFD and VS simulations and normalized all quantities by the maximal value of the corresponding model to highlight variations in these quantities as opposed to absolute values. Power savings are almost constant for <0.25L, but decrease sharply as increases. This trend is consistent across all models, with the most pronounced drop in the CFD-based simulations because the corresponding velocity field 𝐮 decays more sharply when moving laterally away from the swimmer.

Next, to assess the stability of the virtual particle based only on information in the oncoming wake of a solitary swimmer, we estimated the thrust force based on the fact that the thrust magnitude scales with the square of the swimmer’s lateral velocity relative to the surrounding fluid’s velocity (Triantafyllou et al., 1993; Floryan et al., 2017; Newbolt et al., 2019). We defined the thrust parameter field 𝕋(x,y;ϕ)=1Ttt+T|(𝐯𝐮).𝐞y|2dt, normalized using 1Ttt+T|𝐯.𝐞y|2dt. At the locations of the maxima of 𝕍(x,y;ϕ), a negative slope 𝕋/d of the thrust parameter is an indicator of linear stability or cohesion of the potential equilibria, i.e., emergent pairwise formations are expected to be stable if a small perturbation in distance about the locations (x,y) of maximal 𝕍 is accompanied by an opposite, restorative change in 𝕋. Indeed, in both CFD and VS wakes, 𝕋/d at (x,y) is negative (Figure 4).

In Figure 5C, we plotted |𝕋/d| as a function of lateral distance for ϕ=0. We superimposed the magnitude of the eigenvalues |δF/δd| obtained from the linear stability analysis of pairwise interactions in inphase swimmers using the VS and time-delay particle models. As in Figure 5B, all quantities are normalized by the maximal value of the corresponding model to highlight variations in these quantities as opposed to absolute values. Also, as in Figure 5B, all models produce consistent results: pairwise cohesion is strongest for <0.25L, but weakens sharply as increases, with the most pronounced drop in the CFD-based simulations.

A few comments on our virtual particle model and diagnostic tools in terms of the flow agreement and thrust parameters are in order. Our model differs from the minimal particle model used in Becker et al., 2015; Newbolt et al., 2019, which treated both swimmers as particles with minimal ‘wakes’ and considered two-way coupling between them (see Appendix D).

In our analysis, the oncoming wake can be described to any desired degree of fidelity of the fluid model, including using experimentally constructed flows when available. Indeed, our flow agreement and thrust parameters are agnostic to how the flow field of the oncoming wake is constructed. Additionally, these diagnostic tools are equally applicable to any oncoming wake, not necessarily produced by a single swimmer, but say by multiple swimmers (as discussed later) or even non-swimming flow sources. Thus, the approach we developed here could be applied broadly to analyze, predict, and test opportunities for schooling and hydrodynamic benefits for live and robotic fish whenever measurements of an oncoming flow field are available.

Parametric analysis over the entire space of phase lags and lateral offsets

Having demonstrated consistency in the emergence of flow-mediated equilibria in both CFD and VS simulations, we next exploited the computational efficiency of the VS model to systematically investigate emergent pairwise formations over the entire space of phase lag ϕ[0,2π) and lateral offset [L,L], excluding side-by-side antiphase formations. Equilibrium configurations are dense over the entire range of parameters: for any combination of phase lag ϕ and lateral offset , there exists an emergent equilibrium configuration where the pair of swimmers travel together at a separation distance d/UT (Figure 6A). Perturbing one or both parameters, beyond the limits of linear stability, causes the swimmers to stably and smoothly transition to another equilibrium at different spacing d/UT. Importantly, increasing the phase lag ϕ shifts the equilibrium positions in the streamwise direction such that d/UT depends linearly on ϕ, but the effect of lateral distance for L is nonlinear and nearly negligible for small : increasing the lateral offset by an entire body length L changes the pairwise distance d/UT by about 15%. Our results explored emergent equilibria up to d/UT2.5 and are consistent with the experimental findings in Newbolt et al., 2022, which explored up to nine downstream equilibria.

Figure 6. Equilibria are dense over the parameter space of phase lags and lateral offsets.

Figure 6.

For any given phase lag ϕ and at any lateral offset inside the wake, the pair reach equilibrium formations that are stable and power saving relative to a solitary swimmer. (A) Equilibrium separation distances, (B) average power saving, and (C) stability as a function of phase lag and lateral distance in a pair of swimmers. Predictions of (D) equilibrium locations, (E) hydrodynamic benefits, and (F) cohesion based on the wake of a solitary swimmer following the approach in Figures 4 and 5. For comparison, the contour lines from (B and C) based on pairwise interactions are superimposed onto panels (E and F) (white lines). Simulations in (A–C) are based on pairwise interactions and simulations in (D–F) are based on the wake of a single swimmer, all in the context of the vortex sheet model with A=15, f=1, and τdiss=2.45T.

To assess the hydrodynamic advantages of these emergent formations, we calculated the average change in hydrodynamic power per swimmer. The pair saves power compared to solitary swimming (Figure 6B). Power savings vary depending on phase lag ϕ and lateral distance : for the entire range of ϕ from 0 to 2π, the school consistently achieves over 20% power reduction, as long as the lateral offset is 0.25L. However, increasing from 0.25L to L reduces significantly the hydrodynamic benefit. That is, swimmers can take great liberty in changing their phase without compromising much the average energy savings of the school, as long as they maintain close lateral distance to their neighbor.

A calculation of the linear stability of each equilibrium in Figure 6A shows that these emergent formations are linearly stable (Figure 6C), and the degree of stability is largely insensitive to phase lag, with strongest cohesion achieved at lateral offset 0.25L. The results in Figure 6A–C are constructed using pairwise interactions in VS simulations, but can be inferred directly from the wake of a solitary leader, as discussed in the previous section and shown in Figure 6D–F.

Analysis of larger groups of inline and side-by-side swimmers

How do these insights scale to larger groups? To address this question, we systematically increased the number of swimmers and computed the emergent behavior in larger groups based on flow-coupled VS simulations.

In a group of six swimmers, all free to move in the streamwise x-direction, we found that the last three swimmers split and form a separate subgroup (Figure 7A). In each subgroup, swimmer 3 experiences the largest hydrodynamic advantage (up to 120% power saving!), swimmer 2 receives benefits comparable to those it received in pairwise formation (65% power saving), and swimmer 1 no benefit at all (Figure 7C).

Figure 7. Larger inline and side-by-side formations.

(A) Inline formations lose cohesion and split into two subgroups as depicted here for a group of six swimmers. (B) Side-by-side formations remain cohesive. (C) Power saving of each swimmer in inline and side-by-side formations. Dissipation time τdiss=2.45T. Simulations of inline formations and side-by-side formations ranging from two to six swimmers are shown in Figure 7—figure supplements 1 and 2.

Figure 7.

Figure 7—figure supplement 1. Inline formations of multiple flapping swimmers.

Figure 7—figure supplement 1.

Snapshots of inline formations composed of 2, 3, 4, 5, and 6 swimmers in vortex sheet (VS) simulations at steady state; time evolution of pairwise distances is shown on the right. (A and B) Formations composed of 2 or 3 swimmers are stable with at consecutive spacing d/UT=1. (C) For a trail of 4 swimmers, the group splits into a leading subgroup of 3 swimmers while the fourth swimmer separates from the rest. (D and E) For formation of 5 or 6 swimmers, the group splits into a leading subgroup of 3 swimmers and another subgroup containing the remaining 2 or 3 swimmers. (F) reports recent savings in COT for each swimmer and the average of the whole group.
Figure 7—figure supplement 2. Side-by-side formations of multiple flapping swimmers.

Figure 7—figure supplement 2.

Vortex sheet simulation of side-by-side formations with 2 (A), 3 (B), 4 (C), 5 (D), and 6 (E) swimmers, from top to bottom, respectively. On right-hand side, we report pairwise spacing between them. In all of the groups the formations are stable and the distances between every pair are close to zero. (F) reports recent savings in COT for each swimmer and the average of the whole group.

We asked if loss of cohesion is dependent on the number of inline swimmers. To address this question, we gradually increased the number of swimmers from two to six (Figure 7—figure supplement 1). We found that in a school of three inline swimmers, flow interactions led to a stable emergent formation with hydrodynamic benefits similar to those experienced by the three swimmers in each subgroup of Figure 7A and C. When computing the motion of four inline swimmers (Figure 8A), we found that the leading three swimmers maintained cohesion, at hydrodynamic benefits similar to a formation of three, but swimmer 4 separated and lagged behind, receiving no advantage in terms of power savings because it split from the formation (Figure 8D, Figure 7—figure supplement 1). In a group of five, the last two swimmers split and formed their own subgroup. That is, in all examples, swimmer 4 consistently lost hydrodynamic advantage and served as local leader of the trailing subgroup. These observations are consistent with Peng et al., 2018, and demonstrate that flow interactions alone are insufficient to maintain inline formations as the group size increases.

Figure 8. Loss of cohesion in larger groups of inline swimmers.

Figure 8.

Number of swimmers that stay in cohesive formation depends on parameter values. (A–C) For dissipation time τdiss=2.45T, 3.45T, and 4.45T, the fourth, fifth, and sixth swimmers separate from the group, respectively. (D) Power savings per swimmer in (A–C), respectively. On average, all schools save equally in cost of transport, but the distribution of these savings vary significantly between swimmers. In all case, swimmer 3 receives the most hydrodynamic benefits.

We next explored the robustness of the side-by-side pattern to larger number of swimmers starting from side-by-side initial conditions (Figure 7B). The swimmers reached stable side-by-side formations reminiscent of the configurations observed experimentally when fish were challenged to swim at higher swimming speeds (Ashraf et al., 2017). The swimmers in this configuration saved power compared to solitary swimming (Figure 7C): swimmers gained equally in terms of hydrodynamic advantage (up to 55% power saving for the middle swimmers in a school of six), except the two edge swimmers which benefited less. We tested these results by gradually increasing the number of swimmers from two to six (Figure 7—figure supplement 2). The robustness and overall trend of power saving among group members is robust to the total number of swimmers in these side-by-side formations.

Mechanisms leading to loss of cohesion in larger inline formations

To understand why three swimmers form a stable inline formation but four don’t, we extended the analysis in Figure 4 to analyze the wake created behind two-swimmer (Figure 9A) and three-swimmer (Figure 9B) groups. Specifically, we computed pairwise interactions in a two-swimmer school and considered the combined wake of both swimmers after they had settled onto an equilibrium state. Similarly, we computed the behavior of a three-swimmer school and analyzed the combined wake at steady state. Compared to the single leader wake in Figure 4B, in the wake of a two-swimmer school, positive flow agreement in the (blue) region is enlarged and enhanced, corresponding to swimmer 3 receiving the largest power savings. On the other hand, behind three inline swimmers, the region of positive flow agreement is weakened and shrunk, indicating weaker potential for energy saving by a fourth swimmer.

Figure 9. Prediction of equilibrium locations in the wake of multiple upstream swimmers.

(A, B) Snapshots of vorticity fields created by two inline inphase swimmers, and three inline inphase swimmers. (C, D) show the corresponding flow agreement parameter 𝕍 fields. Contour lines represent flow agreement parameter at ±0.25, ±0.5. (E, F) plot the corresponding period-averaged streamwise velocity. Separation distances d/UT predicted by the locations of maximal 𝕍 are marked by circles in the flow agreement field. In the left column, separation distances d/UT based on freely swimming triplets are marked by black circles and coincide with the locations of maximal 𝕍. In the right column, the orange marker shows the prediction of the location of a fourth swimmer based on the maximum flow agreement parameter. In two-way coupled simulation, swimmer 4 actually separates from the leading three swimmers as illustrated in Figure 8A. Computational fluid dynamics (CFD) simulation shows swimmer 4 will collide with swimmer 3 as in Figure 9—figure supplement 1. (G, H) show the transverse flow velocity in a period at the location predicted by the maximum flow agreement parameter and with a lateral offset =0,0.5L,L, in comparison to the follower’s tailbeat velocity.

Figure 9.

Figure 9—figure supplement 1. Inline formations of multiple flapping swimmers in computational fluid dynamics (CFD) simulations.

Figure 9—figure supplement 1.

CFD simulation of inline formations with three (A) and four (B) swimmers at Re=1645. Vorticity field is shown on the left-hand side. On right-hand side, we report pairwise spacing between them. The pitching amplitude of leader and follower is set to A=15.

Importantly, in the wake of the pairwise formation, the downstream jet is modest at the location of maximum 𝕍, where swimmer 3 is expected to position itself for hydrodynamic benefit, thus allowing swimmer 3 to reach this position and stay in formation (Figure 9E). Also, at this location, the wake has a substantial transverse velocity 𝐮𝐞y (Figure 9G), which aids thrust production at a diminished cost. In contrast, three inline swimmers generate a much stronger downstream jet at the location of maximum 𝕍 where swimmer 4 is expected to position itself (Figure 9F). This jet prevents swimmer 4 from stably staying in formation, and the transverse flow velocity 𝐮𝐞y is nearly zero for the entire flapping period (Figure 9H), indicating little opportunity for exploiting the flow generated by the three upstream swimmers for thrust generation. This limitation is fundamental; it results from the flow physics that govern the wake generated by the upstream swimmers. There is not much that a trailing swimmer can do to extract hydrodynamic benefits from an oncoming flow field that does not offer any.

Critical size of inline formations beyond which cohesion is lost

We sought to understand what determines the critical group size, here three, beyond which inline formations lose cohesion and split into subgroups. Because we have established that the flow agreement parameter 𝕍 plays an important role in predicting emergent formations, we first examined 𝕍 in the wake of a pair of flapping swimmers in CFD (Figure 1—figure supplement 1) and VS (Figure 1—figure supplement 2) simulations. These results show that at lower Re and smaller dissipation time τdiss, the flow agreement parameter 𝕍 decays rapidly downstream of the flapping swimmers, thus diminishing the opportunities for downstream swimmers to passively stay in cohesive formation and achieve hydrodynamic benefits. We thus hypothesized that the number of swimmers that passively maintain a cohesive inline formation is not a universal property of the flow physics, but depends on the flow regime.

We tested this hypothesis in VS simulations with increasing number of swimmers and increasing τdiss. As we increased τdiss, the number of swimmers that stayed in cohesive inline formation increased (Figure 8B and C). These findings confirm that this aspect of schooling – the maximal number of swimmers that passively maintain a cohesive inline formation – is indeed scale-dependent. Interestingly, an analysis of the power savings in these formations shows that, although swimmers 4 and 5 stay in formation at increased τdiss, swimmer 3 always receives the most hydrodynamic benefit (Figure 8D).

We additionally tested the stability of inline formations in CFD simulations at Re=1645 (Figure 9—figure supplement 1) and observed the same trend: an inline school of three swimmers remains cohesive, but a fourth swimmer collides with the upstream swimmer. These observations imply that the loss of cohesion does not depend on the specific fluid model. This is consistent qualitatively with existing results (Peng et al., 2018). In Peng et al., 2018, the authors employed flexible heaving foils at Re = 200 and observed stable inline formations with larger number of swimmers. The flexible foil model and smaller Re make the swimmer more adaptive to changes in the flow field, by passively modulating the amplitude and phase along its body, thus diverting some of the hydrodynamic energy into elastic energy and stabilizing the larger inline formation. This, again, emphasizes that the number of swimmers in a stable inline group is not a universal property of the formation, rather it is model and scale-dependent.

Mapping emergent spatial patterns to energetic benefits

We next returned to the school of four swimmers, which, when positioned inline and flapped inphase, lost cohesion as the trailing swimmer separated from the school. We aimed to investigate strategies for stabilizing the emergent school formation and mapping the location of each member in the school to the potential benefit or cost it experiences compared to solitary swimming.

Inspired by vortex phase matching as an active strategy for schooling (Li et al., 2020; Li et al., 2021), we tested whether phase control is a viable approach to maintain cohesion and gain hydrodynamic benefits. We devised an active feedback control strategy, where the swimmer senses the oncoming transverse flow velocity at its location and adjusts its flapping phase to maximize the agreement 𝕍 between its flapping motion and the local flow (see Appendix F for more details). When applied to swimmer 4 (Figure 10A), this phase controller led to a stable formation, albeit at no benefit to swimmer 4; in fact, swimmer 4 spent 100% more power compared to solitary swimming, whereas the power savings of swimmers 2 and 3 remained robustly at the same values as in the formation without swimmer 4. The inability of swimmer 4 to extract hydrodynamic benefits from the oncoming flow is due to a fundamental physical limitations, as explained in Figure 9; by the non-reciprocal nature of flow interactions, changing the phase of the trailing swimmer has little effect on the oncoming flow field generated by the upstream swimmers. If the oncoming wake itself presents no opportunity for hydrodynamic benefit, phase control cannot generate such benefit.

Figure 10. Passive and active methods for stabilizing an emergent formation of four swimmers.

(A) In an inline school of four swimmers, the leading three swimmers flap inphase, but swimmer 4 actively controls its phase in response to the flow it perceives locally to match its phase to that of the local flow as proposed in Li et al., 2020. The phase controller stabilizes swimmer 4 in formation but at no hydrodynamic benefit. (B) Sequentially increasing the phase lag by a fixed amount Δϕ=30o in an inline school of four swimmers stabilizes the trailing swimmer but at no hydrodynamic benefit. (C) Gradually tuning the phase lag Δϕ in a school of four swimmers as done in (B). At moderate phase lags, the school stays cohesive (top plot) but swimmer 4 barely gets any power savings (bottom plot). (D) By laterally offsetting the swimmers, four swimmers, all flapping inphase, form cohesive schools with different patterns, e.g., with side-by-side pairing of two swimmers, staggered, and diamond patterns. The time evolution of separation distances is shown in Figure 10—figure supplement 1. Individual in each pattern receive a different amount of hydrodynamic benefit. Diamond formation provides the most power saving for the school as anticipated in Weihs, 1973, for a school in a regular infinite lattice. In (A, B, and D), %values indicate the additional saving or expenditure in cost of transport relative to solitary swimming.

Figure 10.

Figure 10—figure supplement 1. Alternative formations of four flapping swimmers.

Figure 10—figure supplement 1.

Vortex sheet simulation of four swimmers with alternative formations. On right hand side, we report pairwise spacing between them. The lateral distance is =0.25L. (A) Two leading swimmers swim side by side. The third and forth swimmer collide to each other. (B) The same configuration as in (A) with larger initial distance between the third and forth swimmer. They form a stable school. The forth swimmer stays at the second equilibrium behind the third swimmer. (C) An additional swimmer is placed side by side to the second swimmer in a school of three inline swimmers. The second and third swimmer stays at the second equilibrium from the first swimmer, and the forth swimmer stays at the second equilibrium from the second and third swimmer. (D) An additional swimmer is placed side by side to the third swimmer in a school of three inline swimmers. The last two swimmers stay at the second equilibrium from the second swimmer. (E) Four inline inphase swimmers when initially placed close to the second equilibrium. Power saving per swimmer is reported in Figure 10.

We next investigated whether collaborative phase modulation could aid in maintaining school cohesion by imposing that each swimmer flaps at a phase lag Δϕ relative to the swimmer ahead (Figure 10B and C). We found a range of values of Δϕ at which the school became passively stable, but without providing much hydrodynamic benefit to the trailing swimmer; in fact, at certain Δϕ, cohesion came at a hydrodynamic cost to swimmer 4, much like the active phase control strategy.

Lastly, we investigated whether lateral offset of some of the swimmers could passively stabilize the emergent formation. The choice of which swimmers to displace laterally and by how much is not unique. Thus, we probed different scenarios and obtained multiple stable formations (Figure 10D and Figure 10—figure supplement 1, Video 2). For example, pairing any two of the four swimmers side-by-side, say at the leading, middle, or trailing end of the school, led to cohesive formations. The distribution of hydrodynamic cost or benefit varied depending on the spatial pattern of the school and the individual position within the school. Staggering the swimmers in a zigzag pattern also stabilized the school, but did not always allow the trailing swimmer to improve its cost of transport. Staggering the swimmers in a ‘diamond’ formation stabilized the school and, of all the stable formations we tested, led to the highest savings in cost of transport for the entire school (Figure 10D). These results are consistent with existing evidence that diamond formations are both stable (Tsang and Kanso, 2013) and energetically optimal (Weihs, 1973; Dai et al., 2018). But unlike individuals in an infinite diamond lattice (Weihs, 1973), individuals in a finite diamond formation do not receive equal energetic benefits.

Video 2. Groups of flow-coupled swimmers self-organize into inline, side-by-side, or staggered patterns of distinct cohesion and energy-saving properties.

Download video file (14.1MB, mp4)

Results based on flapping plates in vortex sheet simulations.

Our findings highlight the versatility and fluidity of the emergent spatial patterns in groups of flapping swimmers and emphasize that energetic benefits vary depending on the position of the individual within the school. Importantly, these findings imply that, although many emergent formations do not globally optimize the savings of the entire school, hydrodynamic interactions within these formations offer individuals numerous opportunities to achieve varying levels of energetic savings (Marras and Porfiri, 2012), potentially creating competition among school members over advantageous positions in the school.

Discussion

We analyzed how passive flow interactions mediate self-organization in groups of flapping swimmers, all heading in the same direction. Our approach relied on a hierarchy of FSI models and aimed to distill which aspects of self-organization are universal and those which are scale-dependent.

We found that a pair of flapping swimmers self-organize into inline, diagonal, or side-by-side formations (Figure 1). The emergent formation depends on the swimmers’ flapping phase and initial conditions. In fact, the distinction between these types of formation is somewhat arbitrary because, as phase varies, the emergent equilibria are dense over the space of lateral offset and separation distance (Figure 6). These findings are consistent with experimental observations (Li et al., 2020; Thandiackal and Lauder, 2023; Newbolt et al., 2019; Newbolt et al., 2022), but go beyond these observations to quantify the hydrodynamic benefits to each member in these formations. Two side-by-side swimmers flapping inphase save energy, compared to solitary swimming, and share the hydrodynamic benefits nearly equally. When flapping antiphase, the side-by-side swimmers exert extra effort compared to solitary swimming, contrary to a common misconception that this configuration saves hydrodynamic energy (Zhang and Lauder, 2023b). In leader-follower formations, whether inline or diagonal, hydrodynamic benefits are bestowed entirely on the follower (Figure 3A).

Importantly, we showed that the wake of a solitary leader contains information that unveils opportunities for the emergence of stable and energetically favorable formations in pairs of swimmers. Equilibrium locations and trends in power savings and school cohesion can all be predicted entirely from kinematic considerations of the leader’s wake with no consideration of the two-way coupling between the two swimmers (Figure 5). These results are important because they highlight the non-reciprocal or asymmetric nature of flow coupling in leader-follower configurations, inline or diagonal, at finite Re and open new avenues for future studies of non-reciprocal flow-coupled oscillators. These oscillators have distinct properties from classic mechanical and biological oscillators, such as Huygens pendula or viscosity-dominant oscillators, where the coupling between the oscillators is reciprocal; see, e.g., Strogatz and Stewart, 1993; Lushi et al., 2014; Oliveira and Melo, 2015; Wan and Goldstein, 2016; Guo et al., 2018.

Our analysis has practical importance in that it provides efficient diagnostics and predictive tools that are equally applicable to computational models and experimental data and could, therefore, be applied broadly to analyze, predict, and test opportunities for schooling and hydrodynamic benefits in live and robotic fish when flow measurements are available.

Case in point, we used these diagnostic tools to explain the mechanisms leading to scattering in larger groups of inline swimmers and to predict when the wake of a leading group of swimmers offers no opportunities for a follower to benefit from passive hydrodynamics (Figure 9). At an increasing number of flow-coupled swimmers, side-by-side formations remain robust, but inline formations become unstable beyond a critical number of swimmers (Figures 7 and 8). The critical number depends on the fluid properties and can be predicted by analyzing the wake of the leading group of swimmers. Future work will focus on testing these findings experimentally and in CFD simulations with increasing number of swimmers, together with accounting for body deformations (Hang et al., 2022), lateral dynamics (Kurt et al., 2021; Das et al., 2023), and variable flapping amplitudes and frequencies (Newbolt et al., 2019; Hang et al., 2024).

Our findings could have far-reaching consequences on our understanding of biological fish schools. Field and laboratory experiments (Partridge and Pitcher, 1979; Marras et al., 2015; Ashraf et al., 2017; Lombana and Porfiri, 2022) have shown that actual fish schools do not generally conform to highly regularized patterns, and schooling fish dynamically change their position in the school. Neighboring fish vary from side-by-side to inline and diagonal configurations. Importantly, in laboratory experiments that challenged groups of fish to sustain high swimming speeds, the fish rearranged themselves in a side-by-side pattern as the speed increased, much like the pattern in Figure 7B, presumably to save energy (Ashraf et al., 2017). These empirical observations, together with our findings that side-by-side formations provide the fairest distribution of efforts among school members (Figure 7B and C), offer intriguing interpretations of the results in Ashraf et al., 2017; Lombana and Porfiri, 2022: when the fish are not challenged by a strong background current to sustain high swimming speeds, they position themselves as they please spatially, without much consideration to equal sharing of hydrodynamic benefits. But when challenged to swim at much higher speeds than their average swimming speed, fish are forced to cooperate.

To expand on this, our results suggest a connection between flow physics and what is traditionally thought of as social traits: greed versus cooperation. We posit that there is a connection between the resources that arise from flow physics – in the form of energetic content of the wake of other swimmers – and greedy versus cooperative group behavior. In cohesive inline formations, the leader is always disadvantaged and hydrodynamic benefits are accorded entirely to trailing swimmers (Figures 3A and 7C). Importantly, flows generated by these inline formations present serious impediments for additional swimmers to join the line downstream (Figures 7 and 8). Thus, we could call these formations greedy, leaving no resources in the environment for trailing swimmers. This thought, together with our interpretation of the observations in Ashraf et al., 2017, that cooperation to achieve an egalitarian distribution of hydrodynamic benefits is forced, not innate, raise an interesting hypothesis. The dynamic repositioning of members within the school (e.g. Figure 10) could be driven by greed and competition to occupy hydrodynamically advantageous positions, much like in peloton of racing cyclists (Blocken et al., 2018). On a behavioral time scale, these ideas, besides their relevance to schooling fish, open up opportunities for analyzing and comparing the collective flow physics in cooperative versus greedy behavior in animal groups from formations of swimming ducklings (Yuan et al., 2021) and flying birds (Bialek et al., 2012; Portugal et al., 2014) to peloton of racing cyclists (Blocken et al., 2018). From an evolutionary perspective, it is particularly exciting to explore the prospect that flow physics could have acted as a selective pressure in the evolution of social traits such as cooperation and greed in aquatic animal groups.

Acknowledgements

Many thanks to members of the McHenry Laboratory at UC Irvine and Kanso Laboratory at USC for numerous discussions about fish schooling behavior and for comments on the manuscript.

Appendix 1

Computational Fluid Dynamics (CFD) model

In our CFD simulations, a swimmer is modeled as a symmetric 2D Joukowsky airfoil (Tsien, 1943). The chord length of the airfoil is the characteristic length L, and the maximum thickness is 0.12L. The airfoil undergoes pitching motion around its leading edge. FSI are governed by the incompressible Navier-Stokes equations,

ut+uu=p+1ReΔu,u=0, (2)

where 𝐮(𝐱,t) and p(𝐱,t) are the velocity and pressure field, respectively. We solved for these fields numerically using IBM that handles the two-way coupled fluid structure interaction (Peskin, 1977; Griffith et al., 2007; Griffith and Peskin, 2005; Bhalla et al., 2013; Griffith and Patankar, 2020; Mittal et al., 2008).

The immersed boundary formulation involves an Eulerian descriptions of the flow field and a Lagrangian description of the immersed swimmers, modeled as Joukowsky airfoils. The boundary condition is mapped to a body force exerted on the fluid. The Lagrangian and Eulerian variables are correlated by the Dirac delta function, which is smoothed during discretization. Here, we used the implementation developed by the group of Prof. Boyce Griffith, IBAMR, 2024, which has long been used to solve problems such as blood flow in heart (Peskin, 1977; Lee et al., 2020), water entry/exit problems (Bhalla et al., 2020), fish’s swimming (Hoover and Tytell, 2020; Tytell et al., 2014; Voesenek et al., 2020), insect’s flight (Van Buren et al., 2019; van Veen et al., 2020), flexible propulsors (Hoover et al., 2021; Tytell et al., 2016; Hoover et al., 2018), self propulsion of pitching/heaving airfoil (Hoover et al., 2018; Yang and Wu, 2022), and fish schooling (Yang and Wu, 2022; Lin et al., 2022). This implementation is based on an adaptive mesh, which enables us to accurately simulate self propulsion and reach steady state in a large computational domain with a reasonable computational cost. The computational domain is a rectangle of dimensions 80L×20L, with periodic boundary conditions on the computational domain and no-slip boundary condition on the surface of airfoils. The initial location of the first swimmer is 12L away from the right boundary in streamwise direction. The initial distance between the two swimmers d(t=0) ranges from 1.5L to 4L to ensure we access different equilibria that emerge in these pairwise formations. The coarsest Eulerian mesh is a uniform 500×125 Cartesian grid. The computational domain close to the airfoils and their wake are refined. There are three layers of refinement mesh, and the refinement ratio for each layer is 4. The simulation timestep is adaptive, with the maximum timestep Δtmax=2.5×103.

The hydrodynamic forces Fx, Fy, and moment M acting on each swimmer are calculated by integrating over the surface of that swimmer, the traction force 𝝈𝐧 and moment 𝐱×(𝝈𝐧), where 𝝈=p𝐈+μ(𝐮+𝐮T) is the fluid stress tensor, 𝐱 denotes positions on the surface of that swimmer, and 𝐧 the unit normal to that airfoil into the fluid. The hydrodynamic forces and moment are used to solve the equations of motion (Equation 1) for each swimmer and obtain the active moment Ma in Equation 7 needed to evaluate the hydrodynamic power in Equation 8 that is expended by each swimmer.

Appendix 2

Vortex sheet (VS) model

In the VS model, each swimmer is modeled as a rigid plate of length L, and it is approximated by a bound vortex sheet, denoted by lb, whose strength ensures that no fluid flows through the rigid plate, and the separated shear layer is approximated by a free regularized vortex sheet lw at the trailing edge of the swimmer. The total shed circulation Γ in the vortex sheet is determined so as to satisfy the Kutta condition at the trailing edge, which is given in terms of the tangential velocity components above and below the bound sheet and ensures that the pressure jump across the sheet vanishes at the trailing edge. To express these concepts mathematically, it is convenient to introduce the complex notation, such that z=x+iy, where i=1. For more details on the VS model and our implementation of it, we refer the readers to appendix A of Heydari and Kanso, 2021, as well as to Nitsche and Krasny, 1994; Jones, 2003; Sheng et al., 2012; Jones and Shelley, 2005; Alben and Shelley, 2008; Alben, 2009; Huang et al., 2016; Huang et al., 2018; Hang et al., 2022.

The pressure difference across the infinitely thin swimmers n[p] is given by integrating the balance of momentum equation for inviscid planar flow along a closed contour containing the vortex sheet and trailing edge. Here, n=nx+iny is the unit normal, in complex notation, and [p] is the jump in pressure across the swimmer. The hydrodynamic force F=lbn[p]ds acting on the swimmer is given by

lbn[p]ds=Fx+iFy=Fsinθ+iFcosθ. (3)

The hydrodynamic moment M acting on the swimmer about its leading edge is given by

M=Re[lbin¯(zl.e.zb)[p]ds], (4)

where zl.e. is position of the leading edge s=0. We introduce a drag force D that emulates the effect of skin friction due to fluid viscosity in the context of the VS model (Fang, 2016; Heydari and Kanso, 2021). Namely, following Fang, 2016; Heydari and Kanso, 2021, we write the drag force for a swimming plate

D=Cd(U¯+3/2+U¯3/2), (5)

where Cd is a drag coefficient and U± are the spatially averaged tangential fluid velocities on the upper and lower side of the plate, respectively, relative to the swimming velocity U,

U¯±(t)=12lllu±(s,t)dsU, (6)

where u(s,t) denotes the tangential slip velocities on both sides of the plate. We estimate Cd to be approximately 0.05 in the experiments of Ramananarivo et al., 2016. Additionally, following Huang et al., 2016; Huang et al., 2018; Hang et al., 2022; Heydari and Kanso, 2021, we emulate the effect of viscosity on the wake itself by allowing the shed vortex sheets to decay gradually by dissipating each incremental point vortex after a finite time τdiss from the time it is shed into the fluid. Larger τdiss implies that the incrementally shed vorticity along the vortex sheet stays in the fluid for longer times, mimicking the effect of lower fluid viscosity. We studied the effect of dissipation time in Figure 1—figure supplements 2 and 3, and used τdiss=2.45T in the rest of this paper for the sake of computational cost. Pitching motions are produced by an active moment Ma imposed by the swimmer on the surrounding fluid about the leading edge. The value of Ma is obtained from the balance of angular momentum about the swimmer’s leading edge (l.e.),

Iθ¨Im[m(x˙+iy˙)wl.e.]=M+Ma, (7)

In the VS model, I=mL2/3 is the swimmer’s moment of inertia about the leading edge, wl.e. is the swimmer’s velocity at the leading edge (in complex form), and M is the hydrodynamic moment about the leading edge given in Equation 4. The hydrodynamic power P expended by the flapping swimmer to maintain its pitching motion is given by

P=Maθ˙. (8)

Appendix 3

Time-delay particle model

We supplemented these CFD and VS models by studying pairwise interactions in the context of the minimal particle model used in Becker et al., 2015; Newbolt et al., 2019. This particle model was designed for inline swimmers. Here, we modify it slightly to account for lateral offset between the swimmers as shown in Figure 5—figure supplement 1. In a nutshell, the model assumes that the leader leaves behind a vertical wake speed equal to the leader’s flapping speed at the tail. The speed of the ‘wake’ that is left behind decays exponentially in time, as an approximation for viscous dissipation. Details of the model can be found in the Supplementary Information of Newbolt et al., 2019.

In this model, each swimmer is a particle of mass per unit depth m undergoing vertical oscillations such that y1=asin(2πft) and y=asin(2πftϕ), where a=LsinA is the tailbeat amplitude of the pitching airfoil. In this model, each particle is assumed to experience a thrust force Fj that is proportional to the square of its vertical velocity relative to the surrounding fluid, and a drag force Dj relative to its relative horizontal speed. Namely,

mx¨j=Fj+Dj,j=1,2, (9)

where

Fj=ρLCT(y˙juy(xj,yj))2,Dj=ρLCD(x˙jux(xj,yj))2. (10)

Here, ux and uy are the x- and y-components of the fluid velocity, CT,CD are constant thrust and drag coefficients. Since the leader swims into quiescent fluid, we assume that uy(x1,y1)=0. The follower swims into the wake of the leader, which we assume to have zero horizontal velocity (ux=0) and vertical velocity that decays exponentially both in time and in the lateral direction,

uy(x2,y2)=y˙1(tΔt)eΔt/τe|/h|p, (11)

where Δt is the delay time between the leader and follower, i.e., the time past since the leader passed by the follower’s current location: x1(tΔt)=x2(t). We added the last term in Equation 11 to consider decay in the lateral direction ; to estimate the parameters p and h, we used a best curve fit to the data of period-average velocity magnitude versus lateral distance in the wake of a single swimmer in the VS model (Figure 5—figure supplement 1). We numerically integrated (Equation 10) and solved for the motion of the follower. At steady state, we computed the separation distance d=x2x1 between the pair acting on the follower for a range of ϕ[0,2π] and [L,L] (Figure 5—figure supplement 1). The parameter values are chosen to be consistent with the experiments of Newbolt et al. (provided in Table S1 of SI in Newbolt et al., 2019). Specifically, ρ=1g/cm 3, L=4cm, m=5.3g/cm, CD=0.25, CT=0.96, τ=0.5s.

Appendix 4

Flow agreement and thrust parameters

The flow agreement parameter field is defined

V(x,y;ϕ)=1tt+Tvvdt[tt+Tvudt], (12)

where 𝐮(x,y,t) is the flow field of an oncoming wake and 𝐯(t;ϕ) is flapping velocity of a virtual particle located at a location (x,y) in the oncoming wake. The thrust parameter field is defined as

T(x,y,ϕ)=1tt+T|vey|2dt[tt+T|(vu)ey|2dt]. (13)

To further illustrate the meaning of these parameters, we considered an ideal scenario, where the flow velocity is simply of the form of

u=uxex+uyey=Uex+2πfAucos(2πft)ey, (14)

where uy(t)=2πfAucos(2πft) is the transverse fluid velocity. We placed a virtual or ‘ghost’ swimmer heaving at a velocity v(t;ϕ)=2πfAvcos(2πftϕ). Under this scenario, flow agreement parameter is

V=AuAvcosϕ (15)

and thrust parameter is

T=Au2+Av22AvAucosϕ (16)

Let’s now consider a balance of forces on the ‘ghost swimmer’. The ghost swimmer is in relative equilibrium if the sum of drag forces D and thrust forces 𝕋 are zero,

D+T=0cosϕ=Au2+Av2D2AvAuϕ=±cos1Au2+Av2D2AvAu. (17)

Substituting back into Equation 15, we get

V=Au2+Av2D2Av2 (18)

According to our prediction based on the flow agreement parameter, equilibria are located at maximal flow agreement parameter, for which ϕ=0 and 𝕍=Au/Av. This is close to the calculated values of ϕ and 𝕍 when AuAv and D0, i.e., assuming the ghost swimmer is getting a free ride with the local flow at zero thrust and drag.

To consider stability at the calculated equilibria in Equation 17, we calculate the derivative of thrust parameter in Equation 16 with respect to phase ϕ and evaluate it at the equilibrium points

Tϕ=2AvAusinϕ=2AvAu1Au2+Av2D22AvAu (19)

Thus, there is always a stable equilibrium and an unstable equilibrium, both of them are close to the local maximum of flow agreement parameter 𝕍=Au/Av, which is consistent with Figure 4 of the main text.

Appendix 5

Phase control

Consider a swimmer flapping at a phase ϕ can ‘sense’ or measure the agreement of its flapping motion with the local fluid velocity 𝐮 (generated by sources other than itself) at its location (say at its midpoint), over a time span of m flapping periods. The goal of the swimmer would be to adjust its current flapping phase ϕ to a desired phase Φ that maximizes its agreement with the local velocity

Φ(t)=argmaxϕ1mTmin(tmT,0)tv(t,ϕ)u(t)dt1mTmin(tmT,0)tv(t,ϕ)v(t,ϕ)dt, (20)

using a proportional phase controller inspired from Li et al., 2021; Li et al., 2020,

ϕ¨(t)=γ2[ϕ(t)Φ(t)]2γϕ˙(t); (21)

Here, Φ(t) is the desired phase and γ is a constant that determines the speed of convergence. We chose the parameters as follows: we set the number of periods m=2 that describes the memory of the swimmer of the ambient fluid 𝐮, such that the time history is two times the pitching period 2T. We set the control gain γ=3 to ensure that the actual phase ϕ(t) can reach the desired phase Φ(t) at 1% of relative error within 1.5T.

By implementing this phase controller in swimmer 4 in a group of four inline swimmers, the swimmer is able to stabilize itself in the formation as shown in Figure 10. However, this stabilization is expensive: by actively controlling its phase to stay in formation, swimmer 4 spends 100% more hydrodynamic power than swimming alone.

Appendix 6

Data collection from published literature

To probe the relationship between the scaled separation distance d/UT in pairs of swimmers and their flapping phase lag ϕ, we collected data from published literature on pairs of interacting swimmers (Kim et al., 2010; Newbolt et al., 2019; Li et al., 2020; Kurt et al., 2021; Heydari and Kanso, 2021); see Table 1 and the Supplemental Excel Sheet. We excluded a few studies from this literature survey (Park and Sung, 2018; Dai et al., 2018), because we were unable to extract d/UT from the data they provided. We also excluded (Becker et al., 2015) because their study involved fixed inter-swimmer distances. We found that the relationship between phase lag ϕ and separation distance d/UT is approximately linear ϕ/2π=d/UT+β. The value of β depends on how one defines the inter-swimmer separation distance. The two definitions that are commonly used in the literature are tail-to-tail or tail-to-head (gap) distance. These definitions do not change the linear scaling between d/UT and ϕ/2π; they only change the value of β. For the data provided in Figure 3 of the main text, we used the definition of separation distance d that results in β=0. Not all literature provided values for U or T. In the very few cases when this information were missing, we estimated UT from the linear relationship ϕ/2π=d/UT (Kim et al., 2010).

Funding Statement

The funders had no role in study design, data collection and interpretation, or the decision to submit the work for publication.

Contributor Information

Eva Kanso, Email: kanso@usc.edu.

Marcus M Seldin, University of California, Irvine, United States.

Christian Rutz, University of St Andrews, United Kingdom.

Funding Information

This paper was supported by the following grants:

  • National Science Foundation IOS-2034043 to Eva Kanso.

  • National Science Foundation CBET-210020 to Eva Kanso.

  • Office of Naval Research N00014-22-1-2655 to Eva Kanso.

  • Office of Naval Research N00014-19-1-2035 to Eva Kanso.

Additional information

Competing interests

No competing interests declared.

Author contributions

Data curation, Software, Investigation, Visualization, Writing – review and editing.

Data curation, Software, Investigation, Visualization, Writing – review and editing.

Conceptualization, Formal analysis, Supervision, Funding acquisition, Investigation, Writing - original draft, Project administration, Writing – review and editing.

Additional files

MDAR checklist

Data availability

All data is included in the main manuscript and figure supplements. Time evolution data of swimmers obtained from CFD and vortex-sheet simulations are available at https://doi.org/10.5061/dryad.hqbzkh1s5.

The following previously published dataset was used:

Heydari S, Hang H, Kanso E. 2024. Mapping Spatial Patterns to Energetic Benefits in Groups of Flow-coupled Swimmers. Dryad Digital Repository.

References

  1. Alben S, Shelley MJ. Flapping states of a flag in an inviscid fluid: bistability and the transition to chaos. Physical Review Letters. 2008;100:074301. doi: 10.1103/PhysRevLett.100.074301. [DOI] [PubMed] [Google Scholar]
  2. Alben S. Wake-mediated synchronization and drafting in coupled flags. Journal of Fluid Mechanics. 2009;641:489–496. doi: 10.1017/S0022112009992138. [DOI] [Google Scholar]
  3. Arranz G, Flores O, García-Villalba M. Flow interaction of three-dimensional self-propelled flexible plates in tandem. Journal of Fluid Mechanics. 2022;931:918. doi: 10.1017/jfm.2021.918. [DOI] [Google Scholar]
  4. Ashraf I, Bradshaw H, Ha TT, Halloy J, Godoy-Diana R, Thiria B. Simple phalanx pattern leads to energy saving in cohesive fish schooling. PNAS. 2017;114:9599–9604. doi: 10.1073/pnas.1706503114. [DOI] [PMC free article] [PubMed] [Google Scholar]
  5. Ayancik F, Zhong Q, Quinn DB, Brandes A, Bart-Smith H, Moored KW. Scaling laws for the propulsive performance of three-dimensional pitching propulsors. Journal of Fluid Mechanics. 2019;871:1117–1138. doi: 10.1017/jfm.2019.334. [DOI] [Google Scholar]
  6. Bajec IL, Heppner FH. Organized flight in birds. Animal Behaviour. 2009;78:777–789. doi: 10.1016/j.anbehav.2009.07.007. [DOI] [Google Scholar]
  7. Becker AD, Masoud H, Newbolt JW, Shelley MJ, Ristroph L. Hydrodynamic schooling of flapping swimmers. Nature Communications. 2015;6:8514. doi: 10.1038/ncomms9514. [DOI] [PMC free article] [PubMed] [Google Scholar]
  8. Berlinger F, Gauci M, Nagpal R. Implicit coordination for 3D underwater collective behaviors in a fish-inspired robot swarm. Science Robotics. 2021;6:eabd8668. doi: 10.1126/scirobotics.abd8668. [DOI] [PubMed] [Google Scholar]
  9. Bhalla APS, Bale R, Griffith BE, Patankar NA. A unified mathematical framework and an adaptive numerical method for fluid–structure interaction with rigid, deforming, and elastic bodies. Journal of Computational Physics. 2013;250:446–476. doi: 10.1016/j.jcp.2013.04.033. [DOI] [Google Scholar]
  10. Bhalla APS, Nangia N, Dafnakis P, Bracco G, Mattiazzo G. Simulating water-entry/exit problems using Eulerian–Lagrangian and fully-Eulerian fictitious domain methods within the open-source IBAMR library. Applied Ocean Research. 2020;94:101932. doi: 10.1016/j.apor.2019.101932. [DOI] [Google Scholar]
  11. Bialek W, Cavagna A, Giardina I, Mora T, Silvestri E, Viale M, Walczak AM. Statistical mechanics for natural flocks of birds. PNAS. 2012;109:4786–4791. doi: 10.1073/pnas.1118633109. [DOI] [PMC free article] [PubMed] [Google Scholar]
  12. Blocken B, van Druenen T, Toparlar Y, Malizia F, Mannion P, Andrianne T, Marchal T, Maas G-J, Diepens J. Aerodynamic drag in cycling pelotons: New insights by CFD simulation and wind tunnel testing. Journal of Wind Engineering and Industrial Aerodynamics. 2018;179:319–337. doi: 10.1016/j.jweia.2018.06.011. [DOI] [Google Scholar]
  13. Colvert B, Kanso E. Fishlike rheotaxis. Journal of Fluid Mechanics. 2016;793:656–666. doi: 10.1017/jfm.2016.141. [DOI] [Google Scholar]
  14. Coppola M, McGuire KN, De Wagter C, de Croon GCHE. A survey on swarming with micro air vehicles: fundamental challenges and constraints. Frontiers in Robotics and AI. 2020;7:18. doi: 10.3389/frobt.2020.00018. [DOI] [PMC free article] [PubMed] [Google Scholar]
  15. Couzin ID, Krause J, James R, Ruxton GD, Franks NR. Collective memory and spatial sorting in animal groups. Journal of Theoretical Biology. 2002;218:1–11. doi: 10.1006/jtbi.2002.3065. [DOI] [PubMed] [Google Scholar]
  16. Couzin ID, Krause J. Self-organization and collective behavior in vertebrates. Advances in the Study of Behavior. 2003;32:10–1016. doi: 10.1016/S0065-3454(03)01001-5. [DOI] [Google Scholar]
  17. Croft DP, James R, Krause J. Exploring Animal Social Networks. Princeton University Press; 2008. [Google Scholar]
  18. Dai L, He G, Zhang X, Zhang X. Stable formations of self-propelled fish-like swimmers induced by hydrodynamic interactions. Journal of the Royal Society, Interface. 2018;15:20180490. doi: 10.1098/rsif.2018.0490. [DOI] [PMC free article] [PubMed] [Google Scholar]
  19. Das R, Peterson SD, Porfiri M. Stability of schooling patterns of a fish pair swimming against a flow. Flow. 2023;3:E31. doi: 10.1017/flo.2023.25. [DOI] [Google Scholar]
  20. Douglas R, Djamgoz M. The Visual System of Fish. Springer Science & Business Media; 2012. [DOI] [Google Scholar]
  21. Engelmann J, Hanke W, Mogdans J, Bleckmann H. Hydrodynamic stimuli and the fish lateral line. Nature. 2000;408:51–52. doi: 10.1038/35040706. [DOI] [PubMed] [Google Scholar]
  22. Fang F. Hydrodynamic Interactions between Self-Propelled Flapping Wings. New York University; 2016. [Google Scholar]
  23. Farine DR, Whitehead H. Constructing, conducting and interpreting animal social network analysis. The Journal of Animal Ecology. 2015;84:1144–1163. doi: 10.1111/1365-2656.12418. [DOI] [PMC free article] [PubMed] [Google Scholar]
  24. Fernald RD. In: Development of the Vertebrate Retina. Finlay BL, Sengelaub DR, editors. Springer; 1989. Fish vision; pp. 247–265. [DOI] [Google Scholar]
  25. Fish FE, Hui CA. Dolphin swimming–a review. Mammal Review. 1991;21:181–195. doi: 10.1111/j.1365-2907.1991.tb00292.x. [DOI] [Google Scholar]
  26. Floryan D, Van Buren T, Rowley CW, Smits AJ. Scaling the propulsive performance of heaving and pitching foils. Journal of Fluid Mechanics. 2017;822:386–397. doi: 10.1017/jfm.2017.302. [DOI] [Google Scholar]
  27. Gazzola M, Hejazialhosseini B, Koumoutsakos P. Reinforcement learning and wavelet adapted vortex methods for simulations of self-propelled swimmers. SIAM Journal on Scientific Computing. 2014;36:B622–B639. doi: 10.1137/130943078. [DOI] [Google Scholar]
  28. Green MA, Rowley CW, Smits AJ. The unsteady three-dimensional wake produced by a trapezoidal pitching panel. Journal of Fluid Mechanics. 2011;685:117–145. doi: 10.1017/jfm.2011.286. [DOI] [Google Scholar]
  29. Griffith BE, Peskin CS. On the order of accuracy of the immersed boundary method: Higher order convergence rates for sufficiently smooth problems. Journal of Computational Physics. 2005;208:75–105. doi: 10.1016/j.jcp.2005.02.011. [DOI] [Google Scholar]
  30. Griffith BE, Hornung RD, McQueen DM, Peskin CS. An adaptive, formally second order accurate version of the immersed boundary method. Journal of Computational Physics. 2007;223:10–49. doi: 10.1016/j.jcp.2006.08.019. [DOI] [Google Scholar]
  31. Griffith BE, Patankar NA. Immersed methods for fluid-structure interaction. Annual Review of Fluid Mechanics. 2020;52:421–448. doi: 10.1146/annurev-fluid-010719-060228. [DOI] [PMC free article] [PubMed] [Google Scholar]
  32. Guo H, Fauci L, Shelley M, Kanso E. Bistability in the synchronization of actuated microfilaments. Journal of Fluid Mechanics. 2018;836:304–323. doi: 10.1017/jfm.2017.816. [DOI] [Google Scholar]
  33. Guthrie D. In: The behaviour of teleost fishes. Guthrie D, editor. Springer; 1986. Role of vision in fish behaviour; pp. 75–113. [DOI] [Google Scholar]
  34. Hang H, Heydari S, Costello JH, Kanso E. Active tail flexion in concert with passive hydrodynamic forces improves swimming speed and efficiency. Journal of Fluid Mechanics. 2022;932:984. doi: 10.1017/jfm.2021.984. [DOI] [Google Scholar]
  35. Hang H, Jiao Y, Heydari S, Ling F, Merel J, Kanso E. Interpretable and Generalizable Strategies for Stably Following Hydrodynamic Trails. bioRxiv. 2023 doi: 10.1101/2023.12.15.571932. [DOI]
  36. Hang H, Heydari S, Kanso E. Feedback control of uncoordinated flapping swimmers to maintain school cohesion. ACC Conference.2024. [Google Scholar]
  37. Herskin J, Steffensen JF. Energy savings in sea bass swimming in a school: measurements of tail beat frequency and oxygen consumption at different swimming speeds. Journal of Fish Biology. 1998;53:366–376. doi: 10.1111/j.1095-8649.1998.tb00986.x. [DOI] [Google Scholar]
  38. Heydari S, Kanso E. School cohesion, speed and efficiency are modulated by the swimmers flapping motion. Journal of Fluid Mechanics. 2021;922:A27. doi: 10.1017/jfm.2021.551. [DOI] [Google Scholar]
  39. Hoover AP, Cortez R, Tytell ED, Fauci LJ. Swimming performance, resonance and shape evolution in heaving flexible panels. Journal of Fluid Mechanics. 2018;847:386–416. doi: 10.1017/jfm.2018.305. [DOI] [Google Scholar]
  40. Hoover AP, Tytell E. Decoding the relationships between body shape, tail beat frequency, and stability for swimming fish. Fluids. 2020;5:215. doi: 10.3390/fluids5040215. [DOI] [Google Scholar]
  41. Hoover AP, Daniels J, Nawroth JC, Katija K. A computational model for tail undulation and fluid transport in the giant larvacean. Fluids. 2021;6:88. doi: 10.3390/fluids6020088. [DOI] [Google Scholar]
  42. Huang Y, Nitsche M, Kanso E. Hovering in oscillatory flows. Journal of Fluid Mechanics. 2016;804:531–549. doi: 10.1017/jfm.2016.535. [DOI] [Google Scholar]
  43. Huang Y, Ristroph L, Luhar M, Kanso E. Bistability in the rotational motion of rigid and flexible flyers. Journal of Fluid Mechanics. 2018;849:1043–1067. doi: 10.1017/jfm.2018.446. [DOI] [Google Scholar]
  44. Hultmark M, Leftwich M, Smits AJ. Flowfield measurements in the wake of a robotic lamprey. Experiments in Fluids. 2007;43:683–690. doi: 10.1007/s00348-007-0412-1. [DOI] [PMC free article] [PubMed] [Google Scholar]
  45. IBAMR IBAMR:an adaptive and distributed-memory parallel implementation of the immersed boundary (IB) method. 0.1Github. 2024 https://ibamr.github.io/
  46. Jiao Y, Ling F, Heydari S, Heess N, Merel J, Kanso E. Learning to swim in potential flow. Physical Review Fluids. 2021;6:050505. doi: 10.1103/PhysRevFluids.6.050505. [DOI] [Google Scholar]
  47. Jiao Y, Colvert B, Man Y, McHenry MJ, Kanso E. Evaluating evasion strategies in zebrafish larvae. PNAS. 2023;120:e2218909120. doi: 10.1073/pnas.2218909120. [DOI] [PMC free article] [PubMed] [Google Scholar]
  48. Jones MA. The separated flow of an inviscid fluid around a moving flat plate. Journal of Fluid Mechanics. 2003;496:405–441. doi: 10.1017/S0022112003006645. [DOI] [Google Scholar]
  49. Jones MA, Shelley MJ. Falling cards. Journal of Fluid Mechanics. 2005;540:393. doi: 10.1017/S0022112005005859. [DOI] [Google Scholar]
  50. Kanso E, Cheng Hou Tsang A. Dipole models of self-propelled bodies. Fluid Dynamics Research. 2014;46:061407. doi: 10.1088/0169-5983/46/6/061407. [DOI] [Google Scholar]
  51. Kern S, Koumoutsakos P. Simulations of optimized anguilliform swimming. The Journal of Experimental Biology. 2006;209:4841–4857. doi: 10.1242/jeb.02526. [DOI] [PubMed] [Google Scholar]
  52. Killen SS, Marras S, Steffensen JF, McKenzie DJ. Aerobic capacity influences the spatial position of individuals within fish schools. Proceedings of the Royal Society B. 2012;279:357–364. doi: 10.1098/rspb.2011.1006. [DOI] [PMC free article] [PubMed] [Google Scholar]
  53. Kim S, Huang WX, Sung HJ. Constructive and destructive interaction modes between two tandem flexible flags in viscous flow. Journal of Fluid Mechanics. 2010;661:511–521. doi: 10.1017/S0022112010003514. [DOI] [Google Scholar]
  54. Kurt M, Moored KW. Flow interactions of two- and three-dimensional networked bio-inspired control elements in an in-line arrangement. Bioinspiration & Biomimetics. 2018;13:045002. doi: 10.1088/1748-3190/aabf4c. [DOI] [PubMed] [Google Scholar]
  55. Kurt M, Mivehchi A, Moored KW. Two-dimensionally stable self-organization arises in simple schooling swimmers through hydrodynamic interactions. arXiv. 2021 https://arxiv.org/pdf/2102.03571v3
  56. Lauder GV, Lim J, Shelton R, Witt C, Anderson E, Tangorra JL. Robotic models for studying undulatory locomotion in fishes. Marine Technology Society Journal. 2011;45:41–55. doi: 10.4031/MTSJ.45.4.8. [DOI] [Google Scholar]
  57. Lee JH, Rygg AD, Kolahdouz EM, Rossi S, Retta SM, Duraiswamy N, Scotten LN, Craven BA, Griffith BE. Fluid-structure interaction models of bioprosthetic heart valve dynamics in an experimental pulse duplicator. Annals of Biomedical Engineering. 2020;48:1475–1490. doi: 10.1007/s10439-020-02466-4. [DOI] [PMC free article] [PubMed] [Google Scholar]
  58. Leonard NE, Fiorelli E. Virtual leaders, artificial potentials and coordinated control of groups. 40th Conference on Decision and Control; Orlando, FL, USA. 2001. pp. 2968–2973. [DOI] [Google Scholar]
  59. Li L, Nagy M, Graving JM, Bak-Coleman J, Xie G, Couzin ID. Vortex phase matching as a strategy for schooling in robots and in fish. Nature Communications. 2020;11:5408. doi: 10.1038/s41467-020-19086-0. [DOI] [PMC free article] [PubMed] [Google Scholar]
  60. Li L, Liu D, Deng J, Lutz MJ, Xie G. Fish can save energy via proprioceptive sensing. Bioinspiration & Biomimetics. 2021;16:056013. doi: 10.1088/1748-3190/ac165e. [DOI] [PubMed] [Google Scholar]
  61. Lin Z, Bhalla APS, Griffith B, Sheng Z, Li H, Liang D, Zhang Y. How Swimming Style Affects Schooling of Two Fish-like Wavy Hydrofoils. arXiv. 2022 https://arxiv.org/abs/2209.01590
  62. Lombana DAB, Porfiri M. Collective response of fish to combined manipulations of illumination and flow. Behavioural Processes. 2022;203:104767. doi: 10.1016/j.beproc.2022.104767. [DOI] [PubMed] [Google Scholar]
  63. Lushi E, Wioland H, Goldstein RE. Fluid flows created by swimming bacteria drive self-organization in confined suspensions. PNAS. 2014;111:9733–9738. doi: 10.1073/pnas.1405698111. [DOI] [PMC free article] [PubMed] [Google Scholar]
  64. Marras S, Porfiri M. Fish and robots swimming together: attraction towards the robot demands biomimetic locomotion. Journal of the Royal Society, Interface. 2012;9:1856–1868. doi: 10.1098/rsif.2012.0084. [DOI] [PMC free article] [PubMed] [Google Scholar]
  65. Marras S, Killen SS, Lindström J, McKenzie DJ, Steffensen JF, Domenici P. Fish swimming in schools save energy regardless of their spatial position. Behavioral Ecology and Sociobiology. 2015;69:219–226. doi: 10.1007/s00265-014-1834-4. [DOI] [PMC free article] [PubMed] [Google Scholar]
  66. McKee A, Soto AP, Chen P, McHenry MJ. The sensory basis of schooling by intermittent swimming in the rummy-nose tetra (Hemigrammus rhodostomus) Proceedings of the Royal Society B. 2020;287:20200568. doi: 10.1098/rspb.2020.0568. [DOI] [PMC free article] [PubMed] [Google Scholar]
  67. Mirzaeinia A, Heppner F, Hassanalian M. An analytical study on leader and follower switching in V-shaped Canada Goose flocks for energy management purposes. Swarm Intelligence. 2020;14:117–141. doi: 10.1007/s11721-020-00179-x. [DOI] [Google Scholar]
  68. Mittal R, Dong H, Bozkurttas M, Najjar FM, Vargas A, von Loebbecke A. A versatile sharp interface immersed boundary method for incompressible flows with complex boundaries. Journal of Computational Physics. 2008;227:4825–4852. doi: 10.1016/j.jcp.2008.01.028. [DOI] [PMC free article] [PubMed] [Google Scholar]
  69. Moored KW, Dewey PA, Boschitsch BM, Smits AJ, Haj-Hariri H. Linear instability mechanisms leading to optimally efficient locomotion with flexible propulsors. Physics of Fluids. 2014;26:4. doi: 10.1063/1.4872221. [DOI] [Google Scholar]
  70. Newbolt JW, Zhang J, Ristroph L. Flow interactions between uncoordinated flapping swimmers give rise to group cohesion. PNAS. 2019;116:2419–2424. doi: 10.1073/pnas.1816098116. [DOI] [PMC free article] [PubMed] [Google Scholar]
  71. Newbolt JW, Zhang J, Ristroph L. Lateral flow interactions enhance speed and stabilize formations of flapping swimmers. Physical Review Fluids. 2022;7:L061101. doi: 10.1103/PhysRevFluids.7.L061101. [DOI] [Google Scholar]
  72. Nitsche M, Krasny R. A numerical study of vortex ring formation at the edge of A circular tube. Journal of Fluid Mechanics. 1994;276:139–161. doi: 10.1017/S0022112094002508. [DOI] [Google Scholar]
  73. Oliveira HM, Melo LV. Huygens synchronization of two clocks. Scientific Reports. 2015;5:11548. doi: 10.1038/srep11548. [DOI] [PMC free article] [PubMed] [Google Scholar]
  74. Park SG, Sung HJ. Hydrodynamics of flexible fins propelled in tandem, diagonal, triangular and diamond configurations. Journal of Fluid Mechanics. 2018;840:154–189. doi: 10.1017/jfm.2018.64. [DOI] [Google Scholar]
  75. Partridge BL, Pitcher TJ. Evidence against a hydrodynamic function for fish schools. Nature. 1979;279:418–419. doi: 10.1038/279418a0. [DOI] [PubMed] [Google Scholar]
  76. Peng ZR, Huang H, Lu XY. Hydrodynamic schooling of multiple self-propelled flapping plates. Journal of Fluid Mechanics. 2018;853:587–600. doi: 10.1017/jfm.2018.634. [DOI] [Google Scholar]
  77. Peskin CS. Numerical analysis of blood flow in the heart. Journal of Computational Physics. 1977;25:220–252. doi: 10.1016/0021-9991(77)90100-0. [DOI] [Google Scholar]
  78. Portugal SJ, Hubel TY, Fritz J, Heese S, Trobe D, Voelkl B, Hailes S, Wilson AM, Usherwood JR. Upwash exploitation and downwash avoidance by flap phasing in ibis formation flight. Nature. 2014;505:399–402. doi: 10.1038/nature12939. [DOI] [PubMed] [Google Scholar]
  79. Quinn DB, Lauder GV, Smits AJ. Scaling the propulsive performance of heaving flexible panels. Journal of Fluid Mechanics. 2014;738:250–267. doi: 10.1017/jfm.2013.597. [DOI] [Google Scholar]
  80. Ramananarivo S, Fang F, Oza A, Zhang J, Ristroph L. Flow interactions lead to orderly formations of flapping wings in forward flight. Physical Review Fluids. 2016;1:071201. doi: 10.1103/PhysRevFluids.1.071201. [DOI] [Google Scholar]
  81. Ristroph L, Liao JC, Zhang J. Lateral line layout correlates with the differential hydrodynamic pressure on swimming fish. Physical Review Letters. 2015;114:018102. doi: 10.1103/PhysRevLett.114.018102. [DOI] [PMC free article] [PubMed] [Google Scholar]
  82. Sheng JX, Ysasi A, Kolomenskiy D, Kanso E, Nitsche M, Schneider K. In: Natural Locomotion in Fluids and on Surfaces. Childress S, Hosoi A, Schultz WW, Wang J, editors. New York: Springer; 2012. Simulating vortex wakes of flapping plates; pp. 255–262. [DOI] [Google Scholar]
  83. Smits AJ. Undulatory and oscillatory swimming. Journal of Fluid Mechanics. 2019;874:284. doi: 10.1017/jfm.2019.284. [DOI] [Google Scholar]
  84. Strogatz SH, Stewart I. Coupled oscillators and biological synchronization. Scientific American. 1993;269:102–109. doi: 10.1038/scientificamerican1293-102. [DOI] [PubMed] [Google Scholar]
  85. Strogatz SH. Nonlinear Dynamics and Chaos with Student Solutions Manual: With Applications to Physics, Biology, Chemistry, and Engineering. CRC press; 1994. [Google Scholar]
  86. Svendsen JC, Skov J, Bildsoe M, Steffensen JF. Intra‐school positional preference and reduced tail beat frequency in trailing positions in schooling roach under experimental conditions. Journal of Fish Biology. 2003;62:834–846. doi: 10.1046/j.1095-8649.2003.00068.x. [DOI] [Google Scholar]
  87. Taira K, Colonius T. Three-dimensional flows around low-aspect-ratio flat-plate wings at low Reynolds numbers. Journal of Fluid Mechanics. 2009;623:187–207. doi: 10.1017/S0022112008005314. [DOI] [Google Scholar]
  88. Taylor GK, Nudds RL, Thomas ALR. Flying and swimming animals cruise at a Strouhal number tuned for high power efficiency. Nature. 2003;425:707–711. doi: 10.1038/nature02000. [DOI] [PubMed] [Google Scholar]
  89. Thandiackal R, Lauder G. In-line swimming dynamics revealed by fish interacting with a robotic mechanism. eLife. 2023;12:e81392. doi: 10.7554/eLife.81392. [DOI] [PMC free article] [PubMed] [Google Scholar]
  90. Triantafyllou GS, Triantafyllou MS, Grosenbaugh MA. Optimal thrust development in oscillating foils with application to fish propulsion. Journal of Fluids and Structures. 1993;7:205–224. doi: 10.1006/jfls.1993.1012. [DOI] [Google Scholar]
  91. Triantafyllou MS, Triantafyllou GS, Yue DKP. Hydrodynamics of fishlike swimming. Annual Review of Fluid Mechanics. 2000;32:33–53. doi: 10.1146/annurev.fluid.32.1.33. [DOI] [Google Scholar]
  92. Tsang ACH, Kanso E. Dipole interactions in doubly periodic domains. Journal of Nonlinear Science. 2013;23:971–991. doi: 10.1007/s00332-013-9174-5. [DOI] [Google Scholar]
  93. Tsien HS. Symmetrical Joukowsky airfoils in shear flow. Quarterly of Applied Mathematics. 1943;1:130–148. doi: 10.1090/qam/8537. [DOI] [Google Scholar]
  94. Tytell ED, Lauder GV. The hydrodynamics of eel swimming: I. Wake structure. The Journal of Experimental Biology. 2004;207:1825–1841. doi: 10.1242/jeb.00968. [DOI] [PubMed] [Google Scholar]
  95. Tytell ED, Hsu CY, Fauci LJ. The role of mechanical resonance in the neural control of swimming in fishes. Zoology. 2014;117:48–56. doi: 10.1016/j.zool.2013.10.011. [DOI] [PMC free article] [PubMed] [Google Scholar]
  96. Tytell ED, Leftwich MC, Hsu CY, Griffith BE, Cohen AH, Smits AJ, Hamlet C, Fauci LJ. Role of body stiffness in undulatory swimming: Insights from robotic and computational models. Physical Review Fluids. 2016;1:073202. doi: 10.1103/PhysRevFluids.1.073202. [DOI] [Google Scholar]
  97. Usherwood JR, Stavrou M, Lowe JC, Roskilly K, Wilson AM. Flying in a flock comes at a cost in pigeons. Nature. 2011;474:494–497. doi: 10.1038/nature10164. [DOI] [PMC free article] [PubMed] [Google Scholar]
  98. Van Buren T, Floryan D, Smits AJ. Scaling and performance of simultaneously heaving and pitching foils. AIAA Journal. 2019;57:3666–3677. doi: 10.2514/1.J056635. [DOI] [Google Scholar]
  99. van Veen WG, van Leeuwen JL, Muijres FT. Malaria mosquitoes use leg push-off forces to control body pitch during take-off. Journal of Experimental Zoology. Part A, Ecological and Integrative Physiology. 2020;333:38–49. doi: 10.1002/jez.2308. [DOI] [PMC free article] [PubMed] [Google Scholar]
  100. Verma S, Novati G, Noca F, Koumoutsakos P. Fast Motion of Heaving Airfoils. Elsevier; 2017. [DOI] [Google Scholar]
  101. Verma S, Novati G, Koumoutsakos P. Efficient collective swimming by harnessing vortices through deep reinforcement learning. PNAS. 2018;115:5849–5854. doi: 10.1073/pnas.1800923115. [DOI] [PMC free article] [PubMed] [Google Scholar]
  102. Voesenek CJ, Li G, Muijres FT, van Leeuwen JL. Experimental-numerical method for calculating bending moments in swimming fish shows that fish larvae control undulatory swimming with simple actuation. PLOS Biology. 2020;18:e3000462. doi: 10.1371/journal.pbio.3000462. [DOI] [PMC free article] [PubMed] [Google Scholar]
  103. Von Ellenrieder KD, Parker K, Soria J. Flow structures behind a heaving and pitching finite-span wing. Journal of Fluid Mechanics. 2003;490:129–138. doi: 10.1017/S0022112003005408. [DOI] [Google Scholar]
  104. Wan KY, Goldstein RE. Coordinated beating of algal flagella is mediated by basal coupling. PNAS. 2016;113:E2784–E2793. doi: 10.1073/pnas.1518527113. [DOI] [PMC free article] [PubMed] [Google Scholar]
  105. Weihs D. Hydromechanics of Fish Schooling. Nature. 1973;241:290–291. doi: 10.1038/241290a0. [DOI] [Google Scholar]
  106. Whitehead H. Analysing animal social structure. Animal Behaviour. 1997;53:1053–1067. doi: 10.1006/anbe.1996.0358. [DOI] [Google Scholar]
  107. Yang D, Wu J. Hydrodynamic interaction of two self-propelled fish swimming in a tandem arrangement. Fluids. 2022;7:208. doi: 10.3390/fluids7060208. [DOI] [Google Scholar]
  108. Yuan ZM, Chen M, Jia L, Ji C, Incecik A. Wave-riding and wave-passing by ducklings in formation swimming. Journal of Fluid Mechanics. 2021;928:R2. doi: 10.1017/jfm.2021.820. [DOI] [Google Scholar]
  109. Zhang Y, Lauder GV. Energetics of collective movement in vertebrates. The Journal of Experimental Biology. 2023a;226:jeb245617. doi: 10.1242/jeb.245617. [DOI] [PubMed] [Google Scholar]
  110. Zhang Y, Lauder GV. Energy conservation by group dynamics in schooling fish. eLife. 2023b;01:02138. doi: 10.7554/eLife.90352.1. [DOI] [PMC free article] [PubMed] [Google Scholar]
  111. Zhu X, He G, Zhang X. Flow-mediated interactions between two self-propelled flapping filaments in tandem configuration. Physical Review Letters. 2014;113:238105. 10.1103/physrevlett.113.238105. doi: 10.1103/PhysRevLett.113.238105. [DOI] [PubMed] [Google Scholar]
  112. Zhu J, White C, Wainwright DK, Di Santo V, Lauder GV, Bart-Smith H. Tuna robotics: a high-frequency experimental platform exploring the performance space of swimming fishes. Science Robotics. 2019;4:eaax4615. doi: 10.1126/scirobotics.aax4615. [DOI] [PubMed] [Google Scholar]
  113. Zhu Y, Pang JH, Tian FB. Stable schooling formations emerge from the combined effect of the active control and passive self-organization. Fluids. 2022;7:41. doi: 10.3390/fluids7010041. [DOI] [Google Scholar]

eLife assessment

Marcus M Seldin 1

This fundamental study provides a modeling regime that provides new insight into the energy-preservation parameters among schooling fish. The strength of the evidence supporting observations such as distilled dynamics between leading and lagging schooling fish which are derived from emergent properties is compelling. Overall, the study provides exciting insights into energetic coupling with respect to group swimming dynamics.

Reviewer #1 (Public review):

Anonymous

Summary:

The study seeks to establish accurate computational models to explore the role of hydrodynamic interactions on energy savings and spatial patterns in fish schools. Specifically, the authors consider a system of (one degree-of-freedom) flapping airfoils that passively position themselves with respect to the streamwise direction, while oscillating at the same frequency and amplitude, with a given phase lag and at a constant cross-stream distance. By parametrically varying the phase lag and the cross-stream distance, they systematically explore the stability and energy costs of emergent configurations. Computational findings are leveraged to distill insights into universal relationships and clarify the role of the wake of the leading foil.

Strengths:

(1) The use of multiple computational models (computational fluid dynamics, CFD, for full Navier-Stokes equations and computationally-efficient inviscid vortex sheet, VS, model) offers an extra degree of reliability of the observed findings and backing to the use of simplified models for future research in more complex settings.

(2) The systematic assessment of the stability and energy savings in multiple configurations of pairs and larger ensembles of flapping foils is an important addition to the literature.

(3) The discovery of a linear phase-distance relationship in the formation attained by pairs of flapping foils is a significant contribution, which helps compare different experimental observations in the literature.

(4) The observation of a critical size effect for in-line formations, above which cohesion and energetic benefits are lost at once, is a new discovery to the field.

Weaknesses:

(1) The extent to which observations on one-degree-of-freedom flapping foils could translate to real fish schools is presently unclear, so that some of the conclusions on live fish schools are likely to be overstated and would benefit from some more biological framing.

(2) The analysis of non-reciprocal coupling is not as novel as the rest of the study and potentially not as convincing due to the chosen linear metric of interaction (that is, the flow agreement).

Overall, this is a rigorous effort on a critical topic: findings of the research can offer important insight into the hydrodynamics of fish schooling, stimulating interdisciplinary research at the interface of computational fluid mechanics and biology.

Reviewer #2 (Public review):

Anonymous

This work makes substantial progress towards understanding physical aspects of formation locomotion, notably the hydrodynamic stability of groups of flappers and the modifications to energy costs associated with flow interactions.

Major strengths pertain to the fact that this topic is timely, interesting and complex, and the authors have advanced the understanding through their characterizations.

The weaknesses may relate to the many idealizations employed in the simulations and models, which may raise questions about how to interpret their results and whether the outcomes hold generally. But given the complexity of the problem, simplifications are necessary. The authors have certainly provided a clear presentation with appropriate details and caveats that will help the reader extract the main messages and form their own conclusions.

Overall, the work is a positive addition to the growing set of studies into schooling, flocking and related problems where unsteady flow interactions lead to interesting collective effects.

eLife. 2024 Dec 19;13:RP96129. doi: 10.7554/eLife.96129.3.sa3

Author response

Sina Heydari 1, Haotian Hang 2, Eva Kanso 3

The following is the authors’ response to the original reviews.

Public Reviews:

Reviewer #1 (Public Review):

Summary:

The study seeks to establish accurate computational models to explore the role of hydrodynamic interactions on energy savings and spatial patterns in fish schools. Specifically, the authors consider a system of (one degree-of-freedom) flapping airfoils that passively position themselves with respect to the streamwise direction, while oscillating at the same frequency and amplitude, with a given phase lag and at a constant cross-stream distance. By parametrically varying the phase lag and the cross-stream distance, they systematically explore the stability and energy costs of emergent configurations. Computational findings are leveraged to distill insights into universal relationships and clarify the role of the wake of the leading foil.

We would like to thank the referee for their careful read of the manuscript and for their constructive feedback. We appreciate it.

Strengths:

(1) The use of multiple computational models (computational fluid dynamics, CFD, for full Navier-Stokes equations and computationally efficient inviscid vortex sheet, VS, model) offers an extra degree of reliability of the observed findings and backing to the use of simplified models for future research in more complex settings.

(2) The systematic assessment of the stability and energy savings in multiple configurations of pairs and larger ensembles of flapping foils is an important addition to the literature.

(3) The discovery of a linear phase-distance relationship in the formation attained by pairs of flapping foils is a significant contribution, which helps compare different experimental observations in the literature.

(4) The observation of a critical size effect for in-line formations of larger, above which cohesion and energetic benefits are lost at once, is a new discovery in the field.

Thank you for this list of strength – we are delighted that these ideas were clearly communicated in our manuscript.

Note that Newbolt et al. PNAS, 2019 reported distance as a function of phase for pairs of flapping hydrofoils, and Li et al, Nat. Comm., 2020 also reported phase-distance relationship in robotic and biological fish (calling it Vortex Phase Matching). We compiled their results, together with our and other numerical and experimental results, showing that the linear distance-phase relationship is universal.

Weaknesses:

(1) The extent to which observations on one-degree-of-freedom flapping foils could translate to real fish schools is presently unclear so some of the conclusions on live fish schools are likely to be overstated and would benefit from some more biological framing.

Thank you for bringing up this point. Indeed, flapping foils that are free to translate in both the x- and y-directions and rotate in the x-y plane could drift apart in the y-direction. However, this drift occurs at a longer time scale than the forward swimming motion; it is much slower. For this reason, we feel justified to ignore it for the purpose of this study, especially that the pairwise equilibria in the swimming x-direction are reached at a faster time scale.

Below, we include two snapshots taken from published work from the group of Petros Koumoutsakos (Gazzola et al, SIAM 2014). The figures show, respectively, a pair and a group of five undulating swimmers, free to move and rotate in the x-y plane. The evolution of the two and five swimmers is computed in the absence of any control. The lateral drift is clearly sub-dominant to the forward motion. Similar results were reported in Verma et al, PNAS 2018.

These results are independent on the details of the flow interactions model. For example, similar lateral drift is observed using the dipole model dipole model (Kanso & Tsang, FDR 2014, Tsang & Kanso, JNLS 2023).

Another reason why we feel justified to ignore these additional degrees of freedom is the following: we assume a live fish or robotic vehicle would have feedback control mechanisms that correct for such drift. Given that it is a slowly-growing drift, we hypothesize that the organism or robot would have sufficient time to respond and correct its course.

Indeed, in Zhu et al. 2022, an RL controller, which drives an individual fish-like swimmer to swim at a given speed and direction, when applied to pairs of swimmers, resulted in the pair "passively" forming a stable school without any additional information about each other.

We edited the main manuscript in page 4 of the manuscript to include reference to the work cited here and to explain the reasons for ignoring the lateral drift.

Citations:

Gazzola, M., Hejazialhosseini, B., & Koumoutsakos, P. (2014). Reinforcement learning and wavelet adapted vortex methods for simulations of self-propelled swimmers. SIAM Journal on Scientific Computing, 36(3), B622-B639. DOI: https://doi.org/10.1137/130943078

Verma, S., Novati, G., & Koumoutsakos, P. (2018). Efficient collective swimming by harnessing vortices through deep reinforcement learning. Proceedings of the National Academy of Sciences, 115(23), 5849-5854. DOI: https://doi.org/10.1073/pnas.1800923115

Tsang, A. C. H. & Kanso, E., (2013). Dipole Interactions in Doubly Periodic Domains. Journal of Nonlinear Science 23 (2013): 971-991. DOI: https://doi.org/10.1007/s00332-013-9174-5

Kanso, E., & Tsang, A. C. H. (2014). Dipole models of self-propelled bodies. Fluid Dynamics Research, 46(6), 061407. DOI: https://doi.org/10.1088/0169-5983/46/6/061407

Zhu, Y., Pang, J. H., & Tian, F. B. (2022). Stable schooling formations emerge from the combined effect of the active control and passive self-organization. Fluids, 7(1), 41. DOI: https://doi.org/10.3390/fluids7010041

Author response image 1. Antiphase self-propelled anguilliform swimmers.

Author response image 1.

(a) – (d) Wavelet adapted vorticity fields at, respectively, t = T, t = 4T, t = 10T. (e) Absolute normalized velocities |U|/L. (f) Swimmers’ centre of mass trajectories.

Author response image 2. Parallel schooling formation.

Author response image 2.

(a) – (d) wavelet adapted vorticity fields at, respectively, t = T, t = 4T, t = 7T, t = 10T. (e) Absolute normalized velocities |U|/L. (f) Swimmers’ center of mass trajectories.

(2) The analysis of non-reciprocal coupling is not as novel as the rest of the study and potentially not as convincing due to the chosen linear metric of interaction (that is, the flow agreement).

We thank the referee for this candid and constructive feedback. In fact, we view this aspect of the study as most “revolutionary” because it provides a novel approach to pre-computing the locations of stable equilibria even without doing expensive all-to-all coupled simulations or experiments.

Basically, the idea is the following: you give me a flow field, it doesn’t matter how you obtained it, whether from simulations or experimentally, and I can tell you at what locations in this flow field a virtual flapping swimmer would be stable and save hydrodynamic energy!

In the revised version, we changed page 3 and 7 in main text, and added a new section “Diagnostic tools” in SI to better illustrate this.

Overall, this is a rigorous effort on a critical topic: findings of the research can offer important insight into the hydrodynamics of fish schooling, stimulating interdisciplinary research at the interface of computational fluid mechanics and biology.

We thank the referee again for their careful read of the manuscript and their constructive feedback.

Reviewer #2 (Public Review):

The document "Mapping spatial patterns to energetic benefits in groups of flow-coupled swimmers" by Heydari et al. uses several types of simulations and models to address aspects of stability of position and power consumption in few-body groups of pitching foils. I think the work has the potential to be a valuable and timely contribution to an important subject area. The supporting evidence is largely quite convincing, though some details could raise questions, and there is room for improvement in the presentation. My recommendations are focused on clarifying the presentation and perhaps spurring the authors to assess additional aspects:

We would like to thank the referee for their careful read of the manuscript and for their constructive feedback. We appreciate it.

(1) Why do the authors choose to set the swimmers free only in the propulsion direction? I can understand constraining all the positions/orientations for investigating the resulting forces and power, and I can also understand the value of allowing the bodies to be fully free in x, y, and their orientation angle to see if possible configurations spontaneously emerge from the flow interactions. But why constrain some degrees of freedom and not others? What's the motivation, and what's the relevance to animals, which are fully free?

We would like to thank the referee for raising this point. It is similar to the point raised above by the first referee. As explained above the reason is the following: in freely-swimming, hydrodynamically-interacting “fish,” the lateral drift is sub-dominant to the forward swimming motion. Therefore, we ignore it in the model. Please see our detailed response above for further clarification, and see changes in page 4 in the main manuscript.

(2) The model description in Eq. (1) and the surrounding text is confusing. Aren't the authors computing forces via CFD or the VS method and then simply driving the propulsive dynamics according to the net horizontal force? It seems then irrelevant to decompose things into thrust and drag, and it seems irrelevant to claim that the thrust comes from pressure and the drag from viscous effects. The latter claim may in fact be incorrect since the body has a shape and the normal and tangential components of the surface stress along the body may be complex.

Thank you for pointing this out! It is indeed confusing.

In the CFD simulations, we are computing the net force in the swimming x-direction direction by integrating using the definition of force density in relation to the stress tensor. There is no ambiguity here.

In the VS simulations, however, we are computing the net force in the swimming x-direction by integrating the pressure jump across a plate of zero thickness. There is no viscous drag. Viscous drag is added by hand, so-to-speak. This method for adding viscous drag in the context of the VS model is not new, it has been used before in the literature as explained in the SI section “Vortex sheet (VS) model” (pages 30 and 31).

.

(3) The parameter taudiss in the VS simulations takes on unusual values such as 2.45T, making it seem like this value is somehow very special, and perhaps 2.44 or 2.46 would lead to significantly different results. If the value is special, the authors should discuss and assess it. Otherwise, I recommend picking a round value, like 2 or 3, which would avoid distraction.

Response: The choice of dissipation time is both to model viscous effect and reduce computational complexity. Introducing it is indeed introduces forcing to the simulation. Round value, like 2 or 3, is equal to an integer multiple of the flapping period, which is normalized to T = 1, Therefore, an integer value of τdiss  would cause forcing at the resonant frequency and lead to computational blow up. To avoid this effect, a parameter choice of τdiss  = 2.45, 2.44 or 2.46 would be fine and would lead to small perturbation to the overall simulation, compared to no dissipation at all. This effect is studied in detail in the following published work from our group:

Huang, Y., Ristroph, L., Luhar, M., & Kanso, E. (2018). Bistability in the rotational motion of rigid and flexible flyers. Journal of Fluid Mechanics, 849, 1043-1067. DOI: https://doi.org/10.1017/jfm.2018.446

(4) Some of the COT plots/information were difficult to interpret because the correspondence of beneficial with the mathematical sign was changing. For example, DeltaCOT as introduced on p. 5 is such that negative indicates bad energetics as compared to a solo swimmer. But elsewhere, lower or more negative COT is good in terms of savings. Given the many plots, large amounts of data, and many quantities being assessed, the paper needs a highly uniform presentation to aid the reader.

Thank you for pointing this out! We updated Figures 3,6 as suggested.

(5) I didn't understand the value of the "flow agreement parameter," and I didn't understand the authors' interpretation of its significance. Firstly, it would help if this and all other quantities were given explicit definitions as complete equations (including normalization). As I understand it, the quantity indicates the match of the flow velocity at some location with the flapping velocity of a "ghost swimmer" at that location. This does not seem to be exactly relevant to the equilibrium locations. In particular, if the match were perfect, then the swimmer would generate no relative flow and thus no thrust, meaning such a location could not be an equilibrium. So, some degree of mismatch seems necessary. I believe such a mismatch is indeed present, but the plots such as those in Figure 4 may disguise the effect. The color bar is saturated to the point of essentially being three tones (blue, white, red), so we cannot see that the observed equilibria are likely between the max and min values of this parameter.

Thank you for pointing this out! You are correct in your understanding of the flow agreement parameter, but not in your interpretation.

Basically, “if the match were perfect, then the swimmer would generate no relative flow and thus no thrust,” means that “such a location could not be is an equilibrium.” Let me elaborate. An equilibrium is one at which the net thrust force is zero. The equilibrium is stable if the slope of the thrust force is negative. Ideally, this is what maximizing the flow agreement parameter would produce.

For example, consider an ideal fluid where the flow velocity is form u(t)=2πfAucos(2πft) in vertical direction. Consider a “ghost swimmer” heaving at a velocity u(t)=2πfAucos(2πft) . Under this scenario, flow agreement and thrust parameters are

V=AuAvcosϕ,T=Au2Av2+2AvAucosϕ

Let’s now consider a balance of forces on the “ghost swimmer.” The ghost swimmer is in relative equilibrium if and only if:

D+T=0,cosϕ=Au2+Av2D2AvAuϕ=±cos1Au2+Av2D2AvAu

It gives us

V=Au2+Av2D2Av2

We then consider stability at this equilibrium by calculating the derivative of thrust parameter over phase

Tϕ=2AvAusinϕ

The corresponding values at equilibria are

Tϕ=2AvAu1Au2+Av2D22AvAu

Thus, when taking the positive ϕ,Tϕ<0 which means the equilibria is a stable fixed point. We included this analysis in a new section in the SI page 32.

(6) More generally, and related to the above, I am favorable towards the authors' attempts to find approximate flow metrics that could be used to predict the equilibrium positions and their stability, but I think the reasoning needs to be more solid. It seems the authors are seeking a parameter that can indicate equilibrium and another that can indicate stability. Can they clearly lay out the motivation behind any proposed metrics, and clearly present complete equations for their definitions? Further, is there a related power metric that can be appropriately defined and which proves to be useful?

Thank you – these are excellent suggestions. Indeed, we needed to better explain the motivation and equations. Perhaps the main idea for these metrics can be best understood when explained in the context of the simpler particle model, which we now do in the SI and explain the main text.

(7) Why do the authors not carry out CFD simulations on the larger groups? Some explanations should be given, or some corresponding CFD simulations should be carried out. It would be interesting if CFD simulations were done and included, especially for the in-line case of many swimmers. This is because the results seem to be quite nuanced and dependent on many-body effects beyond nearest-neighbor interactions. It would certainly be comforting to see something similar happen in CFD.

We are using a open-source version of the Immersed Boundary Method that is not specifically optimized for many interacting swimmers. Therefore, the computational cost of performing CFD simulations for more swimmers is high. Therefore, we used the CFD simulations sporadically with fewer simmers (2 or 3) and we performed systematic simulations in the context of the VS model.

For the same Reynolds number in Figure 1, we simulated three and four swimmers in CFD: three swimmers forms a stable formation, four swimmers don’t, consistent with the VS model, with the forth swimmer colliding with the third one. Results are included in the SI figure 8 of the main text.

(8) Related to the above, the authors should discuss seemingly significant differences in their results for long in-line formations as compared to the CFD work of Peng et al. [48]. That work showed apparently stable groups for numbers of swimmers quite larger than that studied here. Why such a qualitatively different result, and how should we interpret these differences regarding the more general issue of the stability of tandem groups?

Thank you for bringing up this important comparison. Peng et al. [48] (Hydrodynamic schooling of multiple self-propelled flapping plates) studied inline configuration of flapping airfoils at Reynolds number = 200. There are several differences between their work and ours. The most important one is that they used a flexible plate, which makes the swimmer more adaptive to changes in the flow field, e.g. changes in tailbeat amplitude and changes in phase along its body and diverts some of the hydrodynamic energy to elastic energy. We edited the main text page 10 at the end of section “Critical size of inline formations beyond which cohesion is lost” to explain this distinction.

(9) The authors seem to have all the tools needed to address the general question about how dynamically stable configurations relate to those that are energetically optimal. Are stable solutions optimal, or not? This would seem to have very important implications for animal groups, and the work addresses closely related topics but seems to miss the opportunity to give a definitive answer to this big question.

Indeed, that is exactly the point – in pairwise formations, stable configurations are also energetically optimal! In larger groups, there is no unique stable configuration – each stable configuration is associated with a different degree of energy savings. Interestingly, when exploring various equilibrium configurations in a school of four, we found the diamond formation of D. Weihs, Nature, 1972 to be both stable and most optimal among the configurations we tested. However, claiming this as a global optimum may be misleading – our standpoint is that fish schools are always dynamic and that there are opportunities for energy savings in more than one stable configuration.

We added a section in new text “Mapping emergent spatial patterns to energetic benefits”, and added a new figure in the maintext (Fig. 10) and a new figure in the SI (Fig. S. 8)

(10) Time-delay particle model: This model seems to construct a simplified wake flow. But does the constructed flow satisfy basic properties that we demand of any flow, such as being divergence-free? If not, then the formulation may be troublesome.

The simplified wake flow captures the hydrodynamic trail left by the swimmer in a very simplified manner. In the limit of small amplitude, it should be consistent with the inviscid vortex sheet shed of T. Wu’s waving swimmer model (Wu TY. 1961).

The model was compared to experiments and used in several recent publications from the Courant Institute (Newbolt et al. 2019, 2022, 2024).

Citations:

Wu, T. Y. T. (1961). Swimming of a waving plate. Journal of Fluid Mechanics, 10(3), 321-344. DOI: https://doi.org/10.1017/S0022112061000949

Newbolt, J. W., Lewis, N., Bleu, M., Wu, J., Mavroyiakoumou, C., Ramananarivo, S., & Ristroph, L. (2024). Flow interactions lead to self-organized flight formations disrupted by self-amplifying waves. Nature Communications, 15(1), 3462. DOI: https://doi.org/10.1038/s41467-024-47525-9

Newbolt, J. W., Zhang, J., & Ristroph, L. (2022). Lateral flow interactions enhance speed and stabilize formations of flapping swimmers. Physical Review Fluids, 7(6), L061101. DOI: https://doi.org/10.1103/PhysRevFluids.7.L061101

Newbolt, J. W., Zhang, J., & Ristroph, L. (2019). Flow interactions between uncoordinated flapping swimmers give rise to group cohesion. Proceedings of the National Academy of Sciences, 116(7), 2419-2424. DOI: https://doi.org/10.1073/pnas.1816098116

Recommendations for the authors:

Reviewer #1 (Recommendations For The Authors):

Congratulations on such a comprehensive and well-thought-out study; I truly enjoyed reading it and have only a couple of suggestions that I believe will help further strengthen the paper. I am including a bunch of references here that are very familiar to me without the expectation of you to include them all, just to point at areas that I feel you might consider useful.

We thank the referee again for their careful read of the manuscript and for their constructive feedback. We appreciate it.

First, I believe that some more rationale is needed to justify the chosen modeling framework. I am fully aware of how difficult is to run these simulations, but I see some critical assumptions that need to be at least spelled out for the reader to appreciate the limitations of the study: (1) Constraining the cross-stream coordinate (a stability analysis should include perturbations on the cross-stream coordinate as well, see, for example, https://doi.org/10.1017/flo.2023.25 -- I know this is much simpler as it discards any vortex shedding) and (2) Assuming equal frequency and amplitude (there are studies showing variation of tail beat frequency in animals depending on their position in the school, see, for example, https://doi.org/10.1007/s00265-014-1834-4).

Thank you for these suggestions. These are indeed important and interesting points to discuss in the manuscript. See response above regarding point 1. Regarding point 2, this is of course important and will be pursued in future extensions of this work. We edited the intro and discussion of the main text to explain this.

In the paper “Stability of schooling patterns of a fish pair swimming against a flow”, The authors considered a pair of swimmers swimming in a channel. They analyzed stability of the system and find multiple equilibria of the system, including inline and staggered formation, and a special formation of perpendicular to the wall. Studying fish school in confined domain and analyzing their stability is very interesting. We added citation to this paper in the discussion section at the end of page 10.

In the paper “Fish swimming in schools save energy regardless of their spatial position”, the authors measured the reduction in power of fish by measuring tail beat frequency and oxygen consumption and compared them to measurements in solitary fish. They found that in a school of fish, individuals always save power comparing to swimming alone. However, there is one important caveat in this study: they considered a larger school of fish and expressed the results in terms of pairwise configurations (see schematics we draw below). This is misleading because it may suggest that formations with only two fish provide benefits each other, while in fact, the data is obtained from a larger school with many neighbors. They only consider a fish’s relationship to its nearest neighbor. But in a large school, other neighbors will also have influence on their energy consumption. In the schematics below, we emphasized on several focal fishes, marking them as red, green, and blue. We also marked their nearest neighbors using the same color, but lighter. The nearest neighbors are what the authors are considering to show its neighbor relationship. For example, a problematic one is the red fish, for which its nearest neighbor is behind it, but indeed, its power saving may come from the other neighbors, which are around or ahead it.

Author response image 3.

Author response image 3.

Second, I would like to see more biology context with respect to limitations that are inherent to a purely mechanical model, including, neglecting vision that we know plays a synergistic role in determining schooling patterns. For example, a recent study https://doi.org/10.1016/j.beproc.2022.104767 has presented experiments on fish swimming in the dark and in bright conditions, showing that it is unlikely that hydrodynamics alone could explain typically observed swimming patterns in the literature.

Thank you for this suggestion and for sharing us with the paper “Collective response of fish to combined manipulations of illumination and flow”. This is a great study, and we are sorry to have missed it.

In this paper, the authors found that when having illumination, fish swim more cohesively, which is in consistent with another paper we already cited “The sensory basis of schooling by intermittent swimming in the rummy-nose tetra (Hemigrammus rhodostomus)”. Another important conclusion in this paper is that when having brighter illumination and with flow, fish school spend more time side by side. This connects well to the conclusion in another paper we cited “Simple phalanx pattern leads to energy saving in cohesive fish schooling,” where at lower flow speed in a water channel, fish tended to form a dynamic school while at higher flow speed, they organized in a side-by-side/ phalanx configuration. This conclusion is consistent with our study that in side-by-side formation, fish share power saving.

Importantly, it is well known that both vision and flow sensing play important roles in fish schooling. This study aimed to merely explore what is possible through passive hydrodynamic interactions, without visual and flow sensing and response. We clarify this in the revised version of the manuscript.

Third, I am not too convinced about the flow agreement metric, which only accounts for linear interactions between the foils. More sophisticated approaches could be utilized as the one proposed here https://doi.org/101.1017/jfm.2018.369, based on a truly model-agnostic view of the interaction - therein, the authors show non-reciprocal (in strength and time-scale) coupling between two in-line flapping foils using information theory. I also would like to mention this older paper https://doi.org/10.1098/rsif.2012.0084, where an equivalent argument about the positioning of a trailing fish with respect to a leading robotic fish is made from experimental observations.

Thank you for these remarks and for sharing these two interesting papers.

The flow agreement metric is not specific to two fish, as we show in Fig. 6 of the manuscript. We edited the manuscript and SI to better explain the motivation and implementation of the flow agreement parameter. We edited the main text, see revisions on page 7, and added a new section call “diagnostic tools.”.

In the paper “An information-theoretic approach to study fluid–structure interactions”, the authors calculate the transfer entropy between two oscillating airfoils when they are hydrodynamically coupled. This is an interesting study! We will apply this approach to analyzing larger schools in the future. We cited this paper in the introduction.

In the paper “Fish and robots swimming together: attraction towards the robot demands biomimetic locomotion”, the authors found that fish will swim behind an artificial fish robot, especially when the fish robot is beating its tail instead of static. At specific conditions, the fish hold station behind the robot, which may be due to the hydrodynamic advantage obtained by swimming in the robot’s wake. DPIV resolved the wake behind a static/ beating fish robot, but did not visualize the flow field when the fish is there. This study is similar to a paper we already cited “In-line swimming dynamics revealed by fish interacting with a robotic mechanism”, in which, they considered fish-foil interaction. In the revised manuscript, we cite both papers.

For the reviewer’s comments about flow agreement only accounts for linear interactions between the foils, we want to explain more to clarify this. The flow agreement parameter is a nonlinear metric, which considered the interaction between a virtual swimmer and an arbitrary unsteady flow field. Although the metric is a linear function of swimmer’s speed, it is indeed a nonlinear function of spacing and phase, which are the quantities we care about. Moreover, the flow field can by generated by either experiment or CFD simulation, and behind one or more swimmers. It is true that it is a one way coupled system since the virtual swimmer does not perturb the flow field.

Again, this is great work and I hope these suggestions are of help.

Thank you again! We are delighted to receive such a positive and constructive feedback.

Reviewer #2 (Recommendations For The Authors):

(1) About Figure 1: Panel C should be made to match between CFD and VS with regard to the swimmer positions. Also, if the general goal of the figure is to compare CFD and VS, then how about showing a difference map of the velocity fields as a third column of panels across A-D?

Thank you for pointing this out. Figure 1 C is updated accordingly.

The general goal is to show the CFD and VS simulations produce qualitatively similar results. Some quantities are not the same across models, e.g. the swimming speed of swimmers are different, but the scaled distance is the same.

(2) Figure 3: In A, it would be nice to keep the y-axis the same across all plots, which would aid quick visual comparison. In B, the legend labels for CFD and VS should be filled in with color so that the reader can more easily connect to the markers in the plot.

Thank you for pointing this out, we’ve updated figure 3 and 6.

(3) Figures 4, 9, and Supplementary Figures too: As mentioned previously, the agreement parameter plots are saturated in the color map, possibly obscuring more detailed information.

Thank you for pointing this out. The goal is to show that there is a large region with positive flow agreement parameter.

We picked up the flow agreement behind a single swimmer in VS simulation (Fig.4B) and added the counter lines to it (represents 0.25 and 0.5). Not many details are hidden by the saturated colormap.

Author response image 4.

Author response image 4.

We also updated Fig 4 and Fig 9 accordingly.

(4) Figure 6: Is this CFD or VS? Why show one or the other and not both? In B, it seems that there are only savings available and no energetically costly positions. This seems odd. In C, it seems the absolute value on dF/dd is suppressing some important information about stability - the sign of this seems important. In E, the color bar seems to be reflected from what is standard, i.e. 0 on the left and 100 on the right, as in F.

Thank you for asking. Fig. 6 is based only on VS simulations. There are hundreds of simulations in this figure, we are not running CFD simulations to save computational effort. Representative CFD simulations are shown in Figure 1,2,3, for comparison. We added a sentence in the figure caption for clarification.

In C, since Fd is always negative for emergent formations (only stable equilibria can appear during forward time simulation), we are showing its absolute value for comparison.

In E, we are flipping this because larger flow agreement parameter corresponds to more power saving, in the other word, negative changes in COT.

(5) Fig. 8: For cases such as in D that have >100% power savings, does this mean that the swimmer has work done by the flow? How to interpret this physically for a flapping foil and biologically for a fish?

Yes, it means the hydrofoil/fish gets a free ride, and even able to harvest energy from the incoming flow. Actually, similar phenomenon has been reported in the biology and engineering literature. For example, Liao et al. 2003, Beal et al. 2006 found that live or dead fish can harvest energy from incoming vortical flow by modulating their body curvature.

In engineering, Chen et al. 2018, Ribeiro et al. 2021 have found that the following airfoil in a tandem/ inline formation can harvest energy from the wake of leading swimmer in both simulation and experiemnts.

Citations:

Liao, J. C., Beal, D. N., Lauder, G. V., & Triantafyllou, M. S. (2003). Fish exploiting vortices decrease muscle activity. Science, 302(5650), 1566-1569. DOI: https://doi.org/10.1126/science.1088295

Beal, D. N., Hover, F. S., Triantafyllou, M. S., Liao, J. C., & Lauder, G. V. (2006). Passive propulsion in vortex wakes. Journal of fluid mechanics, 549, 385-402. DOI: https://doi.org/10.1017/S0022112005007925

Chen, Y., Nan, J., & Wu, J. (2018). Wake effect on a semi-active flapping foil based energy harvester by a rotating foil. Computers & Fluids, 160, 51-63. DOI: https://doi.org/10.1016/j.compfluid.2017.10.024

Ribeiro, B. L. R., Su, Y., Guillaumin, Q., Breuer, K. S., & Franck, J. A. (2021). Wake-foil interactions and energy harvesting efficiency in tandem oscillating foils. Physical Review Fluids, 6(7), 074703. DOI: https://doi.org/10.1103/PhysRevFluids.6.074703

Associated Data

    This section collects any data citations, data availability statements, or supplementary materials included in this article.

    Data Citations

    1. Heydari S, Hang H, Kanso E. 2024. Mapping Spatial Patterns to Energetic Benefits in Groups of Flow-coupled Swimmers. Dryad Digital Repository. [DOI] [PMC free article] [PubMed]

    Supplementary Materials

    MDAR checklist

    Data Availability Statement

    All data is included in the main manuscript and figure supplements. Time evolution data of swimmers obtained from CFD and vortex-sheet simulations are available at https://doi.org/10.5061/dryad.hqbzkh1s5.

    The following previously published dataset was used:

    Heydari S, Hang H, Kanso E. 2024. Mapping Spatial Patterns to Energetic Benefits in Groups of Flow-coupled Swimmers. Dryad Digital Repository.


    Articles from eLife are provided here courtesy of eLife Sciences Publications, Ltd

    RESOURCES