Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve stability of binary_hard_sphere for low q #626

Open
wants to merge 1 commit into
base: release_1.0.9
Choose a base branch
from

Conversation

pkienzle
Copy link
Contributor

Sets binary hard sphere form factor to limit value for small q. This hides the numerical instability without fixing it.

I tested various large sphere radii (1000, 100, 10) and various sphere ratios (1:1.001, 1:4, 1:10, 1:100). There are still some places where the cutoff is too low (with noise showing up at low q) or too high (abrupt jump to the limit).

Please check that reasonable values of radii are supported, and record them in the model documentation. Also check a range of volume fractions.

Refs #306

@krzywon krzywon changed the base branch from master to release_1.0.9 January 22, 2025 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants