PyMembrane: A flexible framework for efficient simulations of elastic and liquid membranes

Danile Matoz-Fernandez (Lead / Corresponding author), Siyu Li, Monica Olvera de la Cruz, Rastko Sknepnek (Lead / Corresponding author)

Research output: Working paper/PreprintPreprint

12 Downloads (Pure)


PyMembrane is a software package for simulating liquid and elastic membranes using a discretisation of the continuum description based on unstructured triangulated two-dimensional meshes embedded in three-dimensional space. The package is written in C++, with a flexible and intuitive Python interface, allowing for a quick setup, execution and analysis of complex simulations. PyMembrane follows modern software engineering principles and features a modular design that allows for straightforward implementation of custom extensions while ensuring consistency and enabling inexpensive maintenance. A hallmark feature of this design is the use of a standardized C++ interface which streamlines adding new functionalities. Furthermore, PyMembrane uses data structures optimised for unstructured meshes, ensuring efficient mesh operations and force calculations. By providing several templates for typical simulations supplemented by extensive documentation, the users can seamlessly set up and run research-level simulations and extend the package to integrate additional features, underscoring PyMembrane's commitment to user-centric design.
Original languageEnglish
Number of pages15
Publication statusPublished - 24 Aug 2023


Dive into the research topics of 'PyMembrane: A flexible framework for efficient simulations of elastic and liquid membranes'. Together they form a unique fingerprint.

Cite this