Skip to content

Fix interlayer exchange energy calculation - #24

Merged
ww1g11 merged 2 commits into
MagneticSimulation:masterfrom
kimx1612:fix-rkky-energy
Jun 7, 2026
Merged

Fix interlayer exchange energy calculation#24
ww1g11 merged 2 commits into
MagneticSimulation:masterfrom
kimx1612:fix-rkky-energy

Conversation

@kimx1612

@kimx1612 kimx1612 commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

This PR fixes the interlayer exchange energy calculation.

The effective field already includes the 1 / (mu0_Ms) factor. Therefore, when computing the energy from h · m, the corresponding Ms factor should be multiplied back.

This patch multiplies the interlayer exchange energy contributions by Ms1 and Ms2 for the two coupled layers.

@kimx1612

kimx1612 commented Jun 7, 2026

Copy link
Copy Markdown
Contributor Author

Updated: also fixed the interlayer DMI energy calculation for the same reason.

@ww1g11
ww1g11 merged commit c03aad3 into MagneticSimulation:master Jun 7, 2026
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants