New version 0.2.1

The development is continuing.

Whit this new version I’ve added some interesting featured, first of all I’ve added the possibility to measures some quantity like the potential energy or the kinetic energy in the particles system, try to watch the springs or the solar system demo, I’ve also added the Lennard Jones potential as a force model for simulating the particles system, that’s very useful for simulating the gases.

For the visualization I’ve written some new features in the OpenGl animation, and now you can change easily the particle rendering model, and if you want you can turn ON or turn OFF the lighting, plus a little help (push the key h).

The next main goal is performing the simulation via OcTree.

Download here

Py Particles

PyParticles is an opensource particles simulation tool box entirely written in python.

It support the most popular integrations methods  and the most relevant forces model. It also offer a nice looking OpneGL interface or at your preference a Matplotlib based GUI.

PyParticles as a forces models  implements Gravity, spring, constant force and electrostatic and the user defined vector field force.

As a integrations method it includes Euler, Midpoint, Runge Kutta, Störmer Verlet and Leap frog.

With PyParticles you can freely combine every force model with all integration method in an easier as possible manner, for example you can change the integration method by switching a single line of code:

For example with this single line of code we can say to PyParticle to use the Runge Kutta method for simulating the model.
solver = rks.RungeKuttaSolver( grav , pset , dt )

Visit the project page on GitHub

 

The two following screenshots represents a simulation of the solar system and a set of 1000 random particles: