Svenn-Arne Dragly – Elektromagnetisme http://elektromagnetisme.no The home of FYS1120 Mon, 20 Oct 2014 11:23:54 +0000 en-US hourly 1 https://wordpress.org/?v=4.9.3 28429679 Syllabus for the mid-term exam http://elektromagnetisme.no/2013/09/25/syllabus-for-the-mid-term-exam-2/ http://elektromagnetisme.no/2013/09/25/syllabus-for-the-mid-term-exam-2/#comments Wed, 25 Sep 2013 20:12:52 +0000 http://elektromagnetisme.no/?p=2269 The syllabus for the mid-term exam has been posted under “Beskjeder” on the course pages.

]]>
http://elektromagnetisme.no/2013/09/25/syllabus-for-the-mid-term-exam-2/feed/ 6 2269
Errors in the schedule http://elektromagnetisme.no/2013/08/23/errors-in-the-schedule/ http://elektromagnetisme.no/2013/08/23/errors-in-the-schedule/#respond Fri, 23 Aug 2013 08:14:32 +0000 http://elektromagnetisme.no/?p=2103 Continue reading ]]> There are some serious errors with the FYS1120 schedule on the course pages.

The following groups have been added as a mistake and will be removed:

We’re sorry about the inconvenience.

This means that the following groups are the only ones that will be held:

In addition, we note that there is only one oblig in this course. The exact deadline for this oblig will be announced.

]]>
http://elektromagnetisme.no/2013/08/23/errors-in-the-schedule/feed/ 0 2103
No group sessions this week http://elektromagnetisme.no/2012/12/04/no-group-sessions-this-week/ http://elektromagnetisme.no/2012/12/04/no-group-sessions-this-week/#comments Tue, 04 Dec 2012 09:11:30 +0000 http://elektromagnetisme.no/?p=1842 Continue reading ]]> This is the last week before the exam, and as you can see from the schedule there will be no group sessions this week. If you need help, we encourage you to contact the group teachers or the lecturer directly.

Good luck with the final exam!

]]>
http://elektromagnetisme.no/2012/12/04/no-group-sessions-this-week/feed/ 2 1842
Information about the labs http://elektromagnetisme.no/2012/10/28/information-about-the-labs/ http://elektromagnetisme.no/2012/10/28/information-about-the-labs/#comments Sun, 28 Oct 2012 20:56:09 +0000 http://elektromagnetisme.no/?p=1730 Continue reading ]]> Latest update: October 31, 2012.

The labs are soon around the corner. Hopefully you are not too exhausted from working on the oblig and thankfully we have tried to make the labs a lot more fun this year. We hope that you’ll enjoy learning about these concepts of electromagnetism.

Time and place

The deadline to register for the lab was last friday. If you have not registered, please contact us as soon as possible!

The labs are held from week 45 to week 47 (room FV225). Each week you will attend one lab which lasts four hours. The labs are held multiple times, each week and they are as follows:

  • Mondays 08-12
  • Tuesdays 13-17
  • Wednesdays 08-12
  • Thursdays 13-17
  • Fridays 13-17

Again, we repeat that you are only attending one of these times each week. In other words, there are a total of 12 hours of lab during the whole semester.

Prelab and exercises

Each lab has a prelab and exercises. You have to do the prelab questions before showing up at the lab. These are multiple choice and should be fairly quickly done.

In the end of each lab there is a set of exercises that are supposed to be done at the lab. Some might however be done at home before the lab, which is perfectly fine if you feel like doing so to save time.

Topics

The topics of the labs are

You may download the lab texts now and have a look through them. They are mostly complete, but some changes may occur – also to the questions. We will update this post whenever we change the labs, so make sure to check back here and see if there are any updates the day before you have your lab.

