Online lectures from MIT with Walter Lewin

If you have missed out on some of the lectures or feel you could need a second view on some subjects, we recommend having a look at Walter Lewin’s lectures from MIT:

Our syllabus is not the same as in their course, but some lectures are very relevant. For instance there are lectures on Gauss law, electric flux, magnetism and much more that will follow in our course too.

Spending some time watching a few lectures when you have spare time or are tired of reading can help you grasp concepts that you find hard to understand. It could also be very inspiring!

Should you find some lectures especially useful, don’t forget to tip your fellow students about it by leaving a comment below.

Cabin trip with Fysisk Fagutvalg

Fysisk fagutvalg is organizing a cabin trip for FYS1120 students at the KSI-cabin in Nordmarka. The trip is a supplement to the official teaching, and consists of lectures and problem solving with plenty of time to socialize. Important information follows:

  • Price: 100 kr

For those who not have a card for bus, tram, metro in Oslo; you must remember money for public transport.

Packing List

  • School Matters (calculator, writing material)
  • Sleeping bag
  • Slippers
  • Warm clothes (it can get cold at night)
  • Waterproof clothing (it can start to rain!)
  • A flashlight (if you have one).
  • Bags (we don’t have permission to drive up to the KSI-cabin, so everyone must a carry bit. It’s a walk and probably boring to carry a plastic bag all the way)
  • Possibly: Mineral water and alcohol, if you want it, you have to bring yourself.

Contact

For questions about the trip contact FFU: fagutvalg@fys.uio.no

Preliminary program

Saturday:

  • 11.00 Attendance at the pendulum, departure 11.35
  • Those who have not paid yet, you can pay then.
  • (One can withdraw money outside Akademika)
  • Guided walk up to KSI hut
  • Hot lunch at the lodge at about 13.30 (when we get up)
  • Lecture 14.00-15-00
  • Problem solving 3:00 p.m. to 4:00 p.m.
  • Lecture 4:00 p.m. to 5:00 p.m.
  • Dinner ca. 17.00
  • Trail
  • Games and fun the rest of the evening

Sunday:

  • Breakfast 09.00
  • Clearing
  • You are responsible for the room you are on.
  • Departure around 12:00

Electric field lines

We have made a small demo that will allow you to play around with electric field lines in your web browser. You can place and move around charged particles to see how the field changes as you make your own charge configuration.

An electric field line simulator straight in your browser!

Try the simulator here

Note that there are some limitations to this simulation, leaving it a bit unphysical when it comes to lines that might end up in open space, wrong field line density and other quirks. All in all it should be correct to a decent approximation, though.

For the programming enthusiasts out there, the simulation is created using Javascript and HTML5. You can check out the source code here.

Enjoy!

Adjusting to the new version of Pylab and Mayavi on Ubuntu 12.04

It seems the IPython and Pylab packages has also been updated in 12.04 and thus removing the old ipython -wthread flag that would ensure Mayavi plots to be run in a separate thread. Running with the flag causes this error to show up:

[TerminalIPythonApp] Unrecognized flag: '-wthread'

Without this flag, the Mayavi plots lock up the UI and hangs. If you want to get the possibility back to rotate and play around with the plots, just start IPython the following way from now on:

ipython --pylab=qt

This will launch IPython with the Qt backend and threading. Using only –pylab does not include threading. For easy and quick access, add the following to a file named .bashrc in your home folder:

alias pylab='ipython --pylab=qt'

From now on you can launch IPython just by typing

pylab

in a terminal.

Using the same script on installs with different EPD versions

In the newest version of Enthought’s Python Distribution (EPD) on Ubuntu, the plotting package has been moved from enthought.mayavi.mlab to the shorter and more general mayavi.mlab. This does however mean that if you, like me, need to work with different versions of EPD on multiple systems, will experience the following error from time to time:

ImportError: No module named enthought.mayavi.mlab

Now, to avoid switching the import statement every time you switch systems, you can make Python check if one of the versions is installed during import. If it is not, we’ll tell it to try the other. This is done in this simple command:

try:
    from enthought.mayavi.mlab import *
except ImportError:
    from mayavi.mlab import *

Just replace any other similar import statements the same way and your code should once again be working across all your installations.

Classical mechanics in HTML5 and Javascript

Ok, so we’re working on the home exam in classical mechanics and I decided to spend some time simulating the solution of the first exercise. Probably not the wisest way to spend time during an home exam, but what the heck. I’m learning some Javascript and HTML5, plus the fact that it’s always fun to verify results by looking at something moving!

So here you go. A pendulum on a cart.

I won’t go into details about deriving and solving the Lagrange equation for this system now, but I might get back to that at a later time. And of course there will be some added controls to this so you could set the initial positions, velocities and stuff. Sometime later, I hope.

Note on RLC circuits

Atle has written very helpful note on RLC circuits that could be pretty useful as a repetition before the exam. The book is not soo thorough on how to work with RLC circuits and does some parts of the text on specialized cases that are not necessarily working out in general. Reading about how to solve such circuits in the final pages of this note can turn out extremely valuable on the exam.

Enjoy!

Online lectures for repetition from MIT

If you’ve missed out on some lectures this semester or need some repetition for central subjects, we recommend having a look at Walter Lewin’s lectures from MIT:

Walter Lewin’s lectures on Electricity and Magnetism (MIT)

They do not coincide to our syllabus in all areas, but some lectures are very relevant. For instance there are lectures on magnetism, Lorentz’ force, LRC circuits and much more. I guess you could tell which ones you need or want to watch from the titles.

Spending some time watching a few lectures when you have spare time or are tired of reading can help you grasp concepts that you find hard to understand, and could be very inspiring!

Should you find some lectures very useful, don’t forget to tip your fellow students about it by leaving a comment below this post.

Enjoy!