File:Equipotential_of_dipole.svg
From Wikipedia, the free encyclopedia
Size of this PNG preview of this SVG file: 366 × 600 pixels. Other resolutions: 146 × 240 pixels | 293 × 480 pixels | 469 × 768 pixels | 625 × 1,024 pixels | 1,250 × 2,048 pixels | 639 × 1,047 pixels.
Original file (SVG file, nominally 639 × 1,047 pixels, file size: 777 KB)
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. |
Summary
DescriptionEquipotential of dipole.svg |
English: Voltage distribution between two electrically charged spheres. Purple = positive voltage, blue = negative voltage, black = equipotential contours. Português: Distribuição de tensão entre duas esferas eletricamente carregadas. Roxo = tensão positiva, azul = tensão negativa, preto = contornos equipotenciais. |
Date | |
Source | Own work based on code from File:Equipotential by Zureks.png |
Author | Ixfd64 |
Source code
import numpy as np
from matplotlib import pyplot as plt
from matplotlib import colors
cmap = colors.ListedColormap(
[np.clip((2 * x, 2 * (1 - x), 4 * (x - 0.5) ** 2), 0, 1) for x in np.linspace(0., 1, 256)])
w, h = 639, 1047
xmax = 2.36
ymax = xmax * float(h) / float(w)
vmax = 0.78
y0 = 1.0
nlevels = 21
levels = np.linspace(-vmax, vmax, nlevels)
X, Y = np.mgrid[-xmax:xmax:250j, -ymax:ymax:800j]
# potential of two point charges
V = 1.0 / np.maximum(np.sqrt(X ** 2 + (Y - y0) ** 2), 1e-2)
V -= 1.0 / np.maximum(np.sqrt(X ** 2 + (Y + y0) ** 2), 1e-2)
# rescale potential globally to make contour areas similar
V = (np.sqrt(1 + V * V) - 1) / V
plt.figure(figsize=(w / 90, h / 90)).add_axes([0, 0, 1, 1])
contf = plt.contourf(X, Y, V, levels=levels, cmap=cmap,
vmin=-vmax * (nlevels - 1) / nlevels, vmax=vmax * (nlevels - 1) / nlevels)
cont = plt.contour(X, Y, V, levels=contf.levels, colors='k', linestyles='solid')
plt.xticks([]), plt.yticks([])
plt.gca().set_aspect(aspect='equal')
plt.gca().axis('off')
plt.text(0, -y0, u'\u2212', size=48, fontweight='bold', ha='center', va='center')
plt.text(0, y0, '+', size=48, fontweight='bold', ha='center', va='center')
plt.savefig('Equipotential_of_dipole.svg', format='svg')
Licensing
I, the copyright holder of this work, hereby publish it under the following license:
This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication. | |
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.
http://creativecommons.org/publicdomain/zero/1.0/deed.enCC0Creative Commons Zero, Public Domain Dedicationfalsefalse |
Items portrayed in this file
depicts
2 May 2023
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 22:23, 2 May 2023 | 639 × 1,047 (777 KB) | Ixfd64 | Uploaded own work with UploadWizard |
File usage
The following pages on the English Wikipedia use this file (pages on other projects are not listed):
Global file usage
The following other wikis use this file:
- Usage on pt.wikipedia.org
- Usage on www.wikidata.org
Metadata
This file contains additional information, probably added from the digital camera or scanner used to create or digitize it.
If the file has been modified from its original state, some details may not fully reflect the modified file.
Width | 511.2pt |
---|---|
Height | 837.6pt |
Retrieved from "https://en.wikipedia.org/wiki/File:Equipotential_of_dipole.svg"