scieee AI-readable full text Open interactive document viewer

Artificial Micro-Swimmers: modeling and simulation at low Reynolds numbers

Sukumarapillai, Yadu Krishnan

Abstract

Artificial microswimmers show great potential in various fields, performing complex tasks at the microscale. Accurate modeling of these swimmers is crucial to understanding their behavior, including self-propulsion and interaction with their fluid environment. At this scale, the principle of low Reynolds number hydrodynamics is typically used to study microswimmers, as inertial forces are negligible compared to viscous forces. Consequently, Stokes hypothesis is fundamental in their mathematical modeling. However, research indicates that complex geometries, flow paths, and the influence of channel walls can lead to higher drag forces than those predicted by Stokes hypothesis. In this study, asymptotic approximations of the Navier-Stokes equations are introduced to incorporate nonlinear inertial terms. This approach linearizes the Navier-Stokes problem into a series of Stokes problems, allowing examination of the influence of nonlinearity on the total drag force acting on micro-swimmers. A comprehensive study is conducted using the open-source Stokes solver HDGLab for the analysis. Two benchmark problems are solved to validate the algorithms implemented in HDGLab. The total drag force acting on micro-swimmers in low Reynolds number flows is analyzed through two different problem sets. Initially, a single-sphere microswimmer configuration is studied, and the drag forces are calculated. In the second case, a three-sphere microswimmer with two different stroke instances is exposed. A critical analysis of the drag force for each approximation is presented, illustrating the variation of drag force for low Reynolds numbers.

Full text

