Skip to content

BUG: DielectricCylinder is sensitive to bin_width #554

@hejamu

Description

@hejamu

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

Image

(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.

Metadata

Metadata

Assignees

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions