This is a frontend GUI for some of the cmtj
functionalities. It's possible that you will be able to simulate most of your experiments here if you use:
- SD-FMR
- Harmonic Hall voltage
- PIMM
techniques for your expeirments.
- Python 3.8 or higher
- PyQt6 (
pip install pyqt6
) -- installingPyMag
should automatically installPyQt6
as well cmtj
-- installingPyMag
should automatically installcmtj
as well
Mac OS
brew install pyqt6
or
brew install pyqt@6
For M1/M2 architecures it sometimes works better to install:
python -m pip install pyqt6
Linux/Ubuntu
sudo apt install python3-pyqt6
and it sometimes requires additional manual installation (or some combination of the below):
sudo apt install pkg-config libgl1-mesa-dev libxcb*-dev libfontconfig1-dev libxkbcommon-x11-dev libgtk-3-dev
For quick installation you only need to install the package first:
It is highly recommended to install PyMag inside a python environment
- From Github repository
git clone https://github.com/LemurPwned/PyMag
cd PyMag
python3 -m pip venv .pymag
source .pymag/bin/activate
pip3 install --upgrade pip
pip3 install .
You can find a sample simulation description in docs/example.md.
You can launch anywhere with a simple command
python3 -m pymag run
It's possible to alias
that for a quicker run:
alias pymag "python3 -m pymag run"
For persistence add this to your .bashrc
if you're on Linux. On Windows you may simply create a shortcut.
Here's an explanation of the parameters in the table:
Parameter | Meaning |
---|---|
Magnetisation saturation | |
IEC value | |
IEC value (quadratic term) | |
Anisotropy value | |
Anisotropy axis | |
Gilbert damping parameter | |
diagonal of demagnetisation tensor | |
thickness of a FM layer | |
width of a sample | |
length of the sample | |
magnitude of the damping-like torque | |
magnitude of the field-like torque | |
magnitude of the Oersted field in 1/m | |
polarisation vector |
The Oersted field value is multiplied by the current value in the code, hence the unit is 1/m (1/m * A = A/m).
For the interpretation of the remaining resistance, please refer to the supplementary material of the paper Kim et al. (2016), Spin Hall Magnetoresistance in Metallic Bilayers, Phys. Rev. Let. 116, 9, 097201:
$R_\mathrm{XX0}$ $R_\mathrm{XY0}$ $R_\mathrm{AMR}$ $R_\mathrm{SMR}$ $R_\mathrm{AHE}$