Python OpenCL "gravitational" "fluid" simulation
Not real gravitational potential ( too much spreading speeds with G/(D+eps) )
Pressure potential : -Density*PRESSURE
Friction affect particles velocity sharing same discrete location
OS
QT4 OpenGL OpenCL
PYTHON
pyfft pyopencl pyopengl
N -> number of particles
D -> spatial discretization size
GRAVITY
PRESSURE
FRICTION
ipython gravity/galaxy.py
sudo apt install ipython
sudo apt install python-pip
apt-cache search pyqt
sudo apt-get install python-qt4
sudo apt-get install libqt4-opengl
sudo apt-get install python-qt4-gl
sudo apt install ocl-icd-opencl-dev
pip install numpy
pip install pyopengl
pip install pyfft
sudo apt install python-cffi
git clone https://github.com/inducer/pyopencl.git
cd pyopencl/
python configure.py --cl-enable-gl --cl-pretend-version=1.2
make -j 8
sudo make install