Jump to content

File:VFPt dipole magnetic2.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 600 × 600 pixels, file size: 22 KB)

    Summary

    Description
    English: Magnetic dipole field around a small current loop.
    Date
    Source Own work
    Author Geek3
    Other versions
    SVG development
    InfoField
     The SVG code is valid.
     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_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-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.write()
    

    Licensing

    I, the copyright holder of this work, hereby publish it under the following licenses:
    GNU head 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.
    w:en:Creative Commons
    attribution share alike
    This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported 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.
    You may select the license of your choice.

    Captions

    Add a one-line explanation of what this file represents

    Items portrayed in this file

    depicts

    copyright status<\/a>"}},"text\/plain":{"en":{"":"copyright status"}}},"{\"value\":{\"entity-type\":\"item\",\"numeric-id\":50423863,\"id\":\"Q50423863\"},\"type\":\"wikibase-entityid\"}":{"text\/html":{"en":{"P6216":"copyrighted<\/a>"}},"text\/plain":{"en":{"P6216":"copyrighted"}}}}" class="wbmi-entityview-statementsGroup wbmi-entityview-statementsGroup-P6216 oo-ui-layout oo-ui-panelLayout oo-ui-panelLayout-framed">
    source of file<\/a>"}},"text\/plain":{"en":{"":"source of file"}}},"{\"value\":{\"entity-type\":\"item\",\"numeric-id\":66458942,\"id\":\"Q66458942\"},\"type\":\"wikibase-entityid\"}":{"text\/html":{"en":{"P7482":"original creation by uploader<\/a>"}},"text\/plain":{"en":{"P7482":"original creation by uploader"}}}}" class="wbmi-entityview-statementsGroup wbmi-entityview-statementsGroup-P7482 oo-ui-layout oo-ui-panelLayout oo-ui-panelLayout-framed">
    inception<\/a>"}},"text\/plain":{"en":{"":"inception"}}},"{\"value\":{\"time\":\"+2010-09-01T00:00:00Z\",\"timezone\":0,\"before\":0,\"after\":0,\"precision\":10,\"calendarmodel\":\"http:\\\/\\\/www.wikidata.org\\\/entity\\\/Q1985727\"},\"type\":\"time\"}":{"text\/html":{"en":{"P571":"September 2010"}},"text\/plain":{"en":{"P571":"September 2010"}}}}" class="wbmi-entityview-statementsGroup wbmi-entityview-statementsGroup-P571 oo-ui-layout oo-ui-panelLayout oo-ui-panelLayout-framed">

    September 2010

    media type<\/a>"}},"text\/plain":{"en":{"":"media type"}}},"{\"value\":\"image\\\/svg+xml\",\"type\":\"string\"}":{"text\/html":{"en":{"P1163":"image\/svg+xml"}},"text\/plain":{"en":{"P1163":"image\/svg+xml"}}}}" class="wbmi-entityview-statementsGroup wbmi-entityview-statementsGroup-P1163 oo-ui-layout oo-ui-panelLayout oo-ui-panelLayout-framed">

    image/svg+xml

    File history

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

    Date/TimeThumbnailDimensionsUserComment
    current14:27, 28 September 2010Thumbnail for version as of 14:27, 28 September 2010600 × 600 (22 KB)Geek3own work

    The following page uses this file:

    Global file usage

    The following other wikis use this file:

    Metadata