Jump to content

File:VFPt plus thumb potential+contour.svg

Page contents not supported in other languages.
This is a file from the Wikimedia Commons
From Wikipedia, the free encyclopedia
    Original file (SVG file, nominally 180 × 180 pixels, file size: 32 KB)

    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
    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.

    Captions

    Add a one-line explanation of what this file represents

    Items portrayed in this file

    depicts

    26 May 2020

    image/svg+xml

    File history

    Click on a date/time to view the file as it appeared at that time.

    Date/TimeThumbnailDimensionsUserComment
    current11:00, 26 May 2020Thumbnail for version as of 11:00, 26 May 2020180 × 180 (32 KB)Geek3Uploaded own work with UploadWizard

    The following page uses this file:

    Global file usage

    The following other wikis use this file:

    Metadata