MagTense - a micromagnetism and magnetostatic framework
Project description
MagTense
MagTense is a framework for magnetostatic and micromagnetic calculations.
Features
- Interfaces for MATLAB and Python, with the core implemented in Fortran for speed;
- Fully analytical calculation of demagnetization tensor for cylinders, pieces of cylinders, prisms, circular pieces and tetrahedrons;
- Micromagnetic solutions of the Landau-Lifshitz equations, using the analytical demagnetization tensor described above;
- GPU-accelerated code with CUDA® (requires NVIDIA graphics card).
- Uses Intel MKL for the micromagnetic simlations and can also utilize CVODE.
- Tested in Linux and Windows 11+ (macOS not supported at the moment).
Installation and usage with the Python interface
Installation is recommended via pip (requires >=Python 3.12):
pip install magtense
Examples of how to calculate magnetostatic and micromagnetic problems using the Python interface can be found python/examples/.
Installation and usage with the Matlab interface
MagTense is directly useable in Matlab on Windows by downloading the MEX-files in Releases. Only Matlab 2023a or greater is required.
Examples of how to calculate magnetostatic and micromagnetic problems using the Matlab interface can be found in matlab/examples.
Building from source
If you want to build MagTense yourself this is certainly also an option. If you want to compile MagTense on Linux we provide a Makefile, which also works on Windows, where we also provide a Visual Studio project file, MagTense.sln.
For Python you can find detailed instructions for building the Python interface with the Fortran core here.
For Matlab MEX-files, we provide a Matlab function called buildMagTenseMEX.m that works on both OS. You can find more information here.
Further documentation
The webpage of the code is available at https://www.magtense.org.
The TechManual on the code is available at https://cmt-dtu-energy.github.io/MagTense.
Citation
If you use this package in a publication, or simply want to refer to it, please cite the paper below:
@article{BJORK2021168057,
title = {MagTense: A micromagnetic framework using the analytical demagnetization tensor},
journal = {Journal of Magnetism and Magnetic Materials},
volume = {535},
pages = {168057},
year = {2021},
issn = {0304-8853},
doi = {https://doi.org/10.1016/j.jmmm.2021.168057},
url = {https://www.sciencedirect.com/science/article/pii/S0304885321003334},
author = {R. Bj{\o}rk and E. B. Poulsen and K. K. Nielsen and A. R. Insinga},
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file magtense-2.2.4-1-py313-none-win_amd64.whl.
File metadata
- Download URL: magtense-2.2.4-1-py313-none-win_amd64.whl
- Upload date:
- Size: 638.3 kB
- Tags: Python 3.13, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3619a9be4d0b55716f7d7988eae055b3fcf1b5d7fc4e5bcca8f5b7ac1b51457c
|
|
| MD5 |
853def4e4a886dcc4be50c1d5fb0e43d
|
|
| BLAKE2b-256 |
836ddc44366f529bcd011359776306553b942be470bc6f8ffc61719f9ed3faff
|
Provenance
The following attestation bundles were made for magtense-2.2.4-1-py313-none-win_amd64.whl:
Publisher:
deployment.yml on cmt-dtu-energy/MagTense
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
magtense-2.2.4-1-py313-none-win_amd64.whl -
Subject digest:
3619a9be4d0b55716f7d7988eae055b3fcf1b5d7fc4e5bcca8f5b7ac1b51457c - Sigstore transparency entry: 421458708
- Sigstore integration time:
-
Permalink:
cmt-dtu-energy/MagTense@d7c722dea49679b2642761829d514371f90734d1 -
Branch / Tag:
refs/tags/v2.2.4 - Owner: https://github.com/cmt-dtu-energy
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
deployment.yml@d7c722dea49679b2642761829d514371f90734d1 -
Trigger Event:
release
-
Statement type:
File details
Details for the file magtense-2.2.4-1-py313-none-manylinux1_x86_64.whl.
File metadata
- Download URL: magtense-2.2.4-1-py313-none-manylinux1_x86_64.whl
- Upload date:
- Size: 707.1 kB
- Tags: Python 3.13
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
656e30e67bb5bed177df846ec3ea141f4720e8e82413ccae2dacb2705c73746c
|
|
| MD5 |
56850fef881b9b44bc0c50fd746a0be9
|
|
| BLAKE2b-256 |
c561d37eb32f4058b50a934a20d418b30122b3cc5d46850de4a77d4a0460f409
|
Provenance
The following attestation bundles were made for magtense-2.2.4-1-py313-none-manylinux1_x86_64.whl:
Publisher:
deployment.yml on cmt-dtu-energy/MagTense
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
magtense-2.2.4-1-py313-none-manylinux1_x86_64.whl -
Subject digest:
656e30e67bb5bed177df846ec3ea141f4720e8e82413ccae2dacb2705c73746c - Sigstore transparency entry: 421458693
- Sigstore integration time:
-
Permalink:
cmt-dtu-energy/MagTense@d7c722dea49679b2642761829d514371f90734d1 -
Branch / Tag:
refs/tags/v2.2.4 - Owner: https://github.com/cmt-dtu-energy
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
deployment.yml@d7c722dea49679b2642761829d514371f90734d1 -
Trigger Event:
release
-
Statement type:
File details
Details for the file magtense-2.2.4-1-py312-none-win_amd64.whl.
File metadata
- Download URL: magtense-2.2.4-1-py312-none-win_amd64.whl
- Upload date:
- Size: 638.3 kB
- Tags: Python 3.12, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b335d6eba022d7c2ba49612bb3ce6b1b6c3e1c898b49ba5136d24a017c9d57ab
|
|
| MD5 |
0557b9eecde8700bd4b69874bda99f7c
|
|
| BLAKE2b-256 |
05097cc296a2323e0d849df064b76f332d75cd80109c6cb52f31715ac6b0218b
|
Provenance
The following attestation bundles were made for magtense-2.2.4-1-py312-none-win_amd64.whl:
Publisher:
deployment.yml on cmt-dtu-energy/MagTense
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
magtense-2.2.4-1-py312-none-win_amd64.whl -
Subject digest:
b335d6eba022d7c2ba49612bb3ce6b1b6c3e1c898b49ba5136d24a017c9d57ab - Sigstore transparency entry: 421458728
- Sigstore integration time:
-
Permalink:
cmt-dtu-energy/MagTense@d7c722dea49679b2642761829d514371f90734d1 -
Branch / Tag:
refs/tags/v2.2.4 - Owner: https://github.com/cmt-dtu-energy
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
deployment.yml@d7c722dea49679b2642761829d514371f90734d1 -
Trigger Event:
release
-
Statement type:
File details
Details for the file magtense-2.2.4-1-py312-none-manylinux1_x86_64.whl.
File metadata
- Download URL: magtense-2.2.4-1-py312-none-manylinux1_x86_64.whl
- Upload date:
- Size: 707.1 kB
- Tags: Python 3.12
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
094aff5762bf48a2cf4a943798f6242c43b95ee4f7681424d1ab8ae9bff43c0f
|
|
| MD5 |
824a9bd24c0d42c9dec18f823e0c2772
|
|
| BLAKE2b-256 |
eb7f751f124b885b885b9add3e661e80d37d227e7c82ff913d6c24c464b80955
|
Provenance
The following attestation bundles were made for magtense-2.2.4-1-py312-none-manylinux1_x86_64.whl:
Publisher:
deployment.yml on cmt-dtu-energy/MagTense
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
magtense-2.2.4-1-py312-none-manylinux1_x86_64.whl -
Subject digest:
094aff5762bf48a2cf4a943798f6242c43b95ee4f7681424d1ab8ae9bff43c0f - Sigstore transparency entry: 421458716
- Sigstore integration time:
-
Permalink:
cmt-dtu-energy/MagTense@d7c722dea49679b2642761829d514371f90734d1 -
Branch / Tag:
refs/tags/v2.2.4 - Owner: https://github.com/cmt-dtu-energy
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
deployment.yml@d7c722dea49679b2642761829d514371f90734d1 -
Trigger Event:
release
-
Statement type: