Skip to content

Feature/frozenspins - #70

Merged
ilateur merged 5 commits into
devfrom
feature/frozenspins
Apr 24, 2025
Merged

Feature/frozenspins#70
ilateur merged 5 commits into
devfrom
feature/frozenspins

Conversation

@ilateur

@ilateur ilateur commented Apr 23, 2025

Copy link
Copy Markdown
Collaborator

Add frozen_spins parameter like in mumax³. This can be useful for setting custom fixed boundary conditions. It works by setting the calculated torque to (0, 0, 0) if frozenspins is not 0 there.

@ilateur ilateur added the enhancement New feature or request label Apr 23, 2025
@ilateur
ilateur requested a review from lamoreel April 23, 2025 13:26
@ilateur ilateur self-assigned this Apr 23, 2025
@ilateur ilateur linked an issue Apr 23, 2025 that may be closed by this pull request
Comment thread mumaxplus/ferromagnet.py
Comment thread src/physics/torque.cu Outdated
Comment thread test/test_frozenspins.py Outdated
Comment thread test/test_frozenspins.py
Comment thread src/physics/torque.cu Outdated
@ilateur

ilateur commented Apr 23, 2025

Copy link
Copy Markdown
Collaborator Author

Too many small changes, make sure to squash and merge instead of simply merging.

@lamoreel
lamoreel self-requested a review April 24, 2025 05:57
@ilateur
ilateur merged commit 69df9f0 into dev Apr 24, 2025
@ilateur
ilateur deleted the feature/frozenspins branch April 24, 2025 09:12
gyuyoungpark pushed a commit to gyuyoungpark/mumax-plus-extensions that referenced this pull request Mar 1, 2026
* Add frozen spins parameter

* Add frozen spins tests like in mumax³

* Change multiplication to if-statement

* Tweak according to PR#70 comments

* Use frozenSpins inside of torque calculations, instead of calling a separate kernel function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add frozenspins like in MuMax3

2 participants