Installation¶
The following are required to be installed before this code will work:
Python interpreter (version >= 3.6)
Numpy library (version >= 1.0.4)
Scipy library (version >= 0.5.0)
HDF5 and Pytables libraries (version >= 1.3.0)
Fortran 90 compiler and a C compiler
How to install everything is discussed below.
After the installation, you should be able to open a Python interpreter, and type:
import usadel1
If it doesn’t report errors (Traceback ...), installation was
successful, and you can proceed to Scripting.
If you want to run tests for usadel1, run:
python3 -mpytest --slow
Note that this will exercise most of the functionality, compare results to literature, and solve several “large” problems, and can take long to complete.
Linux¶
Recent Linux distributions should have the necessary packages available.
Debian-based
Starting from Debian 4.0, including most versions of Ubuntu, you can easily install everything necessary:
apt-get install python-numpy python-scipy python-tables gfortran python-dev python-numpy-dev
This package
To build and install this Usadel package, do
cd usadel1 python3 -m pip install --user .
Test if it works
Try to run:
cd usadel1/scripts python sns_minigap_vs_phi.py
It should start calculating the size of the minigap in an SNS junction.
