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

fix Brownian integrators when using anisotropic interactions and zeroing out elements of the moment of inertia tensor #1825

Merged
merged 2 commits into from
Jun 27, 2024

Conversation

SchoeniPhlippsn
Copy link
Contributor

@SchoeniPhlippsn SchoeniPhlippsn commented Jun 20, 2024

Description

The Brownian integrators did not zero out the torques of an anisotropic pair potential when the moment of inertia has a 0 element. This PR fixes that bug in both the regular and rattle Brownian integrator.

Motivation and context

Important for simulations of particles with fixed orientations

How has this been tested?

I tested it on some of my simulations.

Change log

Fix Brownian integrators when using anisotropic interactions and zeroing out elements of the moment of inertia tensor

Checklist:

…ing out entries of the moment of inertia tensor
@SchoeniPhlippsn SchoeniPhlippsn requested review from a team, tcmoore3, tommy-waltmann and seoulfood and removed request for a team June 20, 2024 14:44
Copy link
Member

@tcmoore3 tcmoore3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Should something like this be covered by unit tests?

@joaander
Copy link
Member

pre-commit.ci autofix

@joaander joaander added the validate Execute long running validation tests on pull requests label Jun 25, 2024
@joaander joaander merged commit 6297fb3 into trunk-patch Jun 27, 2024
72 of 73 checks passed
@joaander joaander deleted the fix-brownian-torque branch June 27, 2024 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
validate Execute long running validation tests on pull requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants