[Paper Review] Lily Pad: Towards Real-time Interactive Computational Fluid Dynamics
Lily Pad is a real-time, interactive computational fluid dynamics (CFD) solver that uses the Boundary Data Immersion Method (BDIM) on a uniform Cartesian grid to enable fast, accurate 2D Navier-Stokes simulations with immediate visual feedback. It lowers the barrier to CFD by simplifying setup, enabling intuitive, code-based interaction for education and research.
Despite the fact that computational fluid dynamics (CFD) software is now (relatively) fast and freely available, it is still amazingly difficult to use. Inaccessible software imposes a significant entry barrier on students and junior engineers, and even senior researchers spend less time developing insights and more time on software issues. Lily Pad was developed as an initial attempt to address some of these problems. The goal of Lily Pad is to lower the barrier to CFD by adopting simple high-speed methods, utilising modern programming features and environments, and giving immediate visual feed-back to the user. The resulting software focuses on the fluid dynamics instead of the computation, making it useful for both education and research. LilyPad is open source and available online at https://github.com/weymouth/lily-pad for all use under the MIT license.
Motivation & Objective
- Address the high barrier to entry in CFD caused by complex, opaque, and poorly designed software.
- Enable real-time, interactive fluid dynamics simulations that focus on physical insight rather than computational setup.
- Develop a user-friendly, open-source CFD tool that supports both educational use and research applications.
- Demonstrate that high-fidelity 2D CFD simulations can be made accessible through modern programming environments and efficient numerical methods.
- Facilitate rapid prototyping of fluid-structure interaction and complex flow phenomena using minimal code.
Proposed method
- Leverages the Boundary Data Immersion Method (BDIM) to embed solid bodies into a uniform Cartesian grid without boundary-fitted meshes.
- Solves the full 2D incompressible Navier-Stokes equations using a predictor-corrector time integration scheme with explicit treatment of convection and diffusion.
- Uses a symmetric kernel with width ε to convolve fluid and body velocity equations, enabling smooth transition across the fluid-body interface.
- Employs variable coefficient Poisson equations for pressure, implicitly enforcing correct boundary conditions and improving force prediction accuracy.
- Integrates with the Processing Development Environment to provide an interactive coding and visualization interface where users write short scripts and see real-time flow updates.
- Supports dynamic body motion, fluid-structure interaction, and customizable initial conditions through object-oriented code structure.
Experimental results
Research questions
- RQ1Can a real-time, interactive CFD solver be built using simple, high-performance numerical methods and modern programming environments?
- RQ2To what extent can the Boundary Data Immersion Method (BDIM) maintain accuracy and stability in 2D flow simulations without boundary-fitted meshes?
- RQ3How effectively can Lily Pad lower the barrier to entry for students and researchers without formal CFD training?
- RQ4Can real-time visualization and immediate feedback enhance learning and insight generation in fluid dynamics education?
- RQ5What are the limitations of extending such an interactive 2D CFD framework to 3D, and how can performance be mitigated?
Key findings
- Lily Pad enables real-time simulation and visualization of 2D incompressible flows with immediate user feedback, even when dragging bodies interactively.
- The BDIM method achieves high accuracy in boundary layer resolution and separation prediction, with validated force predictions through implicit pressure boundary enforcement.
- The software setup requires only four lines of code to define the fluid domain, flow, body, and visualization, drastically reducing configuration overhead compared to traditional CFD tools.
- Students without formal CFD training have successfully used Lily Pad to create complex simulations, including flapping foils, arrays of risers, and multi-body systems like turtles and Plesiosaurs.
- The method supports fluid-structure interaction by coupling the body velocity equation to the fluid state, enabling dynamic motion prediction.
- Despite its 2D limitation, Lily Pad has been used to produce research-quality results published in the Journal of Fluid Mechanics, demonstrating its utility beyond education.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.