Skip to content

AlexandreSajus/Python-Fluid-Simulation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Fluid Simulation

Pylint Score

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:

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

2. Run the simulation:

python -m pythonsph

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

Real Time

About

A 2D Python Implementation of Smoothed Particle Hydrodynamics

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages