Jump to content

File:VFPt cylindermagnet field-representations.svg

Page contents not supported in other languages.
This is a file from the Wikimedia Commons
From Wikipedia, the free encyclopedia

Original file (SVG file, nominally 1,860 × 620 pixels, file size: 296 KB)

Summary

Description
English: Three different representations of the magnetic field of a cylindrical bar magnet. Left: Iron filings. Center: field lines. Right: compass needles. The shape and direction of the field was accurately computed in all three cases.
Date
Source Own work
This file was derived from: Ironfilings cylindermagnet.svg
This file was derived from: Magnet compasses.svg
Author Geek3
SVG development
InfoField
 
The SVG code is valid.
 
This plot was created with VectorFieldPlot.
 
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  ქართული  한국어  kurdî  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  українська  vèneto  Tiếng Việt  中文  中文(简体)  中文(繁體)  +/−

Source code
InfoField

Python code

# paste this code at the end of VectorFieldPlot 2.5
# https://commons.wikimedia.org/wiki/User:Geek3/VectorFieldPlot
doc = FieldplotDocument('VFPt_cylindermagnet_field-representations', commons=True,
    width=600, height=600)

R = 0.6
Lhalf = 1.0
field = Field([['coil', {'x':0, 'y':0, 'phi':pi/2, 'R':R, 'Lhalf':Lhalf, 'I':1}]])
doc.draw_magnets(field)

n = 26
for i in range(n):
    a = R * (-1 + 2. * (0.5 + i) / n)
    line = FieldLine(field, [a, 0.], directions='both', maxr=5.0)
    def arrow_pot(xy):
        return (((xy[0]/(2.5*R))**2+(((xy[1]-Lhalf)/(2*R))**2)-1) *
            ((xy[0]/(2.5*R))**2+(((xy[1]+Lhalf)/(2*R))**2)-1))
    if i in [0, n-1]:
        arrow_pot = lambda xy: xy[1]
    doc.draw_line(line, arrows_style={'scale':1.3,
        'at_potentials':[0.], 'potential':arrow_pot,
        'condition_func':lambda xy: fabs(xy[0])>R or fabs(xy[1])>Lhalf})

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

Three different magnetic field representations of a cylinder magnet

Items portrayed in this file

depicts

24 March 2020

image/svg+xml

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current18:57, 24 March 2020Thumbnail for version as of 18:57, 24 March 20201,860 × 620 (296 KB)Geek3Uploaded own work with UploadWizard

The following page uses this file:

Global file usage

The following other wikis use this file:

Metadata