Forgot your password?
typodupeerror
Education Programming Science

Simple, Portable Physics Simulations 145

Posted by timothy
from the for-kids-and-other-humans dept.
ttsiod writes "I want to 'lure' my nephews/nieces towards Science and Engineering (to whatever extent that's possible, in the age of consoles). To that end, I have coded simple physics simulations, like falling snow, exploding fireworks, and 1D/2D wave simulations. My efforts are here, in the form of portable SDL mini-programs (GPL code, compilable under Windows, Linux, Free/Net/OpenBSD, Mac OS/X and basically every OS with GCC and SDL). Try them out, and do offer any suggestions on other programs that can trigger scientific interest in young minds. Myself, I am teaching them Python, so that they can code 'fireworks' on their own."
This discussion has been archived. No new comments can be posted.

Simple, Portable Physics Simulations

Comments Filter:
  • wot? (Score:5, Interesting)

    by sammyF70 (1154563) on Sunday August 16, 2009 @02:32PM (#29085121) Homepage Journal
    I seriously have to ask : what does a 1-Dimensional wave look like????
  • Re:wot? (Score:2, Interesting)

    by NoMoreFood (783406) on Sunday August 16, 2009 @02:41PM (#29085205)
    Think guitar string for 1D. Think ripple from rock being dropped in water for 2D. Think cell phone transmission for 3D.
  • physics games (Score:1, Interesting)

    by Anonymous Coward on Sunday August 16, 2009 @02:53PM (#29085287)
    Phun has already been suggested and it's good. another good game is garry's mod. http://www.youtube.com/watch?v=Ae6ovaDBiDE [youtube.com] with the two addons (PHX and wire that 90%+ people have) its possible to program inside the game. check out wiremod.com/forums to see what's possible.
  • Try NetLogo (Score:2, Interesting)

    by Anonymous Coward on Sunday August 16, 2009 @03:01PM (#29085345)

    You might want to take a look at NetLogo (http://ccl.northwestern.edu/netlogo/). To quote the documentation: "NetLogo ... comes with a Models Library, which is a large collection of pre-written simulations that can be used and modified. These simulations address many content areas in the natural and social sciences, including biology and medicine, physics and chemistry, mathematics and computer science, and economics and social psychology."

    The models demonstrate some nice concepts and are easy to modify and a great source of material on how to implement your own models (see http://ccl.northwestern.edu/netlogo/models/ and scroll down a bit for the list).

    Phun is great too...

  • Good work, but... (Score:5, Interesting)

    by Mike Rice (626857) on Sunday August 16, 2009 @03:14PM (#29085445)

    Simulations that are useful for learning must be grounded in reality. They must give the learner a chance to extrapolate principles from their own personal hands-on observations to the simulation.

    Without original personal observation of physical phenonema, simulations are little more than 'das blinken lights' to the learner.

    Don't get me wrong, the stuff offered by the OP is good. And if the kids in question already have an interest in the subject, its great.

    But to spark an original interest takes hands-on, thought provoking experiments that the learner may manipulate in any way they wish (some of which you probably never thought of).

    Example. Electromagnetism. My 8th grade grandson (yup I'm an old geezer who cut my teeth on vacuum toobs and RTL) learned a lot about the interplay between electric and magnetics fields just today. I suspended a magnet on a string, over an aluminum plate, and just left it there for him to find, and play around with. After he had done so, he asked why when the plate was present the pendulum swiftly assumed a stable position, whereas when the plate was absent the pendulum assumed a rather chaotic motion... even though the magnet was obviously not attracted to aluminum.

    After explaining it to him and allowing him to further explore the physics with magnet wire and batteries, he came away with a firmer grasp on electromagnetism, a grasp I highly doubt he would have gotten from a canned simulation. Now that he has made a connection in his mind between the seen (magnetic damping of the pendulum motion) and the unseen (electrical currents in the aluminum plate, and the ensuing magnetic field), a simulation would allow him to further explore the subject without requiring expensive laboratory equipment.

      So, Kudos for the work, but you have to get out there and actively, physically engage them with hands-on experiments. After, that is really what science is about!

  • by drerwk (695572) on Sunday August 16, 2009 @04:17PM (#29085911) Homepage
    My 10 year old showed this to me : http://dan-ball.jp/en/javagame/dust [dan-ball.jp] It is not exactly physically accurate, but it is really pretty cool and fun, and much more accurate than I expected.
    And can I say fast for what I thought one could get from Java.
  • by Cliff Stoll (242915) on Sunday August 16, 2009 @10:14PM (#29087855) Homepage

    Want your kids to learn physics? Throw away the computer simulations. Build things with them. Run experiments. Observe and think about the results.

        To teach physics, start with things like C-clamps, string, rubber bands, wire, springs, low-friction carts, compasses, magnets, thermometers, balloons, weights, scales, and pulleys.

        More advanced stuff: a voltmeter/ammeter (analog stuff), an old oscilloscope, an air table (a kids' hockey table), vacuum pump & bell jar, countdown timer/photogate, etc. Many of these things show up on craigslist for cheap (I picked up two free oscilloscopes and have given them to my sharp high school students).

        Computer simulations? Naw. Have your kids do real physics:

        A pendulum made of a bowling ball and rope. Time the pendulum swings and then ask: which will change the period - changing the lenghth of the swings, changing the weight, or changing the length of the rope?

        Fool around with a signal generator, an oscilloscope, and a microphone. What's a sound wave look like? How is frequency related to period?

        Play with thermometers, ice, water, and fire. What's the temperature of ice and water? Can you get water colder than this? How hot is water from the kettle? Can you get water hotter than this?

        Get a voltmeter, wire, and some magnets. Can you really induce a voltage by moving a magnet nearby?

        Don't sidetrack your kids with simulations & computer graphics. Real physics starts by fooling around with reality.

        Obs Feynman quote: "It doesn't matter how beautiful your theory is, it doesn't matter how smart you are. If it doesn't agree with experiment, it's wrong."

  • Re:Good work, but... (Score:3, Interesting)

    by Alsee (515537) on Monday August 17, 2009 @04:25PM (#29097101) Homepage

    I had wondered about the earth's magnetic field too, but I think get it now.

    Any charge imbalance gets very very quickly evened out.

    Evening out a charge imbalance means a movement of electric charge. That is an electric current, which creates a magnetic field. Magnetic fields induce electric fields. In the extreme case of light a collapsing electric field creates a magnetic field which then collapses into an electric in a self sustaining cycle. In a theoretical lossless situation any initial electric or magnetic field in a conductor with create a self sustaining cycle. A magnet will self-sustainingly levitate above a super conductor because the magnet induces a lossless electric current and lossless opposing magnetic field. So in the ideal lossless situation even the slightest initial electric or magnetic imbalance in the earth would result in a self sustaining cycle.

    The earth, or a sphere of mercury, are normal conductors, and obviously have resistive losses. Any electric or magnetic field will tend to decay to zero unless you have an energy input. Thermal convection is that energy input sustaining thecycle. Now consider this - if an energy input can sustain that cycle then a larger energy input can amplify that cycle. In the ideal zero field case convection will amplify a zero field back to a zero field, but even the slightest random non-zero field influence will get amplified into a larger non-zero field. Any non-zero electric or magnetic influence from the sun or a meteor or a lightening or anything else will get amplified by that thermal convection energy input.

    sphere of mercury with a heat source at the middle making the mercury convect... What's different about a planet-sized glob of stuff with an outer core of molten iron?

    Scale. A one mile per hour water current in a puddle contains a minuscule amount of energy and will decay to zero in seconds due to friction losses. A one mile per hour water current in the Atlantic ocean constitutes a colossal store of inertial energy, and losses to friction are (relatively) negligible.

    Resistance losses go up as the square of the rate of current. The earth is so huge that even the most minuscule rate of current flow represents an enormous quantity electrons and generates a significant magnetic field. Any laboratory-scale sphere of mercury would need a vastly larger rate of current flow to generate a measurable magnetic field, and field decay to resistance would dominate at the square of the rate of current.

    Looking at it graphically, decay effects are like a U shaped curve. A laboratory scale blob of convecting mercury constitutes a fairly small gross quantity of convection energy flow, and will quickly resistance-settle to the immeasurably close to the exact bottom of that U almost immediately. Scaling things up to planet size is like taking a microscope to the virtually flat bottom at the middle of the U. The gross quantity of convection energy input is enormous, and it will feed into any variation from zero and push it pretty far off of the zero point. It will amplify it until the square-of-current resistance energy losses become large enough to balance the convection energy input.

    -

Lisp Users: Due to the holiday next Monday, there will be no garbage collection.

Working...