원시데이터 수집 시스템
선정목록으로

IB2d Reloaded: a more powerful Python and MATLAB implementation of the immersed boundary method

간접 관련 엔지니어링 플라스틱 · (23) 컴파운드 (3) 자동차 인테리어 소재(17) 스펀본드 부직포

기본 정보

저자
  1. Battista, Nicholas
  2. Strickland Christopher
  3. Barrett, Aaron
  4. Miller, Laura
DOI
10.48550/arxiv.1707.06928
저널
arXiv (Cornell University)
발행년도
2022
발행기관
Cornell University
피인용수
1
라이선스
0
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.48550/arxiv.1707.06928
토픽
Composite Material Mechanics
OpenAlex ID
W6891776278

평가 내용

관련도
간접 관련
사업분야
엔지니어링 플라스틱 · (23) 컴파운드
부 분야
(3) 자동차 인테리어 소재, (17) 스펀본드 부직포
R&D 측면
분석·모델링
확신도
0.70
근거 용어
fluid-structure interaction, computational fluid dynamics, elastic structures, poroelastic media, Navier-Stokes equations
판단 근거
이 논문은 유체와 탄성 구조물 간의 상호작용(FSI)을 시뮬레이션하는 수치 해석 방법론(Immersed Boundary Method)에 관한 연구입니다. 직접적인 제품 연구는 아니나, 복합소재(23)의 유동 특성이나 자동차 인테리어/부직포(3, 17)의 다공성 구조 내 유체 거동을 모델링하는 데 응용될 수 있습니다.
R&D 활용 포인트
고분자 컴파운드의 유동 해석, 다공성 필터/부직포 내의 유체 투과성 시뮬레이션, 또는 자동차 부품의 유체-구조 상호작용에 의한 내구성 예측 모델링에 활용 가능합니다.
평가 입력
본문 77,914자 중 30,032자 발췌

초록

The immersed boundary method (IB) is an elegant way to fully couple the motion of a fluid and deformations of an immersed elastic structure. In that vein, the IB2d software allows for expedited explorations of fluid-structure interaction for beginners and veterans to the field of computational fluid dynamics (CFD). While most open source CFD codes are written in low level programming environments, IB2d was specifically written in high- level programming environments to make its accessibility extend beyond scientists with vast programming experience. Although introduced previously by Battista et al. 2015, many improvements and additions have been made to the software to allow for even more robust models of material properties for the elastic structures, including a data analysis package for both the fluid and immersed structure data, an improved time-stepping scheme for higher accuracy solutions, and functionality for modeling slight fluid density variations as given by the Boussinesq approximation.

본문 77,914자

