Welcome to MagTense!
A magnetostatic and micromagnetic calculation framework.
The magnetostatic framework is fully implemented in Fortran and has both a Matlab MEX interface and a Python interface. It calculates the demagnetization tensor fully analytically for cylinders, pieces of cylinders, prisms, circular pieces, tetrahedra, spheres and spheroids.
The micromagnetic framework solves the Landau-Lifshitz equation using that same analytical demagnetization tensor. It supports uniform, unstructured-prism and tetrahedral meshes, spatially varying material parameters, general magnetocrystalline anisotropy, thermal fluctuations, periodic boundary conditions and adaptive hysteresis calculations.
MagTense uses Intel MKL, and can optionally be built with CUDA for GPU acceleration, with CVODE as the time integrator and with FMM3D for an \(O(N)\) demagnetization field.
Getting started
pip install magtense
For Matlab, download the compiled MEX-files from the releases. See Installation for details, and Setting up a micromagnetic problem for a first micromagnetic calculation.
Content
- About
- Installation
- Calculations
- Micromagnetism
- Setting up a micromagnetic problem
- Grids and meshes
- Material parameters
- Exchange interaction
- Demagnetization field
- Solvers and time integration
- Periodic boundaries and macrogeometry
- Thermal fluctuations
- Micromagnetic output
- Micromagnetic parameter reference
- Micromagnetic examples and validation
- The equation that is solved
- Demag field - FMM
- Performance, Timing & Trace Logging
- Documentation
- Theoretical aspects
- Publications
- Gallery