File:VFPt dipole magnetic2.svg
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. |
Summary
Description |
English: Magnetic dipole field around a small current loop.
|
||
Date | September 2010 | ||
Source | Own work
|
||
Author | Geek3 |
✓ The source code of this SVG is valid.
Source Code
The image was generated with VectorFieldPlot 1.2
VectorFieldPlot source code |
---|
# paste this code at the end of VectorFieldPlot 1.2 doc = FieldplotDocument('VFPt_dipole_magnetic2', 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-colour':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.write() |
Licensing
|
File usage
Metadata
Short title | VFPt_dipole_magnetic2 |
---|---|
Image title | VFPt_dipole_magnetic2 created with VectorFieldPlot 1.1 http://commons.wikimedia.org/wiki/User:Geek3/VectorFieldPlot about: http://commons.wikimedia.org/wiki/File:VFPt_dipole_magnetic2.svg rights: GNU Free Documentation license, Creative Commons Attribution ShareAlike license |
A background to Schools Wikipedia
SOS Children's Villages aims to make Wikipedia suitable for young learners. The world's largest orphan charity, SOS Children's Villages brings a better life to more than 2 million people in 133 countries around the globe. Have you thought about sponsoring a child?