Potential evaluation (Python)
x, y, X, Y = create_grid()
z = 0.0
z2 = 0.0
ZC = 2.0
y2 = 0.0
x2_inf = 3000.0
pot_ref = potential(X, Y, z, x2_inf, y2, z2, ZC)
pot_1d = potential(
X,
Y,
z,
electron_distance_1d,
y2,
z2,
ZC,
)
Animation frame generation
distances = build_distance_sequence()
one_d_paths = generate_1d_frames(
x,
X,
Y,
pot_ref,
z,
y2,
z2,
ZC,
distances,
one_d_dir,
y_index=pot_ref.shape[1] // 2,
)
video_path = create_video(
one_d_dir,
videos_dir / '1D_animation',
framerate=framerate,
)
2D potential field visualization
pot_2d = potential(
X,
Y,
z,
electron_distance_2d,
y2,
z2,
ZC,
)
plot_2d_path = plot_2d_field(
X,
Y,
pot_2d,
electron_distance=electron_distance_2d,
output_dir=plots_dir,
)
2D potential field rendering
pcm = ax.pcolormesh(
X,
Y,
pot,
cmap='seismic',
vmin=-0.5,
vmax=0.5,
shading='auto',
)
ax.set_aspect('equal', adjustable='box')
contours = ax.contour(
X,
Y,
pot,
levels=(-0.3, -0.2, -0.1, 0.0),
colors='0.3',
linewidths=0.8,
)
ax.clabel(contours, inline=True, fontsize=8)
Physical Model
The helium atom represents the simplest multi-electron system where electron–electron interactions cannot be neglected. Unlike hydrogen, the Schrödinger equation is no longer analytically separable due to the Coulomb repulsion between the two electrons.
In this project, we visualize an effective one-electron potential obtained by fixing the position of the second electron. The resulting potential is given by:
V(r) = -Z / r + 1 / |r - r₂|
This simplified model allows us to isolate and study the structure of electron–electron interaction in real space.
Helium effective potential model
def potential(
x: np.ndarray,
y: np.ndarray,
z: float,
x2: float,
y2: float,
z2: float,
ZC: float,
) -> np.ndarray:
r = np.sqrt(x**2 + y**2 + z**2)
r2 = np.sqrt(
(x - x2) ** 2
+ (y - y2) ** 2
+ (z - z2) ** 2
)
return -ZC / r + 1 / r2
Interpretation
The visualizations illustrate how the presence of a second electron modifies the effective potential experienced by the first electron.
- At large distances, the second electron has little influence and the potential approaches the pure Coulomb potential.
- As the second electron moves closer to the nucleus, the potential becomes increasingly distorted due to electron–electron repulsion.
- This effect can be interpreted as screening, where the nuclear charge is partially reduced by the presence of the second electron.
The 2D plots further highlight the anisotropy introduced by fixing the second electron at a specific position.
Why This Matters
Understanding electron–electron interaction is essential for describing real atomic systems. Even in helium, these interactions lead to measurable deviations from simple hydrogen-like behavior.
This visualization serves as a foundation for more advanced approaches, including:
- Numerical investigation of the electron–electron cusp condition
- Hylleraas-type wavefunctions with explicit correlation terms
- Variational approaches to the helium ground state
Methodology
- Construction of a 2D spatial grid
- Evaluation of Coulomb interaction terms
- Parametric variation of electron position
- Visualization using Matplotlib (1D and 2D slices)
- Animation via frame generation and video encoding
Consistent scientific plotting style
mpl.rcParams.update({
"figure.figsize": (7.8, 4.9),
"figure.dpi": 150,
"font.size": 10,
"axes.titlesize": 12,
"axes.labelsize": 11,
"lines.linewidth": 1.8,
"grid.linestyle": "dashed",
"grid.alpha": 0.3,
"savefig.bbox": "tight",
})