1. Introduction
Millions of years of natural selection have endowed fish with remarkable abilities to swim efficiently compared with underwater man-made propulsors (Sfakiotakis, Lane & Davies Reference Sfakiotakis, Lane and Davies1999; Lauder Reference Lauder2015). Several fish use body and caudal fin (BCF) deformations for propulsion. Details of BCF deformations have been used to classify fish swimming modes (Sfakiotakis et al. Reference Sfakiotakis, Lane and Davies1999; Shadwick & Gemballa Reference Shadwick and Gemballa2005; Low & Chong Reference Low and Chong2010; Smits Reference Smits2019). Invariably, in most BCF swimming modes, anterior to posterior bending of the fish body seems to play an important role in swimming efficiency, and it is often linked to increased flexibility towards the fish tail or caudal peduncle (Combes & Daniel Reference Combes and Daniel2003; Tytell & Lauder Reference Tytell and Lauder2004; Tytell et al. Reference Tytell, Hsu, Williams, Cohen and Fauci2010; Gemmell et al. Reference Gemmell, Fogerson, Costello, Morgan, Dabiri and Colin2016; Tytell et al. Reference Tytell, Leftwich, Hsu, Griffith, Cohen, Smits, Hamlet and Fauci2016). However, the underlying bending mechanisms and optimal bending parameters remain opaque.
In an effort to document the bending rules of fluid-based propulsors, both aerial and aquatic, Lucas et al. (Reference Lucas, Johnson, Beaulieu, Cathcart, Tirrell, Colin, Gemmell, Dabiri and Costello2014) collected morphometric data of the flexion parameters across length scales and animal taxa. They identified two parameters to characterize the bending behaviour: flexion ratio $l/L$ between the flexion distance $l$ and total length $L$ of the propulsor and maximum flexion angle $A$. They found that flexion ratio and maximum flexion angle of all surveyed animals, including fish, clustered in a limited design space: bending occurs at about $70\,\%$ of body length at maximum flexion angle of about $30^\circ$, as shown in figure 1 for swimming fish based on the data collected in Lucas et al. (Reference Lucas, Johnson, Beaulieu, Cathcart, Tirrell, Colin, Gemmell, Dabiri and Costello2014). These fish vary in length, swimming speed and tailbeat frequency, and thus span a wide range of Reynolds numbers ($Re \sim 10^3$–$10^7$), but exhibit similar bending parameters. It is unclear the extent to which this anterior-to-posterior bending is active or whether it follows passively due to the interaction of a flexible posterior with the fluid motion. Either way, these findings raise the question of whether hydrodynamics could have provided a selective force for driving this convergent bending design.
To address these questions, we analyse the influence of bending on the swimming speed and efficiency of a simplified fish model that consists of anterior and posterior sections connected via a rotational joint at the flexion point (see figure 1a). The fish anterior undergoes periodic planar pitching while the posterior either (i) moves in synchrony with the anterior as if the two parts were a single rigid body, (ii) bends actively at distinct amplitude and phase relative to the fish anterior or (iii) bends passively due to interactions with the flow generated by the fish anterior. We find that swimming with passive bending could be more efficient than rigid flapping but at the cost of diminished swimming speed. Active bending provides more possibilities to alter the swimming performance through not only the flexion ratio and maximum flexion angle reported in Lucas et al. (Reference Lucas, Johnson, Beaulieu, Cathcart, Tirrell, Colin, Gemmell, Dabiri and Costello2014) but also the phase difference $\phi$ between the flapping motions of the anterior and posterior parts. Importantly, we find that antiphase anterior-to-posterior flexion can simultaneously enhance swimming speed and efficiency in a region of the design parameter space $(l/L, A)$. We analyse in depth the hydrodynamic mechanisms underlying these improvements in swimming performance. Despite the major simplifications in our hydrodynamic model detailed later, we find that flexion ratios and angles that lead to significant improvements in speed and efficiency in our model overlap with the observations of real fish reported in Lucas et al. (Reference Lucas, Johnson, Beaulieu, Cathcart, Tirrell, Colin, Gemmell, Dabiri and Costello2014).
Details of the flow field around swimming fish have received a great deal of attention. Several studies used particle image velocimetry to measure the flow field around live fish and analyse the interplay between body deformations and thrust production (see e.g. Müller et al. Reference Müller, Van Den Heuvel, Stamhuis and Videler1997; Müller, Stamuis & Videler Reference Müller, Stamuis and Videler2002; Liao et al. Reference Liao, Beal, Lauder and Triantafyllou2003; Tytell & Lauder Reference Tytell and Lauder2004; Gemmell et al. Reference Gemmell, Fogerson, Costello, Morgan, Dabiri and Colin2016). In silico models of various degrees of fidelity to fish morphology and kinematics have also been used to examine the offsets of body deformations on swimming speed and efficiency (Eldredge Reference Eldredge2006; Kern & Koumoutsakos Reference Kern and Koumoutsakos2006; Tytell et al. Reference Tytell, Hsu, Williams, Cohen and Fauci2010; Eloy Reference Eloy2013). Importantly, several experimental and numerical studies have shown that plates and foils undergoing pitching or heaving motions provide good approximations of the fluid–structure interactions in swimming fish (Blondeaux et al. Reference Blondeaux, Fornarelli, Guglielmini, Triantafyllou and Verzicco2005; Lauder et al. Reference Lauder, Lim, Shelton, Witt, Anderson and Tangorra2011; Wen & Lauder Reference Wen and Lauder2013; Menon & Mittal Reference Menon and Mittal2019),including the reverse von Kármán vortex wake left behind swimming fish and flapping foils (Taneda Reference Taneda1965; Triantafyllou & Triantafyllou Reference Triantafyllou and Triantafyllou1993).
A variety of fluid–structure interaction models have been proposed to analyse the effect of body flexibility on bending in flows (see e.g. Shelley & Zhang (Reference Shelley and Zhang2011) and references therein). Here, we present a focused literature review. Heathcote & Gursul (Reference Heathcote and Gursul2007) conducted experiments on a flapper with a rigid leading edge and flexible tail fixed in a water channel and found that flexibility can enhance both efficiency and thrust production. Eldredge (Reference Eldredge2008) and Eldredge, Toomey & Medina (Reference Eldredge, Toomey and Medina2010) numerically simulated the flapping motion of articulated rigid links and found that joint flexibility can reduce the power required for flapping. Alben (Reference Alben2008) used a filament of uniform flexibility to model the tail of swimming fish in the context of the vortex sheet method and predicted enhancement in efficiency rather than thrust when choosing parameters (dimensionless rigidity and reduced pitching frequency) that are consistent with biological data. Quinn, Lauder & Smits (Reference Quinn, Lauder and Smits2015) conducted a large set of experiments on two-dimensional pitching and heaving flexible plates at various stiffness values, kinematic parameters and incoming flow speeds. By combining grid search and gradient-based optimization methods, they found that optimizing the pitching angle with heaving can almost double the propulsor efficiency compared with heave-only motions. Hoover et al. (Reference Hoover, Cortez, Tytell and Fauci2018) conducted simulations combining three-dimensional Navier–Stokes equation with one-dimensional Euler–Bernoulli beam theory to analyse the motion of heaving flexible plates, and identified local peaks in swimming speed over a parameter space consisting of the beam material property and heaving frequency. Also using three-dimensional simulations of pitching plates of uniform flexibility, Dai et al. (Reference Dai, Luo, de Sousa and Doyle2012) found that the phase delay $\phi$ between the leading and trailing edge of the plate decreases with increasing stiffness $\kappa$. For large stiffness, the plate moves in no-neck mode (in phase in our notation), in which thrust production is close to that of a rigid pitching plate with similar trailing-edge displacement.
The effects of uniform flexibility on swimming speed, thrust generation, swimming energetics and stability have been analysed in numerous other experimental and computational studies (see e.g. Shoele & Mittal Reference Shoele and Mittal2016; Feilich & Lauder Reference Feilich and Lauder2015; Michelin & Llewellyn Smith Reference Michelin and Llewellyn Smith2009; Combes & Daniel Reference Combes and Daniel2001; Hua, Zhu & Lu Reference Hua, Zhu and Lu2013; Wang Reference Wang2020; Ryu et al. Reference Ryu, Park, Huang and Sung2019). Specifically, Liu & Bose (Reference Liu and Bose1997), Heathcote, Wang & Gursul (Reference Heathcote, Wang and Gursul2008) and Tangorra et al. (Reference Tangorra, Lauder, Hunter, Mittal, Madden and Bozkurttas2010) have indicated that flexibility could lessen or prevent thrust production. Flexible propulsors have also been used in man-made biomimetic underwater autonomous vehicles (see e.g. Fujiwara & Yamaguchi Reference Fujiwara and Yamaguchi2017; Katzschmann et al. Reference Katzschmann, DelPreto, MacCurdy and Rus2018; Gibouin et al. Reference Gibouin, Raufaste, Bouret and Argentina2018; Zhu et al. Reference Zhu, White, Wainwright, Di Santo, Lauder and Bart-Smith2019; White, Lauder & Bart-Smith Reference White, Lauder and Bart-Smith2021). Most notable is the Tunabot design of Zhu et al. (Reference Zhu, White, Wainwright, Di Santo, Lauder and Bart-Smith2019) and White et al. (Reference White, Lauder and Bart-Smith2021) which mimics the shape and bending kinematics of yellowfin tuna (Thunnus albacares) and Atlantic mackerel (Scomber scombrus).
While most studies have focused on uniformly flexible bodies, Combes & Daniel (Reference Combes and Daniel2003) and Lucas et al. (Reference Lucas, Johnson, Beaulieu, Cathcart, Tirrell, Colin, Gemmell, Dabiri and Costello2014) noted that the stiffness along the fish body is not uniform, but decreases towards the tail, and that the propulsor becomes highly flexible at the flexion point of the body (see figure 1a). To explore the effects of non-uniform flexibility on efficiency and thrust production, Lucas et al. (Reference Lucas, Thornycroft, Gemmell, Colin, Costello and Lauder2015) considered flexible plates of inhomogeneous stiffness undergoing heaving and pitching motions in a water tunnel and found that non-uniform stiffness can improve thrust production, and that in order to achieve optimal propulsion, the morphologic factor (flexion ratio) and kinematic factor (motion type and motion parameters) should be considered simultaneously. Vincent, Liu & Kanso (Reference Vincent, Liu and Kanso2020a) and Vincent et al. (Reference Vincent, Zheng, Costello and Kanso2020b) analysed the effect of non-uniform flexibility on flight performance in the context of a tumbling wing model, and found that wing tip flexibility that follows the empirical rules reported in Lucas et al. (Reference Lucas, Johnson, Beaulieu, Cathcart, Tirrell, Colin, Gemmell, Dabiri and Costello2014) leads to improved flight performance.
In this paper, we use a simplified two-link fish model to analyse the influence of active and passive bending on the swimming speed and efficiency. Two-link models are commonly used to study the effect of flexibility on the performance of flapping bodies (Eldredge et al. Reference Eldredge, Toomey and Medina2010; Wan, Dong & Huang Reference Wan, Dong and Huang2012; Li, Dong & Liu Reference Li, Dong and Liu2015). We solve for fluid–structure interactions in the context of the vortex sheet method as described in § 2. This method is best suited for capturing hydrodynamic effects at intermediate Reynolds numbers ($Re \sim 10^3$–$10^5$), and has been used extensively to analyse problems of fluid–structure interactions in this $Re$ number regime, including ring formation at the edge of a circular tube (Nitsche & Krasny Reference Nitsche and Krasny1994) and wakes of oscillating plates (Jones Reference Jones2003; Sheng et al. Reference Sheng, Ysasi, Kolomenskiy, Kanso, Nitsche and Schneider2012), falling cards (Jones & Shelley Reference Jones and Shelley2005), flapping flexible flags (Alben Reference Alben2008, Reference Alben2009), swimming plates (Wu Reference Wu1971), hovering flyers (Huang, Nitsche & Kanso Reference Huang, Nitsche and Kanso2016; Huang et al. Reference Huang, Ristroph, Luhar and Kanso2018) and schooling of swimming plates (Heydari & Kanso Reference Heydari and Kanso2021) Here, we use the implementation of Nitsche & Krasny (Reference Nitsche and Krasny1994). In § 3, we report the effects of both active and passive bending on the swimming performance of sinusoidally pitching swimmers compared with rigid flapping. In § 4, we discuss these findings in the context of existing work and highlight the implications of our results for the design of underwater autonomous vehicles.
2. Problem formulation
We model the flexible swimmer as a planar two-link body of total length $L$, negligible thickness $e\ll L$ and total mass per unit depth $m=\rho eL$, where $\rho$ is both the swimmer and fluid density, assuming a neutrally buoyant fish. The flexion point indicates where the anterior link (of length $l$) is joined to the posterior link (see figure 1a). The anterior link undergoes sinusoidal pitching motion $\theta _a(t) = a\sin (2{\rm \pi} f t)$, where $\theta _a$ is the angle relative to the swimming direction, taken to be parallel to the $x$ axis. Here, $a$ is the flapping amplitude, $f={2 {\rm \pi}}/T$ the flapping frequency and $T$ the flapping period. When the posterior is connected rigidly to the anterior link at zero flexion, the posterior motion $\theta _p(t)$ is equal to $\theta _a(t)$ and the flexion angle $\alpha = \theta _p - \theta _a$ is identically zero for all time. The two links form a single rigid plate (figure 2a) whose swimming motion due to sinusoidal pitching has been extensively analysed (Jones Reference Jones2003; Sheng et al. Reference Sheng, Ysasi, Kolomenskiy, Kanso, Nitsche and Schneider2012; Moored & Quinn Reference Moored and Quinn2019; Labasse, Ehrenstein & Meliga Reference Labasse, Ehrenstein and Meliga2020; Heydari & Kanso Reference Heydari and Kanso2021). To explore the effects of body bending on swimming, we consider two cases: (i) active bending where the flexion angle $\alpha (t)$ is controlled by the swimmer and (ii) passive bending where the flexion angle $\alpha (t)$ is dictated by the physics of fluid–structure interactions.
When the two-link swimmer bends actively, we allow the anterior link to have a phase advantage of magnitude $\phi$ relative to the flapping motion of the posterior link. At $\phi = 0$, both anterior and posterior links flap in phase and the swimmer bends in the direction of flapping (figure 2b); for $\phi = {\rm \pi}$, they flap antiphase resulting in bending in the opposite direction to the anterior pitching motion (figure 2c). The flexion angle $\alpha (t)$ follows a Jacobi elliptic sine function $\alpha (t)=A \operatorname {sn}(4 K f t, M)$, where $A$ is the maximum flexion angle and $M$ is the elliptic modulus that controls the shape of the elliptic sine function. As $M \to 0$, the elliptic sine function tends to a sinusoidal function and as $M \to 1$, it approaches a square wave shape. The parameter $K$ is introduced to ensure that the flapping frequency of the posterior link is the same as that of the anterior link; namely, $K = F({\rm \pi} / 2, M)$, where $F({\rm \pi} /2,M)$ is the incomplete elliptic integral of the first kind. In this paper, without other specification, we fix $M=0.9$ and explore the effects of the anterior-to-posterior phase difference $\phi$, flexion ratio $l/L$ and maximum flexion angle $A$ on the swimming performance.
We write the equations governing the self-propelled motion of the two-link swimmer in non-dimensional form. To this end, we scale all parameter values using $L/2$ as the characteristic length scale, $1/f$ as the characteristic time scale and $\rho (L/2)^2$ as the characteristic mass per unit depth. Accordingly, velocities are scaled by $Lf/2$, forces by $\rho f^2 (L/2)^3$, moments by $\rho f^2 (L/2)^4$ and power by $\rho f^3 (L/2)^4$. The equation of motion governing the free swimming $x(t)$ is given by Newton's second law:
Here, $F_x$ and $D_x$ denote the $x$ components, in the swimming direction, of the hydrodynamic pressure force normal to the swimmer and the drag force due to skin friction tangential to the swimmer. By definition, $F_x$ and $D_x$ can be either positive or negative, and thus can propel the swimmer forward or resist its motion. However, for notational convenience, we refer to $F_x$ as thrust and $D_x$ as drag, though technically they can be either; we refer to negative values of $F_x$ as negative thrust.
We calculate the hydrodynamic pressure force in the context of the inviscid vortex sheet model (Nitsche & Krasny Reference Nitsche and Krasny1994; Huang et al. Reference Huang, Nitsche and Kanso2016, Reference Huang, Ristroph, Luhar and Kanso2018; Heydari & Kanso Reference Heydari and Kanso2021), and the drag force based on a skin friction model that emulates the effect of fluid viscosity (Fang Reference Fang2016; Ramananarivo et al. Reference Ramananarivo, Fang, Oza, Zhang and Ristroph2016). A brief overview of the vortex sheet method and its numerical implementation is given in Appendices A and C. Detailed expressions of the fluid forces acting on the swimmer are given in Appendix B.
When the swimmer bends passively, the relative rotation $\alpha (t)$ of the posterior end is not prescribed a priori and follows from the physics of fluid–structure interactions. Considering that the rotational joint at the flexion point is equipped with a torsional spring of stiffness $\kappa$ and damping coefficient $c$, we write the equation governing the rotational motion of the posterior link as
where $I_{p}$ and $M_p$ are the moment of inertia and hydrodynamic moment acting on the posterior link about the flexion point and $M_{inertia}$ is an inertial moment that arises because the flexion point about which the moments are balanced is moving; see details in Appendix B.
To assess the swimming performance of the two-link swimmer, we introduce four metrics: the period-average swimming speed $U=\int _t^{t+T}{\dot x \,\textrm {d} t}$ at steady state, the thrust force $F_x$, the period-average input power $P=\int _t^{t+T}{ P(t)\,\textrm {d} t}$ required to maintain the prescribed flapping motions and the propulsion efficiency $mU^2/2PT$ defined as the kinetic energy of the swimmer divided by the input work over one flapping period; see Appendix B for more details.
3. Results
We compare the free swimming that results from flapping while undergoing active and passive bending with that of rigidly flapping. All swimmers have the same total length $L$ and undergo the same sinusoidal pitching motion about their leading edge $\theta _a = a\sin (2{\rm \pi} f t)$ with $a= 15^{\circ }$ and $f=1$, albeit exhibiting distinct bending patterns. Figure 2 shows snapshots of the wake represented by the free vortex sheet and velocity field generated by a swimmer undergoing rigid flapping (figure 2a), in-phase active bending with flexion amplitude $A = 30^{\circ }$ and flexion ratio $l/L = 0.7$ (figure 2b), antiphase active bending at the same flexion amplitude and ratio (figure 2c) and passive bending (figure 2d). All snapshots are taken at the same instant in the flapping cycle (at $0.25T$ after steady state has been reached). Compared with the rigid swimmer, in-phase flexion produces wider wakes and larger leading-edge circulation and instantaneous flow speeds, while antiphase flexion is characterized by a leaner, longer wake with weaker leading-edge circulation and lower flow speeds. The main features of the instantaneous flow during antiphase flexion, namely the leaner wake and weaker leading-edge circulation, are also observed in passive bending of the swimmer body. These flow features are important for the hydrodynamic forces exerted on the swimmer as discussed later.
We quantitatively evaluate the steady-state motion of the rigid and actively bending swimmers in figure 2(a–c). In figure 3, we report the instantaneous (solid lines) and period-average (dashed lines) values of the swimming speed, thrust force, input power and circulation. On average, rigid flapping produces the lowest swimming speed while antiphase flexion the highest. Fluctuations around the average swimming speed are smallest for the swimmer undergoing antiphase flexion. The discrepancy in average swimming speeds between the three flapping modes is surprising at first sight given that the average values of the thrust force are comparable. Note that in all cases, average thrust $F_x$ is positive. However, a closer look at the instantaneous thrust shows that the swimmer undergoing antiphase flexion hardly experiences negative thrust over its flapping cycle. In-phase flexion leads to negative thrust of high magnitudes over larger subintervals of the flapping cycle, as highlighted further in figure 4. Consequently, the required input power for in-phase flexion is largest compared to both rigid flapping and antiphase flexion. This is also true of the overall wake circulation. It is worth noting that, by Kelvin's circulation theorem, circulation around the leading edge must be equal to the overall circulation in the wake. Therefore, compared to rigid flapping, in-phase flexion increases the circulation around the leading edge of the swimmer while antiphase flexion decreases leading-edge circulation as noted qualitatively in figure 2.
The results in figure 3 indicate that the swimmer undergoing antiphase flexion achieves higher swimming speed at lower power requirement and energetic cost. To elucidate the hydrodynamic forces at play, we report in figure 4 the force hodograph defined as a plot of the lateral pressure force $F_y$ versus thrust $F_x$ acting on each swimmer. Snapshots of the distribution of hydrodynamic pressure forces along the swimmers are depicted in bottom row of figure 4, and indicate that the $x$ component of the forces on the anterior and posterior sections during antiphase flexion act opposite to each other as in a tug-of-war, leading to overall reduction in thrust values. Importantly, antiphase flexion also reduces the lateral force and negative thrust, with negative thrust experienced only over a small subinterval of the flapping period, as noted earlier. In contrast, in-phase flexion significantly increases the lateral force and negative thrust.
To explain the effect of flexion on the lateral force experienced by the swimmer, it is instructive to re-examine the flow field around the rigid and actively bending swimmers in figure 2(a–c). A large leading-edge vortex is known to generate large lift in flapping flight (see e.g. Ellington Reference Ellington1984; Dickinson, Lehmann & Sane Reference Dickinson, Lehmann and Sane1999). In swimming, larger leading-edge circulation creates larger lateral force, which explains why, compared with rigid flapping, in-phase flexion increases the lateral force acting on the swimmer while antiphase flexion decreases it. Lift is beneficial for flight but large lateral forces are detrimental to swimming speed, as noted in Drucker & Lauder (Reference Drucker and Lauder2000) for fish and recapitulated here in the context of our swimmer model.
To further analyse the difference in the swimming performance between rigid flapping and flapping with in-phase and antiphase active bending, we fix the swimmer in an oncoming uniform flow of speed $U$ and we compute the hydrodynamic drag forces in each case. Unlike in the case of the free swimmer where the period-average of the total thrust and drag forces must be zero, here the swimmer may experience a net period-average force. In figure 5, we report the drag force, input power and circulation in the wake of the fixed swimmer. Period-average values are shown in dashed lines. Compared to rigid flapping, antiphase flexion reduces instantaneous drag, power and circulation, while in-phase flexion increases all three quantities. Reduced drag implies lower thrust requirement for steady-state swimming, which provides another perspective for understanding the improved performance of antiphase flexion.
We next examine the period-average performance of actively bending swimmers as a function of anterior-to-posterior phase difference $\phi$. In figure 6(a), we consider the case of free swimming, we fix the flexion ratio $l/L=0.7$ and flexion amplitude $A=20^\circ$ and we plot the swimming speed $U$, input power $P$ and efficiency $\eta$ versus $\phi$, all scaled by the corresponding values of a rigidly flapping swimmer $U_{rigid}$, $P_{rigid}$ and $\eta _{rigid}$, respectively. We find that active bending is always beneficial in terms of enhanced speed relative to rigid flapping, albeit at an increased power requirement. Importantly, as the anterior-to-posterior bending changes from in-phase flexion to flexion at a phase lag, the scaled speed increases and the scaled power requirement decreases. Optimal performance occurs at $\phi =0.9$ and $\phi =0.8$ in terms of maximum swimming speed and minimum input power and maximum efficiency, respectively. In figure 6(b), we fix the swimmer in oncoming flow of uniform speed $U$ and compute the scaled drag force $D_x$, input power $P$ and efficiency $\eta$ as a function of $\phi$ scaled by the corresponding values of a fixed rigid flapper. We find that, as the anterior-to-posterior bending changes from in-phase flexion to flexion at a phase lag, the scaled drag decreases and so does the scaled power requirement. Specifically, analogous to the free swimmer, drag and input power are minimal at $\phi =0.8$. Taken together, these results imply that antiphase active flexion is near optimal for enhancing speed and efficiency and reducing drag force and power requirement.
To complete this analysis, we also explored the effect of the flapping parameter $M$ on the swimming performance. We found that for a fixed phase, the swimming speed and efficiency change monotonically with $M$ with maximum speed and minimum efficiency as $M\to 1$ (see figure 12 in Appendix B). That is, reversing the bending direction with a quick flicker improves speed at the cost of decreasing efficiency.
Is active bending necessary for obtaining this enhancement in swimming speed and efficiency over rigid flapping? To address this question, we examine the free swimming of a passively bending swimmer, where the posterior end flaps passively under the effect of hydrodynamic forces and moments generated by the pitching motion of the anterior section. Elastic forces due to a spring of stiffness $\kappa$ located at the flexion point are also at play. In figure 7(a), we keep all parameter values the same as those used for the actively bending swimmer, and, from top to bottom, we report the flapping motions of the anterior and posterior ends for stiffness values $\kappa =0$, $20$ and $40$. At zero stiffness, flexion introduces no restoring forces and moments. The posterior part rotates antiphase relative to the flapping motion of the anterior part, at an amplitude comparable to the anterior pitching amplitude. The associated wake, shown in figure 2(d) and represented by the free vortex sheet in the inset of figure 7(a), shares similar features to the wake obtained during antiphase active flexion. At spring stiffness $\kappa =20$, the flexion amplitude increases ($\alpha _{max} \approx 80^\circ$), and the wake also exhibits larger lateral dispersion. At large stiffness $\kappa =40$, the posterior part rotates in phase with the anterior part at the same flapping amplitude in a way reminiscent of rigid flapping, as reported in Dai et al. (Reference Dai, Luo, de Sousa and Doyle2012) for flexible pitching plates.
The relative motion of the posterior part is close to a sinusoidal function for all stiffness values $\kappa$. Therefore, for each $\kappa$ value, we fit $\alpha (t)$ by a sine function $\alpha (t)=A \sin (\omega t- \phi )$ using a standard algorithm (Moré & Sorensen Reference Moré and Sorensen1983). For all fitting, we have at least $95\,\%$ confidence and frequency $\omega \approx 2{\rm \pi}$, thus ensuring convergence of the fitting. In figure 7(b), we report the fitted flexion amplitude $A$ and phase difference $\phi$ as a function of spring stiffness $\kappa$ for three distinct flexion ratios $l/L =0.6$, $0.7$ and $0.8$. We find that for all $l/L$, as stiffness $\kappa$ increases, the phase difference ${\phi }$ decreases monotonically from ${\rm \pi}$ to $0$ implying that the posterior flapping motion changes from antiphase to in-phase motion. The maximum flexion angle ${A}$ first increases with increasing $\kappa$, then decreases to nearly zero at large stiffness implying rigid flapping of both anterior and posterior ends.
We compute the associated swimming speed and efficiency for each stiffness value $\kappa$ and we scale the results by those of a rigid swimmer (see figure 7c). Clearly, the swimmer with passive flexion never surpasses the swimming speed of a rigid swimmer. At very low stiffness ($\kappa \approx 0$), passive flexion results in a swimming speed close to that of rigid flapping while doubling the swimming efficiency. The increase in swimming efficiency at small stiffness comes purely from a decrease in power requirement compared to rigid flapping. This is in contrast to active flexion where the enhancement in swimming speed and efficiency noted in figure 6 comes at an increase in power requirement relative to rigid flapping. As $\kappa$ increases, the scaled swimming speed and propulsion efficiency decrease, indicating that restoring elastic forces are detrimental to both speed and efficiency. For large $\kappa$, the speed and efficiency converge to the same speed and efficiency as the rigid swimmer, consistent with the results of Dai et al. (Reference Dai, Luo, de Sousa and Doyle2012). We repeat this analysis for three flexion ratios $l/L=0.6$, $0.7$, $0.8$. The scaled speed seems to increase monotonically with increasing $l/L$, but the scaled efficiency seems to peak at $l/L = 0.7$ but only for a range of small $\kappa$ values. These findings imply that, unlike flapping insect wings (Ellington Reference Ellington1985; Huang, Nitsche & Kanso Reference Huang, Nitsche and Kanso2015), restoring elastic forces seem to be detrimental to swimming performance. Swimming efficiency peaks at low stiffness values when the restoring spring forces are weak and the posterior end is driven passively by the fluid forces.
Could the swimmer learn from passive flexion to improve its performance by bending actively in a way that exploits the hydrodynamic forces generated naturally during passive flexion? The results in figures 2–6 for actively bending swimmers suggest that maximum benefit occurs for near antiphase flexion, whereas the results in figure 7 show that maximum efficiency for passively bending swimmers occurs for zero stiffness $(\kappa = 0)$ for which the posterior bends antiphase. Importantly, the main features of the instantaneous flow during antiphase active flexion (figure 2c) are also observed in passive bending at zero stiffness (figure 2d). We thus posit that active bending is most beneficial when the swimmer actively beats its tail in a direction that takes advantage of the natural flows that arise during passive bending. To test this hypothesis, we define a flexion agreement parameter $Z$ that aims to relate passive and active bending. Starting from a swimmer bending passively at zero spring stiffness $\kappa =0$ (figures 2d and 7a), we assume a hypothetical posterior that is actively flapping about the flexion point of the swimmer at a relative angle $\alpha = A \sin (2{\rm \pi} t - \phi )$. We compute the fluid velocity $\boldsymbol {u}(s,t)$ induced by the passively bending swimmer along the hypothetical posterior that is bending actively. The flexion agreement parameter $Z$ is given by
where $\boldsymbol {v}(s,t) = s \dot {\alpha } \boldsymbol {n}$ is the relative velocity of the hypothetical actively flapping posterior and $s$ is a dummy variable denoting the rectilinear distance from the flexion point. Positive values of the flexion agreement parameter imply a beneficial interaction between the flow generated during passive flexion and the velocity of the hypothesized posterior during active flexion, whereas negative values indicate a detrimental one.
In figure 6(a), we set $A$ to be equal to the maximum flexion angle of the passively bending swimmer, and we vary $\phi$ from $0$ to ${\rm \pi}$. We find that the agreement parameter $Z$, normalized by its maximum value, is largest for antiphase active flexion and smallest near in-phase active flexion. This result indicates that antiphase active flexion matches best the local flow created during passive flexion, whereas in-phase active flexion acts opposite to these flows. That is, the swimmer during antiphase flexion can utilize better the flow field generated by the pitching motion of its anterior section, and thus it can achieve higher swimming speed and efficiency compared with in-phase flexion.
To emphasize the effect of the interaction between the flow field and kinematics of active flexion on swimming performance, we schematically summarize the two cases of in-phase and antiphase flexion in figure 8. During in-phase active flexion, the flow field is characterized by a strong leading-edge vortex around the anterior section of the fish and large lateral forces. Further, the posterior part bends opposite to the local flow field of a passively bending swimmer. During antiphase active flexion, the leading-edge vortex is smaller and it is followed by a counter-rotating vortex around the fish mid-section such that the posterior part is moving in synchrony with the downwash flow induced by this counter-rotating vortex. The flow field is helping the motion of the posterior end. These results indicate that active body deformations that are in agreement with local flows produced during passive deformations are more advantageous for enhancing swimming speeds and efficiencies.
Lastly, we explore the effect of maximum flexion angle $A$ and flexion ratio $l/L$ on the period-average values of the swimming speed and efficiency for both in-phase and antiphase active flexion. Specifically, we examine the range $l/L \in [0.4, 1.0]$ and $A \in [0^\circ, 60^\circ ]$ for $\phi = 0$ and $\phi = {\rm \pi}$. In figure 9, we report the period-average values normalized by the corresponding values for a rigid swimmer with pitching amplitude equal to the anterior part amplitude. We highlight in light and dark grey respectively the regions in the parameter space where the flexible swimmer outperforms and underperforms the rigid swimmer. The swimmer with in-phase flexion swims slower than the rigid swimmer for small flexion ratios ($l/L < 0.7$) and high flexion amplitudes ($A>40^\circ$), and swims faster than the rigid swimmer otherwise. This swimmer, however, is always less efficient than the rigid swimmer for reasons explained previously. In figure 9(b), for most parameter values, the antiphase swimmer outperforms the rigid swimmer in terms of swimming speed and efficiency. Note that the region with the highest swimming speed advantage lies in $l/L \in [0.6, 0.8]$ and $A \in [30^\circ, 60^\circ ]$, and the region with the highest efficiency advantage lies in $l/L \in [0.6, 0.8]$ and $A \in [25^\circ, 50^\circ ]$.
We compare the regions of highest swimming speed and efficiency obtained during antiphase flexion in figure 9(b) with the design parameters of biological fish reported in figure 1. In figure 10, we plot the flexion angle $A$ as a function of the flexion ratio $l/L$ for the fish data in figure 1 and we superimpose on this design space the regions of 200 % enhancement in speed and 300 % enhancement in efficiency from figure 9(b). As shown in figure 10, there is significant overlap between these regions of improved performance and the biological data. Indeed, all biological data lie within the region of improved efficiency.
Many of these fish are known to exhibit migratory behaviour that requires efficient swimming. Even baby clownfish are reported to migrate over long distances (Simpson et al. Reference Simpson, Harrison, Claereboudt and Planes2014). Tuna can cover 7600 km in one travelling phase (Itoh, Tsuji & Nitta Reference Itoh, Tsuji and Nitta2003) and tiger shark are capable of travelling long distances in short times (Simpfendorfer Reference Simpfendorfer2009). Our results in figure 10 are consistent with these facts: tiger shark and clownfish lie in the intersection region of improved speed and efficiency, and tuna lies in the region with highest increase in efficiency. On the other hand, butterflyfish, which are only known to migrate over short distances during spawning (Yabuta Reference Yabuta1997), and Koi, for which there is no evidence of migration, lie in the regions characterized by smaller increase in speed and efficiency.
To conclude this section, a few remarks on Reynolds numbers are in order. The fish listed in figure 10 vary in length, swimming speed, tailbeat frequency and cross-sectional geometry, whereas the model abstracts these details into a simple two-link fish and flows represented by the vortex sheet method. Specifically, the biological data span a wide range of Reynolds numbers ($Re \sim 10^3$–$10^7$). In the model, we used non-dimensional parameters with fluid density $\rho =1$, fish length $L=2$ and tailbeat frequency $f=1$, and we obtained a range of dimensionless swimming speeds $U=4.5$–$10$ by varying the bending kinematics. Here, $U=4.5$ is the speed of the rigid flapper. Because skin friction is accounted for in the model, it is possible to calculate an effective $Re = \rho L U/\mu$ in the context of our dimensionless vortex sheet model, where $\mu$ is a dimensionless viscosity. Starting from the density ($10^3$ kg m$^{-3}$) and viscosity ($10^{-3}$ Pa s) of water, and using the range of length scales and flapping frequencies from the biological fish data, we arrive at a range of non-dimensional viscosity $\mu \sim 10^{-8}$–$10^{-2}$. However, in our model, our choice of the drag coefficient $C_d = 0.664 \sqrt {\rho \mu L} = 0.04$ (see Appendix B) fixes the value of the dimensionless viscosity to $\mu \approx 10^{-3}$. Thus, $Re$ for the range of swimming speeds ($U=4.5$–$10$) obtained in the model is of the order $Re \sim 10^4$.
4. Conclusion
We analysed the swimming performance of flapping swimmers undergoing active and passive deformations. Whereas fish exhibit a variety of swimming modes (Sfakiotakis et al. Reference Sfakiotakis, Lane and Davies1999), we simplified body deformations to account for only anterior-to-posterior bending, with one degree of freedom describing the relative rotation between the two sections. We explored the effects of morphological and kinematic parameters on the swimming speed and efficiency.
We found that passive body bending, at negligible body stiffness and minor elastic forces, caused anterior-to-posterior antiphase flexion. This antiphase flexion is dictated by the flow physics and causes the swimmer's morphology to get more streamlined compared to rigid flapping with no flexion, thus creating leaner wakes that reduce drag and power requirement and increase efficiency. While drag reduction is desirable for improved efficiency, passive bending also reduced thrust production, thus diminishing swimming speed. Interestingly, restoring elastic forces seemed detrimental to both swimming speed and efficiency for a range of intermediate stiffness values. These findings are consistent with the hypothesis that for maximum efficiency, the fish tail and posterior body should flex like water, exhibiting little or no resistance to the flows generated by the flapping motion of the anterior portion of the body. This hypothesis could explain how anaesthetized fish, with no muscle activity, placed in periodic wakes generate oscillatory body deformations that allow the fish to swim upstream (Beal et al. Reference Beal, Hover, Triantafyllou, Liao and Lauder2006).
We also found that a swimmer that actively creates antiphase anterior-to-posterior bending enjoyed the same benefits of leaner wake and reduced drag as a passively bending swimmer while mitigating the reduction in thrust and swimming speed. To quantify the hydrodynamic mechanisms leading to this improved swimming performance, we introduced a flexion agreement parameter that compares the active flexion velocity of the swimmer's posterior to the local flow velocity during passive flexion. We found that during active in-phase flexion, the posterior beats opposite to the local flow that would naturally arise during passive flexion, leading to a negative flexion agreement parameter, and thus lower swimming speed and efficiency. During active antiphase flexion, the posterior flaps consistently with the local flow, leading to a positive flexion agreement parameter, and improved speed and efficiency.
These findings suggest tremendous versatility in swimming performance, even when accounting only for coarse anterior-to-posterior bending motions. They indicate that fish can readily and fluidly transition from efficient (passive bending) to fast (active bending) by actively beating their tail in agreement with the local flow generated during passive bending.
To explore the role of flow physics in the convergent bending rules of Lucas et al. (Reference Lucas, Johnson, Beaulieu, Cathcart, Tirrell, Colin, Gemmell, Dabiri and Costello2014), we examined the effect of flexion ratio and maximum flexion angle on the performance of swimmers undergoing active antiphase anterior-to-posterior bending. We found an optimal region in this design space that simultaneously enhances swimming speed and efficiency. Importantly, we found that this region has a significant overlap with the fish bending parameters reported in Lucas et al. (Reference Lucas, Johnson, Beaulieu, Cathcart, Tirrell, Colin, Gemmell, Dabiri and Costello2014); see figures 10 and 9(b). Fish are able to adjust their swimming speed by altering their tailbeat frequency (Hoover & Tytell Reference Hoover and Tytell2020); thus, fish could in principle maintain kinematic flapping patterns that optimize efficiency, while increasing their tailbeat frequency to achieve higher swimming speeds.
Taken together, our results have two major implications for understanding the role of body bending in fish swimming. They are consistent with the hypothesis that fish that actively bend their bodies in a fashion that exploits the local hydrodynamics can at once improve speed and efficiency. They also support the hypothesis that flow physics could have provided a selective force for driving the evolution of fish bending patterns.
Beyond the trade-offs between speed and efficiency explored here, our model could be generalized in future studies to examine transient swimming manoeuvres such as turning. Pollard & Tallapragada (Reference Pollard and Tallapragada2019) proposed that a passive posterior not only improves efficiency, but also improves fish manoeuvrability compared to a rigid body. Drucker & Lauder (Reference Drucker and Lauder2000) pointed out that although large lateral forces are detrimental to fish swimming speed, they can improve fish manoeuvrability. Our model predicts large lateral forces during in-phase active flexion, suggesting that this bending pattern, while not optimal for forward swimming, could be beneficial for turning motions. These considerations, as well as models of higher fidelity to the fish biomechanics and fluid environment, will be explored in future research.
Finally, our finding that active body bending and tailbeat patterns that match local flow velocities that would be produced naturally by anterior sections of the fish body could lead to improved performance and energy savings might have important implications for understanding the mechanisms driving BCF deformations in swimming (Bozkurttas et al. Reference Bozkurttas, Dong, Mittal, Tangorra, Hunter, Lauder and Madden2007; Ramakrishnan et al. Reference Ramakrishnan, Bozkurttas, Mittal and Lauder2011), schooling (Becker et al. Reference Becker, Masoud, Newbolt, Shelley and Ristroph2015; Li et al. Reference Li, Nagy, Graving, Bak-Coleman, Xie and Couzin2020; Heydari & Kanso Reference Heydari and Kanso2021), and navigating ambient unsteady flows (Liao et al. Reference Liao, Beal, Lauder and Triantafyllou2003).
Supplementary movies
Supplementary movies are available at https://doi.org/10.1017/jfm.2021.984.
Acknowledgements
E.K. would like to thank M.J. McHenry for interesting conversations.
Funding
This work was partially supported by the National Science Foundation (grant no. NSF CBET-2100209), the Army Research Office (grant nos. N00014-14-1-0421, N00014-17-1-2287, N00014-17-1-2062) and the Office of Naval Research (grant no. W911NF-16-1-0074).
Declaration of interests
The authors report no conflict of interest.
Data availability statement
The data that support the findings of this study are included in the figures and are available at https://github.com/haotianh9/Data-for-Paper-Antiphase-tail-flexion-enhances-swimming-speed-and-efficiency.
Author contributions
E.K. and J.H.C. designed the study, H.H. and S.H. performed the simulations. All authors contributed equally to analysing data and reaching conclusions, and in writing the paper.
Appendix A. Vortex sheet model
The coupled fluid–structure interaction between the two-link swimmer and the surrounding fluid is simulated using an inviscid vortex sheet model. In viscous fluids, boundary layer vorticity is formed along the sides of the swimmer, and it is swept away at the swimmer's tail to form a shear layer that rolls up into vortices. In the vortex sheet model, the swimmer is approximated by a bound vortex sheet, denoted by $l_b$, whose strength ensures that no fluid flows through the rigid plate, and the separated shear layer is approximated by a free regularized vortex sheet $l_w$ at the trailing edge of the swimmer. The total shed circulation $\varGamma$ 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 use the complex notation $z = {x} + \textrm {i} {y}$, where $\textrm {i} = \sqrt {-1}$ and $({x},{y})$ denote the components of an arbitrary point in the plane. The bound vortex sheet $l_b$ is described by its position $z_b(s,t)$ and strength $\gamma (s,t)$, where $s\in [0,L]$ is a curvilinear coordinate along the swimmer starting from its leading edge. The curvilinear coordinate $s$ is introduced since the swimmer is bending, and for the sake of further development of the method on more complex geometries. The separated sheet $l_w$ is described by its position $z_w(\varGamma,t)$, $\varGamma \in [0,\varGamma _w]$, where $\varGamma$ is the Lagrangian circulation around the portion of the separated sheet between its free end in the spiral centre and the point $z_w(\varGamma,t)$. The parameter $\varGamma$ defines the vortex sheet strength $\gamma =\textrm {d}\varGamma /\textrm {d} s$.
By linearity of the problem, the complex velocity $w(z,t) = u(z,t) - \mathrm {i}v(z,t)$ is a superposition of the contributions due to the bound and free vortex sheets:
In practice, the free sheet $l_w$ is regularized using the vortex blob method to prevent the growth of the Kelvin–Helmholtz instability. The bound sheet $l_b$ is not regularized in order to preserve the invertibility of the map between the sheet strength and the normal velocity along the sheet. The velocity components $w_b(z,t)$ and $w_w(z,t)$ induced by the bound and free vortex sheets, respectively, are given by
where $K_\delta$ is the vortex blob kernel, with regularization parameter $\delta$:
If $z$ is a point on the bound sheet for which $\delta = 0$, $w_b$ is to be computed in the principal value sense. The position of the bound vortex sheet $z_b$ is determined from the plate's flapping ($\theta _a(t), \theta _p(t)$) and swimming $x(t)$ motions. The corresponding sheet strength $\gamma (s,t)$ is determined by imposing the no penetration boundary condition on the plate, together with conservation of total circulation. The no penetration boundary condition is given by
where
and
Conservation of the fluid circulation implies that $\int _{l_b} \gamma (s,t) \,\textrm {d} s + \varGamma _w (t) = 0$.
The circulation parameter $\varGamma$ along the free vortex sheet $z_w(\varGamma,t)$ is determined by the circulation shedding rates $\dot \varGamma _w$, according to the Kutta condition, which states that the fluid velocity at the trailing edge is finite and tangent to the flyer (figure 11). The Kutta condition can be obtained from the Euler equations by enforcing that, at the trailing edge, the difference in pressure across the swimmer is zero. To this end, we integrate the balance of momentum equation for inviscid planar flow along a closed contour containing the vortex sheet and trailing edge:
where $\varGamma (s,t) = \varGamma _w+\int _{0}^{s} \gamma (s',t)\,\textrm {d} s'$, $0 \le s \le L$, is the circulation within the contour and $p_{\mp }(s,t)$ and $u_\mp (s,t)$ denote the limiting pressure and tangential slip velocities on both sides of the swimmer. Since the pressure difference across the free sheet is zero, it also vanishes at the trailing edge by continuity, which implies that
The values of $u_-$ and $u_+$ are obtained from the average tangential velocity component and from the velocity jump at the trailing edge, given by the sheet strength, evaluated at $s=L$:
Once shed, the vorticity in the free sheet moves with the flow. Thus the parameter $\varGamma$ assigned to each particle $z_w(\varGamma,t)$ is the value of $\varGamma _w$ at the instant it is shed from the trailing edge. The evolution of the free vortex sheet $z_w$ is obtained by advecting it in time with the fluid velocity:
Appendix B. Forces and moments
As in figure 12, the hydrodynamic forces $F_a$ and $F_p$ acting on the anterior and posterior parts of the swimmer, respectively, are given by
The hydrodynamic moment $M_a$ acting on the anterior part of the swimmer about its leading edge and the hydrodynamic moment $M_p$ acting on the posterior part of the swimmer about the flexion point are given by
Note that the components $F_{ax}, F_{ay}$ and $F_{px}, F_{py}$ can be written explicitly as
where $\theta _p = \theta _a + \alpha$ and $\alpha$ is the flexion angle.
The total hydrodynamic force acting on the swimmer due to the pressure difference across the swimmer is given by
where the components $F_x$ and $F_y$ are
The total hydrodynamic moment acting on the swimmer about its leading edge is given by
We introduce a drag force $D$ that emulates the effect of skin friction due to fluid viscosity. This force is based on the Blasius laminar boundary layer theory as implemented by Fang (Reference Fang2016) in the context of the vortex sheet model. Blasius theory provides an empirical formula for skin friction on one side of a horizontal plate of length $L$ placed in fluid of density $\rho _f$ and uniform velocity $U$. In dimensional form, the Blasius formula is $D = \frac {1}{2} \rho _f C_f L U^2$, where the skin friction coefficient $C_f = {0.664}/{\sqrt {Re}}$ is given in terms of the Reynolds number ${Re} = {\rho _f U L}/{\mu }$. Substituting back in the empirical formula leads to $D = C_d U^{3/2}$, where $C_d = 0.664 \sqrt { \rho _f \mu L}$. Following Fang (Reference Fang2016), we write a modified expression of the drag force for a swimming plate:
where $\overline {U}_{\pm }$ are the spatially averaged tangential fluid velocities on the upper and lower side of the plate, respectively, relative to the swimming velocity $U$:
Based on the experiments of Ramananarivo et al. (Reference Ramananarivo, Fang, Oza, Zhang and Ristroph2016) with freely swimming flapping foils, they estimated $C_d = 0.04$ which corresponds to Reynolds number $Re \approx 5000$ for a rigid pitching swimmer.
The equation of motion governing the free swimming $x(t)$ is given by Newton's second law:
where $D_x$ is the $x$ component of the drag force $D$. When the swimmer bends passively, the relative rotation $\alpha (t) = \theta _p -\theta _a$ of the posterior end is not prescribed a priori and follows from the physics of fluid–structure interactions. Considering that the rotational joint at the flexion point is equipped with a torsional spring of stiffness $\kappa$ and damping coefficient $c$, we write the equation governing the relative rotation of the posterior link as
where $I_{p}$ is the moment of inertia of the posterior link about the flexion point and $M_{{inertia}}$ is an inertial moment acting on the posterior link due to the free motion of the flexion point. Namely,
where $m_p=\rho e (L-l)$ is the mass of the posterior link, $z_{A} = ({(L-l)}/{2})(\cos \theta _p + \textrm {i} \sin \theta _p)$ is the position of the flexion point relative to the mass centre of the posterior link and $\bar {a}_A$ is the complex conjugate of the acceleration ${a}_A$ at the flexion point. The latter is given by
For a swimmer undergoing active flexion, the flapping motion and body bending are produced by two active moments $M_{a}$ and $M_{p}$ acting by the swimmer on the fluid about the leading edge ${\rm O}$ and the hinge ${\rm A}$, respectively. The power input by the swimmer to overcome the moment of all the hydrodynamic forces about the leading edge is given by
For a swimmer with passive flexion, the input power is given by
Note that the skin drag does not contribute to input power.
Appendix C. Numerical implementation
The bound vortex sheet is discretized by $2n+1$ point vortices at $z_b(t)$ with strength $\varDelta \varGamma =\gamma {\rm \Delta} s$. These vortices are located at Chebyshev points that cluster at the two ends of the swimmer. Their strength is determined by enforcing no penetration at the midpoints between the vortices, together with conservation of circulation. The free vortex sheet is discretized by regularized point vortices at $z_{w}(t)$, which is released from the trailing edge at each time step with circulation given by (A8). The free point vortices move with the discretized fluid velocity while the bound vortices move with the swimmer's velocity. For the actively bending swimmer, the discretization of (B9) and (A8), (A10) yields a coupled system of ordinary differential evolution equations for the swimmer's position, the shed circulation and the free vorticity, which is integrated in time using the fourth-order Runge–Kutta scheme. For the passively bending swimmer, the discretization of (B10) is added to the coupled system of equations to simultaneously solve for the rotational motion of the posterior link relative to the anterior link. The details of the shedding algorithm are given in Nitsche & Krasny (Reference Nitsche and Krasny1994). The numerical values of the time step ${\rm \Delta} t$, the number of bound vortices $n$ and the regularization parameter $\delta$ are chosen so that the solution changes little under further refinement.
Finally, to emulate the effect of viscosity, we allow the shed vortex sheets to decay gradually by dissipating each incremental point vortex after a finite time $T_{diss}$ ($T_{diss}=1.625T$ for the swimmer with active flexion and $T_{diss}=\sqrt {2.09}T$ for passive flexion) from the time it is shed into the fluid. Larger $T_{diss}$ implies that the vortices stay in the fluid for longer times, mimicking the effect of lower fluid viscosity. We refer the reader to Huang et al. (Reference Huang, Ristroph, Luhar and Kanso2018) for a detailed analysis of the effect of dissipation time on the hydrodynamic forces on a stationary and moving plate in the vortex sheet model. Details of the numerical validation in comparison with Jones (Reference Jones2003) and Jones & Shelley (Reference Jones and Shelley2005) are provided in Huang et al. (Reference Huang, Nitsche and Kanso2016).