Hack of the Whenever I Get Around to It

May 3, 2006

Particle physics simulation software

Filed under: Uncategorized — Chris Merck @ 8:06 pm

A long while ago I wrote some QuickBasic code to simulate the movement of massive bodies about one another in 2D space (SMLPRT I called it). It made a nice MS-DOS screensaver. I rewrote it in C a few years ago for DOS on a 286, and just the other day ported it to linux using svgalib, then sdl, then sdl-opengl 3d.
The new code simulates the flow of water by calculating the forces between individual molecules. The code can easily be customized by changing the force – distance function. Some features I have added are using the mouse to prod the particles and gravity.



Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Blog at WordPress.com.

%d bloggers like this: