
Welcome to this lecture on Smooth Particle Hydrodynamics (SPH) — a powerful meshless method for simulating fluid and solid mechanics problems. In this tutorial, we’ll explore how SPH works as an interpolation-based approach and compare it with other interpolation techniques like Polynomial, Lagrange, and Fourier interpolation. You’ll also learn the mathematical foundation behind SPH, including how interpolation works in numerical methods, and how local basis functions help SPH handle large deformations and free surfaces without mesh distortion. Finally, we introduce PySPH, an open-source SPH framework developed by IIT Bombay, and demonstrate how you can simulate physical phenomena like fluid flow and solid deformation using simple Python scripts. ? What You’ll Learn
Concept of interpolation in numerical methods
Polynomial, Lagrange, and Fourier interpolation explained with code
Transition from global to local basis functions
Understanding SPH and its advantages over FEM
Python implementation of SPH interpolation
Introduction to open-source SPH software PySPH
In this lecture, we extend our understanding of the Smooth Particle Hydrodynamics (SPH) method. You’ll learn how to compute gradients and derivatives using kernel interpolation, and then apply these concepts to simulate the Shock Tube problem — a classic test case in compressible flow. We’ll go step-by-step through the Python implementation, discuss the Euler equations, density summation formulation, and explore how artificial viscosity improves shock capturing. ? Topics Covered:
Gradient of interpolated fields in SPH
Derivative and Laplacian of kernel functions
Euler equations and conservation in SPH
Shock Tube setup and initial conditions
Artificial viscosity and numerical stability
Python code walkthrough for SPH simulation
In this video, we explore PySPH, an open-source framework for Smooth Particle Hydrodynamics (SPH) and other meshless methods such as DEM and generalized finite difference methods. You’ll learn how to quickly get started with PySPH using Docker, run an example SPH simulation (2D dam break), and visualize the results using ParaView. Perfect for beginners who want a hands-on introduction without complicated installations. What you’ll learn:
What PySPH is and its applications
Installing and using Docker for PySPH
Running SPH simulations inside Docker
Converting output files for visualization
Using ParaView and troubleshooting visualization formats
In this tutorial, we walk through the complete installation of PySPH, an open-source Smoothed Particle Hydrodynamics (SPH) framework, and its visualization tool Mayavi. You’ll learn how to:
Clone and install PySPH, Cyarray, and Compyle from source
Set up a clean Conda virtual environment
Handle dependencies for Linux systems
Run and test PySPH examples (e.g., dam break simulation)
Export results to XDMF/VTK formats for visualization in ParaView
Install and troubleshoot Mayavi viewer
This video is ideal for researchers, students, and developers who want to build and run PySPH locally for SPH-based computational fluid dynamics simulations.
? Topics Covered:
Installing PySPH dependencies
Setting up Conda environment
Running and testing SPH simulations
Exporting results for visualization
Installing and fixing Mayavi
In this lecture, we continue our SPH (Smoothed Particle Hydrodynamics) series by simulating the classic 2D dam break problem using the PySPH framework. The session focuses on the practical implementation of SPH simulations, with special emphasis on boundary condition handling using schemes.
We start by walking through the structure of a PySPH application, explaining the role of key methods such as initialize, create_domain, create_particles, and create_scheme. Using the built-in dam break example, we demonstrate how to set up fluid and boundary particles, define physical parameters, and visualize the particle distribution.
A major part of the lecture is dedicated to SPH schemes, particularly the EDAC scheme. You’ll learn:
What a scheme is and why it is useful
How equations and solvers are bundled inside schemes
How schemes automatically manage particle properties
How to configure solvers, kernels, steppers, and runtime options
We then run the simulation in parallel using OpenMP, visualize results using the PySPH viewer, and export data for ParaView using XDMF. Finally, we cover post-processing, including comparison with benchmark results (Koshizuka & Oka), and dive deeper into boundary condition implementation, explaining how wall pressure and velocity are interpolated from fluid particles using SPH formulations (e.g., Adami-type boundary conditions).
In this lecture, we study a classic internal flow problem – flow past a circular cylinder – using the PySPH framework. This example represents a wind-tunnel–type simulation with no free surface, making it a representative benchmark for internal flows commonly encountered in CFD across different numerical methods.
We begin by introducing the PySPH flow past cylinder (2D) example and explain how to structure a PySPH application by subclassing the Application class. The focus of the lecture is on the practical implementation of inlet and outlet boundary conditions in SPH, which is one of the most important and challenging aspects of meshless methods.
The lecture covers:
Creation of fluid, solid (cylinder), wall, inlet, outlet, and ghost particles
Particle generation using numpy and geometry utilities in PySPH
Removal of overlapping fluid particles near the solid boundary
Concept and role of ghost inlet/outlet particles
Setup and working of the InletOutletManager, including particle conversion between inlet, fluid, and outlet regions
Use of the EDAC scheme and discussion of required parameters and solver configuration
Visualization of inlet feeding, outlet removal, and vortex formation using ParaView
We then demonstrate how boundary conditions are naturally handled in a Lagrangian, meshless framework, without the need for interpolation or remeshing. Building on this, the lecture shows how solid motion can be easily introduced by adding a custom integrator/stepper, allowing the cylinder to move with prescribed velocities—highlighting a major advantage of SPH over mesh-based methods.
Finally, we visualize vortex shedding, pressure oscillations, and velocity fields, discuss typical SPH artifacts, and emphasize how inlet–outlet handling and object motion can be extended to more complex internal flow problems.
Learn how to set up and solve a Shock Tube Problem using the PySPH framework in Python. In this lecture, we create particles, define SPH equations, implement custom integrators, set up solver groups, and run a 1D shock-tube simulation using the SPH method. You’ll learn:
How to build a PySPH application from scratch
Creating particle arrays for density, pressure, velocity & energy
Implementing Momentum, Energy & Summation Density equations
Using Gaussian kernels in PySPH
Writing a custom Euler integrator step
Setting up equation groups and solver structure
Running a complete SPH simulation in Python
This comprehensive course is designed to guide you from the fundamental principles of Smoothed Particle Hydrodynamics (SPH) to the development and execution of complete SPH simulations using PySPH, an open-source, Python-based SPH framework developed at IIT Bombay. Whether you are new to meshless methods or an experienced CFD engineer looking to expand your skill set, this course offers a structured and practical pathway to mastering SPH-based simulations.
You will begin by developing a solid understanding of the mathematical foundations of SPH, including particle approximation, kernel interpolation, and gradient formulations. The course carefully explains how SPH replaces traditional mesh-based discretization with particle interactions, making it especially powerful for problems involving large deformations, free surfaces, and complex physics. Concepts such as interpolation methods, kernel functions, and density formulations are introduced step by step and directly connected to their implementation in code.
A major focus of this course is hands-on implementation using PySPH. You will learn how to install and configure PySPH along with its supporting libraries, including Compyle and Cyarray, using Conda. To ensure a smooth learning experience across platforms, the course also demonstrates how to run PySPH using Docker, allowing you to work without complex local installations. Throughout the course, you will write real SPH codes in Python, create particle arrays, define physical fields, group equations, and configure solver structures from scratch.
As you progress, you will implement core SPH equations such as momentum, energy, and density summation, explore Gaussian kernels and their properties, and build custom time integrators, including an explicit Euler scheme. These concepts are reinforced through classic benchmark problems such as the Shock Tube and Dam Break simulations, giving you practical insight into solver behavior, numerical stability, and physical interpretation of results.
By the end of this course, you will be able to independently build, run, and analyze SPH simulations using PySPH. You will also gain experience exporting simulation results and visualizing them using tools such as ParaView and Mayavi. This course equips you with both the theoretical understanding and practical workflow needed to apply SPH methods to real-world engineering and research problems using a fully open-source toolchain.