Matter & Interactions

3D lecture-demo programs for E&M

Creative Commons License
The work below is licensed under a Creative Commons Attribution 4.0 License. Please read the license before downloading the software.

The initial number is the chapter of Matter & Interactions (3rd edition) in which the program is most useful.
Read the text at the start of the program for how to use the program.
Install VPython to use these programs.

These programs work with either the Python 2.x series or the Python 3.x series, and with VPython 5.x or VPython 6.x.

Here are all of the programs listed below, in one zip file.

In these VPython programs, to rotate or zoom the "camera":
         Right button drag or Ctrl-drag to rotate the camera to view the scene.
         Middle button or Alt-drag to drag up or down to zoom in or out.
              On a two-button mouse, middle is left + right. (general program to demonstrate electric and magnetic fields, Gauss's law, Ampere's law, potential)
Right-click dipoles.em to get a data file for a stack of dipoles, cap.em for a capacitor, and current_sheets.em that create magnetic fields.) (electric field throughout space around a charge; can drag the charge) (shift the electron sea back and forth with the mouse) (add up pieces of a ring to make electric field of a ring) (add up electric field of rings to make field of disk) (electric field near a disk) (electric field outside a sphere, adding up rings) (electric field inside a sphere, adding up rings) (croos product in 3D) (continuous shift of mobile electron sea due to nonzero electric field in wire) (magnetic field near a long straight wire) (magnetic field of loop, adding up segments of loop) (magnetic field of wire, adding up segments of wire) (magnetic field near a current-carrying loop) (drag mouse around inside and outside a solenoid to see magnetic field) (display electric field inside a wire made by gradient of surface charge) (also displays electric field outside the wire) (numerical integration of an RC circuit) (helical motion of a proton in a uniform magnetic field) (magnetic field of a moving high-speed proton) (electric field of a moving high-speed proton) (watch one atom move through a gas) (navigable 3D version of the diagrams in Chapter 21 on Gauss's law) (Faradays' law: moving magnet) (Faradays' law: coil with time-varying current) (nature of radiative field lines) (development of kink in electric field of accelerated charge) (radiative E and B spreading out in a plane from accelerated charge) (radiative E and B spreading out in 3D from accelerated charge) (one pulse of radiative E and B fields) (sinusoidal wave displaying E and B, and wavelength) (a phalanx of radiative E and B fields) (radiation spreading out from an antenna) (interactively show rays passing through a thin lens) (change of wavelength as light passes into matter) (constructive interference from two radiators) (destructive interference from two radiators) (both constructive and destructive interference from two radiators) (show crystal structure and crystal planes) (aspects of powder x-ray diffraction) (two traveling waves add up to a standing wave)