tóng-àn:VFPt dipole animation magnetic.gif

頁面內容不支援其他語言。
Che sī chi̍t hūn tùi Wikimedia Commons ín--lâi ê tóng-àn
Wikipedia (chū-iû ê pek-kho-choân-su) beh kā lí kóng...

VFPt_dipole_animation_magnetic.gif(220 × 220 siōng-sò͘ , tóng-àn chiàm-liōng: 601 KB, MIME luī-hêng: image/gif, 循環, 50 畫格, 2.5秒)

Khài-iàu

Soat-bêng
English: Dipol fieldlines animation. A transformation from a point-shaped dipol to a finite-size magnetic dipole is shown.
Ji̍t-kî
Chhut-chhù Ka-tī chò--ê
Chok-chiá Geek3
其他版本
GIF開發
InfoField
 
本GIF 點陣圖使用VectorFieldPlot創作。
Goân-sú-bé
InfoField

Python code

# paste this code at the end of VectorFieldPlot 3.3
import os
if not os.path.exists('anims'):
    os.mkdir('anims')
frames = 50
d = 0.35 # animation amplitude
r = 7.5 # charge radius

# iterate frames
for i in range(frames):
    doc = FieldplotDocument('VFPt_dipole_animation_magnetic_{0:0>2}'.format(i),
        commons=True, width=220, height=220, unit=100)
    a = sin(i*pi/frames) * 0.75 - 0.25 * sin(3.0 * i*pi/frames)
    
    if a == 0.:
        # pointlike dipole
        field = Field([ ['dipole', {'x':0, 'y':0, 'px':1, 'py':0}] ])
    else:
        # magnetic dipole
        field = Field([ ['ringcurrent', {'x':0, 'y':0, 'phi':0, 'R':d*a, 'I':1}] ])
        doc.draw_currents(field, scale=r/14)
    
    if d * a < r / doc.unit:
        # draw dipole symbol
        symb = doc.draw_object('g', {'id':'dipole_symbol', 
            'transform':'scale({0},{0})'.format(
            sqrt(1.0/doc.unit**2-(d*a/r)**2))})
        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.7'], ['#444', '1']]:
            doc.draw_object('stop', {'stop-color':col, 'offset':of}, group=spot)
        doc.draw_object('circle', {'cx':'0', 'cy':'0', 'r':str(r),
            'style':'fill:url(#light_spot); stroke:#000000; stroke-width:1'}, group=symb)
        doc.draw_object('path', {'style':'fill:#000000; stroke:none',
            'd':'M -4,1 H 0 V 4 L 5,0 L 0,-4 V -1 H -4 V 1 Z'}, group=symb)
    
    V0 = field.V((0.75, 0.))
    
    n = 20
    # iterate fieldlines
    for j in range(n):
        t = -1.0 + 2.0 * (j + 0.5) / n
        y = 0.25 * ((t-1)**-2 - (t+1)**-2) - 0.3*t
        dy = (y / abs(y) * d * a) * (1.0 - t**2)
        sf = None
        if i > 0:
            sf = [lambda p:-p[0], lambda p:p[0]]
        line = FieldLine(field, [0, y + dy],
            directions='both', maxr=1e4, maxn=2e4, stop_funcs=sf)
        doc.draw_line(line, linewidth=1.0,
            arrows_style={'scale':1.1, 'at_potentials':[-V0, 0, V0],
                'condition_func':lambda xy: (fabs(xy[0]) < 1e-5 and
                fabs(xy[1]) > d*a) or fabs(xy[0]) > 0.3})
    
    doc.write(filename='anims/' + doc.name)
for i in anims/*.svg; do rsvg-convert -w 1760 -h 1760 $i > $(echo $i | sed s/svg/png/) && convert -scale 220x220 $(echo $i | sed s/svg/png/) $(echo $i | sed s/svg/gif/); done
gifsicle -d5 -l0 --colors 256 --comment "http://commons.wikimedia.org/wiki/File:VFPt_dipole_animation_magnetic.gif" anims/*.gif > VFPt_dipole_animation_magnetic.gif

Siū-khoân

我,本作品的著作權持有者,決定用以下授權條款發佈本作品:
GNU head 已授權您依據自由軟體基金會發行的無固定段落、封面文字和封底文字GNU自由文件授權條款1.2版或任意後續版本,對本檔進行複製、傳播和/或修改。該協議的副本列在GNU自由文件授權條款中。
w:zh:創用CC
標示名姓 仝款方式方享
你會使自由:
  • 分享 – kho͘-pih, hoat-pò͘ kap thoân-pò͘ pún chok
  • 重新修改 – kái-pian pún chok-phín
Àn i-hā ê tiâu-kiāⁿ
  • 標示名姓 – 您必須指名出正確的製作者,和提供授權條款的連結,以及表示是否有對內容上做出變更。您可以用任何合理的方式來行動,但不得以任何方式表明授權條款是對您許可或是由您所使用。
  • 仝款方式方享 – Lí nā kái-tōng, piàn-khoán, he̍k-chiá kun-kù pún chok chhòng-chō, lí kaⁿ-taⁿ ē-tàng ēng kap pún chok kâng-khoán he̍k-chiá saⁿ-chhiūⁿ ê hí-khó lâi hoat-pò͘ chò--chhut-lâi ê chok-phín.
Nṳ̄ buóh dĭk sié-nó̤h sêu-guòng dèu-kuāng dŭ kō̤-ī gēng.

說明

添加單行說明來描述出檔案所代表的內容

在此檔案描寫的項目

描繪內容 繁體中文

創作作者 繁體中文

沒有Wikidata項目的某些值

著作權狀態 繁體中文

有著作權 繁體中文

檔案來源 Chinese (Taiwan) (已轉換拼寫)

多媒體型式 繁體中文

image/gif

Tóng-àn le̍k-sú

Chhi̍h ji̍t-kî/sî-kan, khoàⁿ hit sî-chūn--ê tóng-àn.

Ji̍t-kî/Sî-kan細張圖寸尺Iōng-chiáChù-kái
hiān-chāi2021-nî 9-goe̍h 29-ji̍t (pài-saⁿ) 14:412021-nî 9-goe̍h 29-ji̍t (pài-saⁿ) 14:41版本的細圖220 × 220(601 KB)Geek3better position of arrows
2010-nî 10-goe̍h 2-ji̍t (pài-la̍k) 20:162010-nî 10-goe̍h 2-ji̍t (pài-la̍k) 20:16版本的細圖220 × 220(495 KB)Geek3own work

Í-hā ê ia̍h liân kàu chit ê iáⁿ-siōng:

tóng-àn hō͘ lâng sái--ê chōng-hóng

Ē-kha--ê kî-thaⁿ wiki ēng tio̍h chit--ê tóng-àn:

元資料