VFPt_plus_thumb_potential+contour.svg


Summary

Description
English: Field of a positive point charge. Thumbnail version with potential shown as color from positive (fuchsia) to neutral (yellow) and equipotential lines.
Date
Source Own work
Author Geek3
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 3.1
# https://commons.wikimedia.org/wiki/User:Geek3/VectorFieldPlot
doc = FieldplotDocument('VFPt_plus_thumb_potential+contour',
    width=180, height=180, unit=30, commons=True)
field = Field([ ['monopole', {'x':0, 'y':0, 'Q':1}] ])
doc.draw_charges(field)
nlines = 16
for iline in range(nlines):
    a = 2.0 * pi * (0.5 + iline) / nlines
    line = FieldLine(field, [0, 0], start_v=[cos(a), sin(a)],
        directions='forward', maxr=5)
    doc.draw_line(line, linewidth=1.2, arrows_style={'dist':2, 'scale':1.8,
        'max_arrows':1, 'offsets':{'start':1.05}, 'fixed_ends':{'start':True} })

U0 = field.V(sc.array([15./30., 0.]))
U1 = field.V(sc.array([14.65/30., 0.]))
doc.draw_scalar_field(func=field.V, cmap=doc.cmap_AqYlFs, vmin=-U0, vmax=U0)
doc.draw_contours(func=field.V, linewidth=0.7, linecolor='#444444',
    levels=sc.linspace(0, U1, 12))
doc.write()

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
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.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

26 May 2020

image/svg+xml