File:VFPt charges plus plus potential+contour.svg

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

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

Captions

Captions

Add a one-line explanation of what this file represents

Summary[edit]

Description
English: Field of two positive point charges. The shape of the field lines is accurately computed. The density of lines is a compromise to approximate the field strength close to the charges and far away, which cannot be exactly achieved with a fixed set of lines. The electric potential is shown by the background color, where yellow is neutral, together with uniformely spaced equipotential lines.
Date
Source Own work
Author Geek3
Other versions VFPt charges plus plus.svg
SVG development
InfoField
 
The SVG code is valid.
 
This plot was created with VectorFieldPlot.
Source code
InfoField

Python code

VectorFieldPlot source
# paste this code at the end of VectorFieldPlot 2.4
doc = FieldplotDocument('VFPt_charges_plus_plus_potential+contour',
    commons=True)
field = Field({'monopoles':[[-1,0,1], [1,0,1]]})
doc.draw_charges(field)

def startpath(t):
    phi = 2 * pi * t
    return sc.array([-1 + cos(phi), sin(phi)])
nlines = 16
startpoints = Startpath(field, startpath).npoints(nlines)

for i in range(nlines):
    p0 = startpoints[i]
    for p0 in [p0, [-p0[0], p0[1]]]:
        line = FieldLine(field, p0, directions='both', maxr=3)
        doc.draw_line(line, linewidth=2.4,
            arrows_style={'at_potentials':[0.065, 0.183]})

print 'computing contours'
U0 = field.V(sc.array([0., 0.]))
doc.draw_contours(func=field.V, levels=sc.linspace(0., U0*10./3., 11),
    linewidth=1.0, linecolor='#555555')

print 'computing potential field'
U1 = 0.47
doc.draw_scalar_field(func=field.V, cmap=doc.cmap_AqYlFs, vmin=-U1, vmax=U1)

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 4.0 International 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
current19:55, 9 October 2019Thumbnail for version as of 19:55, 9 October 2019800 × 600 (118 KB)Geek3 (talk | contribs)User created page with UploadWizard

There are no pages that use this file.

Metadata