File:VFPt dipole noarrows thumb.svg

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

Original file(SVG file, nominally 220 × 201 pixels, file size: 19 KB)

Captions

Captions

Add a one-line explanation of what this file represents

Summary[edit]

Description
English: Field of an ideal dipole inside the image plane. The same field shape arises from a point-like electic dipole (electric field) or a point-like magnetic dipole (magnetic field). The electric dipole can be thought of as two different charges put very close together and the magnetic dipole as a very small conductor loop carrying current.
This is a thumbnail version optimized for 220px.
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.0
doc = FieldplotDocument('VFPt_dipole_noarrows_thumb', width=220, height=201, unit=40, commons=True)
field = Field({'dipoles':[[0,0,1,0]]})
n = 15
phi0 = 0.3
def F(phi):
    r = rot([1,0], phi)
    Fxy = field.F(sc.array([1,0]) + r)
    return sc.dot(r, Fxy) / vabs(Fxy)**(2/3.)
Fs = ig.quad(F, -pi+phi0, pi-phi0)[0]
for i in range(n):
    a = i / (n - 1.0)
    phi = op.brentq(lambda phi1: ig.quad(F, -pi+phi0, phi1)[0] - a * Fs, -pi+phi0, pi-phi0)
    line = FieldLine(field, [1+cos(phi), sin(phi)], directions='both', pass_dipoles=0)
    doc.draw_line(line, linewidth=1, arrows_style=None)
doc.write()

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
current18:18, 14 June 2010Thumbnail for version as of 18:18, 14 June 2010220 × 201 (19 KB)Geek3 (talk | contribs)VFPt_dipole_noarrows_thumb

The following page uses this file:

Metadata