Treball realitzat per: Yadu Krishnan Sukumarapillai Dirigit per: Prof. Antonio Huerta Màster en: Numerical Methods in Engineering Barcelona, 25/06/2024 Barcelona School of Civil Engineering TREBALL FINAL DE MÀSTER Artificial Micro-Swimmers: modeling and simulation at low Reynolds numbers Acknowledgements I would like to express my gratitude to my thesis supervisor, Prof. Antonio Huerta, for providing me the opportunity to be part of LaCàN at UPC and for guiding me throughout this project with dedication and constant feedback. I am also thankful to my academic mentor, Prof. Rubén Sevilla from Swansea University, for his insights and support throughout my master’s journey, both in personal and professional matters. Thanks to all my friends and flatmates in Barcelona, with whom I shared unforgettable moments, endless discussions, and joyful laughter. Your companionship made my time here truly special. I am grateful to all my best friends all around the world who stood by me in both good and bad times, encouraging me to pursue my goals. Finally, my gratitude and thanks to my family for believing in me and my decisions. I am always indebted to you for your love, support, and motivation every day and at every moment in my life. UPC Barcelona, Spain 2024 i ii Abstract Artificial microswimmers show great potential in various fields, performing complex tasks at the microscale. Accurate modeling of these swimmers is crucial to understanding their behavior, including self-propulsion and interaction with their fluid environment. At this scale, the principle of low Reynolds number hydrodynamics is typically used to study microswimmers, as inertial forces are negligible compared to viscous forces. Consequently, Stokes hypothesis is fundamental in their mathematical modeling. However, research indicates that complex geometries, flow paths, and the influence of channel walls can lead to higher drag forces than those predicted by Stokes hypothesis. In this study, asymptotic approximations of the Navier-Stokes equations are introduced to incorporate nonlinear inertial terms. This approach linearizes the Navier-Stokes problem into a series of Stokes problems, allowing examination of the influence of nonlinearity on the total drag force acting on micro-swimmers. A comprehensive study is conducted using the open-source Stokes solver HDGLab for the analysis. Two benchmark problems are solved to validate the algorithms implemented in HDGLab. The total drag force acting on micro-swimmers in low Reynolds number flows is analyzed through two different problem sets. Initially, a single-sphere microswimmer configuration is studied, and the drag forces are calculated. In the second case, a three-sphere microswimmer with two different stroke instances is exposed. A critical analysis of the drag force for each approximation is presented, illustrating the variation of drag force for low Reynolds numbers. Keywords – Asymptotic approximations, Navier-Stokes equations, Artificial microswimmers, Mathematical modeling, Low Reynolds number flow, Drag force Contents iii Contents 1 Introduction 1 1.1 Background and Motivation ......................... 1 1.2 Objectives of the thesis ............................ 3 1.3 Chapter Overview ............................... 3 2 Asymptotic approximation of Navier-Stokes for low Re numbers 5 2.1 Navier-Stokes equation for steady incompressible flows .......... 5 2.2 Asymptotic approximation of velocity and pressure ............ 5 2.2.1 First approximation .......................... 6 2.2.2 Second approximation ........................ 7 2.2.3 Third approximation ......................... 8 2.2.4 General formulation ......................... 8 2.3 Drag Force ................................... 9 3 HDG formulation of Stokes flow 11 3.1 Governing equations ............................. 11 3.2 Overview of HDGlab solver ......................... 15 3.2.1 Drag calculation algorithm ...................... 16 3.2.2 Source term algorithm of asymptotic approximation ........ 17 3.3 Numerical Validation ............................. 20 3.3.1 Computational domain ........................ 20 3.3.2 Mesh Generation ........................... 21 3.3.3 Flow over a sphere in an infinite domain .............. 22 3.3.4 Motion of rigid sphere in stationary fluid inside cylindrical tube . 25 4 Numerical solution of asymptotic approximation 28 4.1 Analysis of single-sphere microswimmer ................... 28 4.1.1 Example 1: Single Sphere with diameter ratio λ= 0.1....... 29 4.1.2 Example 2: Single Sphere with diameter ratio λ= 0.4....... 35 4.2 Analysis of Three-Sphere Microswimmer .................. 40 4.2.1 Configuration 1 ............................ 40 4.2.2 Configuration 2 ............................ 47 5 Conclusion 53 References 55 iv List of Figures List of Figures 3.1 Physical domain ................................ 20 3.2 Computational domain ............................ 20 3.3 Domain and computational mesh ...................... 22 3.4 Mesh sensitivity analysis ........................... 24 3.5 Solutions of flow past a sphere in an infinite domain ............ 24 3.6 Confined domain with different diameter ratios λ.............. 26 3.7 Wall correction factor (K) for different diameter ratio (λ). ........ 27 4.1 Solutions of first asymptotic approximation (Stokes flow), ε= 0, k = 0 . . 29 4.2 Solutions of second asymptotic approximation,ε= 0, k = 1 ........ 30 4.3 Solutions of second asymptotic approximation,ε= 0, k = 2 ........ 31 4.4 Total drag force (FD) for different approximations ............. 33 4.5 Comparison of Drag coefficient (CD).................... 33 4.6 Relative error between asymptotic approximation and empirical drag coefficient ................................... 34 4.7 Solutions of first asymptotic approximation (Stokes flow), ε= 0, k = 0 . . 36 4.8 Solutions of second asymptotic approximation , ε= 0, k = 1 ....... 37 4.9 Total drag force (FD) for different approximations ............. 38 4.10 Comparison of Drag coefficient (CD).................... 39 4.11 Relative error between asymptotic approximation and empirical drag coefficient ................................... 39 4.12 A swimmer consisting of three spheres of equal radii a connected by two arms of negligible thickness with fully extended length of ∆and a fully contracted length of δ[12]. .......................... 40 4.13 Three-sphere microswimmer, Configuration 1 ................ 41 4.14 Solutions of first approximation,ε= 0, k = 0 for Configuration 1 ..... 42 4.15 Solutions of second approximation,ε= 0, k = 1 for Configuration 1 . . . . 43 4.16 Solutions of third approximation,ε= 0, k = 2 for Configuration 1 ..... 44 4.17 Total drag force of three-sphere microswimmer, Configuration 1 ..... 47 4.18 Three-sphere microswimmer, Configuration 2 ................ 48 4.19 Solutions of first approximation, ε= 0, k = 0 for Configuration 2 ..... 48 4.20 Solutions of second approximation, ε= 0, k = 1 for Configuration 2 . . . 49 4.21 Solutions of third approximation, ε= 0, k = 2 for Configuration 2 . . . . 50 4.22 Total drag force of three-sphere microswimmer, Configuration 2 ..... 52 List of Tables v List of Tables 3.1 Wall correction factor for different diameter ratios ............. 27 4.1 Total drag force on the sphere for different approximation, Example 1 . . 32 4.2 Total drag force on the sphere for different approximation, Example 2 . . 36 4.3 Asymptotic analysis of three-sphere microswimmer, Configuration 1 . . . 46 4.4 Asymptotic analysis of three-sphere microswimmer, Configuration 2 . . . 51 1 1 Introduction 1.1 Background and Motivation Microswimmers are tiny, often microscopic, entities capable of autonomous movement in fluid environments. These microswimmers, inspired by biological organisms, have gathered significant interest due to their potential applications in medicine, environmental monitoring, and engineering. Microswimmers can be broadly categorized into synthetic and biological types. Biological microswimmers include bacteria, spermatozoa, and various protozoa, which naturally exhibit self-propelled movement in fluids. For instance, bacteria like Escherichia coli use flagella to swim, while sperm cells use a whip-like tail to propel themselves [1]. On the synthetic side, researchers have developed various artificial micro-swimmers that mimic these natural movements[2]. The potential applications of microswimmers are vast and varied. In medicine, they could revolutionize targeted drug delivery, allowing for precise delivery of therapeutics to specific locations within the body, thus minimizing side effects and improving treatment efficacy [3]. They also hold promise for minimally invasive surgeries and diagnostics. For instance, microswimmers can be engineered to navigate through blood vessels to deliver drugs directly to a tumor site or to perform localized treatment procedures [2]. The modeling of microswimmers is a vibrant area of research, aiming to understand and predict their behavior under various conditions. Recent studies have focused on both the hydrodynamics of microswimmer motion and the control mechanisms for synthetic swimmers. Researchers use computational fluid dynamics (CFD) and experimental techniques to explore how microswimmers interact with their environments, navigate complex fluid flows, and respond to external stimuli [4]. For example, one line of research involves the development of models that describe the motion of microswimmers in non-Newtonian fluids, which are common in biological environments like mucus or blood. These models help predict how microswimmers can effectively move through such complex fluids [5]. Mathematical modeling of microswimmers often relies on the principles of low Reynolds number hydrodynamics, which is the regime in which the viscous forces dominate over inertial forces. This is particularly relevant for microswimmers, as their small size and 2 1.1 Background and Motivation slow speeds result in very low Reynolds numbers. In this context, most of the research focuses on Stokes hypothesis, where inertial forces are negligible compared with viscous forces. This simplification leads to a linear set of equations known as the Stokes equations. Stokes flow, also known as creeping flow, has several distinctive characteristics that are relevant to the study of microswimmers. One key feature is the linearity of the Stokes equations, which allows for the superposition of solutions. This means that the flow fields created by multiple microswimmers with the same computational domain can be added together inducing also a solution of the Stokes problem[6]. Another important characteristic is the time reversibility of Stokes flow. Inertia does not play a role, so if the motion of a microswimmer is reversed, the flow field around it also reverses. This has significant implications for the design of propulsion mechanisms in microswimmers. They must break this time-reversal symmetry to achieve net movement, often through non-reciprocal motion patterns such as rotating or undulating movements [7], this is known as the Scallop theorem. There are several models of artificial swimmers investigated at low Reynolds number flows using the Stokes hypothesis. Most of the research shows good agreement in terms of flow characteristics and drag forces with Stokes’ theorem. However, when considering complex structures or flows, the behavior becomes more complicated, and it’s necessary to consider nonlinearities. For example, a study on the complex geometry of a micro-motor shows that the drag force monotonically increases with Reynolds numbers in the range of 4 × 10 −3 to 0 . 2[8]. Another research indicates that channel geometry with curvatures can introduce some inertia effects that are usually neglected by the Stokes hypothesis [9]. Considering hydrodynamic effects, especially in complex fluids like polymeric liquids, the Scallop theorem does not hold, and it loses the advantages of superposition [4]. Moreover, experimental investigations suggest that micro-particles inside microchannels experience significantly higher drag force than the Stokes drag force near the channel walls [10]. While the Stokes hypothesis is invaluable in understanding the behavior of microswimmers in low Reynolds number flows, it may not always provide an accurate description of their dynamics due to the complexities of geometry, path, or fluids. This gives an opportunity to investigate the effects of non-linearity in modeling microswimmers at low Reynolds number flows. This study focuses on the feasibility of asymptotic solutions for low Reynolds numbers of cases, which involve the nonlinear incompressible Navier-Stokes equations. 2.3 Drag Force 9                                            ∇2ui−∇pi= i−1 X j=0 uj·∇ui−j+     sfor i= 0 0for i > 0 in Ω, ∇·ui= 0 in Ω, ui=     uDfor i= 0 0for i > 0 on ΓD, n·(ν∇ui−piI) =      gfor i= 0 0for i > 0 on ΓN, (2.11) This section discussed the detailed derivation of the asymptotic approximation of the Navier-Stokes equations. It was observed that the asymptotic approximations simplified the Navier-Stokes system of equations into a series of linear Stokes problems. This formulation provided confidence in solving the Navier-Stokes equations at low Reynolds number flows using Stokes solvers while anticipating the introduction of non-linearity in the final solution. This asymptotic approximation was extended to find the drag force and coefficient of drag on bodies immersed in the flow. The next section discusses the necessary equations and explanations of drag force. 2.3 Drag Force Now, we discuss how to obtain the drag force acting on the sphere. Equation 2.12 provides the total drag force experienced on a sphere in an axisymmetric setting. Note that the Quantities of Interest (QoI) in this study are the drag force and the coefficient of drag. FD= 2πZΓsphere eˆz ·σ·ndΓ(2.12) where σ is Cauchy stress, eˆz is the unit coordinate vector along the z-axis, and 2 π indicates that the drag force is calculated for the completed sphere in three dimensional. The Cauchy stress tensor can be split into two terms, one term devoted to the viscous effect and the other one to the pressure. Cauchy stress tensor is given by Equation 2.13. 10 2.3 Drag Force σ=−pI+ 2ν∇su(2.13) where ∇s uis the strain-rate tensor, that is the symmetric part of the gradient of the velocity with ∇s := ( ∇ + ∇T ) / 2. Given that σ depends on p and u , and both p and u are represented using asymptotic approximations, σ can similarly be expressed using asymptotic approximations. These equations (2.12 and 2.13) are crucial to implementing the drag calculating algorithm discussed in section 3.3.1. The asymptotic approximation is applied to linearize the drag Equation 2.12 for low Reynolds number flows. Let us consider a sphere immersed in a fluid flow at low Reynolds number flows. Adapting the asymptotic approximation in this case, the total drag force, FD can be written as the series expansion in terms of Reynolds number, ε and force coefficients as given in Equation 2.14. Fε D= ∞ X m=0 εmFDm(2.14) where FDm is the drag force obtained from the series of Stokes problems explained earlier. The coefficient of drag CDwhen ε= 0, Cε D=Fε D 1 2ρU2A=2 ρU2A ∞ X m=0 εmFDm(2.15) where, ρis the density, Uis the free stream velocity and Ais the cross-sectional area. To summarize, the asymptotic approximation of the Navier-Stokes equations is derived and explained in detail. Different observations made from this approximation are also studied. The necessary relations required to calculate the drag force are briefly presented in this chapter. Since the governing equations obtained from the asymptotic approximations are the Stokes equations, an open-source Stokes solver, HDGLab, is extensively used for solving flow problems. This solver is based on the hybridizable discontinuous Galerkin (HDG) method. A new source term and drag calculating algorithm are also implemented in HDGLab to solve the asymptotic approximation strategy. The next section briefly describes the hybridizable discontinuous Galerkin methods for solving Stokes flow and the overview of the Stokes solver HDGLab. 11 3 HDG formulation of Stokes flow In this chapter, a brief discussion on the hybridizable discontinuous Galerkin (HDG) method for Stokes flow is presented. Only some important aspects of the HDG formulations are outlined here. A detailed study on HDG formulations for stokes flow is available at [11] and [15]. In addition to that, an overview of the Stokes solver used for the flow analysis, drag calculation, asymptotic source term algorithm, and validation of two benchmark problems are also presented. 3.1 Governing equations Consider an open bounded domain Ω ⊂Rnsd where nsd represents the number of spatial dimensions. The boundary of the domain is partitioned into three portions such that ∂ Ω = Γ D∪ Γ N∪ Γ s , where Dirichlet, Neumann, and slip conditions are imposed. The strong form of the Stokes formulation is,                            −∇·(ν∇u−pInsd ) = sin Ω, ∇·u= 0 in Ω, u=uDon ΓD, n·(ν∇u−pInsd ) = gon ΓN, u·D+n·(ν∇u−pInsd )E=0on ΓS, (3.1) where u and p is the unknown velocity and pressure involved in this system of equations. ν > 0represents the kinematic viscosity of the fluid, n is the outward normal to the boundary, s is the source term or the body force vector, uD and g are the imposed velocity and pusedo-traction imposed on the ΓDand ΓNrespectively. Remark 1: Divergence of u mentioned in Equation 3.1, integrating over the volume provides the compatibility condition, ⟨uD·n,1⟩ΓD+⟨u·n,1⟩∂Ω\ΓD= 0.(3.2) 12 3.1 Governing equations Remark 2: In the case of pure Dirichlet problem, Γ D = ∂ Ωand Γ N = ∅ , to avoid indeterminacy of pressure an additional constrained is imposed. By imposing zero mean pressure retrieve the uniqueness of the pressure field. 1 |Ω|(p, 1)Ω= 0 (3.3) Strong form of Local and Global problems The next step involves separating the HDG formulation into two distinct sets of problems, local and global. Equations 3.1 are rewritten element by element. A new mixed variable defined L = −√ν∇u introduced, and it allows us to rewrite the elemental level equations as a system of first-order equations as given in 3.4.                                                  L+√ν∇u=0in Ωe, ∇·(√νL+pInsd ) = sin Ωe, ∇·u= 0 in Ωe, u=uDon ΓD, n·(√νL+pInsd ) = −gon ΓN, u·D−n·(√νL+pInsd )E=0on Γs, Ju⊗nK=0on Γ, Jn·(√νL+pInsd )K=0on Γ, (3.4) this equation is solved for e = 1 , ......, nel . where nel is the total number of elements. The local problem conserves the Dirichlet boundary conditions and the global system keeps the Neumann conditions. where the ( ue, pe,Le ) of each element is represented as a function of the unknown trace of the velocity ˆ u . The local problem written for all the elements given as, 3.1 Governing equations 13                            Le+√ν∇ue=0in Ωe, ∇·(√νLe+peInsd ) = sin Ωe, ∇·ue= 0 in Ωe, ue=uDon ∂Ωe∩ΓD, ue=b uon ∂Ωe\ΓD, (3.5) Equation 3.5 is a pure Dirichlet boundary value problem, and it is necessary to impose additional constraint mentioned in Remark 2 leads to, 1 |∂Ωe|⟨pe,1⟩∂Ω=ρe,for e= 1,...,nel.(3.6) where ρe represents the mean value of the pressure over the boundary to avoid indeterminacy. Recall Remark 1, elemental level compatibility condition can be written in terms of ˆ uas ⟨uD·n,1⟩∂Ωe∩ΓD+⟨b u·n,1⟩∂Ωe\ΓD= 0 (3.7) for e= 1, . . . , nel. Now, the global problem is obtained by using the remaining equations from 3.4.                  Ju⊗nK=0on Γ, Jn·(√νL+pInsd )K=0on Γ, n·(√νL+pInsd ) = −gon ΓN, u·D−n·(√νL+pInsd )E=0on ΓS, (3.8) Weak form of Local and Global problems Weak formulation of the local and global problems are discussed here. For the local problem 3.5, for given boundary conditions uD on Γ D and ˆ uh on Γ ∪ Γ N∪ Γ s , solve for (Lh e,uh e, ph e)∈[Vh(Ωe)]nsd×nsd ×[Vh(Ωe)]nsd ×Vh(Ωe)for all elements e= 1, ....., nel. 14 3.1 Governing equations                            (W,Lh e)Ωe+ (∇·(√νW),uh e)Ωe=⟨ne·√νW,uD⟩∂Ωe∩ΓD+⟨ne·√νG,ˆ uh⟩∂Ωe\ΓD −(v,∇·(√νLh e))Ωe+ (v,∇ph e)Ωe+⟨v, τeuh e⟩∂Ωe= (v,s)Ωe+⟨v, τeuD⟩∂Ωe∩ΓD+⟨v, τeˆ u⟩∂Ωe\ΓD (∇q, uh e)Ωe=⟨q, uD·ne⟩∂Ωe∩ΓD+⟨q, ˆ uh·ne⟩∂Ωe\ΓD 1 |∂Ωe|⟨pe,1⟩∂Ωe=ρe (3.9) for all (W , v, q)∈[Vh(Ωe)]nsd×nsd ×[Vh(Ωe)]nsd ×Vh(Ωe). Similarly, the solution of global problem ( ˆ uh, ph e ) ∈ [ Vh (Γ ∪ Γ N )] nsd ×Vh (Γ ∪ Γ N )such that,                  ne1 X e=1 ⟨ˆ v,ne·√νLeh⟩∂Ωe\ΓD+⟨ˆ v, ph ene⟩∂Ωe\ΓD+⟨ˆ v, τeueh⟩∂Ωe\ΓD −⟨ˆ v, τeˆ uh⟩∂Ωe\ΓD=− ne1 X e=1 ⟨ˆ v,t⟩∂Ωe∩ΓD ⟨ˆ uh·ne,1⟩∂Ωe\ΓD=−⟨uD·ne,1⟩∂Ωe∩ΓDfor e = 1,...,ne1 (3.10) for every ˆ v∈[b Vh]nsd So far we have briefly discussed the important steps of HDG Stoke formulation (see [11] and [15] for further reading). Now the discrete form of the HDG formulation of local and global problems is outlined below. Discrete form of local and global problem Discretised version of the local problem (Equation 3.9) leads to a system of equations as given in 3.11.         ALL ALu 0 0 AT Lu Auu AT pu 0 0 Apu 0 aρp 0 0 aT ρp 0        e                L u p ζ               e =                fL fu fp 0               e +         ALˆu Auˆu Apˆu 0        e b ue+                0 0 0 1               e ρe(3.11) 3.2 Overview of HDGlab solver 15 Lagrange multiplier ( ζ ) is introduced to impose the pressure constrained defined in 3.6. It is important to note that the Lagrange multiplier helps the problem to be well-posed and to obtain a unique pressure field. Rewriting the Equation 3.11 in terms of the unknowns leads to the local elemental solution,                L u p ζ               e =                zf L zf u zf p zf ζ               e +         ZLˆu Zuˆu Zpˆu Zζˆu        e b ue+                zρ L zρ u zρ p zρ ζ               e ρe(3.12) and discrete form of the global problem is given as,                    nel X e=1 AˆuL Aˆuu Aˆupe              L u p             e + [Aˆuˆu]eˆ u= nel X e=1 [fˆu]e, 1T[Apˆu]eˆ u=−1T[fp]e. (3.13) To obtain the final system of equations involving the globally coupled unknowns ˆ u and ρ , Equation 3.12 plugged into Equation 3.13.  ˆ K G GT0    ˆu ρ  =   ˆ fˆu ˆ fρ   (3.14) The matrices and vectors involved in this equations are obtained from assembling the elemental contributions. Note: Expressions of the matrices and vectors are not included in this report and can be found in [11]. 3.2 Overview of HDGlab solver HDGLab is an open-source solver implemented in MATLAB using the hybridizable discontinuous Galerkin (HDG) method. Currently, this solver is available for Poisson and Stoke equations. Unlike any other open-source HDG-implemented solvers, HDGLab provides additional features that make this solver a valuable asset to the engineering 16 3.2 Overview of HDGlab solver community. HDGLab provides higher-order polynomial functions up to degree 9 with Fekete and equally-space nodal distributions. Another aspect is that it supports curved isoparametric simplicial elements in two and three-dimensional cases. The user can choose non-uniform degree polynomial approximations and it can help to plan degree adaptivity strategy [11]. HDGLab is interfaced with Gmsh , an open-source high-order mesh generator, to facilitate its applications to solve engineering problems. This open-source software was released with GNU General Public License version 3.0 or later [16] and is available from the GitLab repository [11]. The structure of the HDGLab consists of five directories dat , Poisson , Stokes , common , and importMesh . Each of them serves a specific purpose to the solver and a brief discussion on each directory is attempted here. The directory dat contains data files that contain two and three-dimensional meshes, reference element details, and data structure required to post-process higher-order HDG solutions. The directory Poisson contains all the necessary codes and subroutines of the HDG solver of the Poisson problem. Similarly, the directory Stokes contains HDG solver for Stokes problem discussed in Section 3.1. This directory consists of three sub-directories. First, the core library hdgStokes to solve the Stokes problem and the library testsStokes to organize the functions that describe the problems including the boundary conditions, source terms, and analytical solutions, if known. Finally, resStokes , where the results are saved after an execution of Stokes solver. The directory common contains a set of functions that are common to both solvers. The final directory importMesh contains three libraries that are crucial for the mesh generation. The library GMSH contains functions used to generate meshes compatible with HDGLab solver. The routine converts .msh format mesh files generated from Gmsh [17] to .mat files. Note that .msh file generated by the Gmsh is saved with MSH options of version 2 ASCII to ensure compatibility with HDGLab. 3.2.1 Drag calculation algorithm The implementation of the drag calculation algorithm is presented here. HDGLab provides various parameters required for calculating the drag forces. An algorithm 1is developed to obtain the elements, faces, and nodes on the surface of the sphere, as well as the 3.2 Overview of HDGlab solver 17 Gauss points, weights ( w ), and normals ( n ) of the nodes on the sphere. After obtaining the nodes, the corresponding nodal values of pressure and the gradient of velocity ( ∇u ) are obtained by solving the Stokes problem. Once all the parameters are obtained, the algorithm extracts the details of the external face. Based on the flag number of the surface, which is embedded in the mesh details helps to identify the spherical surfaces. Only the details of the spherical surface are saved in the variable. The next step is to find the drag force acting on the surface of the sphere, this is achieved by summing the drag force acting on each surface element. The drag force includes two components as discussed in Equation 2.12. However, these equations are in definite integral form. A numerical integration strategy, Gaussian quadrature is adopted to calculate the drag force. For this purpose, Equation 2.12 is converted into numerical approximations. Pressure force −2πZΓsphere eˆz ·pI·ndΓ≈ −2π nf X i=1 nG X j=1 nfn X k=1 pi kNjni jezygjwj(3.15) Viscous force 2πZΓsphere eˆz ·ν(∇u+∇Tu)·ndΓ≈2πν nf X i=1 nG X j=1 nfn X k=1 (∇ui k+∇Tui k)Njni jezygjwj(3.16) Where nf , nG , and nfn are the number of face elements on the surface of the sphere, the number of Gauss points, and the number of nodes in each face element respectively. Note that both approximations include a radial factor ygj due to a change of variable theorem. The sum of Equations 3.15 and 3.16 provides the total drag force ( FD ) acting on the spherical body. Once the algorithm is implemented, the next step is to check its accuracy. Two benchmark problems are considered for this validation check and it is detailed in the next section. 3.2.2 Source term algorithm of asymptotic approximation As discussed in Chapter 2, asymptotic approximation of Navier-Stokes solutions involves solving several Stokes problems. The main difference in these individual Stokes problems is the source term presented. For the first approximation, the source term is the same as the 18 3.2 Overview of HDGlab solver Algorithm 1 Drag Calculation Require: Mesh data including external faces (mesh.extFaces), pressure (p), gradient of velocity (gradU ), problem parameters (problemParams) , reference data (refElem, refFace) , Stokes constants (ctt) 1: Set path for Stokes solver 2: Get the number of external faces (NoExtFace) from mesh data 3: Initialize variables: 4: psurface.face = [ ] 5: Psurface = [ ] 6: Lsurface = [ ] 7: PressureForce = 0 8: ViscousForce = 0 9: ForcePre = [ ] 10: ForceGradU = [ ] 11: for each external face do 12: Check if the face flag is equal to the flag number of the sphere surface. 13: if true then 14: Store the face details in surface.face 15: end if 16: end for 17: Get reference data for HDG solver (refElem, refFace) from getRefData.m 18: Obtain Stokes constants (ctt) from hdg_Stokes_Constants.m 19: Determine the number of surface boundaries ( nOfSurfaceboundary ) based on the size of surface.face. 20: for each surface boundary do 21: Get element connectivity and node coordinates for the current surface face 22: Extract element information. 23: Extract face nodes. 24: Compute shape functions and Gauss quadrature info for the face. 25: Initialize variables for force calculation. 26: for each Gauss quadrature point do 27: for each nodes in face do 28: Compute pressure force and gradient of velocity force contributions (Eq.No 3.15 and 3.16). 29: end for 30: Add pressure and viscous forces 31: end for 32: Calculate total drag 3.3 Numerical Validation 25 3.3.4 Motion of rigid sphere in stationary fluid inside cylindrical tube The second example considered for validation is the axial motion of a rigid sphere in a still fluid in an infinitely long cylinder. Figure 3.1 illustrates the physical domain of the model under consideration. A sphere of radius a is placed at the axis of the infinitely long cylinder with radius R. The following boundary conditions are applied to the computational domain.                    ∇·(−ν∇u+pI)=0 in Ω, ∇·u= 0 in Ω, u=−veˆzon Γs, u= 0 on Γin ∪Γout ∪Γcyl (3.19) For convenience, the reference system is taken at the center of the sphere, which is considered fixed. Thanks to the linearity of Stokes, this is equivalent to a physical situation where the central sphere remains stationary, and there is a constant inflow from both the right and left sides, as well as along the boundary of the cylinder. Since only Dirichlet boundary conditions are imposed in this case, an additional constraint on pressure to avoid indeterminacy. This is achieved by imposing zero mean pressure over the computational domain as discussed in section 3.1. Another important aspect of this example is to study the influence of the cylinder wall on the drag force. For this purpose, a parameter called diameter ratio, λ, is defined, λ=diameter of the sphere diameter of the cylinder =a R(3.20) Four different λ values are used to generate the confined domain as illustrated in Figure 3.6. Existing theories and experiments indicate that as the diameter ratio increases, the drag force experienced by the sphere also increases compared to the Stokes drag force in an infinite domain [14,18]. Mathematically this is written as, 26 3.3 Numerical Validation (a) λ= 0.05 (b) λ= 0.1 (c) λ= 0.2 (d) λ= 0.4 Figure 3.6: Confined domain with different diameter ratios λ. FDConfined =K(6πµu∞a)(3.21) where Kis defined as the wall correction factor. Using this background, numerical simulations are performed for all the confined domains, and corresponding drag forces are obtained. This drag force for each diameter ratio, λ is compared with the Stokes drag force (Equation 3.18), and the corresponding wall correction factor ( K ) is obtained. Numerical results obtained for the wall correction factors for different confinement radii are listed in Table 3.1 and it shows that the present study is in good agreement with the existing research. For further comparison, Figure 3.7 illustrates the wall correction factor obtained by numerical results and various theoretical solutions for different diameter ratios. Note that this example is used for asymptotic analysis in the next chapter. 3.3 Numerical Validation 27 Table 3.1: Wall correction factor for different diameter ratios λPresent study Haberman & Sayre [14] Percentage difference (%) 0.05 1.117 1.117 0.000 0.1 1.263 1.263 0.000 0.2 1.680 1.680 0.000 0.4 3.589 3.596 0.002 Figure 3.7: Wall correction factor (K) for different diameter ratio (λ). 28 4 Numerical solution of asymptotic approximation This chapter deals with the analysis of microswimmers in low Reynolds number flows considering asymptotic approximation. Simulation of single-sphere and three-sphere microswimmers are discussed in details and effect of asymptotic approximation also presented. 4.1 Analysis of single-sphere microswimmer This section presents the simulations of asymptotic approximations for a single-sphere microswimmer. Two different diameter ratios are considered to study the single sphere configuration. These examples serve as an initial step to study the three-sphere microswimmer discussed in the next section. Since this analysis is focused on a single spherical body, the drag coefficient is calculated and compared with existing empirical drag coefficient values. The analysis starts with solving the same problem presented in Section 3.3.4, but two diameter ratios, λ = 0 . 1and λ = 0 . 4, are considered to generate the computational domain. Several asymptotic approximations are simulated for this problem, and the corresponding velocity, pressure contours, and drag forces are obtained. The drag forces obtained from the asymptotic approximation are compared with the Stokes drag force, and the coefficient of drag ( CD ) is compared with existing empirical drag coefficients for a sphere. Several empirical correlations between CD and Re are available in the literature [19], and most of them are based on Stokes or Oseen law [20]. Research shows that these empirical relations are in good agreement with experimental data. For the present study, the empirical relation between CD and Re , given in Equation 4.1 [21], is used for comparison. Note that Re is replaced with ε for low Reynolds number values. Cd=24 ε+4 √ε+ 0.4(4.1) 4.1 Analysis of single-sphere microswimmer 29 4.1.1 Example 1: Single Sphere with diameter ratio λ= 0.1 In this example, motion of rigid sphere inside a cylinder with diameter ratio, λ = 0 . 1 presented. Using the source introduced in the Algorithm 2and asymptotic approximation equations discussed in chapter 2, solutions are obtained for total of seven approximations. However only three approximations are illustrated in figures. (a) uz (b) ur (c) p (d) Streamlines Figure 4.1: Solutions of first asymptotic approximation (Stokes flow), ε= 0, k = 0 The first approximation, where, ε = 0 , k = 0, depicts the Stokes hypothesis as illustrated in Figure 4.1 . In this scenario, as expected the flow is laminar around the sphere with zero velocity on the surface of the sphere. It is observed that the radial velocity is zero far from the spherical body. Another important observation is that the pressure is symmetric with positive and negative values at the left and right side of the sphere. and the pressure is symmetric to the sphere. This is expected since the mean value of pressure over the whole domain is zero as stated in Section 3.1. Since it is a confined domain, velocity increment can be observed on top of the sphere due to the wall influence. After solving 30 4.1 Analysis of single-sphere microswimmer (a) uz (b) ur (c) p (d) Streamlines Figure 4.2: Solutions of second asymptotic approximation,ε= 0, k = 1 this first approximation, the solution of u and ∇u used to generate the source term discussed earlier in this chapter for solving the Stoke problem for second approximation. In the second approximation, where ε = 0 and k = 1, homogeneous Dirichlet and Neumann conditions with a source term are added. Due to this, the flow generated in the domain is purely due to the source term, and it is not a realistic scenario but is exclusively used to introduce non-linearity to the previous approximation. Figure 4.2 illustrates the solution of the second approximation. In this scenario, the flow field is quite interesting. An initial observation is that the velocities uz and ur are relatively small compared with the first approximation. Moreover, the pressure distribution behaves completely differently in this scenario, with maximum pressure experienced on the left and right surfaces of the sphere, while negative pressure is observed on the top of the sphere. The streamlines also depict the behavior of the fluid under these conditions. As we can see, there are four source points where the fluid 4.1 Analysis of single-sphere microswimmer 31 (a) uz (b) ur (c) p (d) streamlines Figure 4.3: Solutions of second asymptotic approximation,ε= 0, k = 2 emerges, and the strength of the source term decreases with distance from the sphere. In this condition, the total drag force acting on the sphere is obtained and will be discussed in detail later. In the third approximation where ε = 0 and k = 2, the magnitudes of uz and ur are further reduced due to the decreased source strength. It is clear that as the approximation progresses, the strength of the source term diminishes. Figure 4.3 illustrates the solutions and shows that the pressure distribution around the sphere exhibits a similar behavior compared to the first approximation, although the values are smaller. The main differences between the second and third approximations are evident in the streamlines and velocity vectors. In this approximation, a new source term appears, bringing the total to five sources. This new source may influence the drag force acting on the sphere. Similar observations are made with other approximations; however, to keep the report concise, only a selection of solution contours is included, while others have 32 4.1 Analysis of single-sphere microswimmer been omitted. After executing different asymptotic approximations, the drag forces acting on the sphere are obtained and depicted in Table 4.1. For each approximation, viscous, pressure, and total drag forces are analyzed. The total value indicates the coefficients in the total drag force equation for asymptotic approximations. As expected, for the first approximation, the total drag force is exactly similar to the drag force acting on the sphere for a confined case. The drag force of 23.811 which includes the wall correction factor discussed earlier. As the approximation progresses, it is evident that the approximations where k = 1 , 3 , 5 , . . . do not contribute pressure or viscous force to the total drag. However, the solutions of these approximations are important for calculating the source term for other approximations. Another observation is that, as the approximation progresses, the total drag values decrease, which can be explained by the reduction in source strength calculated from velocity and its gradient. Table 4.1: Total drag force on the sphere for different approximation, Example 1 Approximation Pressure Viscous Total ε= 0, k = 0 7.9691 15.8412 23.8111 ε= 0, k = 1 2.9634 ×10−5−4.9058 ×10−5−1.9424 ×10−5 ε= 0, k = 2 0.8061 1.3776 2.1837 ε= 0, k = 3 −5.3141 ×10−78.9881 ×10−68.4567 ×10−6 ε= 0, k = 4 −0.3313 −0.5946 −0.9260 ε= 0, k = 5 1.2648 ×10−64.8517 ×10−6−3.5868 ×10−6 ε= 0, k = 6 0.2209 0.3969 0.6178 ε= 0, k = 7 −1.1173 ×10−63.3538 ×10−62.2364 ×10−6 Figure 4.4 illustrates the drag coefficient for various Reynolds numbers ( ε < 1). It is clear that the first and second approximations coincide, as do the third and fourth approximations. This trend continues similarly in subsequent approximations. Note that only approximations with non-zero drag values are plotted. For the first two approximations, the drag force aligns with the Stokes hypothesis, as expected. However, for subsequent approximations, the drag force increases as ε increases. Notably, k = 2 , 3 and 5approximations behave similarly for ε ranging from 0 to 0.45, with deviations observed beyond this range. While the increase in drag compared to the Stokes drag force is not significant, it is 4.1 Analysis of single-sphere microswimmer 33 evident that the non-linear terms in the Navier-Stokes equations contribute slightly to the total drag force. A similar behavior is observed in the asymptotic coefficient of drag, as illustrated in Figure 4.5. Figure 4.4: Total drag force (FD) for different approximations Figure 4.5: Comparison of Drag coefficient (CD) 34 4.1 Analysis of single-sphere microswimmer Figure 4.6: Relative error between asymptotic approximation and empirical drag coefficient Furthermore, the results in Figure 4.6 illustrate the relative error between the asymptotic and empirical drag coefficients for low Reynolds number flows. The first two approximations show greater variance in relative error compared to the other approximations. Additionally, for very low values of ε , the relative error is consistently small across all approximations. It is important to note that one correlation from various empirical formulas was chosen to assess the differences in drag coefficients. In summary, the asymptotic approximations introduce non-linearity to the total drag force for low Reynolds number flows. However, the increase in drag force or coefficient of drag at low Reynolds numbers is not significantly different from that predicted by the Stokes problem. 4.2 Analysis of Three-Sphere Microswimmer 41 Figure 4.13: Three-sphere microswimmer, Configuration 1 Since the swimmer consist of three spheres, total drag force acting on the swimmer is nothing but the summation of the drag forces acting on individual spheres. Total of six approximations are analysed. Major difference between the single sphere discussed in Example 2 and Configuration 1 is the flow pattern observed for all the approximations. These difference can be visually observed from the solutions illustrated in Figures 4.14, 4.15 and 4.16. For the first approximation, apart from the variation in velocity and pressure, now it can be observed that, vortex is generated between the spheres near to the axisymetric axis. These vortex generate a toroidal shape in three dimensional flow. The strength of the vortex is mainly depends on the flow velocity and the distance between the spheres. In this case, velocity near this region is very small and the strength of vortex is assumed to be smaller. For the next approximations, number of sources are created in the flow domain as expected. In the second approximation, sphere − 1and sphere − 2experience an unsymmetrical flow distribution on the front and rear sides, and these flow distributions are mirrored for each sphere. However, sphere − 0experiences a symmetric flow on the front and rear sides. Similar observations are made for the other approximations and only three approximations are presented here. 42 4.2 Analysis of Three-Sphere Microswimmer (a) uz (b) uz (c) ur (d) ur (e) p (f) Streamlines Figure 4.14: Solutions of first approximation,ε= 0, k = 0 for Configuration 1 4.2 Analysis of Three-Sphere Microswimmer 43 (a) uz (b) uz (c) ur (d) ur (e) p (f) Streamlines Figure 4.15: Solutions of second approximation,ε= 0, k = 1 for Configuration 1 44 4.2 Analysis of Three-Sphere Microswimmer (a) uz (b) uz (c) ur (d) ur (e) p (f) Streamlines Figure 4.16: Solutions of third approximation,ε= 0, k = 2 for Configuration 1 4.2 Analysis of Three-Sphere Microswimmer 45 Furthermore, the drag experienced by each sphere and the total drag for different approximations are analyzed. Table 4.3 provides the drag forces acting on the swimmer, specifically on each sphere for different approximations. The first observation from the table is that sphere − 1and sphere − 2exhibit the same drag forces in magnitude for each approximation, with the sign changing for odd values of k . Moreover, sphere − 0 produces zero drag force for k = 1 , 3 , 5, a behavior also observed in the single sphere case discussed earlier. The same trend is observed for the total drag force of the swimmer. From the drag values, it is evident that k = 1 , 3, and 5do not contribute to the total asymptotic drag force for the three-sphere microswimmer configuration 1. 46 4.2 Analysis of Three-Sphere Microswimmer Table 4.3: Asymptotic analysis of three-sphere microswimmer, Configuration 1 Approximation Pressure Viscous Total ε= 0, k = 0 Sphere 2 25.450 37.390 62.840 Sphere 0 23.118 34.858 57.976 Sphere 1 25.450 37.390 62.840 Total 74.018 109.64 183.66 ε= 0, k = 1 Sphere 2 0.0005 0.1646 0.1651 Sphere 0 0.0000 0.0000 0.0000 Sphere 1 -0.0005 -0.1646 -0.1651 Total 0.0000 0.0000 0.0000 ε= 0, k = 2 Sphere 2 0.0604 0.0334 0.0938 Sphere 0 0.0349 0.0006 0.0355 Sphere 1 0.0604 0.0334 0.0938 Total 0.1557 0.0674 0.2231 ε= 0, k = 3 Sphere 2 0.0054 0.0031 0.0085 Sphere 0 0.0000 0.0000 0.0000 Sphere 1 -0.0054 -0.0031 -0.0085 Total 0.0000 0.0000 0.0000 ε= 0, k = 4 Sphere 2 -0.0007 -0.0004 -0.0011 Sphere 0 -0.0008 -0.0002 -0.0010 Sphere 1 -0.0007 -0.0004 -0.0011 Total -0.0022 -0.0010 -0.0032 ε= 0, k = 5 Sphere 2 -0.0001 -0.0001 -0.0002 Sphere 0 0.0000 0.0000 0.0000 Sphere 1 0.0001 0.0001 0.0002 Total 0.0000 0.0000 0.0000 The total drag force for different Reynolds numbers is illustrated in Figure 4.17. As expected, the drag force for first and second approximations do not change for different Reynolds numbers, as the value is the same as the Stokes drag. For the first approximation, the total drag is 183.66, and it increases as the Reynolds number increases. However, the 4.2 Analysis of Three-Sphere Microswimmer 47 variation in drag force for Reynolds numbers ε < 1is not significant compared to the Stokes drag force. This shows that the asymptotic approximation includes the non-linearity, but it is not significant enough to substantially increase the drag force in this case. Figure 4.17: Total drag force of three-sphere microswimmer, Configuration 1 4.2.2 Configuration 2 In this configuration, the spheres are located at c0 = 0, c1 = 2 . 5and c2 = − 10 on the z-axis with radius a = 1. This indicates, swimmer stroke with one arm fully extended and the second arm fully contracted situation. Computational domain for this configuration is illustrated in Figure 4.18. In this case, sphere − 2is far from the other two spheres and the flow behaves the same as in the single sphere configuration. In the first asymptotic approximation, the flow near the symmetric axis after sphere − 2does not create a vortex and remains smooth flow towards sphere − 0. However, the flow between sphere − 0and sphere − 1near the axisymmetric axis observes a vortex in a similar fashion to Configuration 1, as shown in Figure 4.19. For the second approximation, sphere − 1exclusively has sources nearby, and the sources near the other spheres are similar to those in Configuration 1. 48 4.2 Analysis of Three-Sphere Microswimmer Figure 4.18: Three-sphere microswimmer, Configuration 2 (a) uz (b) uz (c) ur (d) ur (e) p (f) Streamlines Figure 4.19: Solutions of first approximation, ε= 0, k = 0 for Configuration 2 4.2 Analysis of Three-Sphere Microswimmer 49 (a) uz (b) uz (c) ur (d) ur (e) p (f) Streamlines Figure 4.20: Solutions of second approximation, ε= 0, k = 1 for Configuration 2 50 4.2 Analysis of Three-Sphere Microswimmer (a) uz (b) uz (c) ur (d) ur (e) p (f) Streamlines Figure 4.21: Solutions of third approximation, ε= 0, k = 2 for Configuration 2 To understand these approximations further, drag forces are calculated. Viscous and pressure drag forces acting on each sphere, as well as total drag forces for each approximation, are tabulated in Table 4.4. It is worth noting that sphere − 2shows exactly similar drag values as the single sphere swimmer for every approximation. This is expected because the flow around this sphere is not altered by the other spheres and behaves like a single sphere inside a confined domain. Another observation is that for k = 1 , 3 , 5, the total drag force experienced by the swimmer is zero, and this pattern is consistent with the examples discussed earlier.