Original file (SVG file, nominally 600 × 600 pixels, file size: 23 KB)
![]() | This is a file from the Wikimedia Commons. Information from its description page there is shown below. Commons is a freely licensed media file repository. You can help. |
DescriptionVFPt dipole magnetic3.svg |
English: Magnetic dipole field around a small current loop.
|
Date | |
Source | Own work |
Author | Geek3 |
Other versions | |
SVG development InfoField |
![]()
This plot was created with VectorFieldPlot. |
Source code InfoField | Python code# paste this code at the end of VectorFieldPlot 1.2
doc = FieldplotDocument('VFPt_dipole_magnetic3',
commons=True, width=600, height=600)
field = Field({'ringcurrents':[[0,0,0,0.5,1]]})
n = 12
for i in range(n):
a = 4.2 * ((i + 0.5) / n - 0.5)
line = FieldLine(field, [0, 0.5 * (exp(a)-1) / (exp(a)+1)],
directions='both')
doc.draw_line(line, linewidth=2.4,
arrows_style={'dist':1.7, 'scale':1.1, 'max_arrows':4})
# draw ring
symb = doc.draw_object('g', {'id':'ring',
'transform':'scale({0},{0})'.format(1.0/doc.unit)})
defs = doc.draw_object('defs', {}, group=symb)
spot = doc.draw_object('radialGradient', {'id':'light_spot',
'cx':'0.65', 'cy':'0.7', 'r':'0.75'}, group=defs)
for col, of in [['#fff', '0'], ['#ddd', '0.15'],
['#aaa', '0.5'], ['#444', '1']]:
doc.draw_object('stop', {'stop-color':col, 'offset':of}, group=spot)
doc.draw_object('path',
{'d':'M -20.5,50 V -50 A 20.5,20.5 0 0,1 20.5,-50 V 50 A 20.5,20.5 0 0,1 -20.5,50 Z',
'style':'fill:url(#light_spot); stroke:#000000; stroke-width:3'},
group=symb)
doc.draw_object('circle', {'cx':'0', 'cy':'0', 'r':'5',
'transform':'translate(0,50)',
'style':'fill:#000000; stroke:none; opacity:0.5'}, group=symb)
doc.draw_object('path', {'d':'M {1},-{0}L{0},-{1}L{2},{3}L{0},{1} \
L{1},{0} {3},{2} L -{1},{0} L -{0},{1} L -{2},{3} L -{0},-{1} L -{1},-{0} \
L{3},-{2}L{1},-{0} Z'.format(11, 8, 3, 0),
'transform':'translate(0,-50)',
'style':'fill:#000000; stroke:none; opacity:0.5'}, group=symb)
doc.write()
|
![]() |
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, 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 license is included in the section entitled GNU Free Documentation License.http://www.gnu.org/copyleft/fdl.htmlGFDLGNU Free Documentation Licensetruetrue |
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 14:29, 28 September 2010 | ![]() | 600 × 600 (23 KB) | Geek3 | own work |
This file contains additional information, probably added from the digital camera or scanner used to create or digitize it.
If the file has been modified from its original state, some details may not fully reflect the modified file.
Short title | VFPt_dipole_magnetic3 |
---|---|
Image title | VFPt_dipole_magnetic3
created with VectorFieldPlot 1.1 http://commons.wikimedia.org/wiki/User:Geek3/VectorFieldPlot about: http://commons.wikimedia.org/wiki/File:VFPt_dipole_magnetic3.svg rights: GNU Free Documentation license, Creative Commons Attribution ShareAlike license |