Magnetic field representation in Octave

AI Thread Summary
The discussion focuses on representing magnetic field lines around a long wire carrying electric current using Octave's quiver function. The user applied Ampere's law to derive the magnetic field expression but is uncertain about the accuracy of their visual representation. They express concern that the generated figure may not depict circular magnetic field lines, which is a characteristic of such fields. The request for assistance emphasizes the need for correct visualization in accordance with magnetic field theory. Clarification on the representation of magnetic fields is sought to ensure accurate modeling.
Miss_Fire
Messages
4
Reaction score
0

Homework Statement


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.

Homework Equations


The expression for the magnetic field is:
groapa8.png


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[/B]
 
Physics news on Phys.org
Pay closer attention to the representation.
 
Thread 'Collision of a bullet on a rod-string system: query'
In this question, I have a question. I am NOT trying to solve it, but it is just a conceptual question. Consider the point on the rod, which connects the string and the rod. My question: just before and after the collision, is ANGULAR momentum CONSERVED about this point? Lets call the point which connects the string and rod as P. Why am I asking this? : it is clear from the scenario that the point of concern, which connects the string and the rod, moves in a circular path due to the string...
Back
Top