IB2d: A Python and MATLAB implementation of the immersed boundary method

Nicholas A. Battista, W. Christopher Strickland, Laura A. Miller

Research output: Contribution to journalArticlepeer-review

20 Scopus citations


The development of fluid-structure interaction (FSI) software involves trade-offs between ease of use, generality, performance, and cost. Typically there are large learning curves when using low-level software to model the interaction of an elastic structure immersed in a uniform density fluid. Many existing codes are not publicly available, and the commercial software that exists usually requires expensive licenses and may not be as robust or allow the necessary flexibility that in house codes can provide. We present an open source immersed boundary software package, IB2d, with full implementations in both MATLAB and Python, that is capable of running a vast range of biomechanics models and is accessible to scientists who have experience in high-level programming environments. IB2d contains multiple options for constructing material properties of the fiber structure, as well as the advection-diffusion of a chemical gradient, muscle mechanics models, and artificial forcing to drive boundaries with a preferred motion.

Original languageEnglish (US)
Article number036003
JournalBioinspiration and Biomimetics
Issue number3
StatePublished - Mar 29 2017
Externally publishedYes


  • biomechanics
  • fluid-structure interaction
  • immersed boundary
  • math biology

ASJC Scopus subject areas

  • Biotechnology
  • Biophysics
  • Biochemistry
  • Molecular Medicine
  • Engineering (miscellaneous)


Dive into the research topics of 'IB2d: A Python and MATLAB implementation of the immersed boundary method'. Together they form a unique fingerprint.

Cite this