MagTense - a micromagnetism and magnetostatic framework
Project description
MagTense version 2023
MagTense consists of both a magnetostatic and a micromagnetism calculation framework.
The magnetostatic framework can calculate the magnetic field from objects shaped as cylinders, pieces of cylinders, prisms, circular pieces and tetrahedrons. This is done using a fully analytical calculation of the demagnetization tensor. The framework is fully implemented in Fortran and has both a Matlab MEX interface and a Python interface.
The micromagnetism framework solves the Landau-Lifshitz equation. The framework is fully implemented in Fortran and has a Matlab MEX interface and a Python interface, as well as an older Matlab implementation. The micromagnetism framework utilizes the magnetostatic framework for calculating the demagnetization field.
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.
Usage with Matlab
MagTense is directly useable in Matlab on Windows by downloading the already compiled MEX-files in Releases. The files are directly useable with no compilation required, although Matlab 2020b or greater is required. Examples of how to calculate magnetostatic and micromagnetic problems using the Matlab interface can be found in matlab/examples.
Compilation with a Visual Studio project file
If you want to compile MagTense with a Visual Studio project file for Windows, MagTense.sln, is available, as well as a Matlab function to build the MEX-files, buildMagTenseMEX.m. MagTense utilizes Intel MKL for the micromagnetic simlations and can also utilize CUDA and CVODE.
Usage with Python interface
Instructions on how to build and use the Python interface are listed in python. Installation is recommended via conda
package manager (requires >=Python 3.9). Additionally, binary installers for the Python interface are available at the Python Package Index (PyPI).
-
Installation with CUDA 11.x:
conda install magtense -c cmt-dtu-energy/label/cuda-11 -c conda-forge
-
Installation with CUDA 12.x:
conda install magtense -c cmt-dtu-energy/label/cuda-12 -c conda-forge
-
Installation without CUDA support:
conda install magtense -c cmt-dtu-energy/label/cpu
Current code development
The main features being worked on at the moment are:
- Proper code documentation
- Non-uniform grids
Project details
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
File details
Details for the file magtense-2.2.0-2-py311-none-win_amd64.whl
.
File metadata
- Download URL: magtense-2.2.0-2-py311-none-win_amd64.whl
- Upload date:
- Size: 888.5 kB
- Tags: Python 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | af8cc7945c74bad19f1fcd511fcc7693805c7800ff7a5d7fd4f46ee1b65069d6 |
|
MD5 | 883c76b6bdd3f4337d9c6b8984cca7b1 |
|
BLAKE2b-256 | 92b47752c40a40edfc84dcd673855b91c8e64f4b3e778e9a0604d313238edf3d |
File details
Details for the file magtense-2.2.0-2-py311-none-manylinux1_x86_64.whl
.
File metadata
- Download URL: magtense-2.2.0-2-py311-none-manylinux1_x86_64.whl
- Upload date:
- Size: 581.4 kB
- Tags: Python 3.11
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad2fe3d2d8e00857523249a9d48db6969417a462e25d7ff40690e7d2930c15f8 |
|
MD5 | a13f020f7b497641f02c7b27debf59bc |
|
BLAKE2b-256 | 52bbd5bba58cf6393378261bbe07f8c2d9a80e18493cc0a99b3e4eed844dadd4 |
File details
Details for the file magtense-2.2.0-2-py310-none-win_amd64.whl
.
File metadata
- Download URL: magtense-2.2.0-2-py310-none-win_amd64.whl
- Upload date:
- Size: 888.5 kB
- Tags: Python 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9a44e540a850ad941db5f4b416691c23dd1ca1eba09c17489d7625799ed299f |
|
MD5 | af799139b0ff3d23c81b02983f3c5fce |
|
BLAKE2b-256 | ca64f0a53f99b2ce1c175d8ea602aaaa28c3494b4cfd383df7c341fe72da1155 |
File details
Details for the file magtense-2.2.0-2-py310-none-manylinux1_x86_64.whl
.
File metadata
- Download URL: magtense-2.2.0-2-py310-none-manylinux1_x86_64.whl
- Upload date:
- Size: 581.4 kB
- Tags: Python 3.10
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3bdd8e709bbebf340fbafef9665dfcf5206eeb5487b321984dab8472defb6695 |
|
MD5 | cb701d607183ff2c8c9fe8a394b6bc8d |
|
BLAKE2b-256 | 555ef4267aeb5ad339c850c9338a04f5f586c8bbf769fcbd8ee3c66a477321a1 |
File details
Details for the file magtense-2.2.0-2-py39-none-win_amd64.whl
.
File metadata
- Download URL: magtense-2.2.0-2-py39-none-win_amd64.whl
- Upload date:
- Size: 888.5 kB
- Tags: Python 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb81c158a10ae89cdcd3e57181252a7ca2f29858924dc1b05d9aee28d5fd7c22 |
|
MD5 | 288619d593014e970ac9d4c5cb39d150 |
|
BLAKE2b-256 | 7927f9b3c391ca48f82af03389bab68a691ad98fae7b81e3f424d38a3d2b7910 |
File details
Details for the file magtense-2.2.0-2-py39-none-manylinux1_x86_64.whl
.
File metadata
- Download URL: magtense-2.2.0-2-py39-none-manylinux1_x86_64.whl
- Upload date:
- Size: 581.5 kB
- Tags: Python 3.9
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53b6966308ff4500044680e4ce924fa9296f17f99922bdd9186b36681a575dbf |
|
MD5 | 018835f2e3ea1b0fb18db0c8136c619b |
|
BLAKE2b-256 | b5842956391ff6a08ae702d7ccacebc332dd32f266153340142b02aa1d922199 |
File details
Details for the file magtense-2.2.0-1-py311-none-win_amd64.whl
.
File metadata
- Download URL: magtense-2.2.0-1-py311-none-win_amd64.whl
- Upload date:
- Size: 888.5 kB
- Tags: Python 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ca8bc085742c95605a3d87b6b5d130eacc52bd01da7e206465f00955a1be35e |
|
MD5 | 621de2bda92475ed15ecd3cb1fded2d0 |
|
BLAKE2b-256 | 50b01fdc988e23af9443de1a9dd40509d8bd04fd8e527dce96fbc7c5fd94a881 |
File details
Details for the file magtense-2.2.0-1-py311-none-manylinux1_x86_64.whl
.
File metadata
- Download URL: magtense-2.2.0-1-py311-none-manylinux1_x86_64.whl
- Upload date:
- Size: 581.1 kB
- Tags: Python 3.11
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef8011b7ad64eeeec302a4786144c0cf5edeb45c453d1069b0db0f145c3dd4c0 |
|
MD5 | 6bfdf9f3fc4654d65e29706b83c0eb59 |
|
BLAKE2b-256 | 18c18c2264c30e016e5df75515c3e0238d0cf9c94c056e268335d69f44d68853 |
File details
Details for the file magtense-2.2.0-1-py310-none-win_amd64.whl
.
File metadata
- Download URL: magtense-2.2.0-1-py310-none-win_amd64.whl
- Upload date:
- Size: 888.5 kB
- Tags: Python 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a09329b33de7849f6a17e9e4501c9aa2003ec7b8e330ca19c7244a6b42dcee25 |
|
MD5 | d1b4e46abb5c57d7e49651fc3edb5dfe |
|
BLAKE2b-256 | e9f12c370a3f5d7ef381a2cd3adadc24256ab6d0e1ba4c493658a5fe5f2a3c8d |
File details
Details for the file magtense-2.2.0-1-py310-none-manylinux1_x86_64.whl
.
File metadata
- Download URL: magtense-2.2.0-1-py310-none-manylinux1_x86_64.whl
- Upload date:
- Size: 581.1 kB
- Tags: Python 3.10
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48c3e6f1330745614be883afb6c1c76abc7a4163fc2b3ac312c5a915d49c556b |
|
MD5 | 2cc7f1b34031928e80b391b96d5384e1 |
|
BLAKE2b-256 | 37edbcd9b48ae7aab9b87f0f1409c228aa1c7ed0a8864d75323f8dc60ad4dfbb |
File details
Details for the file magtense-2.2.0-1-py39-none-win_amd64.whl
.
File metadata
- Download URL: magtense-2.2.0-1-py39-none-win_amd64.whl
- Upload date:
- Size: 888.5 kB
- Tags: Python 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2eec989b141404c47f978fde4c576e92ce314c7165e71df26d9d98c506a1f5a2 |
|
MD5 | 7575596a70babee6b8b752a29d2a5f0d |
|
BLAKE2b-256 | a056a2dae121b517a4bdb741c0bfe74957c53c703e91f674603c1d8ec1c4c1cf |
File details
Details for the file magtense-2.2.0-1-py39-none-manylinux1_x86_64.whl
.
File metadata
- Download URL: magtense-2.2.0-1-py39-none-manylinux1_x86_64.whl
- Upload date:
- Size: 581.2 kB
- Tags: Python 3.9
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55557430d8c346acedab22927d15549a8810e32e1aade98fd97a3df049fcae74 |
|
MD5 | c540c9c1d08a6d0b6d96dc80b8687de7 |
|
BLAKE2b-256 | 6bd495c58c6520c31b37af675ec69e1aa6234f51b9f2492fe86cff5a79470eff |
File details
Details for the file magtense-2.2.0-0-py311-none-win_amd64.whl
.
File metadata
- Download URL: magtense-2.2.0-0-py311-none-win_amd64.whl
- Upload date:
- Size: 794.5 kB
- Tags: Python 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 837de6355ae82f9e8b199c7b73809f598daca5c87a7390d8ed15c0edeec09a97 |
|
MD5 | 9c669e86362b4297d46d4fca4fc217aa |
|
BLAKE2b-256 | d21455cbf1fc9222a6dd0df0a84317cb7af818bf38d4c5bf83d688b73417bc07 |
File details
Details for the file magtense-2.2.0-0-py311-none-manylinux1_x86_64.whl
.
File metadata
- Download URL: magtense-2.2.0-0-py311-none-manylinux1_x86_64.whl
- Upload date:
- Size: 565.4 kB
- Tags: Python 3.11
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6e66c626355da05eabc5f9e6ee48ae7abda0e96005941b6cce5b8048d70a762 |
|
MD5 | 2ea012643d3f8046c6486fabcff4c1e2 |
|
BLAKE2b-256 | da896a2ab09bfd31576d72d737b44c7ab098cd44a51b237a06d501e2b3a52585 |
File details
Details for the file magtense-2.2.0-0-py310-none-win_amd64.whl
.
File metadata
- Download URL: magtense-2.2.0-0-py310-none-win_amd64.whl
- Upload date:
- Size: 794.5 kB
- Tags: Python 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c24151f49e3fe5942a1916603a0957ee0d92240aed31ca52c9c67e048648f368 |
|
MD5 | 3caf3df869c00609ab4576eb6341f578 |
|
BLAKE2b-256 | c9a6763b9eea716f9969b65fdfe938d87b89245f5b42dc0c2a6462695f40f03e |
File details
Details for the file magtense-2.2.0-0-py310-none-manylinux1_x86_64.whl
.
File metadata
- Download URL: magtense-2.2.0-0-py310-none-manylinux1_x86_64.whl
- Upload date:
- Size: 565.4 kB
- Tags: Python 3.10
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 249a0ac22bb73710209b1ce92eec6dc9e54fd4facd41674883bd250bd9901a0b |
|
MD5 | 16b1adf959d70635b7fe763aa4eb916b |
|
BLAKE2b-256 | 8dd5db1845cf9d43f6cb8ea9338ee13fe2de553370a388bdec65fb8be1ea0126 |
File details
Details for the file magtense-2.2.0-0-py39-none-win_amd64.whl
.
File metadata
- Download URL: magtense-2.2.0-0-py39-none-win_amd64.whl
- Upload date:
- Size: 794.4 kB
- Tags: Python 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d663b4bc16fd5ee52c53ce4ef6c13f2508967b7770e930724ec39ab3ea3ab9ec |
|
MD5 | 774faa431734d49deb5f3f4a13fb950a |
|
BLAKE2b-256 | 6ef2b8203604efe834d6dc1b2634c4fb177557fdc27a0556f3317bdeced3d63a |
File details
Details for the file magtense-2.2.0-0-py39-none-manylinux1_x86_64.whl
.
File metadata
- Download URL: magtense-2.2.0-0-py39-none-manylinux1_x86_64.whl
- Upload date:
- Size: 565.5 kB
- Tags: Python 3.9
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5aa59b4dab211487b6f36333d71b9affb57ac657a11b8a6c3ff7a76ce444fce1 |
|
MD5 | eb6bd97a7dbf0329d8094233702a2dd7 |
|
BLAKE2b-256 | 27c7e14a412c0400e755a70b0cacd324f6050918b57b99f21a9e5850908c2477 |