File:VFPt flat cylinder magnet potential.svg

Uploaded by Geek3
Upload date 2019-09-21T14:24:59Z
MIME type image/svg+xml
Dimensions 800 × 800 px
File size 158.7 KB

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. The magnetic scalar potential 𝜓 is shown in the background from positive (fuchsia) through zero (yellow) to negative (aqua). Note that the field lines follow the gradient of the scalar potential.
Date
Source Own work
Author Geek3
Other versions VFPt flat cylinder magnet.svg
SVG development
InfoField
 The source code of this SVG is invalid due to VectorFieldPlot errors.
 This W3C-invalid vector image was created with Inkscape, or with something else.
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 ∙ 中文 ∙ 中文(简体) ∙ 中文(繁體) ∙ +/−

Source code
InfoField

SVG code

# paste this code at the end of VectorFieldPlot 2.2
# https://commons.wikimedia.org/wiki/User:Geek3/VectorFieldPlot
doc = FieldplotDocument('VFPt_flat_cylinder_magnet_potential',
    commons=True, width=800, height=800)

R, L2 = 2., 0.5
Bfield = Field({'coils':[ [0, 0, pi/2, R, L2 ,1]]})
Hfield = Field([ ['charged_disc', {'x0':-R, 'y0':-L2, 'x1':R, 'y1':-L2, 'Q':-1}],
                 ['charged_disc', {'x0':-R, 'y0':L2, 'x1':R, 'y1':L2, 'Q':1}] ])

doc.draw_magnets(Bfield)

# distribute field lines proportionally to the field strength at y=0
nlines = 22
startpoints = Startpath(Bfield, lambda t: sc.array([-R + 2. * R * t, 0.])
    ).npoints(nlines)

for i, p0 in enumerate(startpoints):
    line = FieldLine(Bfield, p0, directions='both', maxr=12)
    doc.draw_line(line, arrows_style={'dist':2.5, 'scale':1.3})

U0 = Hfield.V([0., L2 + 0.02])
doc.draw_scalar_field(func=Hfield.V, cmap=doc.cmap_AqYlFs, vmin=-U0, vmax=U0)

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.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

21 September 2019

image/svg+xml

162,484 byte

c2730fd3bce366e684686e9f4f6fcfd59ee54746