File:VFPt wire-in-homogenous-magnetic-field-with-magnets.svg

Summary

Description
English: current-carrying wire in homogenous magnetic field
Date
Source Own work, Magnet shapes taken from
Author MikeRun
Other versions , ,
SVG development
InfoField
Source code
InfoField

Python code

# paste this code at the end of VectorFieldPlot 3.0
doc = FieldplotDocument('VFPt_wire-in-homogenous-magnetic-field-with-magnets', width=400, height=300, commons=True)
field = Field([ ['homogeneous', {'Fx':0, 'Fy':1}], ['wire', {'x':0, 'y':0, 'I':3}] ])
doc.draw_currents(field)
startx = -2
endx = 2
starty = 1.5
endy = -1.5
nlines = 15
for i in range(nlines):
    posx = startx + (i)*(endx - startx) / nlines
    print("posx = "+str(posx))
    line = FieldLine(field, [posx, endy])
    doc.draw_line(line,  arrows_style={'min_arrows':2, 'max_arrows':2})
doc.write()

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
Category:CC-BY-SA-4.0#VFPt%20wire-in-homogenous-magnetic-field-with-magnets.svg
Category:Self-published work Category:Magnetic fields
Category:CC-BY-SA-4.0 Category:Magnetic fields Category:Self-published work Category:Valid SVG created with VectorFieldPlot code