Computer Science Canada

Electric fields

Author:  Homer_simpson [ Mon Apr 19, 2010 12:03 am ]
Post subject:  Electric fields

its a c++ version of the turing one i made earlier. added potential contour maps in this one and you can allow charge to move in the field.
its not finished so you can't add or remove charges.
here are the controls:
f to show forcefield directions
v to show voltage potential contour maps
c to change contour map color scheme
, and . to increase and decrease the contour map resolution
[ and ] to increase and decrease the efield resolution
- and + increase or decrease one of the charges
a to animate the system
r to create a random field of 4 charges
mouse click relocates one of the charges.

i'll upload a more complete version later.

you should adjust the resolution for your system so it runs smoothly.
try animate on the original field setup.

Author:  SNIPERDUDE [ Mon Apr 19, 2010 1:19 pm ]
Post subject:  RE:Electric fields

Pressing 'R' while on animated voltage map beats my lava lamp hands-down.

Awesome project, +bits

Author:  Prince Pwn [ Fri Jul 23, 2010 1:56 am ]
Post subject:  RE:Electric fields

How can you create something this awesome? You must have 1337 skillz.

Author:  Kharybdis [ Fri Jul 23, 2010 6:25 am ]
Post subject:  Re: RE:Electric fields

Prince Pwn @ Fri Jul 23, 2010 1:56 am wrote:
How can you create something this awesome? You must have 1337 skillz.


math and physics, yah?

Author:  Homer_simpson [ Fri Sep 17, 2010 10:58 am ]
Post subject:  Re: Electric fields

I didn't think this was worth starting another thread since its an update... added gui so i think its pretty self explanatory...

Author:  Insectoid [ Fri Sep 17, 2010 6:06 pm ]
Post subject:  RE:Electric fields

Would you be able to provide source or at the least compile a mac version? I see you're using DLLs in there, dunno how hard it would be to port that to Mac.

Author:  Homer_simpson [ Sun Sep 19, 2010 6:12 pm ]
Post subject:  Re: Electric fields

ok heres the source code,
I used devc++ from bloodshed, you need to install glut and freetype from their upgrade server to be able to compile. sorry for the semi messy code. let me know if u have any questions, hopefully i can answer them.
note i did not write the freetype library


: