Omnimaga
Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: squidgetx on February 22, 2011, 06:04:07 pm
-
So in physics we were supposed to be doing a predict-the-electric-field activity, but instead I decided to spend the time writing a program that could do it for me (Axe). I think it's not too shabby, but if someone could help me fine-tune the accuracy of it a bit? In some situations it behaves oddly. Source (Axe) is in prgmA0E.
Controls:
2nd: place positive charge
Alpha: place neg. charge
Enter: advance scenario
-
I read electric fan Sim :O
This is much better than an electric fan.
(I think the jumping is because some number keeps wrapping around between 'a really big number' and 0)
-
Wow, this is pretty cool.
What's wrong with it, though? Is it just he accuracy, or is there something else?
-
So in physics we were supposed to be doing a predict-the-electric-field activity, but instead I decided to spend the time writing a program that could do it for me (Axe). I think it's not too shabby, but if someone could help me fine-tune the accuracy of it a bit? In some situations it behaves oddly. Source (Axe) is in prgmA0E.
Wow, awesome. Some attraction cases look off, though?
-
Ok, I fixed a few of the problems. The program still flips out once a test charge meets with a negative charge (I suspect a divide by 0 leading to a velocity change of 65535, but I haven't been able to fix it). Also I changed the graphics and fixed something that was wrong with one of the formulas before.
-
Make sure to cap the max speed of the vars at whatever you're inflating it to. That way, it can only move a max of one pixel per frame. :)
Other than that, it looks nice! ;D
-
Another thing that might be interesting to make is have you place charges, and then it draws the electric field lines or something :D
-
Ok, I fixed a few of the problems. The program still flips out once a test charge meets with a negative charge (I suspect a divide by 0 leading to a velocity change of 65535, but I haven't been able to fix it). Also I changed the graphics and fixed something that was wrong with one of the formulas before.
That looks great :D Do the test charges still attract/repel each other? I can't tell from the shot...
-
Test charges don't have any effect on each other :P
-
Oh, I see. I got confused at first because I thought the first screenshot had only "test charges." Makes sense now :)
-
This is interesting. I think this could be fun to mess around :D
-
SQUIDGET!!!
you know what you need to do?
turn this simulator into electric field hockey.
http://phet.colorado.edu/en/simulation/electric-hockey
-
Hmm that sounds cool actually :D
-
I remember playing that in AP Physics last year :P
Very cool simulator though :)
-
And a suggestion for this one: Having a mode where the test charges interact with each other too.
-
SQUIDGET!!!
you know what you need to do?
turn this simulator into electric field hockey.
http://phet.colorado.edu/en/simulation/electric-hockey
^++
That would be awesome.
Would smoothscrolling be out of the question?