How Do You Simulate Magnetic Field Lines in MATLAB?

Click For Summary
The discussion focuses on simulating magnetic field line expansion from a coil using Matlab. The user seeks to understand how to visually represent these field lines, noting that textbooks often show curving lines instead of filled pages of arrows. It is clarified that every point in a magnetic field has a magnitude, and illustrations are simplified for clarity. The suggestion is made to utilize Matlab's quiver and quiver3 commands to plot vector fields effectively. Overall, the conversation emphasizes the importance of clarity in visual representation while providing practical coding advice.
lechko
Messages
3
Reaction score
0
Hello everyone, I am trying my best to do this simulation on Matlab to show the expancion of Magnetic field lines out of a coil. Now, finding the amplitude and direction of the field at a given place is pretty simple, the trick is to produce those tidy lines we all see in books, i gather they are supposed to be tangential to the field direction but there has to be something that I am missing... why in all of the books they chose to show us those curving lines and when u think of it, it's supposed to be a page filled with arrows.
I really hope this question is not inappropriate here but I am sure there's smtng I'm missing there and can't quite figure what.

thank you
lechko
 
Physics news on Phys.org
Welcome to the forums, Lechko!

Every point in a field has a magnitude. The pics in the books trim them out for clarity.

If you're doing it in Matlab, you may want to look into the quiver and quiver3 commands. They plot vector fields with magnitude (u(i),v(i),w(i)) at points (x(i),y(i),z(i)) which are fed into the command.
 
so every poit on the same line has the same magnitude and the "quiver" command will just point them out? great!
i already started thinking of some complicated "For"-"If" structure :)
thanks alot!
 
Topic about reference frames, center of rotation, postion of origin etc Comoving ref. frame is frame that is attached to moving object, does that mean, in that frame translation and rotation of object is zero, because origin and axes(x,y,z) are fixed to object? Is it same if you place origin of frame at object center of mass or at object tail? What type of comoving frame exist? What is lab frame? If we talk about center of rotation do we always need to specified from what frame we observe?

Similar threads

  • · Replies 1 ·
Replies
1
Views
734
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
4
Views
2K
  • · Replies 23 ·
Replies
23
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 9 ·
Replies
9
Views
5K
Replies
6
Views
1K
  • · Replies 22 ·
Replies
22
Views
3K
  • · Replies 42 ·
2
Replies
42
Views
6K