Skip to content

Commit

Permalink
Fix assignment of charge density for the right sphere (#574)
Browse files Browse the repository at this point in the history
Make use of `sphere2` to compute the `q2` charge density.
  • Loading branch information
thibaut-kobold authored Dec 6, 2024
1 parent 7e97c55 commit 80f3c71
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ The figure below shows surface charge density at the surface of sphere.
Z = np.zeros_like(X)

q1 = sphere1.charge_density((X, Y, Z), dr=xr[1]-xr[0])
q2 = sphere1.charge_density((X, Y, Z), dr=xr[1]-xr[0])
q2 = sphere2.charge_density((X, Y, Z), dr=xr[1]-xr[0])

fig, axs = plt.subplots(1,2,figsize=(18,6))
qs = [q1, q2]
Expand Down

0 comments on commit 80f3c71

Please sign in to comment.