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.
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.
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
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:
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:
In this release I’ve written a faster rendering function that use in a more logical way OpenGl , so that’s possible to draw tons of particles in a very fast way. For showing this characterises try the demo fountain that simulate a model of 250’000 particles (or watch the video above).
As second I’ve added the electromagnetic files force, and I’ve improved the electromagnetism support, so now you can simulate also some electromagnetic system like cathodic tube or valves. Watch the demo elmag_field that simulate positive and negative charged particles in an electromagnetic filed (type v for plotting the vector fields).
And the last new is the possibility to plot the vector field, if required.