-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Summary
The result of DIelectricCylinder for the radial component of the dielectric constant is wrong when using bindwidths larger than 0.1Å
Expected behavior
The quality of the profile should be dependent on the size of the bins, but the result in the bulk region should not be.
Actual behavior
(NOTE: The legend is wrong in this figure, it is Å for the bin width, not nm)
As one can see above, the result for a bin_width of 0.25Å is severely shifted.
Version
0.12
Steps to reproduce
No response
Further information, files, and links
My initial guess as to what is causing this is the following:
I rewrote the DielectricCylinder code some time ago to reduce the effects of larger bins by rewriting the integrals. The calculation for m_r does no longer take bin_width into account. However, the calculation for M_r still does. So larger bins will mean large integration errors.