Feynman mentioned in his lecture that we can, in some way, obtain dielectric constant of crystals by summing up the electric field due to dipoles. For example, equation (11.33) from above link shows the sum for $\rm BaTiO_3$. He also mentioned that the same calculation for simple cubic results to a factor of 1/3 in simple cubic crystals.
However, if one calculates the exact field due to dipoles and integrate for all the neighbors in simple cubic lattice (e.g. using $(3(p.r)r-p)/r^3$ instead of the one he used $p/r^3$), the result would be zero field due to surrounding dipoles.
I cannot find anyone extending or using this approach to figure out what I am missing. Also equation 15 and 16 in these notes proves the sum $(3(p.r)r-p)/r^3$ is zero. Moreover, in a simple cubic lattice, the simplest example is to consider 6 nearest neighbor dipoles (6 neighbors: top, bottom, left, right, front and back) which gives zero field.
Is this a mistake in Feynman lectures?
To show the sum for 6 neighbors, one can evaluate equation 6 times for 6 neighbors:
Rs = np.array([[ 0., 0., 1.],
[ 0., 1., 0.],
[ 1., 0., 0.],
[-1., 0., 0.],
[ 0., -1., 0.],
[ 0., 0., -1.]])
pdir = np.array([0, 0, 1.0])
for ii in range(len(Rs)):
u = Rs[ii]
d = 1.0
Efield_i = (3 * pdir.dot(u) * u - pdir) / (d * d * d)
print("Efield_i", Efield_i)
Which gives with zero sum:
Efield_i [0. 0. 2.]
Efield_i [ 0. 0. -1.]
Efield_i [ 0. 0. -1.]
Efield_i [-0. 0. -1.]
Efield_i [ 0. -0. -1.]
Efield_i [-0. -0. 2.]
Edit: Please notice this question is not about E-field of dipoles, but about the approach and assumptions Feynman used to calculate dielectric constant.