File:VFPt helmholtz coil2.svg

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

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

Captions

Captions

Add a one-line explanation of what this file represents

Summary[edit]

Description
English: Magnetic field around helmholtz coil consisting of two round current loops width their distance matching their radius. The symmetry axis is vertical and the image shows mostly the central region.
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.3
# https://commons.wikimedia.org/wiki/User:Geek3/VectorFieldPlot
doc = FieldplotDocument('VFPt_helmholtz_coil2',
    width=600, height=600, unit=100, commons=True)
field = Field({'ringcurrents':[[0,-1,pi/2,2,1]], [0,1,pi/2,2,1]})

startpath = lambda t: sc.array([2*sin(t*pi/2), 1-cos(t*pi/2)])
dstartpath = lambda t: (startpath(t+1e-6) - startpath(t-1e-6)) / 2e-6
FieldSum = lambda t0, t1: ig.quad(lambda t:
    sc.cross(field.F(startpath(t)), dstartpath(t)), t0, t1)[0]
t0, t1 = -0.85, 0.85
Ftotal = FieldSum(t0, t1)
def startpos(s):
    t = op.brentq(lambda t: FieldSum(t0, t) / Ftotal - s, t0, t1)
    return startpath(t)

nl = 18
for i in range(nl):
    s = i / (nl - 1.0)
    line = FieldLine(field, startpos(s), directions='both')
    doc.draw_line(line, arrows_style={'dist':1.5, 'min_arrows':1,
        'max_arrows':3})
    if i < 2 or nl - i <= 2:
        line = FieldLine(field, [startpos(s)[0], -startpos(s)[1]],
                         directions='both')
        doc.draw_line(line, arrows_style={'dist':1.5, 'min_arrows':1,
            'max_arrows':3})

doc.draw_currents(field, scale=1.3)
doc.write()

Licensing[edit]

I, the copyright holder of this work, hereby publish it under the following 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.

File history

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

Date/TimeThumbnailDimensionsUserComment
current22:17, 12 March 2017Thumbnail for version as of 22:17, 12 March 2017600 × 600 (36 KB)Geek3 (talk | contribs)== {{int:filedesc}} == {{Information |description={{en|1=Magnetic field around helmholtz coil consisting of two round current loops width their distance matching their radius. The symmetry axis is vertical and the image shows mos...

The following page uses this file:

Metadata