File:VFPt dipole animation electric.gif
Page contents not supported in other languages.
Tools
Actions
General
In other projects
Appearance
Size of this preview: 220 × 220 pixels.
Original file (220 × 220 pixels, file size: 381 KB, MIME type: image/gif, looped, 50 frames, 2.5 s)
This is a file from the Wikimedia Commons. Information from its description page there is shown below.
Commons is a freely licensed media file repository. You can help.
Commons is a freely licensed media file repository. You can help.
Summary
| DescriptionVFPt dipole animation electric.gif |
English: Animation showing the electric field of an electric dipole. The dipole consists of two point electric charges of opposite polarity located close together. A transformation from a point-shaped dipol to a finite-size electric dipole is shown. |
| Date | |
| Source | Own work |
| Author | Geek3 |
| Other versions | |
| GIF development InfoField | |
| Source code InfoField | Python code# paste this code at the end of VectorFieldPlot 1.2
frames = 50
d = 0.35 # animation amplitude
r = 7.5 # charge radius
# iterate frames
for i in range(frames):
doc = FieldplotDocument('VFPt_dipole_animation_electric_{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 i == 0:
# pointlike dipole
field = Field({'dipoles':[[0,0,1,0]]})
else:
# electric dipole
field = Field({'monopoles':[[-d*a,0,-0.5/(d*a)], [d*a,0,0.5/(d*a)]]})
doc.draw_charges(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)
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
line = FieldLine(field, [0, y],
directions='both', maxr=1e4, maxn=2e4)
doc.draw_line(line, linewidth=1.0,
arrows_style={'dist':1.25, 'scale':1.1, 'max_arrows':2})
doc.write(filename='anims/' + doc.name)
|
for i in anims/*.svg; do rsvg -w1760 -h1760 $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_electric.gif" anims/*.gif > VFPt_dipole_animation_electric.gif
Licensing
I, the copyright holder of this work, hereby publish it under the following licenses:
| 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.http://www.gnu.org/copyleft/fdl.htmlGFDLGNU Free Documentation Licensetruetrue |
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
creator<\/a>"}},"text\/plain":{"en":{"":"creator"}}},"{\"value\":{\"entity-type\":\"property\",\"numeric-id\":2093,\"id\":\"P2093\"},\"type\":\"wikibase-entityid\"}":{"text\/html":{"en":{"":"author name string<\/a>"}},"text\/plain":{"en":{"":"author name string"}}},"{\"value\":\"Geek3\",\"type\":\"string\"}":{"text\/html":{"en":{"P2093":"Geek3","P4174":"Geek3<\/a>"}},"text\/plain":{"en":{"P2093":"Geek3","P4174":"Geek3"}}},"{\"value\":{\"entity-type\":\"property\",\"numeric-id\":4174,\"id\":\"P4174\"},\"type\":\"wikibase-entityid\"}":{"text\/html":{"en":{"":"Wikimedia username<\/a>"}},"text\/plain":{"en":{"":"Wikimedia username"}}},"{\"value\":{\"entity-type\":\"property\",\"numeric-id\":2699,\"id\":\"P2699\"},\"type\":\"wikibase-entityid\"}":{"text\/html":{"en":{"":"URL<\/a>"}},"text\/plain":{"en":{"":"URL"}}},"{\"value\":\"http:\\\/\\\/commons.wikimedia.org\\\/wiki\\\/User:Geek3\",\"type\":\"string\"}":{"text\/html":{"en":{"P2699":"http:\/\/commons.wikimedia.org\/wiki\/User:Geek3<\/a>"}},"text\/plain":{"en":{"P2699":"http:\/\/commons.wikimedia.org\/wiki\/User:Geek3"}}}}" class="wbmi-entityview-statementsGroup wbmi-entityview-statementsGroup-P170 oo-ui-layout oo-ui-panelLayout oo-ui-panelLayout-framed">
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">
copyright license<\/a>"}},"text\/plain":{"en":{"":"copyright license"}}},"{\"value\":{\"entity-type\":\"item\",\"numeric-id\":50829104,\"id\":\"Q50829104\"},\"type\":\"wikibase-entityid\"}":{"text\/html":{"en":{"P275":"GNU Free Documentation License, version 1.2 or later<\/a>"}},"text\/plain":{"en":{"P275":"GNU Free Documentation License, version 1.2 or later"}}},"{\"value\":{\"entity-type\":\"item\",\"numeric-id\":14946043,\"id\":\"Q14946043\"},\"type\":\"wikibase-entityid\"}":{"text\/html":{"en":{"P275":"Creative Commons Attribution-ShareAlike 3.0 Unported<\/a>"}},"text\/plain":{"en":{"P275":"Creative Commons Attribution-ShareAlike 3.0 Unported"}}}}" class="wbmi-entityview-statementsGroup wbmi-entityview-statementsGroup-P275 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-10-01T00:00:00Z\",\"timezone\":0,\"before\":0,\"after\":0,\"precision\":10,\"calendarmodel\":\"http:\\\/\\\/www.wikidata.org\\\/entity\\\/Q1985727\"},\"type\":\"time\"}":{"text\/html":{"en":{"P571":"October 2010"}},"text\/plain":{"en":{"P571":"October 2010"}}}}" class="wbmi-entityview-statementsGroup wbmi-entityview-statementsGroup-P571 oo-ui-layout oo-ui-panelLayout oo-ui-panelLayout-framed">
October 2010
media type<\/a>"}},"text\/plain":{"en":{"":"media type"}}},"{\"value\":\"image\\\/gif\",\"type\":\"string\"}":{"text\/html":{"en":{"P1163":"image\/gif"}},"text\/plain":{"en":{"P1163":"image\/gif"}}}}" class="wbmi-entityview-statementsGroup wbmi-entityview-statementsGroup-P1163 oo-ui-layout oo-ui-panelLayout oo-ui-panelLayout-framed">
image/gif
data size<\/a>"}},"text\/plain":{"en":{"":"data size"}}},"{\"value\":{\"amount\":\"+390143\",\"unit\":\"http:\\\/\\\/www.wikidata.org\\\/entity\\\/Q8799\"},\"type\":\"quantity\"}":{"text\/html":{"en":{"P3575":"390,143 byte<\/span>"}},"text\/plain":{"en":{"P3575":"390,143 byte"}}}}" class="wbmi-entityview-statementsGroup wbmi-entityview-statementsGroup-P3575 oo-ui-layout oo-ui-panelLayout oo-ui-panelLayout-framed">
390,143 byte
height<\/a>"}},"text\/plain":{"en":{"":"height"}}},"{\"value\":{\"amount\":\"+220\",\"unit\":\"http:\\\/\\\/www.wikidata.org\\\/entity\\\/Q355198\"},\"type\":\"quantity\"}":{"text\/html":{"en":{"P2048":"220 pixel<\/span>"}},"text\/plain":{"en":{"P2048":"220 pixel"}}}}" class="wbmi-entityview-statementsGroup wbmi-entityview-statementsGroup-P2048 oo-ui-layout oo-ui-panelLayout oo-ui-panelLayout-framed">
220 pixel
width<\/a>"}},"text\/plain":{"en":{"":"width"}}},"{\"value\":{\"amount\":\"+220\",\"unit\":\"http:\\\/\\\/www.wikidata.org\\\/entity\\\/Q355198\"},\"type\":\"quantity\"}":{"text\/html":{"en":{"P2049":"220 pixel<\/span>"}},"text\/plain":{"en":{"P2049":"220 pixel"}}}}" class="wbmi-entityview-statementsGroup wbmi-entityview-statementsGroup-P2049 oo-ui-layout oo-ui-panelLayout oo-ui-panelLayout-framed">
220 pixel
checksum<\/a>"}},"text\/plain":{"en":{"":"checksum"}}},"{\"value\":\"bba4f91b70403dae874c3507223407f599cd5ddc\",\"type\":\"string\"}":{"text\/html":{"en":{"P4092":"bba4f91b70403dae874c3507223407f599cd5ddc"}},"text\/plain":{"en":{"P4092":"bba4f91b70403dae874c3507223407f599cd5ddc"}}},"{\"value\":{\"entity-type\":\"property\",\"numeric-id\":459,\"id\":\"P459\"},\"type\":\"wikibase-entityid\"}":{"text\/html":{"en":{"":"determination method or standard<\/a>"}},"text\/plain":{"en":{"":"determination method or standard"}}},"{\"value\":{\"entity-type\":\"item\",\"numeric-id\":13414952,\"id\":\"Q13414952\"},\"type\":\"wikibase-entityid\"}":{"text\/html":{"en":{"P459":"SHA-1<\/a>"}},"text\/plain":{"en":{"P459":"SHA-1"}}}}" class="wbmi-entityview-statementsGroup wbmi-entityview-statementsGroup-P4092 oo-ui-layout oo-ui-panelLayout oo-ui-panelLayout-framed">
bba4f91b70403dae874c3507223407f599cd5ddc
File history
Click on a date/time to view the file as it appeared at that time.
| Date/Time | Thumbnail | Dimensions | User | Comment | |
|---|---|---|---|---|---|
| current | 20:14, 2 October 2010 | 220 × 220 (381 KB) | Geek3 | own work |
File usage
The following 4 pages use this file:
Global file usage
The following other wikis use this file:
- Usage on ar.wikipedia.org
- Usage on bn.wikipedia.org
- Usage on da.wikipedia.org
- Usage on eo.wikipedia.org
- Usage on ga.wikipedia.org
- Usage on he.wikipedia.org
- Usage on hi.wikipedia.org
- Usage on id.wikibooks.org
- Usage on incubator.wikimedia.org
- Usage on it.wikipedia.org
- Usage on mag.wikipedia.org
- Usage on no.wikipedia.org
- Usage on sv.wikipedia.org
- Usage on ta.wikipedia.org
- Usage on tr.wikipedia.org
- Usage on vi.wikipedia.org
- Usage on zh-min-nan.wikipedia.org