1. Not finding help here? Sign up for a free 30min tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Magnetic field representation in Octave

  1. Aug 14, 2015 #1
    1. The problem statement, all variables and given/known data
    I need to represent in Octave (using the quiver function) the magnetic field lines around a long wire which carries an electric current around the wire. The magnetic field of an infinitely long straight wire can be obtained by applying Ampere's law.


    2. Relevant equations
    The expression for the magnetic field is:
    groapa8.png

    3. The attempt at a solution
    I wrote a program in Octave and I obtained the folowing figure using the formula:
    11846305_818013438314755_500729020_n.jpg

    I'm almost sure that these couldn't be magnetic field lines, because I read somewhere that they must be circular. Any help would be much appreciated
     
  2. jcsd
  3. Aug 15, 2015 #2

    Simon Bridge

    User Avatar
    Science Advisor
    Homework Helper
    Gold Member
    2016 Award

    Pay closer attention to the representation.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?
Draft saved Draft deleted



Similar Discussions: Magnetic field representation in Octave
  1. Magnetic Field (Replies: 2)

  2. Magnetic field (Replies: 2)

  3. Magnetic fields (Replies: 3)

Loading...