File:VFPt flat cylinder magnet.svg

Summary

Description
English: Drawing of a homogeneously magnetized flat cylindrical magnet with exactly computed magnetic field lines. The cylinder has the proportions R/L=2. The magnetic north pole is aligned on top and the magnetic south pole on the bottom, with magnetization along the cylinder axis.
Date
Source Own work
Author Geek3
Other versions potential
SVG development
InfoField
 
The SVG code is valid.
 
This plot was created with VectorFieldPlot.
Category:Valid SVG created with VectorFieldPlot code#VFPt%20flat%20cylinder%20magnet.svg
 
This file uses embedded text.
This image has been assessed using the Quality image guidelines and is considered a Quality image.

العربية  جازايرية  беларуская  беларуская (тарашкевіца)  български  বাংলা  català  čeština  Cymraeg  Deutsch  Schweizer Hochdeutsch  Zazaki  Ελληνικά  English  Esperanto  español  eesti  euskara  فارسی  suomi  français  galego  עברית  हिन्दी  hrvatski  magyar  հայերեն  Bahasa Indonesia  italiano  日本語  Jawa  ქართული  Qaraqalpaqsha  한국어  kurdî  кыргызча  Latina  Lëtzebuergesch  lietuvių  македонски  മലയാളം  मराठी  Bahasa Melayu  Nederlands  Norfuk / Pitkern  polski  português  português do Brasil  rumantsch  română  русский  sicilianu  slovenčina  slovenščina  shqip  српски / srpski  svenska  தமிழ்  తెలుగు  ไทย  Tagalog  toki pona  Türkçe  українська  oʻzbekcha / ўзбекча  vèneto  Tiếng Việt  中文  中文(简体)  中文(繁體)  +/−

Category:Quality images - valid vector
Source code
InfoField

Python code

# paste this code at the end of VectorFieldPlot 1.10
# https://commons.wikimedia.org/wiki/User:Geek3/VectorFieldPlot
doc = FieldplotDocument('VFPt_flat_cylinder_magnet', commons=True,
    width=800, height=800)
field = Field({'coils':[[0, 0, pi/2, 2, 0.5 ,1]]})

doc.draw_magnets(field)

# distribute field lines proportionally to the field strength at y=0
x0 = 2.
Fsum = ig.quad(lambda x: field.F([x, 0.])[1], -x0, x0)[0]
nlines = 22
xstart = [op.brentq(lambda xs: ig.quad(lambda x: field.F([x, 0.])[1],
    -x0, xs)[0] / Fsum - (0.5+i)/nlines, -x0, x0) for i in range(nlines)]

for i, x in enumerate(xstart):
    line = FieldLine(field, [x, 0.], directions='both', maxr=12)
    doc.draw_line(line, arrows_style={'dist':2.5, 'scale':1.3})

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%20flat%20cylinder%20magnet.svg
Category:Self-published work Category:Field lines around magnets (image set) Category:Field lines around magnets Category:Photos by User:Geek3 Category:Bar magnets Category:Dipole magnet
Category:Bar magnets Category:CC-BY-SA-4.0 Category:Dipole magnet Category:Field lines around magnets Category:Field lines around magnets (image set) Category:Photos by User:Geek3 Category:Quality images - valid vector Category:Self-published work Category:Valid SVG created with VectorFieldPlot code