File:VFPt Solenoid correct2.svg

原始文件(SVG文件,尺寸为490 × 200像素,文件大小:15 KB)


摘要

描述
English: Diagram of a solenoid and its magnetic field lines. The shape of all lines was computed according to the laws of electrodynamics.
日期
来源 自己的作品
作者 Geek3
其他版本
SVG开发
InfoField
 
SVG的源代码为有效代码
 
矢量图使用VectorFieldPlot创作。
源代码
InfoField

Python code

# paste this code at the end of VectorFieldPlot 3.3
# https://commons.wikimedia.org/wiki/User:Geek3/VectorFieldPlot
doc = FieldplotDocument('VFPt_Solenoid_correct2',
    width=490, height=200, unit=100, commons=True, bg_color=None)
doc.arrow_geo = {'x_nock':-2, 'x_head':4, 'x_tail':-2, 'width':4}
R = 0.49
L = 1.96
field = Field([ ['coil', {'x':0, 'y':0, 'phi':0, 'R':R, 'Lhalf':L/2, 'I':1}] ])

for a in [-0.455, -0.385, -0.275, -0.165, -0.055, 0.055, 0.165, 0.275, 0.385, 0.455]:
    line = FieldLine(field, [0, a], directions='both', maxr=3.5)
    doc.draw_line(line, linewidth=1.0, arrows_style={'dist':1.5,
        'min_arrows':1, 'max_arrows':3, 'scale':2,
        'offsets':{'start':1, 'leave_image':0.25, 'enter_image':0.25, 'end':1} })

current_out = doc.draw_object('g', {'id':'current_out'}, group=doc._get_defs())
doc.draw_object('circle', {'cx':'0', 'cy':'0', 'r':12.5, 'fill':'#ffffff',
    'stroke':'#000000', 'stroke-width':3}, group=current_out)
doc.draw_object('circle', {'cx':'0', 'cy':'0', 'r':2.6, 'fill':'#000000',
    'stroke':'none'}, group=current_out)
current_in = doc.draw_object('g', {'id':'current_in'}, group=doc._get_defs())
doc.draw_object('circle', {'cx':'0', 'cy':'0', 'r':12.5, 'fill':'#ffffff',
    'stroke':'#000000', 'stroke-width':3}, group=current_in)
doc.draw_object('path', {'d':"M -8.8,-8.8 L 8.8,8.8 M -8.8,8.8 L 8.8,-8.8",
    'fill':'none', 'stroke':'#000000', 'stroke-width':3}, group=current_in)
for x in sc.linspace(-0.84, 0.84, 7):
    doc.draw_object('use', {'{http://www.w3.org/1999/xlink}href':'#current_out',
        'transform':"translate({:.3f},{:.3f}) scale(0.01, 0.01)".format(x, R)})
    doc.draw_object('use', {'{http://www.w3.org/1999/xlink}href':'#current_in',
        'transform':"translate({:.3f},{:.3f}) scale(0.01, 0.01)".format(x, -R)})

doc.write()

许可协议

我,本作品著作权人,特此采用以下许可协议发表本作品:
GNU head 已授权您依据自由软件基金会发行的无固定段落及封面封底文字(Invariant Sections, Front-Cover Texts, and Back-Cover Texts)的GNU自由文件许可协议1.2版或任意后续版本的条款,复制、传播和/或修改本文件。该协议的副本请见“GNU Free Documentation License”。
w:zh:知识共享
署名 相同方式共享
您可以自由地:
  • 共享 – 复制、发行并传播本作品
  • 修改 – 改编作品
惟须遵守下列条件:
  • 署名 – 您必须对作品进行署名,提供授权条款的链接,并说明是否对原始内容进行了更改。您可以用任何合理的方式来署名,但不得以任何方式表明许可人认可您或您的使用。
  • 相同方式共享 – 如果您再混合、转换或者基于本作品进行创作,您必须以与原先许可协议相同或相兼容的许可协议分发您贡献的作品。
您可以选择您需要的许可协议。

说明

添加一行文字以描述该文件所表现的内容
Magnetic field lines in solenoid

此文件中描述的项目

描繪內容

image/svg+xml

文件历史

点击某个日期/时间查看对应时刻的文件。

日期/时间缩⁠略⁠图大小用户备注
当前2019年9月14日 (六) 20:292019年9月14日 (六) 20:29版本的缩略图490 × 200(15 KB)Geek3validator fix
2010年6月12日 (六) 17:152010年6月12日 (六) 17:15版本的缩略图490 × 200(15 KB)Geek3VFPt_Solenoid_correct2

全域文件用途

以下其他wiki使用此文件:

查看本文件的更多全域用途

元数据