Release 0.3.5: first introduction of OpenCL and GPU computation.

In this release I’ve introduced OpenCL and GPU in the development of PyParticles, and the firsts result are very well , try by yourself the galaxy demo.

The acceleration respect the the simulation based only on numpy is impressive.

Galaxy

If you want you can try also the fountain demo were I’ve introduced OpenCL in the drag computation, and the result is very encouraging and now you can simulate easily up to 700K particles or 1M particles.

As second point I’ve fixed the VSYNC problem, but only under windows.

New version 0.3.4 and VSYNC

For this version I’ve rewritten the logging system, now id more flexible and fast, test it with the solar system demo, I’ve also added the FPS counter and I’ve also improved the documentation.

 

The galaxy demo above will be available with the next release (0.3.5) stay on-line:

For the next version I’ve started to works with OpneCL and PyOpenCL

Disable VSYNC

Some video card has enabled the vsync, at the moment this option slow down the simulation in PyParticles if you use OpenGl, so if you want the maximal velocity you must disable this option:

Under Linux

with NVidia binary driver you must start the Nvidia server settings [command: nvidia-settings], select OpenGL Settings and uncheck Sync to VBlank

  • For a generic user and AMD card, try to watch this video:

Under Windows for NVidia and ATI users, follow the instruction at the link bellow:

http://windows7themes.net/how-to-disable-vsync-in-windows-7.html 

New release 0.3.2

In this release I’ve added the damping force, that’s useful in a lot of simulations.

And I’ve finally fixed and improved the documentation, in particular I’ve written a chapter dedicated to the testing procedures, for me this point is very important because it show practically the reliability of pyparticles. At the moment the implemented tests are 3, but in the future I hope to add also some other procedure.

If you have some suggestion for testing PyPaticles don’t hesitate to contact me.

New release PyParticles 0.3.1

With this release PyParticles become compatible with python 3.3, it need some other test but all mains functionalities works correctly. At the moment the main goal is to have an application that works either with python 2.7 and 3.3.

The second and very important point of this release are the testing, so I’ve finally written a pair of test procedures for comparing an analytical solution with the simulated solution.
For the moment the two tests are a falling object in a dragged fluid and the harmonic oscillator, and in both cases the result of the simulation is correct or, for be more precise, it follow the analytical solution with a very good approximation, so I can think that the procedures implemented in PyParticles are reliable.

In the following I report the absolute error for the harmonic oscillator (click for enlarge):

Version 0.3.0: Introduce the constraints for a more flexible simulation.

With PyParticle version 0.3.0 I’ve added the possibility to inset constraints in the particles system. The constraints are used to force the positions of some particles or for set up the interactions between the particles so we can build some complex and detailed models. In my example (see the video above) I’m simulating a vibrating string with the drag of the air under a constant gravity, and the result is very interesting.

In this version I’ve also improved the OpenGl rendering by using the display lists and I’ve also added a bubble demo, based on a ‘fantasious’ force.

For understanding the potential of the constraints watch this video, where I’ve developed a vibrating string in a very simple manner.

Visit the github page:  https://github.com/simon-r/PyParticles and follow the project.

Download here: PyParticles