Good luck!

]]>
http://elektromagnetisme.no/2012/10/28/information-about-the-labs/feed/ 4 1730
Do not blindly trust the solutions! http://elektromagnetisme.no/2012/10/03/do-not-trust-the-solutions/ http://elektromagnetisme.no/2012/10/03/do-not-trust-the-solutions/#respond Wed, 03 Oct 2012 13:23:58 +0000 http://elektromagnetisme.no/?p=1664 Continue reading ]]> The solutions are meant as a guide on one way to think when solving different problems in electromagnetism, and they are not guaranteed to be clean of errors. When you stumble across an answer or a piece of logic you do not agree with it is most likely you who are correct.

You can help us in identifying errors in the solutions by posting on the weekly post.  This might even trigger a discussion which everyone will learn from and appreciate!

.

]]>
http://elektromagnetisme.no/2012/10/03/do-not-trust-the-solutions/feed/ 0 1664
Syllabus for the midterm exam http://elektromagnetisme.no/2012/10/02/syllabus-for-the-mid-term-exam/ http://elektromagnetisme.no/2012/10/02/syllabus-for-the-mid-term-exam/#respond Tue, 02 Oct 2012 18:16:16 +0000 http://elektromagnetisme.no/?p=1641 The syllabus for the midterm exam is up to and including chapter 26, except section 26.4 and 26.5, which are about RC-circuits and power distribution systems.

Good luck!

]]>
http://elektromagnetisme.no/2012/10/02/syllabus-for-the-mid-term-exam/feed/ 0 1641
Basic kinematics http://elektromagnetisme.no/2012/09/26/basic-kinematics/ http://elektromagnetisme.no/2012/09/26/basic-kinematics/#comments Wed, 26 Sep 2012 09:33:51 +0000 http://elektromagnetisme.no/?p=1601 Continue reading ]]> Kinematics is all about motion. And since we are now moving away from pure electrostatics, it is about time to introduce some motion of particles.

In exercise set 6 we ask you to simulate the motion of a particle in an electric field using numeric methods. This is likely something you have seen before, so we’ll just briefly restate the most important concepts here.

Numerical integration

To determine the motion of any particle, we need to find the position as a function of time. This is usually done by observing that the double derivative of the position, namely the acceleration, can be integrated over time to give back the position. However, evaluating the integral

$$\mathbf r(t) = \int \int \mathbf a(t, \mathbf v(t), \mathbf r(t)) ~dt~dt$$

is no trivial task, except for the cases where $\mathbf a$ is constant. That’s why numerical integration is so useful when working with more complicated problems, especially when $\mathbf a$ is a function of $\mathbf r$ and $\mathbf v$.

In numerical integration, we divide the time into discrete steps, where we at each step recalculate the acceleration, velocity and position. One of the simplest of these schemes is the Euler-Cromer scheme.

In the Euler-Cromer scheme, we increase the current velocity by adding the acceleration at each time step. The acceleration is then a function of the current time, and the position and velocity at the previous time step.

$$\mathbf v(t_{i+1}) = \mathbf v(t_i) + \mathbf a(t_{i}, \mathbf r(t_i), \mathbf v(t_i)) \cdot \Delta t$$

Similarily, we find the position using the velocity we just calculated for the current time step:

$$\mathbf r(t_{i+1}) = \mathbf r(t_i) + \mathbf v(t_{i+1}) \cdot \Delta t$$

We have to do this from the first step in time till the last, and in terms of code this is translated into a for-loop. In Python we may express this as a small script:

from pylab import *

dt = 1e-3
t0 = 0
t1 = 10
t = linspace(t0, t1, (t1 - t0)/dt)

r1 = zeros((len(t),3))
v1 = zeros((len(t),3))

r1[0] = [0.0, 0.0, 0.0]
v1[0] = [0.0, 0.0, 0.0]

for i in range(len(t)-1): 
    a1 = array([5.0, 0.0, 0.0])
    v1[i+1] = v1[i] + a1*dt
    r1[i+1] = r1[i] + v1[i+1]*dt

figure()
plot(t, r1[:,0], label="Motion in x direction")
xlabel("$t$",fontsize=16)
ylabel("$x$",fontsize=16)
legend()
show()

To run this in an IPython terminal, just save it to file a file named “kinematics.py” and launch it by running the following commands in the folder where you saved the file:

ipython --pylab
run kinematics.py