본문 펼치기
## IB2d Reloaded: a more powerful Python and MATLAB implementation of the immersed boundary method Nicholas A. Battista <sup>a,b,d,</sup> <sup>_∗_</sup>, W. Christopher Strickland <sup>b,c</sup>, Aaron Barrett <sup>b</sup>, Laura A. Miller <sup>b,d</sup> _aDepartment_ _of_ _Mathematics_ _and_ _Statistics,_ _The_ _College_ _of_ _New_ _Jersey,_ _2000_ _Pennington_ _Rd.,_ _Ewing,_ _NJ_ _08628_ _bDepartment_ _of_ _Mathematics,_ _CB_ _3250,_ _University_ _of_ _North_ _Carolina,_ _Chapel_ _Hill,_ _NC,_ _27599_ _cDepartment_ _of_ _Mathematics,_ _University_ _of_ _Tennessee_ _at_ _Knoxville,_ _1403_ _Circle_ _Drive,_ _Knoxville_ _TN,_ _37996_ _dDepartment_ _of_ _Biology,_ _CB_ _3280,_ _University_ _of_ _North_ _Carolina,_ _Chapel_ _Hill,_ _NC,_ _27599_ Abstract The immersed boundary method (IB) is an elegant way to fully couple the motion of a fluid and deformations of an immersed elastic structure. In that vein, the _IB2d_ software allows for expedited explorations of fluid-structure interaction for beginners and veterans to the field of computational fluid dynamics (CFD). While most open source CFD codes are written in low level programming environments, _IB2d_ was specifically written in highlevel programming environments to make its accessibility extend beyond scientists with vast programming experience. Although introduced previously in [1], many improvements and additions have been made to the software to allow for even more robust models of material properties for the elastic structures, including a data analysis package for both the fluid and immersed structure data, an improved time-stepping scheme for higher accuracy solutions, and functionality for modeling slight fluid density variations as given by the Boussinesq approximation. _Keywords:_ Immersed boundary method, fluid-structure interaction, mathematical biology, biomechanics 1. Introduction Fluid-structure interaction models (FSI) are creeping into all disciplines in science [2]. Its applications can range from guiding the engineering design of airplanes, boats, and cars for transportation [3, 4, 5] to understanding the locomotion of aquatic organisms [6, 7, 8] and animal flight [9, 10, 11], or personalized medicine [12, 13, 14] and surgical planning and practice [15, 16] to understanding the role of blood flow in heart development [17, 18, 19, 20]. _∗_ I am corresponding author _Email_ _addresses:_ `nickabattista@gmail.com` (Nicholas A. Battista), `cstric12@utk.edu` (W. Christopher Strickland), `abarret@live.unc.edu` (Aaron Barrett), `lam9@unc.edu` (Laura A. Miller) _URL:_ `nickabattista.wixsite.com/home/` (Nicholas A. Battista) _Preprint submitted to Special issue Biomathematics:_ _Mathematical Methods in the Applied SciencesJuly 24, 2017_ Fully coupled FSI does not prescribe the motion of the structure that is immersed in a fluid. The deformations of the structure are due to the movement of the fluid, and the movement of the fluid is induced by the forces exerted by the deformations of the structure. For example, if one models ventricular contraction, they can do it two ways. They could elect to prescribe the motion of the ventricle itself, perhaps basing the movement on kinematic data, and observe the reaction of the fluid to the wall movement. Or they may model the ventricular contraction based on an electrophysiology model that feeds into a muscular force generation model which drives contraction. In this case, the ventricle walls are free to deform under the motion of the fluid. This is fully coupled FSI, where the motion of the ventricular walls are not prescribed, and hence they are not acting as a rigid surface, only moving in a dictated fashion, but are free to deform in reaction to the fluid moving. The immersed boundary ( _IB_ ) method provides an intuitive framework to study fully coupled FSI problems. It was first developed by Charles Peskin in 1972 to study blood flow around cardiac valves and in turn, the deformations of valve leaflets due to underlying blood flow [21]. Moreover, it also allows functionality to prescribe motion of immersed structures [1]. It has been successfully applied to study the FSI between an elastic structure immersed within an incompressible fluid for a variety of biological and engineering applications within the intermediate Reynolds number ( _Re_ ) regime, e.g. _Re ∼O_ (0 _._ 01 _,_ 1000). _Re_ is given as _Re_ = <sup>_<u>ρLV</u>_</sup> _µ_ <sup>_,_</sup> (1) where _µ_ and _ρ_ are the dynamic viscosity and density of the fluid, respectively, and _L_ and _V_ are a characteristic length and velocity scale of the problem. It is used to capture the correct biological or engineering scale in fluid dynamic models. The elegance behind _IB_ lies in its ability to solve fully coupled fluid-structure interaction problems which involve complicated time-dependent geometries while using a regular fixed Cartesian discretization of the fluid domain. The immersed structure is composed of elastic fibers, which govern its material properties, and is discretized on a Lagrangian mesh, e.g. it is not constrained to a fixed Cartesian grid. The movement of the fluid and elastic fibers are coupled; the immersed structure moves at the local fluid velocity while also applying a singular force onto the fluid arising from deformations of the structure itself. There are many ways to model the fiber elasticity properties of the immersed structure [22, 1] giving rise to a wide range of formidable applications. Some immersed boundary examples that illustrate this variety include cardiovascular dynamics [23, 24], aquatic locomotion [25, 26], insect flight [27, 11], parachute dynamics [28], muscle-fluid-structure interactions [29, 22, 30], plant biomechanics [31, 32], soap filaments [33, 34], and cellular and other microscale interactions [35, 36, 37, 38]. Furthermore, the _IB_ framework invites one to add other constitutive models such as electrophysiology, cellular signaling, or chemical reaction equations into the FSI framework [39, 37, 29, 40, 41, 42, 43, 44, 1, 45]. In this paper, we are releasing a more finely-tuned version of _IB2d_, which is _IB_ software with full implementations in both MATLAB [46] and Python 3.5 [47] that is capable of modeling a wide range of fluid-structure interaction applications in engineering or biomechanics. It extends the functionality of the software described in [22, 1] by implementing more robust 2 models for modeling material properties of the elastic structures, a data analysis toolbox for analyzing both fluid and immersed structure data, an improved time-stepping scheme for higher accurate FSI solutions, functionality for modeling slight fluid density variations as given by the Boussinesq approximation, and other improvements targeting code transparency, utility, and speed. The updated software package also contains 50+ examples, some of which come from previous _IB_ literature, which illustrate the breadth of the software. 2. IBM Framework _IB2d_ models two dimensional fluid motion coupled to the motion of an immersed structure moving within it. The fluid motion is governed by the Navier-Stokes equations in Eulerian form, written as _ρ_ - _<u>∂</u>_ <u>u</u> <u>(</u> <u>x</u> _<u>, t</u>_ <u>)</u> + u ( x _, t_ ) _· ∇_ u ( x _, t_ ) = _−∇p_ ( x _, t_ ) + _µ_ ∆ u ( x _, t_ ) + f ( x _, t_ ) (2) _∂t_ _∇·_ u ( x _, t_ ) = 0 _,_ (3) where u ( x _, t_ ) = ( _u_ ( x _, t_ ) _, v_ ( x _, t_ )) is the fluid velocity, _p_ ( x _, t_ ) is the pressure, and f ( x _, t_ ) is the force per unit volume (or area in 2 _D_ ) applied to the fluid by elastic forces arising arising from deformations of the immersed structure. The independent variables are the position, x = ( _x, y_ ), and time, _t_ . Eq.(2) is the statement of conservation of momentum for a fluid while Eq.(3) is the incompressibility condition enforcing mass conservation of the fluid. _IB2d_ currently assumes a periodic domain. A future release will include functionality for a projection method fluid solver to enforce Dirichlet and Neumann boundary conditions [48, 49]. The interaction equations essentially model all communication between the immersed deformable structure and the fluid and are given by the following integral equations with delta function kernels, f ( x _, t_ ) = F ( _r, t_ ) _δ_ ( x _−_ X ( _r, t_ )) _dr_ (4) U ( X ( _r, t_ ) _, t_ ) = <sup>_<u>∂</u>_</sup> <sup><u>X</u></sup> <sup><u>(</u></sup> <sup>_<u>r, t</u>_</sup> <sup><u>)</u></sup> = _∂t_ u ( x _, t_ ) _δ_ ( x _−_ X ( _r, t_ )) _d_ x _,_ (5) where X ( _r, t_ ) gives the Cartesian coordinates at time _t_ of the material point labeled by Lagrangian parameter _r_, F ( _r, t_ ) is the force per unit area imposed by elastic deformations in the immersed structure onto the fluid, as a function of the Lagrangian position, _r_, and time, _t_ . The force density, F ( _r, t_ ), is a functional of the current immersed boundary’s configuration. Moreover, the force density is modeled as F ( _r, t_ ) = F( X ( r _,_ t ) _,_ t ) _,_ (6) where F( X _,_ t ) is a combination of all the constitutive fiber model relations, modeling specific material properties of the immersed structure for a particular application. Previous fiber models implemented in _IB2d_ are described in [1], and new fiber model implementations, 3 e.g. damped springs, non-invariant beams, poroelastic media, coagulation, and user-defined force models are described in Section 3.1. Eq.(4) applies a force arising from deformations of the immersed structure’s preferred configuration to the fluid through a delta-kernel integral transformation. Essentially the fluid grid points nearest to the Lagrangian point, where the deformation force is given, feel the largest force and such deformation forces taper off at fluid grid points further away. Eq.(5) sets the velocity of the boundary equal to the local fluid velocity to satisfy the no-slip condition on the immersed structure. The following regularized delta functions, _δh_, are used upon discretizing Eqs.(4) and (5), _δh_ ( x ) = <sup><u>1</u></sup> _h_ <sup>2</sup> <sup>_φ_</sup> where _h_ is the fluid grid width and - _<u>x</u>_ _h_ _φ_ - _<u>y</u>_ _h_ _,_ (7) _φ_ ( _r_ ) = - <u>1</u> �1 + cos - _<u>πr</u>_ �� _|r| ≤_ 2 4 2 (8) 0 otherwise <sup>_,_</sup> where _r_ is the distance from the Lagrangian node. This particular regularized delta function has compact support. There exist other discrete delta functions with compact support which have been incorporated into _IB_ frameworks [50], and these may be easily incorporated into the software if desired. More details on regularized delta functions may be found in [50, 51]. In a traditional immersed boundary framework, the coupled equations (2-5) are solved using the algorithm described in Peskin’s _IB_ review paper [50] with periodic boundary conditions imposed on both the fluid and immersed boundary. The standard numerical algorithm for immersed boundary [50] is as follows: _Step_ _1:_ Compute the force density F <sup>_n_</sup> ( _r, t_ ) on the immersed boundary from the current bound ary deformations, X <sup>_n_</sup>, where n indicates the _n_ <sup>_th_</sup> time-step. _Step_ _2:_ Use Eq.(4) to spread these deformation forces from the Lagrangian nodes to the fluid lattice points nearby. _Step_ _3:_ Solve the Navier-Stokes equations, Eqs.(2) and (3), on the Eulerian domain, e.g. up date u <sup>_n_</sup> <sup>+1</sup> and _p_ <sup>_n_</sup> <sup>+1</sup> from u <sup>_n_</sup> and f <sup>_n_</sup> . Note: since we are enforcing periodic boundary conditions on the computational domain, the Fast Fourier Transform (FFT) [52, 53] is used to solve for these updated quantities at an accelerated rate. _Step_ _4:_ Update the fiber model positions, X <sup>_n_</sup> <sup>+1</sup>, using the local fluid velocities, U <sup>_n_</sup> <sup>+1</sup>, using u <sup>_n_</sup> <sup>+1</sup> and Eq.(5), e.g. move the immersed structure at the local fluid velocities thereby enforcing _no_ _slip_ boundary conditions. The above algorithm had been previously used in _IB2d_ and details regarding the discretization for this implementation are found in [1]. However, in this release we follow the algorithm presented in [54], which gives a formally second-order _IB_ algorithm. Details on this _IB_ algorithm’s implementation are found in Section 3.2. 4 3. IB2d New Functionality Since the original _IB2d_ release papers [22, 1], new functionality has continually been added to the software. In the following sections we we will give an overview of the recent additions to the software for available fiber models and fluid solvers. Later in Section 5 we will illustrate such functionality through a variety of examples. _3.1._ _Fiber_ _Models_ Since the initial release, _IB2d_ has added fiber model functionality for the following: 1. Damped Springs (ex. tethered ball in channel) 2. Non-invariant Beams (ex. anguilliform swimmer) 3. Poroelastic Media (ex. sea grass in oscillatory flow) 4. Coagulation Model (ex. stirring cells) 5. User-defined Force Model (ex. the rubber-band) Damped Springs Figure 1: Illustrated the idea behind the damped springs model. Resistance to stretching or bending is opposed by a friction-like term that is proportional to the velocity of deformation. Resistance to stretching between successive Lagrangian points can be achieved by modeling the connections with Hookean (or Non-Hookean) springs of resting length _RL_ and spring stiffness _kS_ . If the virtual spring displacement is below or beyond _RL_, the model will drive the system back towards a lower energy state, as discussed in [1]. Moreover, one may also choose to use damped springs, which assumes a frictional damping force that is proportional to the velocity of the oscillation. We note that these take a similar form to the linear spring case, but with an additional term modeling the damping, i.e., - - _xSL −_ _xM_ _·_ _ySL −_ _yM_ + _bS_ _<u>d</u>_ _dt_ <sup>_||_</sup> <sup>X</sup> <sup>_SL −_</sup> <sup>X</sup> <sup>_M_</sup> <sup>_||,_</sup> (9) _Fd.spring_ = _kS_ - _<u>RL</u>_ 1 _−_ _||_ X _SL −_ X _M_ _||_ where _bS_ is the damping coefficient. This idea is illustrated in Figure 1. 5 Non-invariant Beams Figure 2: Motivating the idea of non-invariant beams. The beam has a preferred _x_ - and _y_ -curvature, given by _CxandCy_, respectively. When the configuration is deformed so curvatures are now _C_ <sup>ˆ</sup> _x_ and _C_ <sup>ˆ</sup> _y_, respectively, a restoring force drives the configuration towards its preferred equilibrium position. Another way to model the resistance bending between three successive Lagrangian points (rather than using torsional springs as in [1]) is by using a non-invariant beam connecting the three successive nodes. The model assumes a prescribed ‘curvature’ in both _x_ and _y_ components between the three Lagrangian points with corresponding bending stiffness _kNIB_ . The corresponding bending deformation forces are modeled as F _beam_ = _kNIB_ _<u>∂</u>_ <sup>4</sup> _∂s_ <sup>4</sup> <sup>(</sup> <sup>X</sup> <sup>(</sup> <sup>_s, t_</sup> <sup>)</sup> <sup>_−_</sup> <sup>X</sup> <sup>_b_</sup> <sup>(</sup> <sup>_s_</sup> <sup>))</sup> <sup>_,_</sup> (10) where X ( _s, t_ ) is the current Lagrangian configuration at time _t_, e.g. the mapping of the Lagrangian points _s_ to the underlying Cartesian grid, and X ( _s_ ) is the preferred configuration of the fiber model. More details about this fiber model can be found in [50, 55, 56] and the discretization is discussed below in Section 3.1.2. This fiber model is illustrated in Figure 2. This model is denoted as non-invariant beams since these beams are non-invariant under rotations, as opposed to the torsional spring fiber model. Similarly to the torsional spring model, non-invariant beam deformation forces can only occur on immersed boundary points on the interior or the fiber structure, not the endpoints. An example using non-invariant beams is found in Section 5.2. Poroelastic Media In contrast to porous media being modeled using the traditional form of Darcy’s Law such as in previous IB implementations [28, 57, 1], one can define a poroelastic structure based on Brinkman-like terms in the momentum equation 2. Recall that the traditionally considered Darcy’s Law is a phenomenologically derived constitutive equation, which models the fluid velocity through a porous boundary as proportional to the pressure gradient on 6 the two sides of that boundary [58]. This can be described mathematically as _Up_ = _−_ <sup>_<u>κp</u>_</sup> <sup><u>[</u></sup> <sup>_<u>p</u>_</sup> <sup><u>]</u></sup> (11) _µσ_ <sup>_,_</sup> where _Upn_ ˆ is the porous slip velocity, _κp_ is the membrane permeability, _σ_ is the structure’s thickness, [ _p_ ] is the pressure gradient across the boundary, and _n_ ˆ is the unit normal vector to the permeable structure. However, one may also use the Brinkman equations to model the fluid flow through a permeable medium. The Brinkman equations are a combination of the momentum equation in the Navier-Stokes equations (2) and Darcy’s Law (11). They account for the dissipation of kinetic energy by viscous shearing and can model the transition between slow flow in porous media, which is governed by Darcys law, and faster flow, as described by (2). The Brinkmann equations take the form _ρ_ - _<u>∂</u>_ <u>u</u> <u>(</u> <u>x</u> _<u>, t</u>_ <u>)</u> + u ( x _, t_ ) _· ∇_ u ( x _, t_ ) = _−∇p_ ( x _, t_ ) + _µ_ ∆ u ( x _, t_ ) + _µα_ ( x _,_ y ) u + f ( x _, t_ ) _,_ (12) _∂t_ where the additional term _µα_ ( x _,_ y ) u is the Brinkmann term. _α_ ( x _,_ y ) is the inverse of the hydraulic permeability in low _Re_ . Note that if a region is not porous, then _α_ ( x _,_ y ) = 0, and if it is porous then _α_ ( x _,_ y ) _>_ 0 _._ However, rather than add this term into (2) as part of the fluid solve, we will assume that deformations of an immersed elastic structure, composed of springs (whether linear, non-linear, or damped), are balanced by the Brinkmann term, e.g. f _brink_ = _−_ f _elastic._ (13) (a) (b) Figure 3: Illustrating the idea behind poroelastic media in _IB2d_ . (a) Depiction of a region of poroelasticity within a fluid domain. (b) An example of how to construct a poroelastic region with springs. Note you could also attach springs diagonally across, as well. This idea is shown in Figure 3. These elastic deformation forces can then be used to find the slip velocity of the boundary <u>f</u> _<u>elastic</u>_ U _b_ ( X _, t_ ) = u ( x _, t_ ) + _α_ ( x _,_ y ) _µ_ <sup>_._</sup> (14) 7 Coagulation (Aggregaton) Model Figure 4: This diagram illustrates that bonds will be formed between cells, if the distance from cell-center to cell-center is less than some set threshold. One can model dynamically occurring bonds between moving Lagrangian points to model the aggregation of cells or particles. Coagulation and aggregation had been previously introduced into an IB framework in [59]. Many improvements in modeling blood clotting, coagulation, and thrombus formation in conjunction with flow have been demonstrated in [60, 61, 62, 37, 63, 64]. Our primitive model creates bonds, by initiating a spring connection, between the closest Lagrangian points to its neighboring cell if the cells are within a threshold distance away from one another. This bond (spring) fractures if there is a large enough force to break the bond, set by a fracture threshold. 8 Figure 5: Schematic of the subset of the IB algorithm that models coagulation. After bonds are formed, the simulation marches forward one time-step, checks for fracture if a bonded force is greater than a threshold value, erases bonds, if necessary, checks for bond formation, and then repeats this process, similarly. Figures 4 and 5 illustrate bond formation and bond fracturing for the coagulation and aggregation model. Figure 4 shows that bonds will form when cells are close enough to one enough. This is modeled by a spring (linear, non-linear, damped), where a spring is set between the two Lagrangian Points that are closest together along the neighboring cells. When the bond is formed, the simulation will then proceed forward. After a time-step, it will check for bonds that fracture. If the magnitude of one of the springs is greater than a threshold value, that bond will be erased modeling bond fracture. Next, the algorithm checks for new bond formation and if there are, creates such bonds after which the process repeats. This is shown in Figure 5. User-defined Force Model _IB2d_ also allows the option for the user to define their own force model. The user has control in how they define their model as well as what Lagrangian points are involved as many items are passed into the model automatically, such as the current and previous position of the Lagrangian points, current time, time-step, etc, and also includes the functionality for the user to read in appropriately chosen data for parameters, etc. An example 9 of how to use this functionality is shown in Section 3.1.1. _3.1.1._ _Using_ _the_ _User-defined_ _Force_ _Model_ The user-defined force functionality works very similarly to the other fiber models, e.g. there is an associated input file, that data gets read into _IBM_ _~~D~~_ _river_ file, and then finally into a function that computes the deformation forces at each time step. However, the difference is that the user defines the style of the input file, and controls the deformation force model script themselves in the particular Example folder. The user-defined force input file ends with a _‘struct’.user_ _~~f~~_ _orce_, where _‘struct’_ is the string name designating that particular example, i.e., the name specified in the _input2d_ file. Inside the _.user_ _~~f~~_ _orce_ file, the user has the ability to put whatever necessary parameters, Lagrangian IDs, etc., are required for their force model. This is completely analogous to the formats of other input file types. The input file data then gets passed to a script _give_ _~~M~~_ _e_ _~~G~~_ _eneral_ _~~U~~_ _ser_ _~~D~~_ _efined_ _~~F~~_ _orce_ _~~D~~_ _ensities_, which needs to be found in the Example folder. That script receives the input parameters listed in Table 1 from the _IBM_ _~~D~~_ _river_ file. <u>Input</u> <u>Parameters</u> <u>for</u> _<u>give</u>_ _~~<u>M</u>~~_ _<u>e</u>_ _~~<u>G</u>~~_ _<u>eneral</u>_ _~~<u>U</u>~~_ _<u>ser</u>_ _~~<u>D</u>~~_ _<u>efined</u>_ _~~<u>F</u>~~_ _<u>orce</u>_ _~~<u>D</u>~~_ _<u>ensities</u>_ _ds_ Lagragian spacing (defined by _ds_ = <sup><u>1</u></sup> 2 <sup>_dx_</sup> <sup>)</sup> _Nb_ # of Lagrangian Pts. _xLag_ current x-Lagrangian coordinate positions _yLag_ current y-Lagrangian coordinate positions _xLag_ _~~P~~_ previous x-Lagrangian coordinate positions _yLag_ _~~P~~_ previous y-Lagrangian coordinate positions _dt_ time-step value _current_ _~~t~~_ _ime_ current time in simulation _<u>general</u>_ _~~<u>f</u>~~_ _<u>orce</u>_ <u>matrix</u> <u>containing</u> <u>all</u> <u>data</u> <u>from</u> <u>the</u> _<u>.user</u>_ _~~<u>f</u>~~_ _<u>orce</u>_ <u>input</u> <u>file</u> Table 1: Descriptions of all the parameters passed into the user-defined deformation force script. With these parameters and the data read in from the _.user_ _~~f~~_ _orce_ file, the user can define their own Lagrangian deformation force law. There is a complete example of this process in the built-in example, _Example_ _~~U~~_ _ser_ _~~D~~_ _efined_ _~~F~~_ _iber_ _~~M~~_ _ode_ This example models an oscillating rubberband in which all successive Lagrangian points are connected by a user-defined deformation force law. For example purposes, the userdefined force here is equivalent to a linear spring. The input files are created by running the _Rubberband_ script which generates the _rubberband.vertex_ and _rubberband.user_ _~~f~~_ _orce_ input files. Note _rubberband.user_ _~~f~~_ _orce_ file is equivalent to the input file format for a linear 10 spring. Upon running the simulation, during each time-step the data is passed to the _give_ _~~M~~_ _e_ _~~G~~_ _eneral_ _~~U~~_ _ser_ _~~D~~_ _efined_ _~~F~~_ _orce_ _~~D~~_ _ensities_ script in which the user defines the actual deformation force model. Here, that script computes a linear spring force between adjacent nodes. This entire process can be summed up as follows: 1. Generate input files (.vertex, .user ~~f~~ orce, .etc) 2. Define user-defined force model in the _give_ _~~M~~_ _e_ _~~G~~_ _eneral_ _~~U~~_ _ser_ _~~D~~_ _efined_ _~~F~~_ _orce_ _~~D~~_ _ensities_ script 3. In the _input2d_ file, check the flag for the user-defined force model (and other fiber models, if necessary) 4. Run the simulation _3.1.2._ _Discretizing_ _the_ _Fourth_ _Derivatives_ _of_ _the_ _Non-Invariant_ _Beam_ _Model_ Recall that the non-invariant beam deformation forces were given by F _beam_ = _kNIB_ _<u>∂</u>_ <sup>4</sup> _∂s_ <sup>4</sup> <sup>(</sup> <sup>X</sup> <sup>(</sup> <sup>_s, t_</sup> <sup>)</sup> <sup>_−_</sup> <sup>X</sup> <sup>_b_</sup> <sup>(</sup> <sup>_s_</sup> <sup>))</sup> <sup>_,_</sup> (15) First we define X ( _s, t_ ) = ( _Xq, Yq_ ) _,_ X ( _s_ + 1 _, t_ ) = ( _Xr, Yr_ ) _,_ (16) X ( _s −_ 1 _, t_ ) = ( _Xp, Yq_ ) _._ Recall that by Newton’s second law that a force is given by an acceleration, hence we only have to discretize (15) as a second derivative. We find that the forces are computed as _Fbeam_ ( _s −_ 1 _,_ 1) = _−kNIB_ _Xr −_ 2 _Xq_ + _Xp −_ _Cx_ _Yr −_ 2 _Yq_ + _Yp −_ _Cy_ _Fbeam_ ( _s,_ 1) = 2 _kNIB_ _Xr −_ 2 _Xq_ + _Xp −_ _Cx_ _Yr −_ 2 _Yq_ + _Yp −_ _Cy_ _,_ _,_ (17) _,_ _Fbeam_ ( _s_ + 1 _,_ 1) = _−kNIB_ _Xr −_ 2 _Xq_ + _Xp −_ _Cx_ _Yr −_ 2 _Yq_ + _Yp −_ _Cy_ where _Cx_ and _Cy_ are the preferred curvatures, given by _,_ (18) C = _Cx_ _Cy_ = _XrB_ _−_ 2 _XqB_ + _XpB_ _YrB_ _−_ 2 _YqB_ + _YpB_ where the _B_ in the subscript denotes the base configuration, or preferred configuration. 11 _3.2._ _Additions_ _to_ _the_ _fluid_ _solver_ Since the initial release of _IB2d_, the fluid solver has been given a few upgrades. First, _IB2d_ no longer requires square grids, instead supporting all rectangular grids. Second, a new time-stepping scheme has been implemented that gives rise to a formally second-order accurate IB method [54]. Third, functionality for the Boussinesq Approximation [65, 66] has been added, in conjunction with the advection-diffusion solver. Finally, performance improvements have been added to the Python version of _IB_ 2 _d_ including an option to leverage the Fastest Fourier Transform in the West (FFTW) [67] through the pyFFTW library, resulting in an approximate 1.2x speedup over the FFT version. Functionality for Rectangular Grids Previously, _IB2d_ only was capable of handling square domains but functionality for rectangular grids has now been incorporated into the framework. For certain applications, this has enormous benefits as it reduces the computational costs, can allow for higher resolution, and reduces the simulation time if a rectangular grid suffices. Figure 6: Computational grid illustrating that for approximately the same computational cost of solving a problem on a 128 _×_ 128 grid on a [0 _,_ 4] _×_ [0 _,_ 4] domain, one can solve it on a 64 _×_ 256 grid on a [0 _,_ 1] _×_ [0 _,_ 4] domain. The immersed structure, _shown_ _in_ _pink_, models flow past a cylinder in a channel, which naturally lends itself to rectangular grids. For example, if you are modeling a problem in a rectangular channel, this functionality proves particularly beneficial. Consider a domain that is of size [0 _,_ 4] _m ×_ [0 _,_ 4] _m_, while a channel that is 3 _._ 5 _m_ long, but only 0 _._ 75 _m_ in diameter (wide). If we wanted _δx_ = _δy_ = <u>4</u> 128 12 resolution, a square grid would require a 128 _×_ 128 resolution grid on a [0 _,_ 4] _m ×_ [0 _,_ 4] _m_ computational domain. This would require _∼O_ (128 <sup>2</sup> ) = _O_ (16384) operations for the fluid solve each time-step. However, because of the geometry of the structure (a long, narrow channel), and since all the dynamics will happen inside the channel, we can now solve the problem on a computational grid that is [0 _,_ 1] _m×_ [0 _,_ 1] _m_, with 64 _×_ 256 resolution. This would only require _∼O_ (32 _×_ 128) = _O_ (4096) operators for the fluid solve each time-step. In theory this should speed up the _O_ ( _N_ <sup>2</sup> ) operations by a factor of 4. Note that these discretizations have the same resolution. Furthermore, for approximately the same computational cost of the 128 _×_ 128 simulation on a [0 _,_ 4] _m ×_ [0 _,_ 4] _m_, we could solve the problem on a 64 _×_ 256 grid on a [0 _,_ 1] _m ×_ [0 _,_ 4] _m_ domain for twice the computational resolution! This is illustrated in Figure 6. The process of going from square to rectangular grids is only a few changes to the _input2d_ file, as illustrated in Figure 7. Figure 7: Figure showing the input2d file formats for square vs. rectangular computational grids. Note that this is where the user specifies the size and resolution of the grid for the entire simulation. 2 <sup>_nd_</sup> Order Time-Stepping IB Scheme In essence this scheme incorporates the discretizations of the necessary operators in (2 and (3) and uses a similar approach of the time-stepping scheme previously described in [23, 22, 1]. However, rather step one full unit forward in time, the previous method is used to step forward from _n_ _→_ _n_ + <sup><u>1</u></sup> 2 <sup>.</sup> <sup>Next,</sup> <sup>a</sup> <sup>new</sup> <sup>scheme</sup> <sup>is</sup> <sup>introduced</sup> <sup>to</sup> <sup>move</sup> <sup>from</sup> used to step forward from _n_ _→_ _n_ + <sup><u>1</u></sup> 2 <sup>.</sup> <sup>Next,</sup> <sup>a</sup> <sup>new</sup> <sup>scheme</sup> <sup>is</sup> <sup>introduced</sup> <sup>to</sup> <sup>move</sup> <sup>from</sup> _n →_ _n_ + 1 using the auxiliary variables found at time _n_ + <sup><u>1</u></sup> 2 <sup>.</sup> <sup>The motivation is to be able to</sup> _n →_ _n_ + 1 using the auxiliary variables found at time _n_ + <sup><u>1</u></sup> 2 <sup>.</sup> <sup>The motivation is to be able to</sup> use the Crank-Nicholson formalism, where the non-linear convective term is handled with a skew-symmetric finite difference approximation. Furthermore, this allows for a trapezoidal quadrature rule for the fiber model computations. This method was first introduced in [54]. First, a preliminary step is used to find auxiliary variables u <sup>_n_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup>, _p_ ˜ <sup>_n_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup>, X <sup>_n_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup>, as outlined below: 13 F <sup>_n_</sup> ( _s_ ) = S <sup>_n_</sup> ( X <sup>_n_</sup> ) (19) f <sup>_n_</sup> ( x ) = _s_ F <sup>_n_</sup> ( _s_ )∆ _h_ ( x _−_ X <sup>_n_</sup> ( _s_ ))∆ _s_ (20) 2 _i_ =1 2 _i_ =1 _Di_ <sup>+</sup> _i_ <sup>+</sup> <sup>_D_</sup> _i_ <sup>_−_</sup> _i_ <sup>_−_</sup> <sup>u</sup> <sup>_n_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2 +</sup> <sup>f</sup> <sup>_n_</sup> (21) _i_ <sup>_±_</sup> <sup>u</sup> <sup>_n_</sup> = _−_ D <sup>0</sup> _p_ ˜ <sup>_n_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> + _µ_ _ρ_ - <u>u</u> <sup>_n_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> _<u>−</u>_ <u>u</u> <sup>_n_</sup> + ∆ _t/_ 2 _u_ <sup>_n_</sup> _i_ <sup>_n_</sup> _i_ <sup>_D_</sup> _i_ <sup>_±_</sup> D <sup>0</sup> _·_ u <sup>_n_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> = 0 (22) <u>X</u> <sup>_n_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> <u>(</u> _<u>s</u>_ <u>)</u> _<u>−</u>_ _<u>X</u>_ <sup>_n_</sup> <u>(</u> _<u>s</u>_ <u>)</u> = ∆ _t/_ 2 u <sup>_n_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> ( x )∆ _h_ ( x _−_ X <sup>_n_</sup> ( _s_ )) _h_ <sup>2</sup> _._ (23) _x_ We note this preliminary step was the previous time-stepping method in _IB2d_ in [22, 1]. Now to go from _n_ _→_ _n_ + 1, for u <sup>_n_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> _→_ u <sup>_n_</sup> <sup>+1</sup>, _p_ ˜ <sup>_n_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> _→_ _p_ <sup>_n_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup>, and X <sup>_n_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> _→_ X <sup>_n_</sup>, we do the following F <sup>_n_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> ( _s_ ) = S <sup>_n_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> ( X <sup>_n_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> ) (24) _s_ f <sup>_n_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> ( x ) = F <sup>_n_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> ( _s_ )∆ _h_ ( x _−_ X <sup>_n_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> ( _s_ ))∆ _s_ (25) _i_ <sup>0</sup> <sup>u</sup> <sup>_n_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2 +</sup> <sup>_D_</sup> _i_ <sup>0</sup> _i_ _ρ_ - <u>u</u> <sup>_n_</sup> <sup>+1</sup> _<u>−</u>_ <u>u</u> <sup>_n_</sup> _<u>−</u>_ <u>u</u> <sup>_n_</sup> + <sup><u>1</u></sup> ∆ _t_ 2 2 - _u_ <sup>_n_</sup> _i_ <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> u <sup>_n_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2���</sup> = 2 _i_ =1 - _u_ <sup>_n_</sup> _i_ <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> <sup>_n_</sup> _i_ <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> _Di_ <sup>0</sup> _−_ D <sup>0</sup> _p_ <sup>_n_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> + <sup><u>1</u></sup> 2 <sup>_µ_</sup> 2 _i_ =1 + f <sup>_n_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> (26) _i_ <sup>+</sup> <sup>_D_</sup> _i_ <sup>_−_</sup> u <sup>_n_</sup> + u <sup>_n_</sup> <sup>+1�</sup> _Di_ <sup>+</sup> _i_ D <sup>0</sup> _·_ u <sup>_n_</sup> <sup>+1</sup> = 0 (27) <u>X</u> <sup>_n_</sup> <sup>+1</sup> <u>(</u> _<u>s</u>_ <u>)</u> _<u>−</u>_ _<u>X</u>_ <sup>_n_</sup> <u>(</u> _<u>s</u>_ <u>)</u> = ∆ _t_ <u>X</u> <sup>_n_</sup> <sup>+1</sup> <u>(</u> _<u>s</u>_ <u>)</u> _<u>−</u>_ _<u>X</u>_ <sup>_n_</sup> <u>(</u> _<u>s</u>_ <u>)</u> _x_ <u>u</u> <sup>_n_</sup> <u>+</u> <u>u</u> <sup>_n_</sup> <sup>+1</sup> ∆ _h_ ( x _−_ X <sup>_n_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> ( _s_ )) _h_ <sup>2</sup> _._ (28) 2 We now define the the finite differencing operators. D <sup>0</sup> is the central differencing operator, defined as D <sup>0</sup> = - _D_ 1 <sup>0</sup> <sup>_, D_</sup> 2 <sup>0</sup> - _,_ (29) 14 with _,_ (30) 2∆ _x_ - x _−_ ∆ x _eα_ - _−_ _φ_ - _Dα_ <sup>0</sup> ( x ) = <sup>_φ_</sup> _α_ <sup>0</sup> <sup>_φ_</sup> - x + ∆ x _eα_ where ( _e_ 1 _, e_ 2) is the standard basis in R <sup>2</sup> _._ The viscous term, given by <sup>�</sup> _α_ <sup>2</sup> _α_ <sup>+</sup> <sup>_D_</sup> _α_ <sup>_−_</sup> _α_ <sup>2</sup> =1 <sup>_D_</sup> _α_ <sup>+</sup> where ( _e_ 1 _, e_ 2) is the standard basis in R <sup>2</sup> _._ The viscous term, given by <sup>�</sup> _α_ <sup>2</sup> =1 <sup>_D_</sup> _α_ <sup>+</sup> <sup>_D_</sup> _α_ <sup>_−_</sup> <sup>u</sup> <sup>,</sup> <sup>is</sup> a difference approximation to the Laplacian, where the _Dα_ <sup>_±_</sup> <sup>operators</sup> <sup>are</sup> <sup>the</sup> <sup>forward</sup> <sup>and</sup> a difference approximation to the Laplacian, where the _Dα_ <sup>_±_</sup> <sup>operators</sup> <sup>are</sup> <sup>the</sup> <sup>forward</sup> <sup>and</sup> backward approximations to _∂x∂α_ <sup>_._</sup> <sup>The</sup> <sup>upwind</sup> <sup>operators</sup> <sup>are</sup> <sup>defined</sup> <sup>as</sup> <sup>_n_</sup> _α_ <sup>_D_</sup> _α_ <sup>_±_</sup> _u_ <sup>_n_</sup> _α_ _α_ <sup>_±_</sup> <sup>=</sup> - _unα_ <sup>_D_</sup> _α_ <sup>_−_</sup> _unα_ <sup>_D_</sup> _α_ <sup>_−_</sup> _u_ <sup>_n_</sup> _α_ <sup>_>_</sup> <sup>0</sup> <sup>_,_</sup> _u_ <sup>_n_</sup> _α_ <sup>_D_</sup> _α_ <sup>+</sup> _u_ <sup>_n_</sup> _α_ <sup>_<_</sup> <sup>0</sup> <sup>_,_</sup> <sup>_n_</sup> _α_ <sup>_D_</sup> _α_ <sup>+</sup> _α_ <sup>_−_</sup> _u_ <sup>_n_</sup> _α_ _α_ <sup>+</sup> _u_ <sup>_n_</sup> _α_ (31) <sup>_n_</sup> _α_ <sup>_<_</sup> <sup>0</sup> <sup>_,_</sup> with - _−_ _φ_ - x (32) ∆ _x_ - _Dα_ <sup>+</sup> ( x ) = <sup>_φ_</sup> _α_ <sup>+</sup> <sup>_φ_</sup> - x + ∆ x _eα_ - x _−_ ∆ x _eα_ _._ (33) ∆ _x_ - _−_ _φ_ - _Dα_ <sup>_−_</sup> ( x ) = <sup>_φ_</sup> _α_ <sup>_−φ_</sup> - x Boussinesq Approximation The Boussinesq approximation is incorporated into _IB2d_ to model fluctuations in the dynamics of both a concentration gradient (background field) and the momentum equation. The Boussinesq approximation can be thought of as an approximation to a variable density field, where the essence is that any differences in inertia are negligible, but gravity is strong enough to make the specific weight appreciably different between two fluids. In general the approximation ignores density differences except where they are multipled by a gravitational acceleration field, g . It assumes that density variables have no effect on the fluid flow field, only that they give rise to bouyancy forces. By using the Boussinesq approximation, one bypasses the issue of having to solve the fully compressible Navier-Stokes equations for certain applications. The extra forcing term on the incompressible Navier-Stokes equations (2)-(3) are of the form f _Bouss_ = _αBρ_ g _C,_ (34) where _αB_ is the expansion coefficient, e.g., thermal expansion, etc., _ρ_ is the density of the fluid, g is the gravitational field, and _C_ is the background concentration. When implementating the Boussinesq approximation, the Navier-Stokes equations then take the form, 15 _ρ_ - _<u>∂</u>_ <u>u</u> <u>(</u> <u>x</u> _<u>, t</u>_ <u>)</u> + u ( x _, t_ ) _· ∇_ u ( x _, t_ ) = _−∇p_ ( x _, t_ ) + _µ_ ∆ u ( x _, t_ ) + f ( x _, t_ ) + _αBρ_ g _C_ (35) _∂t_ _∇·_ u ( x _, t_ ) = 0 _._ (36) We note that these models have been incorporating into immersed boundary frameworks before, see [68, 69, 70]. Examples using the Boussinesq approximation have been included below in Section 5.3 and 5.4 for the Rayleigh-Taylor Instability and Falling Spheres, respectively. 4. Work Flow and Data Analysis While the workflow remains in large part the same as in [22, 1], there have been some subtle changes which allow for easier manipulation of examples and saving only desired simulation data. _4.1._ _General_ _Work_ _Flow_ The typical work flow for using the _IB2d_ software is remains consistent between both MATLAB and Python implementations. Both implementations still have two subdirectories: an ’Examples’ and ’IBM ~~B~~ lackbox’ directory. The Examples subfolder contains all simulations that come with the software, including all necessary input files to run each simulation, e.g., the _main2d.m_ (or _main2d.py_ ) and _input2d_ files, as well as all the input files associated for construction of that example’s fiber model. The script for creating those fiber models is also included. The IBM ~~B~~ lackbox folder contains all scripts for performing the actual time-stepping routine in solving the FSI problem. The user does not have to modify any scripts in this subfolder, unless they wish to add to the already existing framework. 16 Figure 8: Two equivalent Lagrangian Structure Information selections in the _input2d_ files which declare equivalent fiber models that suffice to run a simulation. There have been subtle changes to the _input2d_ file. Namely, a user only has to declare the fiber models they want to include in their example, e.g., if there are no non-invariant beam models in their model, they do not need to include a flag specifying that there are none. This is illustrated below in Figure 8. Furthermore, if data storage becomes an issue, a user can declare what data they wish to save to _.vtk_ file format for later analysis and/or visualization. An example is shown in Figure 9, which illustrates the only simulation data that will be saved is the scalar 17 vorticity data, vector velocity data, scalar Eulerian force magnitude data, and the force data on the Lagrangian Structure (“save ~~h~~ ier”). Note that the Lagrangian ( _x, y_ ) positional data is automatically saved by default. Moreover, in this example the simulation will not dynamically plot any data in MATLAB (or Python) as the simulation progresses, and it will save the data every 200 time-steps (given by the “print ~~d~~ ump” flag). Note that all the Eulerian data will be found in a _viz_ _~~I~~_ _B2d_ folder and all the force data on the Lagrangian structure will be found in the _hier_ _~~d~~_ _ata_ _~~I~~_ _B2d_ and is saved in the _.vtk_ format. This format can be visualized using Paraview [71] or VisIt [72]. Figure 9: An example of Output Information flags in the _input2d_ file, such that as the simulation progresses the only data that will be saved is the scalar Vorticity data, vector velocity data, scalar Eulerian force magnitude data, and the force data on the Lagrangian Structure (“save ~~h~~ ier”). Note that the Lagrangian ( _x, y_ ) positional data is automatically saved by default. Furthermore, the simulation will not plot information in MATLAB (or Python) as the simulation progresses, and it will save the data every 200 time-steps (“print ~~d~~ ump”). Once the data is saved, the user can then analyze the _.vtk_ data in the Data Analysis Toolbox, which is discussed in Section 4.2. As with prior releases of _IB2d_, each fiber model has an associated input file type. The fiber models that were previously implemented, e.g. _•_ Springs (linear, non-linear) _•_ Beams (torsional springs) _•_ Target Points _•_ Massive Points 18 _•_ FV-LT Muscle _•_ 3-Element Hill Model _•_ Porous Media (via Darcy’s Law) have input file formats, as described in [1]. If the immersed structure is designated as _‘struct’_ in the _input2d_ file, then the fiber models introduced here, i.e., damped springs, non-invariant beams, poroelastic media, and coagulation/aggregation, have associated input formats as shown in Figure 10. Figure 10: Input file formats for damped springs, non-invariant beams, poroelastic media, and coagulation/aggregation models. To run a simulation one only needs MATLAB or Python 3.5+ with the standard python libraries and NumPy, Numba and Matplotlib (if plotting is desired as the simulation progresses), all of which are present in a standard Anaconda Python 3.x distribution. VTK and pyFFTW are optional Python libraries that result in data write and computational speedups respectively. For further speedup of the data write process, one can also use Cython to compile included C libraries which will then automatically be recognized and used by the Python version of _IB_ 2 _d_ . In either version, the user then has only to enter an example folder (or create an example themselves) and run the _main2d.m_ (or _main2d.py_ ) script. Currently there are over 60 examples one can run upon downloading the software from `[http://www.github.com/](http://www.github.com/nickabattista/IB2d/)` 19 `[nickabattista/IB2d/](http://www.github.com/nickabattista/IB2d/)` . After the simulation has completed, or surpassed the desired number of time-steps, one can visualize the Eulerian or Lagrangian data using the open source software of Paraview [71] or VisIt [72] as mentioned before. While those open source visualization tools can offer some of their own data analysis features, _IB2d_ itself comes with a Data Analysis Toolbox for quantifying desired simulation data, as discussed in the proceeding section. _4.2._ _IB2d_ _Data_ _Analysis_ _Package_ _IB2d_ includes a data analysis package, which converts the data ( _.vtk_ ) files back into useful data structures in MATLAB or Python 3.5. Once imported, the data can then be manipulated appropriately. The data is imported using three different functions: 1. _give_ _~~L~~_ _ag_ _~~P~~_ _ositions()_ : gives all the Lagrangian positions at a specific time-step 2. _import_ _~~E~~_ _ulerian_ _~~D~~_ _ata()_ : gives all the Eulerian grid data at a specific time-step 3. _import_ _~~L~~_ _agrangian_ _~~F~~_ _orce_ _~~D~~_ _ata()_ : gives the force data on the Lagrangian structure at a specific time-step Descriptions of all the data imported can be see in Figure 11. Note that while reading in the Eulerian information, since not all the data is required to be printed in each simulation (see Figure 9), one can choose what data to read in. In this example shown in Figure 11, only the scalar vorticity, scalar magnitude of velocity, and vector velocity field are imported. Furthermore, the Lagrangian information imported from _give_ _~~L~~_ _ag_ _~~P~~_ _ositions()_ will always be available since, by default, Lagrangian ( _x, y_ ) coordinates are saved. Moreover if one does not print the force data on the Lagrangian Structure, e.g. there is no _hier_ _~~d~~_ _ata_ _~~I~~_ _B2D_ folder because the _print_ _~~h~~_ _ier_ flag in _input2d_ was set to zero, one can simply comment out the associated input command. 20 Figure 11: All the data (Lagrangian positions, Eulerian data, and Lagrangian force data) imported in the data analysis software. An example is contained within the code that analyzes data from a parabolic channel flow example that computes the magnitude of the velocity across multiple cross-sections of the channel. It is available in both the data analysis package for MATLAB and for Python 3.5. This simulation uses the following fiber model and functionality: _•_ Target Points (fixed) _•_ Artificial Forcing on Fluid Grid Simulation images are shown in Figure 12, which illustrate the magnitude of velocity in the channel, and data from the simulation is given in Figure 13. 21 Figure 12: Simulation images taken from a channel with a parabolic flow condition at varying times. The parabolic flow is enforced by an external forcing condition on the Eulerian grid in the section outline in purple and shaded in red, while the vertical lines correspond to the cross-sections of the tube where the velocity data will be analyzed. It is clear from Figure 13 that as the simulation progresses the velocity profile within a cross-section of the tube fully develops. The data plotted was taken along the dashed-vertical lines from Figure 12. 22 Figure 13: Data shown from three different time points during the simulation for velocities across four different cross-sections of the tube. As time increases, the velocity profile becomes more fully developed. 5. Examples illustrating new functionality In this section we will present some examples which show some of the software’s new functionality. The software currently contains over 50 built-in examples, some of which come from previous IB papers in the literature. We will show the following examples: _•_ Tethered Ball in Channel 23 _•_ Anguilliform Swimmer _•_ Rayleigh-Taylor Instability _•_ Falling Spheres _•_ Seagrass in Oscillatory Flow _•_ Stirring Cells with Coagulation _5.1._ _Tethered_ _Ball_ _in_ _Channel_ 24 Figure 14: A tethered elastic ball is stretched in a channel and released. It is tethered to the channel walls using damped springs. The colormap shows vorticity and the background vector field is the fluid’s velocity. This example uses damped linear springs to tether an elastic ball to the channel walls. The ball is composed of linear springs and torsional springs along adjacent Lagrangian points and linear springs connecting a Lagrangian point on the ball to its counterpart on the opposite side of the ball. The channel is composed of target points that are being held 25 nearly rigid. The following fiber models were used: _•_ Linear Springs _•_ Damped linear springs _•_ Torsional Springs _•_ Target Points The simulation begins with the damped springs stretched from their equilibrium position, where the preferred position is with the tethering damped springs configured vertically in the channel. The ball is released immediately upon the start of the simulation and oscillates back and forth, before eventually settling down in its preferred configuration. An example simulation is shown in Figure 14. Using the Data Analysis package in _IB2d_, as described in Section 4.2, a comparison between two simulations with differing damping strengths is shown. These results are illustrated in Figure 15. The case in blue ( _b_ = 0 _._ 5) has a lower damping coefficient than the case in red ( _b_ = 50 _._ 0). In the lower damping case, there are more oscillations before equilibrium is achieved, while in the higher damping case, the system appears almost critically damped, and almost immediately returns to its preferred position. Figure 15: A comparison of two simulations with different damping coefficients. The case with less damping shows oscillatory behavior, while the case with more damping almost appears critically damped. _5.2._ _Idealized_ _Anguilliform_ _Swimmer_ 26 Figure 16: A comparison of two idealized anguilliform swimmers moving forward due to continually changes in the preferred curvature of the configuration. One has a stroke frequency of _f_ = 0 _._ 25 _s_ <sup>_−_</sup> <sup>1</sup> and the other, _f_ = 0 _._ 5 _s_ <sup>_−_</sup> <sup>1</sup> . The colormap illustrates vorticity. This example uses non-invariant beams and dynamically updates the preferred beam curvature through the ‘ _update_ _~~n~~_ _onInv_ _~~B~~_ _eams_ ’ script to move forward. The model also uses linear springs to connect successive Lagrangian points and all successive Lagrangian points are connected by non-invariant beams. The following fiber models were used: _•_ Linear Springs _•_ Non-Invariant Beams The motion is completely induced by changing the preferred curvature. Within the ‘ _update_ _~~n~~_ _onInv_ _~~B~~_ _eams_ ’, the curvature is changed by interpolating through two different configurative phases of the swimmer, more specifically their associated curvatures of each phase. The swimming motion is illustrating in Figure 16. Those phases are shown below, 27 Figure 17: The two phases, in which, the preferred curvature was interpolated between to cause forward swimming. Using the Data Analysis package in _IB2d_, which is described in Section 4.2, a comparison of distances swam by each swimmer as a function of the number of strokes is shown. The swimmer with the slower stroke frequency performs better. Figure 18: A comparison of the distances swam by both swimmers as a function of the number of strokes. 28 _5.3._ _Rayleigh-Taylor_ _Instability_ Figure 19: Simulation of the Rayleigh-Taylor Instability using the Boussinesq Approximation. A heavier fluid (red) sits above a lighter fluid (blue). Note a more sophisticated advection-diffusion solver will give rise to higher resolution of the instability fronts. This example uses the Boussinesq Approximation to model the Rayleigh-Taylor Instability. The instability manifests itself at the interface between two fluids of different densities when the lighter fluid begins pushing the heavier fluid. The model itself only uses target points to bounday the fluids in a rectangular domain, concentration gradients, and the Boussinesq approximation frameworks. Hence the fiber models and functionality used are: _•_ Target Points (fixed) _•_ Background Concentration (advection-diffusion) _•_ Boussinesq Approximation (with gravity flag) 29 The simulation begins when a heavier fluid (red) is placed over a lighter fluid (blue) with a linear change in concentration at the interface. The lighter fluid begins pushing itself upwards while the heavier fluid falls downward, resulting in the instability. The dynamics can be seen in Figure 19. Note a more sophisticated advection-diffusion solver will give rise to higher resolution of the instability fronts. Operator splitting methods [73] and flux limiters [74] are currently being implemented. _5.4._ _Falling_ _Sphere_ _with_ _Boussinesq_ _Approximation_ Figure 20: Simulation of a falling sphere through a fluid with a background salinity stratification. A spherical mass is released in the lighter salinity background (red) that sits above a heavier background salinity (blue) and the mass falls due to gravity. This example uses massive points to model a sphere that is released in a lighter salinity background and then falls into the heavier salinity portion. The sphere is composed of massive points along the boundary, springs connecting adjacent Lagrangian points and the associated Lagrangian point across the sphere, and beams around adjacent points on the sphere. The domain itself is composed of target points. Hence the fiber models and functionality used are: _•_ Springs (linear) _•_ Beams (torsional springs) _•_ Target Points (fixed) _•_ Massive Points (w/ gravity) _•_ Background Concentration (advection-diffusion) 30 _•_ Boussinesq Approximation (with gravity flag) When the sphere begins falling, it entrains some of the lighter salinity concentration around carrying the lighter fluid downward. Two cases are compared corresponding to different ambient fluid viscosities. The sphere in the less viscous fluid falls faster than the higher viscosity case, and it also entrains more of the lighter salinity concentration. Snapshots of the simulation can be seen in Figure 20. 31 _5.5._ _Seagrass_ _in_ _Oscillatory_ _Flow_ Figure 21: Simulation of seagrass in oscillatory flow. The seagrass (in green) bends towards the right and the left depending on the magnitude and direction of flow. The background colormap is vorticity. This example uses poroelastic media to model seagrass. Each Lagrangian point that composes the seagrass is tethered to its neighboring points using linear springs, as in Figure 3. A background oscillatory flow is initiated, which causes the seagrass to wave towards the right and left depending on the magnitude and direction of flow. The channel domain is composed of target points. Hence the fiber models and functionality used are: _•_ Springs (linear) 32 _•_ Target Points (fixed) _•_ Poroelastic Media _•_ Artificial Forcing on the Fluid Grid (to induce oscillatory flow) As the simulation begins, the flow first moves towards the right side of the domain and in response, the seagrass deforms toward the right. As the flow changes direction, the seagrass begins to return towards its equilibrium (original) position, and a large starting vortex is formed on the right side. As the flow continues and changes direction, this pattern of a starting vortex leading off the highest deformed side of the seagrass remains consistent. The swaying motion of the seagrass enhances mixing along the seafloor and above the seagrass itself, as seen in Figure 21. _5.6._ _Stirring_ _with_ _Coagulation_ Figure 22: Simulation of cells being stirred in a rectangular box. The cells aggregate when they come close enough and form a bond between the two. The bond is fractured if the force exceeds the fracture force threshold. 33 This example uses coagulation and aggregation models to simulate cells being stirred. Each cell is composed of Lagrangian points around its circumference with linear springs adjoining adjacent nodes. There are also torsional springs along adjacent Lagrangian points of each cell. Moreover, there are linear springs tethering each Lagrangian points its opposite on the other side of the cell. The stirring apparatus is composed entirely of target points. The cells form a bond (linear spring) with another cell if the cells come into close enough contact, e.g. a distance less than the bonding threshold. The fiber models and functionality used are: _•_ Springs (linear) _•_ Torsional Springs _•_ Target Points (prescribed motion) _•_ Coagulation Models When the simulation begins, the stirrer moves towards the right of the domain. As it moves right, it initiates the fluid motion that pushes the cells around. The stirrer changes direction and moves back left causing the fluid to change direction. As the fluid changes its direction, the cells continually are being pushed and pulled throughout the domain, either by the fluid or by other cells if a bond has formed. If the forces arising from the bond formed between two cells is greater than the fracture threshold, the bond is destroyed. Snapshots of the dynamics can be seen in Figure 22. An illustration of bond formation can be seen in Figure 23, which shows the bonds that have formed between cells in a subset of the domain at two different times in the simulation. 34 Figure 23: Illustration of bond formation at two different times during the simulation, _t_ = 0 _._ 05 _s_ (left) and _t_ = 0 _._ 275 _s_ (right). 6. Discussion and Conclusion _IB2d_ is immersed boundary software with full implementations in both MATLAB and Python 3.5 that has been enhanced since its original release [22, 1]. It offers robust construction of the immersed structure’s material properties through a vast array of fiber model options. It also includes functionality for concentration gradients, artificial forcing to prescribe flow profiles, muscle mechanics, poroelastic and porous structures, electrophysiology, and slight fluid density variations via the Boussinesq approximation. Furthermore, having been specifically written in high-level programming languages, it allows for easier readability of the scripts at the heart of the immersed boundary method and an accelerated rate of modification for adding functionality such as other fluid solvers. Although high-level programming languages come with a few drawbacks, such as slower computational speeds compared to lower-level languages, one can still use _IB2d_ for high resolution applications on rectangular grids. Due to computational costs, for high resolution simulations on square grids, e.g. grids more highly resolved than 512 _×_ 512, we suggest moving to Boyce Griffith’s open source IBAMR package [75]. IBAMR is an adaptive and parallelized implementation of _IB_ written in _C_ ++ including functionality for a hybrid finite element-finite difference implementation of _IB_ [76]. It is 35 dependent on many open source libraries, including PETSc [77], SAMRAI [78], libMesh [79], and OpenMPI [80] which makes it very efficient to run, but at the cost of a nontrivial installation process and steep learning curve for anyone inexperienced at high performance computing. Furthermore, without computer clusters available, IBAMR cannot run at its full potential. Moreover, _IB2d_ was strictly designed for 2 _D_ applications. While full 3 _D_ simulations are often desired, some applications may only require fluids with two-dimensions [29, 81, 25, 82, 44]. _IB2d_ was written in 2 _D_ to make it more readable and to lend itself for easier modification, particularly as a first step in trying to implement a new model. If 3 _D_ applications are required, we suggest moving to IBAMR. Note that the format of _IB2d_ was designed to mirror the input file formats used in IBAMR, and as such _IB2d_ can used as a stepping stone to using IBAMR; however, _IB2d_ currently offers more fiber models than IBAMR. Moreover, neither _IB2d_ nor IBAMR include functionality for compressible fluids, non-Newtonian fluids, or variable density fluid applications at this time, but future implementations of _IB2d_ may incorporate them. Similarly, neither _IB2d_ nor IBAMR include a turbulence model for large _Re_ applications at this time. For these applications, one may be interested in OpenFOAM by OpenCFD LTD [83]. OpenFOAM is open source software capable of FSI applications, written in _C_ + +; however, to add additional numerical schemes is nontrivial and involves a steep learning curve. Commercial software such as COMSOL [84] and ANSYS Fluent [85] can model FSI, but licenses for them are expensive and once again, it is rather nontrivial to implement other numerical methods and models in their frameworks. While Peskin’s immersed boundary method offers an elegant framework for modeling fluid-structure interactions, there exist other methods for FSI, such as level set methods [86, 87], the blob projection method [88], sharp interface methods [89, 90], and immersed interface methods [91, 92]. These methods all offer higher resolution near the fluid-structure interface; however, most are limited to thin structures and rigid bodies. Furthermore, no open source implementations are known at this time, requiring a large entry time for research. For further information and a broader perspective on immersed boundary methods see [93]. _IB2d_ is an ideal environment for entry into FSI. Not only does it offer a plethora of fiber models, functionality, and 50+ examples illustrating the breadth of the software, but being written in high-level languages, it allows for fast implementations of new fiber models and constitutive models, fluid solvers, and other functionality in an _IB_ framework. The software is available at `[http://www.github.com/nickabattista/IB2d](http://www.github.com/nickabattista/IB2d)` . 7. Acknowledgements The authors would like to thank Charles Peskin for the development of immersed boundary method and Boyce Griffith for IBAMR, to which many of the input files structures of _IB2d_ are based. We would also like to thank Austin Baird, Christina Battista, Robert Booth, Namdi Brandon, Kathleen Carroll, Christina Hamlet, Alexander Hoover, Shannon Jones, Andrea Lane, Jae Ho Lee, Virginia Pasour, Julia Samson, Arvind Santhanakrishnan, Michael Senter, Anne Talkington, and Ben Vadala-Roth, Lindsay Waldrop for comments 36 on the design of the software and suggestions for examples. This project was funded by NSF DMS CAREER #1151478, NSF CBET #1511427, NSF DMS #1151478, NSF POLS #1505061 awarded to L.A.M. Funding for N.A.B. was partially funded from an National Institutes of Health T32 grant [HL069768-14; PI, Christopher Mack] and partially by the UNC Dissertation Completion Fellowship. References [1] N. A. Battista, W. C. Strickland, L. A. Miller, Ib2d: a python and matlab implementation of the immersed boundary method, Bioinspir. Biomim. 12(3) (2017) 036003. [2] K. J. Bathe, Fluid-structure interactions, Mechanical Engineering April (2008) 67–68. [3] S. Bak, J. Yoo, C. Yong Song, Fluid-structure interaction analysis of deformation of sail of 30-foot yacht, Int. J. of Naval Arch. and Ocean Eng. 5(2) (2013) 263–276. [4] K. Srinivasa Rao, K. Girija Sravani and G.Yugandhar, G. Venkateswara Rao, V. N. Mani, Design and analysis of fluid structure interaction in a horizontal micro channel, Procedia Materials Science 10 (2015) 768–788. [5] B. Vanderhoydonck, G. Santo, J. Vierendeels, J. Degroote, Optimization of a human-powered aircraft using fluid-structure interaction simulations, Aerospace 3 (2016) 26. [6] L. Fauci, C. Peskin, A computational model of aquatic animal locomotion, J. Comput. Phys. 77 (1988) 85–108. [7] G. Hershlag, L. A. Miller, Reynolds number limits for jet propulsion: a numerical study of simplified jellyfish, J. Theor. Biol. 285 (2011) 84–95. [8] A. P. Hoover, L. A. Miller, A numerical study of the benefits of driving jellyfish bells at their natural frequency, J. Theor. Biol. 374 (2015) 13–25. [9] L. A. Miller, C. S. Peskin, When vortices stick: an aerodynamic transition in tiny insect flight, J. Exp. Biol. 207 (2004) 30733088. [10] S. Ruck, H. Oertel, Fluid-structure interaction simulation of an avian flight model, J. Exp. Biol. 213 (24) (2010) 4180–4192. [11] S. K. Jones, R. Laurenza, T. L. Hedrick, B. E. Griffith, L. A. Miller, Lift- vs. drag-based for vertical force production in the smallest flying insects, J. Theor. Biol. 384 (2015) 105–120. [12] B. Wolters, M. Rutten, G. Schurink, U. Kose, J. de Hart, F. van de Vosse, A patient-specific computa tional model of fluid-structure interaction in abdominal aortic aneurysms, Med. Eng. and Phys. 27(10) (2005) 871–883. [13] R. Torii, M. Oshima, T. Kobayashi, K. Takagi, T. E. Tezduyar, Fluidstructure interaction modeling of a patient-specific cerebral aneurysm: influence of structural modeling, Comp. Mech. 43 (2008) 151. [14] K. Takizawa, C. Moorman, S. Wright, J. Purdue, T. McPhail, P. R. Chen, J. Warren, T. E. Tezduyar, Patient-specific arterial fluidstructure interaction modeling of cerebral aneurysms, Int. J. Num. Meth. Fluids 65 (1-3) (2011) 308–323. [15] C. Yang, D. Tang, I. Haber, T. Geva, P. J. del Nido, In vivo mri-based 3d fsi rv/lv models for human right ventricle and patch design for potential computer-aided surgery optimization, Computers and Structures 85 (2007) 988–997. [16] E. Carson, C. Cobelli, Modeling Methodology for Physiology and Medicine, Elsevier Science, Amster dam, Netherlands, 2017. [17] A. Santhanakrishnan, N. Nguyen, J. Cox, L. A. Miller, Flow within models of the vertebrate embryonic heart, J. Theor. Biol. 259 (2009) 449–461. [18] L. A. Miller, Fluid dynamics of ventricular filling in the embryonic heart, Cell Biochem. Biophys. 61 (2011) 33–45. [19] N. A. Battista, A. N. Lane, L. A. Miller, On the dynamic suction pumping of blood cells in tubular hearts, _in_ _press_ Association for Women in Mathematics Series: Research Collaborations in Mathematical Biology. 37 [20] N. A. Battista, A. N. Lane, J. Liu, L. A. Miller, Fluid dynamics of heart development: Effects of trabeculae and hematocrit, arXiv: https://arxiv.org/abs/1610.07510. [21] C. Peskin, Flow patterns around heart valves: A numerical method, J. Comput. Phys. 10(2) (1972) 252–271. [22] N. A. Battista, A. J. Baird, L. A. Miller, A mathematical model and matlab code for muscle-fluid structure simulations, Integr. Comp. Biol. [23] C. S. Peskin, D. M. McQueen, Fluid dynamics of the heart and its valves, in: F. R. Adler, M. A. Lewis, J. C. Dalton (Eds.), Case Studies in Mathematical Modeling: Ecology, Physiology, and Cell Biology, Prentice-Hall, New Jersey, 1996, Ch. 14, pp. 309–338. [24] B. E. Griffith, Simulating the blood-muscle-vale mechanics of the heart by an adaptive and parallel version of the immsersed boundary method (ph.d. thesis), Courant Institute of Mathematics, New York University. [25] C. Zhang, R. D. Guy, B. Mulloney, Q. Zhang, T. J. Lewis, The neural mechanism of optimal limb coordination in crustacean swimming, PNAS 111 (2014) 13840–13845. [26] A. P. Hoover, B. E. Griffith, L. A. Miller, Quantifying performance in the medusan mechanospace with an actively swimming three-dimensional jellyfish model, J. Fluid. Mech. 813 (2017) 1112–1155. [27] L. A. Miller, C. S. Peskin, A computational fluid dynamics of clap and fling in the smallest insects, J. Exp. Biol. 208 (2009) 3076–3090. [28] Y. Kim, C. S. Peskin, 2d parachute simulation by the immersed boundary method, SIAM J. Sci. Comput. 28 (2006) 22942312. [29] E. Tytell, C. Hsu, T. Williams, A. Cohen, L. Fauci, Interactions between internal forces, body stiffness, and fluid environment in a neuromechanical model of lamprey swimming, Proc. Natl. Acad. Sci. 107 (2010) 1983219837. [30] C. Hamlet, L. J. Fauci, E. D. Tytell, The effect of intrinsic muscular nonlinearities on the energetics of locomotion in a computational model of an anguilliform swimmer, J. Theor. Biol. 385 (2015) 119–129. [31] L. Zhu, G. He, S. Wang, L. A. Miller, X. Zhang, Q. You, S. Fang, An immersed boundary method by the lattice boltzmann approach in three dimensions, Computers and Mathematics with Applications 61 (2011) 3506–3518. [32] L. A. Miller, A. Santhanakrishnan, S. K. Jones, C. Hamlet, K. Mertens, L. Zhu, Reconfiguration and the reduction of vortex-induced vibrations in broad leaves, J. Exp. Biol. 215 (2012) 2716–2727. [33] L. Zhu, C. S. Peskin, Simulation of a flapping flexible filament in a flowing soap film by the immersed boundary method, J. Comp. Phys. 179(2) (2002) 452–468. [34] L. Zhu, C. S. Peskin, Interaction of two flapping filaments in a flowing soap film, Physics of Fluids 15(7) (2003) 1954. [35] P. J. Atzberger, P. R. Kramer, C. S. Peskin, A stochastic immersed boundary method for fluid-structure dynamics at microscopic length scales, J. Comp. Phys. 224(2) (2007) 1255–1292. [36] K. Leiderman, L. A. Miller, A. L. Fogelson, The effects of spatial inhomogeneities on flow through the endothelial surface layer, J. Theor. Biol. 252(2) (2008) 313–325. [37] A. L. Fogelson, R. D. Guy, Immersed-boundary-type models of intravascular platelet aggregation, Comput. Methods Appl. Mech. Engrg. 197 (2008) 20872104. [38] W. Strychalski, R. D. Guy, A computational model of bleb formation, Math Med Biol. 30(2) (2013) 115–130. [39] P. R. Kramer, C. S. Peskin, P. J. Atzberger, On the foundations of the stochastic immersed boundary method, Comp. Meth. in Appl. Mech. and Eng. 197 (2008) 2232–2249. [40] P. Lee, B. E. Griffith, C. S. Peskin, The immersed boundary method for advection-electrodiffusion with implicit timestepping and local mesh refinement, J. Comp. Phys. 229(13) (2010) 5208–5227. [41] W. Strychalski, R. D. Guy, Viscoelastic immersed boundary methods for zero reynolds number flow, Comm. in Comp. Phys. 12 (2012) 462–478. [42] J. Du, R. D. Guy, A. L. Fogelson, An immersed boundary method for two-fluid mixtures, J. Comp. Phys. 262 (2014) 231–243. [43] A. J. Baird, L. D. Waldrop, L. A. Miller, Neuromechanical pumping: boundary flexibility and traveling 38 depolarization waves drive flow within valveless, tubular hearts, Japan J. Indust. Appl. Math. 32 (2015) 829–846. [44] L. D. Waldrop, L. A. Miller, The role of the pericardium in the valveless, tubular heart of the tunicate, _Ciona_ _savignyi_, J. Exp. Biol. 218 (2015) 2753–2763. [45] N. A. Battista, L. A. Miller, A fully coupled fluid-structure-muscle-electrophysiology model in heart development, BioMath Communications Supplement 4(1). [46] MATLAB, version 8.5.0 (R2015a), The MathWorks Inc., Natick, Massachusetts, USA, 2015. [47] G. Van Rossum, Python, version 3.5, https://www.python.org, 2015. [48] A. J. Chorin, The numerical solution of the navier-stokes equations for an incompressible fluid, Bull. Am. Math. Soc. 73 (1967) 928–931. [49] D. L. Brown, R. Cortez, M. L. Minion, Accurate projection methods for the incompressible navierstokes equations, J. Comp. Phys. 168 (2001) 464–499. [50] C. S. Peskin, The immersed boundary method, Acta Numerica 11 (2002) 479–517. [51] Y. Liu, Y. Mori, Properties of discrete delta functions and local convergence of the immersed boundary method, SIAM J. of Numerical Analysis 50 (2012) 2986–3015. [52] J. W. Cooley, J. W. Tukey, An algorithm for the machine calculation of complex fourier series, Math. Comput. 19 (1965) 297–301. [53] W. H. Press, B. P. Flannery, S. A. Teukolsky, W. T. Vetterling, Fast fourier transform, Ch. 12 in Numerical Recipes in FORTRAN: The Art of Scientific Computing 2 (1992) 490–529. [54] M. C. Lai, C. S. Peskin, An immersed boundary method with formal second=order accuracy and reduced numerical viscosity, J. Comp. Phys. 160 (2000) 705–719. [55] B. E. Griffith, An accurate and efficient method for the incompressible navier stokes equations using the projection method as a preconditioner, J. Comput. Phys. 228 (2009) 75657595. [56] A. Bhalla, B. E. Griffith, N. Patankar, A unified mathematical frame- work and an adaptive numerical method for fluidstructure interaction with rigid, deforming, and elastic bodies, J. Comput. Phys. 250 (2013) 446476. [57] J. M. Stockie, Modelling and simulation of porous immersed boundaries, Computers and Structures 87 (2009) 701–709. [58] S. Whitaker, Flow in porous media i: A theoretical derivation of darcy’s law, Transport in Porous Media 1 (1) (1986) 3–25. [59] A. L. Fogelson, A mathematical model and numerical method for studying platelet adhesion and ag gregation during blood clotting, J. Comput. Phys. 56 (1984) 111–134. [60] A. L. Fogelson, Continuum models of platelet aggregation: formulation and mechanical properties, SIAM JAM 52 (1984) 1089–1110. [61] L. Fauci, A. Fogelson, Truncated newton methods and the modeling of complex immersed elastic structures, Commun. Pure Appl. Math 46 (1993) 787818. [62] N. T. Wang, A. L. Fogelson, Computational methods for continuum models of platelet aggregation, J. Comp. Phys. 151 (1999) 649–675. [63] K. Leiderman, A. L. Fogelson, Grow with the flow: a spatial-temporal model of platelet deposition and blood coagulation under flow, Math. Med. Biol. 28(1) (2011) 47–84. [64] K. Leiderman, A. L. Fogelson, An overview of mathematical modeling of thrombus formation under flow, Thrombosis Research 133 (2014) S12–S14. [65] J. Boussinesq, Theorie de l‘ecoulement tourbillonnant et tumultueux des liquides dans les lits rectilignes a grande section (Vol. 1), Gauthier-Villars, Paris, France, 1897. [66] D. J. Tritton, Physical fluid dynamics, Van Nostrand Reinhold Co., New York, NY, USA, 1977. [67] M. Frigo, S. G. Johnson, The design and implementation of FFTW3, Proceedings of the IEEE 93 (2) (2005) 216–231, special issue on “Program Generation, Optimization, and Platform Adaptation”. [68] S. Ghosh, J. Stockie, Numerical simulations of particle sedimentation using the immersed boundary method, Commun. Comput. Phys. 18(2) (2015) 380–416. [69] [B. E. Griffith, An adaptive and distributed-memory parallel implementation of the immersed boundary](https://github.com/IBAMR/IBAMR) (ib) [method](https://github.com/IBAMR/IBAMR) (2014) [cited October 21, 2014]. 39 URL `[https://github.com/IBAMR/IBAMR](https://github.com/IBAMR/IBAMR)` [70] A. Frisani, Direct forcing immersed boundary methods: Finite element versus finite volume approach (ph.d. thesis), Nuclear Engineering,Texas A&M University. [71] J. Ahrens, B. Gerveci, C. Law, ParaView: An End-User Tool for Large Data Visualizations, Elsevier, Atlanta, USA, 2005. [72] H. Childs, E. Brugger, B. Whitlock, J. Meredith, S. Ahern, D. Pugmire, K. Biagas, M. Miller, C. Har rison, G. H. Weber, H. Krishnan, T. Fogal, A. Sanderson, C. Garth, E. W. Bethel, D. Camp, O. R¨ubel, M. Durant, J. M. Favre, P. Navr´atil, VisIt: An End-User Tool For Visualizing and Analyzing Very Large Data, in: High Performance Visualization–Enabling Extreme-Scale Scientific Insight, 2012, pp. 357–372. [73] A. Chertock, A. Kurganov, On Splitting-Based Numerical Methods for Convection-Diffusion Equations, `[http://www4.ncsu.edu/~acherto/papers/Chertock-Kurganov.pdf](http://www4.ncsu.edu/~acherto/papers/Chertock-Kurganov.pdf)` (2012). [74] R. J. LeVeque, Finite Volume Methods for Hyperbolic Problems, Cambridge University Press, Cam bridge, UK, 2002. [75] B. E. Griffith, Ibamr: an adaptive and [distributed-memory](https://github.com/IBAMR/IBAMR) parallel implementation of the immersed [boundary](https://github.com/IBAMR/IBAMR) method (2014). URL `[https://github.com/IBAMR/IBAMR](https://github.com/IBAMR/IBAMR)` [76] B. E. Griffith, X. Luo, Hybrid finite difference/finite element version of the immersed boundary method, Int. J. Numer. Meth. Engng. 0 (2012) 1–26. [77] H. Zhang, PETSc: Portable, extensible [toolkit](http://www.mcs.anl.gov/petsc) for scientific computation (2009). URL `[http://www.mcs.anl.gov/petsc](http://www.mcs.anl.gov/petsc)` [78] Lawrence Livermore National Laboratory, SAMRAI: Structured [adaptive](http://www.llnl.gov/CASC/SAMRAI) mesh refinement application [infrastructure](http://www.llnl.gov/CASC/SAMRAI) (2007). URL `[http://www.llnl.gov/CASC/SAMRAI](http://www.llnl.gov/CASC/SAMRAI)` [79] B. S. Kirk, J. W. Peterson, R. H. Stogner, G. F. Carey, `libMesh` : A C++ Library for Parallel Adaptive Mesh Refinement/Coarsening Simulations, Engineering with Computers 22 (3-4) (2006) 237–254, `[http:](http://dx.doi.org/10.1007/s00366-006-0049-3)` `[//dx.doi.org/10.1007/s00366-006-0049-3](http://dx.doi.org/10.1007/s00366-006-0049-3)` . [80] E. Gabriel, G. E. Fagg, G. Bosilca, T. Angskun, J. J. Dongarra, J. M. Squyres, V. Sahay, P. Kambadur, B. Barrett, A. Lumsdaine, R. H. Castain, D. J. Daniel, R. L. Graham, T. S. Woodall, Open MPI: Goals, concept, and design of a next generation MPI implementation, in: Proceedings, 11th European PVM/MPI Users’ Group Meeting, Budapest, Hungary, 2004, pp. 97–104. [81] L. M. Crowl, A. L. Fogelson, Analysis of mechanisms for platelet near-wall excess under arterial blood flow conditions, J. Fluid Mech. 676 (2011) 348–375. [82] O. L. Lewis, S. Zhang, R. D. Guy, J. del Alamo, Coordination of contractility, adhesion and flow in migrating physarum amoebae, J. R. Soc. Interface 12(106). [83] O. Foundation, Official [openfoam](https://github.com/OpenFOAM) repository (2014). URL `[https://github.com/OpenFOAM](https://github.com/OpenFOAM)` [84] C. Multiphysics, version 4.2 (R2015a), COMSOL Inc., Burlington, MA, USA, 2015. [85] C. ANSYS Fluent, CFD, version 17.0, ANSYS Inc., Cecil Township, Pennslyvania, USA, 2016. [86] J. A. Sethian, Level Set Methods and Fast Marching Methods : Evolving Interfaces in Computational Geometry, Fluid Mechanics, Computer Vision, and Materials Science, Cambridge University Press, Cambridge, UK, 1999. [87] S. J. Osher, R. Fedkiw, Level Set Methods and Dynamic Implicit Surfaces, Springer-Verlag, New York, NY, USA, 2002. [88] R. Cortez, M. Minion, The blob projection method for immersed boundary problems, J. Comp. Phys. 161 (2000) 428453. [89] O. Ubbink, R. I. Issa, Method for capturing sharp fluid interfaces on arbitrary meshes, J. Comp. Phys. 153 (1999) 26–50. [90] H. Udaykumar, R. Mittal, P. Rampunggoon, A. Khanna, A sharp interface cartesian grid method for simulating flows with complex moving boundaries, J. Comp. Phys. 20 (2001) 345–380. [91] L. Lee, R. J. Leveque, An immersed interface method for incompressible navier-stokes equations, SIAM 40 J. SCI. COMPUT. 25(3) (2003) 832856. [92] Z. Li, An overview of the immersed interface method and its applications, Taiwanese J. Math. 7(1) (2003) 1–49. [93] R. Mittal, C. Iaccarino, Immersed boundary methods, Annu. Rev. Fluid Mech. 37 (2005) 239261. 41

섹션 본문

섹션 본문이 없습니다.

참고문헌

참고문헌 정보가 없습니다.