File:VFPt Earths Magnetic Field Confusion.svg

From Vigyanwiki

Original file(SVG file, nominally 320 × 300 pixels, file size: 17 KB)

This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.

Summary

Description
English: Magnetic field around a spherical dipole magnet like the earth with a schematic dipole magnet drawn to its center.
Date
Source Own work
Author Geek3
Other versions Earths Magnetic Field Confusion.svg
SVG genesis
InfoField
 
The SVG code is valid.
 
This plot was created with VectorFieldPlot
 
This file uses embedded text.
Source code
InfoField

Python code

# paste this code at the end of VectorFieldPlot 3.1
doc = FieldplotDocument('VFPt_Earths_Magnetic_Field_Confusion',
    commons=True, width=320, height=300, unit=15)
phi = radians(-70.0)
r = 1.0
Lhalf = 2.0
field = Field([ ['coil', {'x':0, 'y':0, 'phi':phi, 'R':r, 'Lhalf':Lhalf, 'I':1}] ])

n = 11
for i in range(n):
    a = -1.0 + 2.0 * (i + 0.5) / n
    line = FieldLine(field, [sin(phi)*a*r, -cos(phi)*a*r], directions='both', maxr=30)
    doc.draw_line(line, linewidth=2, arrows_style={'scale':1.2, 'at_potentials':[0],
        'potential':lambda xy: (vabs(xy) - 8.0) * rot(xy, -phi)[0],
        'condition_func':lambda xy: (fabs(rot(xy, -phi)[0]) > Lhalf) or
            (fabs(rot(xy, -phi)[1]) > r)})

doc.draw_object('circle', {'r':'6', 'cx':'0', 'cy':'0',
    'style':'fill:#add8e6; stroke:#0000ff; stroke-width:0.066667'},
    bg=True)
doc.draw_magnets(field)
doc.write()

Licensing

I, the copyright holder of this work, hereby publish it under the following licences:
GNU head Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation Licence, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the licence is included in the section entitled GNU Free Documentation Licence.
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported licence.
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 licence, 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 licence as the original.
You may select the licence of your choice.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

December 2010

image/svg+xml

File history

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

Date/TimeThumbnailDimensionsUserComment
current15:34, 29 May 2020Thumbnail for version as of 15:34, 29 May 2020320 × 300 (17 KB)wikimediacommons>Geek3more uniform distribution of arrows

The following page uses this file:

Metadata