Here we are using vectors, generated by linspace. The linspace function does in this case generate an array of 3-dimensional vectors, where the first argument, len(t), tells linspace that we want as many such vectors as there are time steps. The second argument, 3, tells linspace that each vector is three-dimensional.

The reason for using vectors (instead of 3 arrays of length len(t)) is that it makes it simple to write the following two statements in a way that is easy to read and remember:

r1[0] = [0.0, 0.0, 0.0]
v1[0] = [0.0, 0.0, 0.0]

This sets the first vectors of our position and velocity, also known as the initial conditions. In this case we have chosen the components of both to be $x = 0$, $y = 0$ and $z = 0$.

The for-loop is basically what we defined as the Euler-Cromer scheme above, with a constant acceleration vector in the $x$-direction:

for i in range(len(t)-1): 
    a1 = array([5.0, 0.0, 0.0])
    v1[i+1] = v1[i] + a1*1e-4
    r1[i+1] = r1[i] + v1[i+1]*dt

At each time step the position and velocity is not only calculated, but stored to an array that makes it readily available for plotting. The plotting is done for the first component of all $\mathbf r$-vectors as a function of t:

plot(t, r1[:,0], label="Motion in x direction")

A plot showing the $x$-component of the particle’s position as function of time $t$.

This results in a plot looking something like this:

For the case where we are working with a more physical problem, we would have to calculate the force $\mathbf F$ at each time step and find the acceleration from Newton’s second law, $\mathbf a = \frac{F}{m}$.

 

You should now be ready to play around with your own kinematic problems.

]]>
http://elektromagnetisme.no/2012/09/26/basic-kinematics/feed/ 2 1601
Good news for Matlab fans! http://elektromagnetisme.no/2012/09/25/good-news-for-matlab-fans/ http://elektromagnetisme.no/2012/09/25/good-news-for-matlab-fans/#respond Tue, 25 Sep 2012 15:50:36 +0000 http://elektromagnetisme.no/?p=1577 Continue reading ]]> We have decided that the oblig can be done in any programming language you like, including Python and Matlab. This means that there will be no need for functions specific to Python or Mayavi to get the oblig approved, and that we will help you with both Matlab and Python during the group sessions.

Just note that if you choose any other language than Python or Matlab, you are a bit on your own when it comes to support. You will also have to make sure that your language of choice generates good-looking plots that meets all requirements such as legend, named axes, etc.

Note also that there is a numeric exercise in set number 6 that might be useful to have done before the oblig is published.

The oblig will be published shortly after the mid-term exam.

 

]]>
http://elektromagnetisme.no/2012/09/25/good-news-for-matlab-fans/feed/ 0 1577
Equation sheet http://elektromagnetisme.no/2012/09/24/equation-sheet/ http://elektromagnetisme.no/2012/09/24/equation-sheet/#respond Mon, 24 Sep 2012 18:01:05 +0000 http://elektromagnetisme.no/?p=1564 Continue reading ]]> We have put together an equation sheet that you will be handed on the mid-term and final exam. The sheet is not complete, so please be aware of errors and missing equations, and check in here frequently to download the latest version.

If you miss something that you would like to have included in the equation sheet, don’t hesitate to ask us to include it. (We can’t guarantee that we’ll accept any proposal, though.)

 

]]>
http://elektromagnetisme.no/2012/09/24/equation-sheet/feed/ 0 1564
Maxwell’s equations http://elektromagnetisme.no/2012/09/24/maxwells-equations/ http://elektromagnetisme.no/2012/09/24/maxwells-equations/#respond Mon, 24 Sep 2012 17:47:10 +0000 http://elektromagnetisme.no/?p=1557 Continue reading ]]> Last weekend Fysisk fagutvalg arranged the annual cabin trip, and in that regard Jørgen Midtbø held a lecture on Maxwell’s equations. Those of you who were there are already familiar with the content, but for the rest of you we post the note from this lecture that may be useful to read through. You can find the note here

Enjoy!

]]>
http://elektromagnetisme.no/2012/09/24/maxwells-equations/feed/ 0 1557