# A screened charge The potential of two charges in free space, and beside it the same potential when the space around them screens it. ```python import matplotlib.pyplot as plt import sympy as sp import pdemagic as pm x, y = sp.symbols("x y", real=True) phi = sp.Function("phi")(x, y) charges = sp.exp(-((x - 1) ** 2 + y**2)) - sp.exp(-((x + 1) ** 2 + y**2)) plane = pm.FreeSpace(x, y) bare = pm.solve(pm.Problem(sp.Eq(-pm.laplacian(phi), charges), domain=plane)) screened = pm.solve( pm.Problem(sp.Eq(-pm.laplacian(phi) + 4 * phi, charges), domain=plane) ) figure, (left, right) = plt.subplots(1, 2, figsize=(10, 4), layout="constrained") bare.plot(ax=left) screened.plot(ax=right) left.set_title("Unscreened", loc="left") right.set_title("Screened", loc="left") ``` ## What it shows On the left Poisson's equation, $-\nabla^2\varphi = \rho$. On the right the unknown itself appears in the equation, $-\nabla^2\varphi + \kappa^2\varphi = \rho$ with $\kappa = 2$: the screened Poisson equation, which is called after Yukawa and after Debye and Hückel. It describes charges in a plasma or an electrolyte, where mobile charges gather around each charge and hide it. The unscreened potential reaches to the edge of the picture. The screened one has died away within a few lengths $1/\kappa$, and it is weaker at the charges as well: compare the two scales. ## What pdemagic decided Both equations are solved by the Fourier method for free space (`fourier`), the second one with the potential of a screened point charge in the place of the unscreened one. The planner chose the same box and the same grid for both, 64 by 54 points, because both follow from the charges alone. ## More - [Stationary equations](../topics/stationary.md) - [Draw into your own figure](../howto/draw-into-your-own-figure.md) - [Linear equations with constant coefficients](../methods/linear-fourier.md) - [What is solved in free space and on periodic boxes](../ref/equations-free-space.md)