Tiedosto:Equipotential by Zureks.png

Wikipediasta
Siirry navigaatioon Siirry hakuun

Alkuperäinen tiedosto(639 × 1 047 kuvapistettä, 111 KiB, MIME-tyyppi: image/png)

Yhteenveto

Kuvaus
English: Voltage distribution between two electrically charged spheres (purple = positive voltage, blue = negative voltage). The black curves show equipotential contours.
Päiväys
Lähde Oma teos
Tekijä Zureks
Muut versiot

Source code

The image can be created with Python Matplotlib using the following 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.png')


Lisenssi

Creative Commons CC-Zero Tämä teos on saatettu Creative Commons CC0 1.0 Yleismaailmallinen Public Domain -lausuman alaisuuteen.
Henkilö, joka on yhdistänyt CC0:n teokseen tai viitannut siihen teoksessa, on luovuttanut teoksen vapaaseen yleiseen käyttöön (public domain) luopumalla maailmanlaajuisesti ja soveltuvan lainsäädännön sallimassa enimmäislaajuudessa kaikista tekijänoikeuslainsäädännön alaisista oikeuksistaan teokseen, lähioikeudet ja kaikki tekijänoikeuteen liittyvät oikeudet mukaan lukien. Teosta voi lupaa pyytämättä kopioida, muokata, levittää ja esittää, mukaan lukien kaupallisessa tarkoituksessa.

Kuvatekstit

Lisää yhden rivin pituinen kuvaus tästä tiedostosta

Kohteet, joita tässä tiedostossa esitetään

esittää

Tiedoston historia

Päiväystä napsauttamalla näet, millainen tiedosto oli kyseisellä hetkellä.

PäiväysPienoiskuvaKokoKäyttäjäKommentti
nykyinen17. toukokuuta 2018 kello 00.09Pienoiskuva 17. toukokuuta 2018 kello 00.09 tallennetusta versiosta639 × 1 047 (111 KiB)Geek3Replaced with analytically computed precise contour shapes. The old version which came from an FEM simulation had significant errors towards the edges, possibly because the simulation volume was chosen too small. The potential dropped much too slowly towards the image edges. In contrast, the analytic solution is very simple, as the potential is just the linear sum of two 1/r potentials.
11. huhtikuuta 2010 kello 19.37Pienoiskuva 11. huhtikuuta 2010 kello 19.37 tallennetusta versiosta639 × 1 047 (32 KiB)Zureks{{Information |Description={{en|1=Voltage distribution between two electrically charged spheres (purple = positive voltage, blue = negative voltage). The black curves show equipotential contours.}} |Source={{own}} |Author=Zureks |Date=2010

Seuraava sivu käyttää tätä tiedostoa:

Tiedoston järjestelmänlaajuinen käyttö

Seuraavat muut wikit käyttävät tätä tiedostoa: