-
Notifications
You must be signed in to change notification settings - Fork 35
Download and installation
Pekka Koskinen edited this page Apr 5, 2017
·
11 revisions
- Atomic Simulation Environment (ASE)
-
BLAS & LAPACK libraries
- basic linear algebra operations (matrix vector multiplication etc.)
- solving (generalized) eigenvalue problem
-
numpy
- for numerical arrays, some linear algebra, etc.
-
scipy
- fitting, interpolation, non-linear equation solving, etc.
- [matplotlib](http://matplotlib.sourceforge.net/ matplotlib)
- not explicitly needed for production calculations
-
hotbit
works, in principle, without matplotlib - for plotting
For svn checkout (different options):
# initial checkout
~>git clone https://github.com/pekkosk/hotbit.git
- Download the code to some location (e.g.
~/hb
):
~>git clone https://github.com/pekkosk/hotbit.git
- Run python's
setup.py
script.
~/hb>python setup.py install --home=<my-directory>
This will compile the C-extensions and copy data files (parametrizations) to <my-directory>
.
- Setup environmental variables
HOTBIT_DIR
andHOTBIT_PARAMETERS
, appendHOTBIT_DIR
toPYTHONPATH
so that python can findhotbit
andbox
modules, and appendHOTBIT_DIR/hotbit
toPATH
to provide access Hotbit shell guide.
export HOTBIT_DIR="<my-directory>/lib64/python" #the name "lib64" can vary
export PATH="<my-directory>:$PATH"
export HOTBIT_PARAMETERS="<my-directory>/param"
export PYTHONPATH="$PYTHONPATH:$HOTBIT_DIR"
- Run tests
- Run script
test.py
in$HOTBIT_DIR/hotbit/test
. This will take a minute or so, depending on the machine.
- Source code
- hotbit module for python in
HOTBIT_DIR
folder - contains Fortran code that needs to be compiled (in
hotbit/fortran
) - hotbit comes together with
box
python module-
box
contains auxiliary python stuff, and hotbit needs it - interpolation, plotting, file input/output, molecular dynamics stuff, timing
-
- Files containing element data:
.elm
-files
- By default in
HOTBIT_PARAMETERS
folder - Contains on-site energies, Hubbard U parameters,...
- Customized
.elm
-files can be anywhere (given explicitly to calculator)
- Parametrization files:
.par
-files
- By default in
HOTBIT_PARAMETERS
- Contains all pair-wise data: Slater-Koster tables and short-range repulsions
- Customized
.par
-files can be anywhere (given explicitly to calculator)