An open API service indexing awesome lists of open source software.

https://github.com/alexandresajus/python-fluid-simulation

A 2D Python Implementation of Smoothed Particle Hydrodynamics
https://github.com/alexandresajus/python-fluid-simulation

fluid physics python simulation

Last synced: 9 months ago
JSON representation

A 2D Python Implementation of Smoothed Particle Hydrodynamics

Awesome Lists containing this project

README

          

# **Python Fluid Simulation**

![Pylint Score](assets/pylint.svg)

A Python 2D fluid simulation using SPH


Standing Wave

Implementing smoothed particle hydrodynamics (SPH) in Python using this tutorial.

See also the C# implementation in Unity here.

## **Installation**

Make sure you have Python installed on your computer. Then, in a terminal, run the following commands:

**1. Install the package with pip in your terminal:**

```bash
pip install git+https://github.com/AlexandreSajus/Python-Fluid-Simulation.git
```

**2. Run the simulation:**

```bash
python -m pythonsph
```

This will prompt a matplotlib animation window with a real-time simulation:


Real Time