In this paper, we used Stokesian dynamics simulations to study the swimming behavior of a single-flagellated magnetotactic bacterium. We present a semi-realistic model for MTB taking into account its magnetic orientation and its propulsion by the flagellar rotation. In the model, the cell body is spherical and has a single flagellum discretized as a chain of beads (shown in Fig. 1a, with yellow and blue colors, respectively). The flagellum, in turn, consists in a helical filament, a rotary motor embedded in the cell membrane, which rotates the filament, and a short hinge for transmitting the motor torque to the filament [33]. The description of the flagellum includes its elasticity, as well as hydrodynamic and excluded volume interactions. The hydrodynamic interactions are taken into account by calculating the mutual mobility coefficients between particles representing segments of the flagellum and then solving the equations of motion for all particles using these mobility coefficients [35].
Model of the flagellum
The model we used for the flagellum of our MTB is the model that has been used for the E. coli flagellum by Vogel et al. [20, 32]. In this model, the helical filament of the flagellum is described as a discretized space curve composed of N particles of diameter \( a = 0.02\,\upmu \hbox {m}\) and equilibrium separation distance \(L_e = 0.2\,\upmu \hbox {m}\) (Fig. 1a). In order to explore the bacterial behavior as a function of the flagellum length, N was varied between 20 and 150. As shown in Fig. 1b, the position of each flagellum particle is represented by \( {\mathbf {r}}_i\) \((i=1, .. , N)\). A set of three orthogonal unit vectors \({\mathbf {e}}^{\alpha }_i = \lbrace {\mathbf {e}}^1_i, {\mathbf {e}}^2_i, {\mathbf {e}}^3_i\rbrace \) (called the i-th triad with \(\alpha = 1, 2, 3\) representing the three orthogonal unit vectors) is assigned to each particle i to describe the orientation and elastic deformation of the bond between two successive particles i and \(i-1\) (Fig. 1b). The first triad \({\mathbf {e}}^{\alpha }_1\) is associated with the bond between the cell body and the first flagellar particle.
A regular helical filament like the one we have for the flagellum can be characterized completely by its constant curvature (\(\kappa _e\)) and torsion (\(\tau _e\)) which are related to the helix radius (R) and pitch (P) via \(R = \frac{\kappa _e}{\kappa _e^2+\tau _e^2}\) and \(P = \frac{2\pi \tau _e}{\kappa _e^2+\tau _e^2}\) [36].
Since the flagellum is an elastic filament, any deviation from its equilibrium configuration costs energy. The elastic energy for the bending and twisting of the flagellum (\(H^{K}\)) can be calculated by regarding the conformational deviation from the helical equilibrium configuration using a discretized version of Kirchhoff’s theory for elastic rods [37],
$$\begin{aligned} H^{K}&= L_e\displaystyle \sum _{i=1}^{N-1} \lbrace A[(\varOmega ^1_i-\varOmega ^1_e)^2+(\varOmega ^2_i-\varOmega ^2_e)^2] \nonumber \\&\quad + C(\varOmega ^3_i-\varOmega ^3_e)^2\rbrace , \end{aligned}$$
(1)
in which \(\varOmega ^\alpha _i = \lbrace \varOmega ^1_i, \varOmega ^2_i, \varOmega ^3_i\rbrace \) is the instantaneous local angular strain vector. Its components are related to the local curvature and torsion angles and the local triads via \(\varOmega ^1_i = -\frac{\theta _i}{\sin \theta _i}{\mathbf {e}}^2_i.{\mathbf {e}}^3_{i+1}\), \(\varOmega ^2_i = \frac{\theta _i}{\sin \theta _i}{\mathbf {e}}^1_i.{\mathbf {e}}^3_{i+1}\), \(\varOmega ^3_i = \phi _i\), where \(\theta _i\) and \(\phi _i\) (as shown in Fig. 1c) are the bending and twist angles between successive triads, respectively. A and C are the bending and torsional rigidities, for which the values of \(A = C = 3.5\,{\hbox {pN}\,\upmu \hbox {m}^2}\) are used.
\(\varOmega ^\alpha _e = \lbrace \varOmega ^1_e, \varOmega ^2_e, \varOmega ^3_e\rbrace = \lbrace \kappa _e \cos (L_e\tau _e), \kappa _e \sin (L_e\tau _e), \tau _e\rbrace \) is the equilibrium angular vector for the flagellum. Throughout this paper, we use \(\kappa _e = 1.3\,{\upmu \hbox {m}^{-1}}\), \(\tau _e = -2.1\,{\upmu \hbox {m}^{-1}}\), except in the section where we study the effect of the flagellum helical geometry on the swimming velocity (Fig. 3b) where we run simulation for different \(\varOmega ^\alpha _e\).
The corresponding elastic forces on i-th particle (\({\mathbf {F}}^{K}_i\)) and torques about i-th triad (\({\mathbf {T}}^{K}_i\)) can be obtained by calculating the numerical derivatives of \( H^{K} \) with respect to the position of the particle (\({\mathbf {r}}_i\)) and the twist angle of the triads (\(\phi _i\)) as follows,
$$\begin{aligned} {\mathbf {F}}^{K}_i = -\frac{\partial H^{K}}{\partial {\mathbf {r}}_i}, \end{aligned}$$
(2)
$$\begin{aligned} T^{K}_i = -\frac{\partial H^{K}}{\partial \phi _i}. \end{aligned}$$
(3)
The stretching elasticity of the flagellum is taken into account using a Hookian free energy (\(H^{S}\)) of the form
$$\begin{aligned} H^{S} = \frac{K_s}{2L_e}\displaystyle \sum _{i=2}^N (L_i-L_e)^2, \qquad L_i = \vert {\mathbf {r}}_i - {\mathbf {r}}_{i-1} \vert \end{aligned}$$
(4)
with stretching rigidity of \(K_s = 1000{\hbox {pN}}\) [33]. The stretching force (\({\mathbf {F}}^{S}_i\)) can be obtained by analytical differentiation of \( H^{S} \) with respect to \( {\mathbf {r}}_i \). The resulting \({\mathbf {F}}^{S}_i\) is
$$\begin{aligned} {\mathbf {F}}^{S}_i = -\frac{K_s}{L_e} \lbrace (L_i-L_e)\mathbf{e }^3_i - (L_{i+1}-L_e)\mathbf{e }^3_{i+1}\rbrace . \end{aligned}$$
(5)
The repulsive part of a Lennard-Jones force (a WCA force) is used to model excluded volume interactions between all particles including the cell body (\(i=0\)),
$$\begin{aligned} \mathbf{F }^{LJ}_{i} = \left\{ \begin{array}{l l} \frac{F_0}{\sigma }\ \left[ 2\left( \frac{\sigma }{r_{ij}}\right) ^{14}-\left( \frac{\sigma }{r_{ij}}\right) ^{8}\right] \mathbf{r }_{ij} &{} \hbox { if}\ r_{ij}<\root 6 \of {2}\sigma ,\\ 0 &{} \hbox { if}\ r_{ij} \ge \root 6 \of {2}\sigma , \end{array} \right. \nonumber \\ \end{aligned}$$
(6)
with \(F_0 = 1\hbox {pN}\). We set \(\sigma =2a\) for the interaction between two (non-bonded) beads of the flagellum, so that the distance between two beads on which the steric interactions become relevant is 2a. For the interaction between flagellum beads and the cell body, we use \(\sigma = a+R_b\). \(\mathbf{r }_{ij}\) is the distance vector between i-th and j-th particles (including the cell body (\(i=0\))) and \(r_{ij}\) its absolute value. The steric force on the i-th particle (\({\mathbf {F}}^{LJ}_i\)) is calculated by summation of the steric forces from all other particles (j) on the i-th particle. We note that despite the relatively large gaps between subsequent flagellar beads (\(L_e = 10a\)), we do not observe beads passing through the flagellum due to its rather high bending and twist rigidities.
The filament is attached to the surface of the bacterial cell body via its first particle (\(i=1\)). We defined the first triad (\( {\mathbf {e}}^{\alpha }_1 \)) in such a way that its third component (\( {\mathbf {e}}^3_1 \)) is along the vector drawn from body center to the first flagellar particle attached to body (\(i=1\)-th particle). The effect of the rotary motor was modeled by the motor torque \( T_m {\mathbf {e}}^3_1 \), for which the value \(T_m = 3.4\,{\hbox {pN}\,\upmu \hbox {m}}\) was assumed, acting on the first (\(i=1\)) bead of the flagellum. This torque is transmitted to the main part of the filament via the hinge, represented by the connection to the second bead. For the latter we used the rigidities \( A^{\prime } = A\) and \( C^{\prime } = 3C\). The high torsional rigidity provides the coupling of the filament to the motor rotation.
Dynamics of the flagellum
At low Reynolds numbers, because of the linearity of Stokes’ equation, the translational and angular velocity vectors (\({\mathbf {v}}\) and \(\pmb {\omega }\), respectively) of the particles have a linear relation with the forces (\({\mathbf {F}}\)) and torques (\({\mathbf {T}}\)) acting on those particles as follows
$$\begin{aligned} \begin{bmatrix} \mathbf{v }\\ \pmb {\omega } \end{bmatrix} = \begin{bmatrix} {\pmb {\mu }}^{tt} &{} {\pmb {\mu }}^{tr}\\ {\pmb {\mu }}^{rt} &{} {\pmb {\mu }}^{rr} \end{bmatrix} \begin{bmatrix} \mathbf{F }\\ \mathbf{T } \end{bmatrix}. \end{aligned}$$
(7)
Here \(\mathbf{v }\) and \(\pmb {\omega }\) are 3N-component linear and angular velocity vectors. The matrix is called the mobility matrix and \( \pmb {\mu }^{tt} \), \( \pmb {\mu }^{rr} \), \(\pmb {\mu }^{rt}\) and \(\pmb {\mu }^{tr}\) are each \(3N \times 3N\) mobility sub-matrices representing the translational–translational, rotational-rotational and rotational–translational coupling between velocities and forces of all particles. In the following we refer to the mobility terms between force and velocity of the same particle as self-mobilities and those between forces and velocities of different particles as cross-mobilities.
In this study, the rotational–translational mobility sub-matrices (\(\pmb {\mu }^{tr}\) and \(\pmb {\mu }^{rt}\)) and rotational-rotational cross-mobility terms (\( \pmb {\mu }^{rr}_{i\ne j}\)) were neglected. This is mostly done for technical reasons, since these couplings may result in the rotation of the triads and cause inconsistencies with the definition of the bond direction \({\mathbf {e}}^3_i = r_i-r_{i-1}\). Artifacts were reported in earlier work, specially for elastic structure [38]. From the physical point of view, these contributions can be neglected because the \(\pmb {\mu }^{rr}_{ij}\) and \(\pmb {\mu }^{tr}_{i\ne j}\) terms in the Rotne–Prager expansion are of higher order in \(\frac{a}{r_{ij}}\) compared to \(\pmb {\mu }^{rr}_{ii}\). The remaining mobility terms for flagellar particles are the translational–translational cross-mobility (\( \pmb {\mu }^{tt}_{i\ne j}\)), the translational–translational self-mobility (\( \pmb {\mu }^{tt}_{ii}\)) and the rotational-rotational self-mobility (\( \pmb {\mu }^{rr}_{ii}\)). The translational–translational cross-mobilities (\( \pmb {\mu }^{tt}_{i\ne j}\)) between flagellar particles were calculated using the Rotne–Prager approximation [35, 39],
$$\begin{aligned} \pmb {\mu }^{tt}_{i\ne j} = \mu ^t \begin{bmatrix} \frac{3}{4}\frac{a}{r_{ij}} (\mathbf{1 }+\hat{\mathbf{r }}_{ij}\otimes \hat{\mathbf{r }}_{ij})+\frac{1}{2} (\frac{a}{r_{ij}})^3(\mathbf{1 }-3\hat{\mathbf{r }}_{ij}\otimes \hat{\mathbf{r }}_{ij}) \end{bmatrix}.\nonumber \\ \end{aligned}$$
(8)
Here \(r_{ij}\) represents again the distance between the i-th and j-th particles. For the translational–translational self-mobility (\( \pmb {\mu }^{tt}_{ii}\), a \(3\times 3\)-submatrix of \(\pmb {\mu }^{tt}\)) of the flagellar particles we used the mobility relation for a straight rod that is
$$\begin{aligned} \pmb {\mu }^{tt}_{ii} = {\mathbf {e}}^3_i\otimes {\mathbf {e}}^3_i / \gamma _{\parallel } +({\mathbf {1}} - {\mathbf {e}}^3_i\otimes {\mathbf {e}}^3_i) / \gamma _{\perp }, \end{aligned}$$
(9)
in which \(\gamma _{\parallel } = 3.2 \times 10^{-4}\,{\hbox {pNs}/\upmu \hbox {m}}\) and \( \gamma _{\perp } = 5.6 \times 10^{-4}\,{\hbox {pNs}/\upmu \hbox {m}}\) were used as the anisotropic friction coefficients of the flagellum following the values used for the E. coli flagellum [33]. The rotational-rotational self-mobility of flagellar particles (\( \mu ^{rr}_{ii} \)) is the inverse of the rotational friction \( \mu ^{rr}_{ii} = 1/\gamma _r\) with \( \gamma _r = 2.52 \times 10^{-7}\,{\hbox {pNs}\,\upmu \hbox {m}}\).
Taking into account the forces and torques discussed above and including them in Eq. (7), the dynamics of the flagellar particles’ positions (\({\mathbf {r}}_i\)) and triads (\({\mathbf {e}}^{\alpha }_{i}\) with \(\alpha = 1, 2, 3\) can be obtained by solving the following equations of motion for their position and orientation,
$$\begin{aligned} \frac{\partial {\mathbf {r}}_i}{\partial t}= & {} \mathbf {\mu }^{tt}_{ij}({\mathbf {F}}^{K}_j + {\mathbf {F}}^{S}_j + {\mathbf {F}}^{LJ}_j), i = 2,..,N\nonumber \\ \end{aligned}$$
(10)
$$\begin{aligned} \frac{\partial {\mathbf {e}}^{\alpha }_{i}}{\partial t}= & {} \mu ^{rr}_{ii} (T^{K}_i{\mathbf {e}}^{3}_i\times {\mathbf {e}}^{\alpha }_i), i = 2,..,N\nonumber \\ \end{aligned}$$
(11)
$$\begin{aligned} \frac{\partial \mathbf {e_f}^{\alpha }_{1}}{\partial t}= & {} \mu ^{rr}_{11} (T^{K}_1+T_m ) ({\mathbf {e}}^{3}_1\times {\mathbf {e}}^{\alpha }_1), \end{aligned}$$
(12)
in which \(\frac{\partial \mathbf {e_f}^{\alpha }_{1}}{\partial t}\) is the contribution of the flagellum torques in the dynamics of the first triad. Another contribution \(\frac{\partial \mathbf {e_b}^{\alpha }_{1}}{\partial t}\) comes from the torques on the cell body (Sect. 2.3 Eq. (15)). These two terms add up to the total change of \({\mathbf {e}}^{\alpha }_{1}\) as follows
$$\begin{aligned} \frac{\partial {\mathbf {e}}^{\alpha }_{1}}{\partial t}=\frac{\partial \mathbf {e_f}^{\alpha }_{1}}{\partial t}+\frac{\partial \mathbf {e_b}^{\alpha }_{1}}{\partial t}. \end{aligned}$$
(13)
Dynamics of the cell body
To obtain the dynamics of the whole bacterium, the equations of motion for the cell body are also needed and have to be solved simultaneously. For simplicity, we modeled the cell body with a sphere of radius \(R_b = 1\,\upmu \hbox {m}\). Since MTB contain a magnetic chain, which acts as a compass needle, we defined a magnetic moment vector (\( {\mathbf {m}} \)) for the cell body (shown in Fig. 1a) with a magnitude of \(m = 6.2 \times 10^{-16}{\hbox {Am}^2}\) [40]. In each simulation the direction of \( {\mathbf {m}} \) with respect to the body axis is fixed and its inclination is represented by an angle \(\theta _m\). We should note that \({\mathbf {m}}\) is oriented along the body axis (\(\theta _m = {0^{\circ }}\)) except for the section where we study the effect of the inclination of \({\mathbf {m}}\) with respect to body axis (\(\theta _m \ne 0^{\circ }\)) explicitly. In an external magnetic field \( {\mathbf {B}} \), the equations of motion for the cell body are
$$\begin{aligned}&\frac{\partial \mathbf {r_b}}{\partial t} = \mu ^{tt}_b \left[ {\mathbf {F}}^{K}_1 + {\mathbf {F}}^{S}_1+ {\mathbf {F}}^{LJ}_0\right] , \end{aligned}$$
(14)
$$\begin{aligned}&\frac{\partial \mathbf {e_b}^{\alpha }_1}{\partial t}= \mu ^{rr}_b \left[ {\mathbf {m}}\times {\mathbf {B}} + (\mathbf {r_1}-\mathbf {r_b})\right. \nonumber \\&\qquad \quad \times \left. ({\mathbf {F}}^{K}_1+{\mathbf {F}}^{S}_1) \right] \times {\mathbf {e}}^{\alpha }_1, \end{aligned}$$
(15)
$$\begin{aligned}&\frac{\partial {\mathbf {m}}}{\partial t} = \mu ^{rr}_b \left[ {\mathbf {m}}\times {\mathbf {B}} + (\mathbf {r_1}-\mathbf {r_b})\right. \nonumber \\&\quad \times \left. ({\mathbf {F}}^{K}_1+{\mathbf {F}}^{S}_1) - T_m {\mathbf {e}}^3_1\right] \times {\mathbf {m}}. \end{aligned}$$
(16)
Here \( \mu ^{tt}_b = \frac{1}{6 \pi \eta R_b}\) and \( \mu ^{rr}_b= \frac{1}{8\pi \eta R^3_b}\) are the translational–translational and rotational-rotational mobility coefficients of the cell body in which \(\eta \) is the viscosity of water. Cross-mobility terms between the cell body and the flagellar particles were neglected.
Equation (14) describes the translational motion of the cell body. The force on the first flagellar particle (\({\mathbf {F}}^{K}_1 + {\mathbf {F}}^{S}_1\)) is transmitted directly to the cell body, together with the Lennard-Jones force (\({\mathbf {F}}^{LJ}_0\)). Eq. (15) describes the contribution of the cell body rotation on the evolution of \({\mathbf {e}}^{\alpha }_1\), the triad associated with the bond between the cell body and the first flagellar particle. Its terms are the magnetic torque and the torque resulting from the forces acting on the first bead, respectively. As mentioned earlier, Eq. (12) and (15) add up to the total change of the first triad as given by Eq. (13).
The magnetosome chain has a fixed orientation in the cell body, so the magnetic moment \({\mathbf {m}}\) rotates rigidly with the cell body. To determine the orientation of the cell body, we need to include one additional equation of motion in the model that describes the dynamics of an arbitrary vector fixed on the cell body. We used the equation for the magnetic moment as the equation for finding the orientation of the cell body at each time-step. Eq. (16) represents the time evolution of \({\mathbf {m}}\) and the torque terms in its right-hand side are the magnetic toque, the torque arising from the force on the first particle and the counter torque to motor rotation (\(-T_m {\mathbf {e}}^3_1\)).
Since the first flagellum bead \((i = 1)\) is rigidly attached to the cell body, its position at each time-step is determined by \(\mathbf {r_1} = \mathbf {r_b}+R_b {\mathbf {e}}_1^3\).
Implementation of the model
The model was implemented using a self-written C++ program. The equations of motion (Eqs. (10) to (16)) were solved numerically using second-order Runge–Kutta algorithm [41, 42], specifically Heun method [43], to obtain the successive configurations of beads position and triads at each time-step knowing their previous configuration. For simplicity, we chose the magnetic field to be in z-direction and its magnitude in our simulation was varied from zero to hundred times the Earth magnetic field (\(B_E = 50\,{\upmu \hbox {T}}\)).
We used a time-step of \(\varDelta t = 4\times 10^{-9}{\hbox {s}}\) for all simulations and an initial configuration (helical shape) of the flagellum close to its equilibrium state. Nevertheless, equilibration takes of the order of \(\times 10^7\) time steps. Therefore, the simulations were run for several \(\times 10^7\) steps, with the total duration adjusted to the specific parameters. In particular, in the simulations with an inclined magnetic moment (Sect. 3.4), at least one full helical turn of the trajectories was simulated; thus, longer simulations were needed for large inclination angles, where the helix radius is large. Likewise for U-turn simulations (Sect. 3.3), longer runs were needed for low magnetic fields. In the U-turn scenario, the simulation was run to equilibrate for \(5\times 10^6\) time steps before the field was reversed.