(Dillard U. - Spring 2005)
I suggest we meet Tuesdays 3:45-5:00 and Thursdays 1:00-2:30.
If you can make at least of the one meetings each week, then that
would be good.
Look for me in my office. Then check the learning Center.
It seems the "block pulled by a rope" program is almost done.
We should really finish that off as soon as possible.
Forthcoming program ideas [which can be done in a month or less
if you are willing and really put in the time for them]:
Electric Circuit
Mr. Lush is thinking about a simple resistive circuit.
He's working on drawing basic circuit elements.
The underlying physics is Kirchhoff's Laws.
The underlying math is solving a linear system of equations
with Cramer's Rule.
(See Serway-5th, Ch 28 "Direct Current Circuits".)
Here is what we presented at the 2005 Scholarship Day
Center of Mass
This should be a quick one to do. (Maybe a day or less!)
Use the mouse to drop new point masses or drag around existing ones.
Dynamically calculate and mark the center of mass.
Look at physics.syr.edu/~salgado/software/vpython/EFieldBuilder-09990.py
for an example of using the mouse to drop or drag objects.
(See Serway-5th, 9.6 "The Center of Mass", Beer-Johnston, Ch 5.)
Polygon Triangulation
This is essentially the conversion of a simple C++ program into Python.
The big goal: to draw 3D objects in the PHY 112 class
by specifying the vertices of the planes of an object.
The problem: VPython can only render triangles using its
faces command. http://vpython.org/webdoc/visual/faces.html
A solution: translate a relatively simple program
which breaks up not-so-complicated polygons into non-overlapping
triangles:
http://www.flipcode.org/cgi-bin/fcarticles.cgi?show=63943
Distributing Charges on an Electric Conductor
Yesterday, I was thinking about how to draw electric field line
diagrams. Along the way, I thought about how charges would
distribute themselves on a sphere. So, I wrote a program
(90% done) which creates a random sprinkling of charges on
a sphere, then lets the electric "Coulomb's Law" forces
[and the forces keeping the charges on the sphere] push the
charges around until the system settles down to static equilibrium.
(It looks really cool...
[The strands trail how the charges move from their initial positions
to their final positions. The arrow represents an external Electric Field,
the blue charges are positive, and the red charges are negative.]
)
Look at this:
webphysics.davidson.edu/physlet_resources/bu_semester2/c04_conductor_field2.html
Move the charges around arbitrarily. (This would be our
starting state.) Click on Charge in a Circle. (This is our final
state.) Imagine dynamically reaching that final state.
With a tweak, I believe we can easily do this with several charged
conducting spheres... which would be cooler. With a little more
effort, possibly with the help of the triangulation program above,
it would be extremely cool to do this on a non-spherical
closed surface. (See Serway-5th, 25.6 "Electric Potential due to
a Charged Conductor".)
[Just added: 3/20/05]
Electric Field Line Diagrams
Anyone else have suggestions?
|