Skip to content

Commit 80f3c71

Browse files
Fix assignment of charge density for the right sphere (#574)
Make use of `sphere2` to compute the `q2` charge density.
1 parent 7e97c55 commit 80f3c71

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

content/maxwell2_static/fields_from_grounded_sources_dcr/electrostatic_sphere.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ The figure below shows surface charge density at the surface of sphere.
413413
Z = np.zeros_like(X)
414414

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

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

0 commit comments

Comments
 (0)