-
Notifications
You must be signed in to change notification settings - Fork 197
Introduce Magnetodynamics with thermal Stoner-Wohlfarth #5188
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
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Description of changes: - use modern CMake and enable ccache for CUDA files - document all CMake options of the ESPResSo project - fix regressions in the python documentation that will become errors in future Sphinx and autopep versions - rewrite and unit test the config file generator - bugfix: compiler errors are no longer ignored when parsing `myconfig-final.hpp` and `cmake_config.hpp` - bugfix: external features mismatch between `features.def` and `cmake_config.cmakein` now throws errors
…_to_date_developer
RudolfWeeber
previously approved these changes
Nov 28, 2025
Contributor
|
Thank you Deniz! @jngrad from my side, this PR is ready. Can you please take over for the merge? |
jngrad
reviewed
Nov 28, 2025
Member
jngrad
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, looks good to me and can go in the 5.0 release. I'll try to sort out the NLopt installation step as soon as possible.
jngrad
approved these changes
Dec 1, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Magnetodynamics Overview
Magnetodynamics refers to the ability to evolve the degrees of freedom of a dipole moment using a defined set of rules (a model), such that magnetic relaxation is not strictly tied to the Brownian relaxation of a particle.
There are three relevant internal relaxation mechanisms for magnetic nanoparticles (on timescales typically interesting for MD simulations):
Thermal Stoner–Wohlfarth Model
The thermal Stoner–Wohlfarth (SW) model provides a state-of-the-art, scalable method for including Néel relaxation in simulations of single-domain magnetic nanoparticles.
Broadly speaking, the model:
Implementation Details
The feature is implemented under the compile-time flag:
THERMAL_STONER_WOHLFARTHIf enabled, the following particle properties become available:
References
• Publication: Phys. Rev. B 111, 014438 (2025)
• Optimization Library: NLopt (used to find critical points in magnetic energy)
⸻
Notes
This method relies on the DIPOLE_FIELD_TRACKING feature of ESPResSo to correctly incorporate dipole interactions.
For interacting systems, it should only be used with magnetostatic actors that support this feature.
⸻
Tasks: