File:VFPt decapole wires.svg

Original file(SVG file, nominally 600 × 600 pixels, file size: 126 KB)

Captions

Captions

Add a one-line explanation of what this file represents

Summary edit

Description
English: Magnetic field of ten infinite wires perpendicular to the image plane in decapole configuration, conducting current into and out of the image plane.
Date
Source Own work
Author Geek3
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.0
doc = FieldplotDocument('VFPt_decapole_wires', width=600, height=600, commons=True)
nw = 10
r = 2.0
wires = []
for i in range(nw):
    wires.append([r * cos(2*pi*i/float(nw)),
                  r * sin(2*pi*i/float(nw)),
                  2 * (i % 2) - 1])
field = Field({'wires':wires})
doc.draw_currents(field)

t0 = 0.085
Fsum = ig.quad(lambda t: sc.dot(field.F([t,0]), [0,1]), 0.0, r*(1-t0))[0]

nl = 8
for i in range(nl):
    a = (i + 0.5) / (nl - 0.5)
    t1 = op.brentq(lambda t1: ig.quad(lambda t:
        sc.dot(field.F([t,0]), [0,1]), 0.0, t1)[0] - a * Fsum, 0.0, r*(1-t0))
    if i in [0, 2, 4, 6]: offs = 0.0
    else: offs = 0.5
    for m in range(nw):
        c, s = cos(2*pi*m/float(nw)), sin(2*pi*m/float(nw))
        line = FieldLine(field, [t1*c, t1*s], directions='both')
        doc.draw_line(line, arrows_style={'dist':1.7,
            'offsets':[offs, 0.4, 0.4, 1.0-offs]})
doc.write()

See also edit

Licensing edit

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.

File history

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

Date/TimeThumbnailDimensionsUserComment
current09:59, 13 September 2014Thumbnail for version as of 09:59, 13 September 2014600 × 600 (126 KB)Geek3 (talk | contribs)decapole_wires field diagram by Geek3

The following page uses this file:

Metadata