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

External magnetic field #1637

Merged
merged 29 commits into from
Nov 16, 2023
Merged

External magnetic field #1637

merged 29 commits into from
Nov 16, 2023

Conversation

SchoeniPhlippsn
Copy link
Contributor

Description

Adds a new constant magnetic field that acts on magnetic dipoles.

Motivation and context

Allows for a coupling between magnetic particles and an external magnetic field.

How has this been tested?

I added pytests and tested it on different systems both using CPU and GPU.

Change log

Addition of constant external magnetic field that acts on magnetic dipoles

Checklist:

@SchoeniPhlippsn SchoeniPhlippsn requested review from a team, tcmoore3 and syjlee and removed request for a team October 19, 2023 21:57
@joaander joaander changed the base branch from trunk-minor to trunk-patch November 2, 2023 16:19
@joaander joaander changed the base branch from trunk-patch to trunk-minor November 2, 2023 16:19
@joaander joaander changed the base branch from trunk-minor to trunk-patch November 2, 2023 16:20
@joaander joaander changed the base branch from trunk-patch to trunk-minor November 2, 2023 16:20
@tcmoore3
Copy link
Member

pre-commit.ci autofix

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.

Nice work. I was able to build and test the branch and it seems to work as expected.

It looks like you need to add the new python class to the doc pages so that it shows in the sphinx documentation. There are also some flake8 errors to fix. Otherwise this should be good to go.

hoomd/md/EvaluatorExternalMagneticField.h Outdated Show resolved Hide resolved
hoomd/md/EvaluatorExternalMagneticField.h Outdated Show resolved Hide resolved
hoomd/md/external/field.py Outdated Show resolved Hide resolved
hoomd/md/external/field.py Outdated Show resolved Hide resolved
hoomd/md/external/field.py Outdated Show resolved Hide resolved
hoomd/md/external/field.py Show resolved Hide resolved
@SchoeniPhlippsn
Copy link
Contributor Author

pre-commit.ci autofix

@SchoeniPhlippsn
Copy link
Contributor Author

pre-commit.ci autofix

@joaander joaander added the validate Execute long running validation tests on pull requests label Nov 16, 2023
@joaander
Copy link
Member

I fixed the readthedocs webhook and docs are now building again. This is failing with:

/home/docs/checkouts/readthedocs.org/user_builds/hoomd-blue/checkouts/1637/hoomd/md/external/field.py:docstring of hoomd.md.external.field.Magnetic:21: WARNING: Bullet list ends without a blank line; unexpected unindent.

Copy link
Member

@joaander joaander left a comment

Choose a reason for hiding this comment

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

Thanks!

I applied some changes directly to the branch that fixed code style, added tests for the documentation code snippets, and made the documentation format correctly.

@joaander joaander merged commit 3db0b6b into trunk-minor Nov 16, 2023
40 checks passed
@joaander joaander deleted the external_magnetic_field branch November 16, 2023 19:28
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