First steps in Yambopy: Difference between revisions

From The Yambo Project
Jump to navigation Jump to search
No edit summary
No edit summary
Line 14: Line 14:
Yambopy was born with the primary objective of making the convergence tests easier.
Yambopy was born with the primary objective of making the convergence tests easier.


"""Installation instructions for general users"'"
'''Installation instructions for general users'''


A quick way to start using Yambopy is described here.
A quick way to start using Yambopy is described here.
Line 50: Line 50:
</source>
</source>


* [OPTIONAL] Install abipy [WEBSITE] for band structure interpolations
* [OPTIONAL] Install abipy [[https://abinit.github.io/abipy/index.html]] for band structure interpolations


<source lang="python">
<source lang="python">
Line 66: Line 66:
You can find all the documentation of yambopy here http://yambopy.readthedocs.io/en/latest/index.html
You can find all the documentation of yambopy here http://yambopy.readthedocs.io/en/latest/index.html


"""Installation instructions for the hands-on of the 2020 Yambo school at ICTP, Trieste"""
'''Installation instructions for the hands-on of the 2020 Yambo school at ICTP, Trieste'''


* Yambopy is already preinstalled in the Quantum Machine. Start the Quantum Machine and go to the tutorial folder
* Yambopy is already preinstalled in the Quantum Machine. Start the Quantum Machine and go to the tutorial folder

Revision as of 13:41, 21 January 2020

A typical yambo calculation proceeds as follows:

  • Obtain the ground state properties from a DFT code (pw.x or abinit) First steps: a walk through from DFT to optical properties
  • Create the yambo netCDF databases using the corresponding interface: (p2y for pw.x or a2y for abinit)
  • Run yambo once to complete the database
  • Run yambo specifying the run-levels to generate the input file
  • Edit the yambo input file
  • Run various yambo simulations
  • Plot the data results

Since many of the parameters of the calculation have to be converged the user might end up running the last three steps many times. This is rather time-consuming without an automatization script.

The yambopy project aims to provide a simple set of python scripts to (i) read and edit yambo and quantum espresso input files, and (ii) to easily perform pre- and post-processing of the simulation data for these two codes. Yambopy was born with the primary objective of making the convergence tests easier.

Installation instructions for general users

A quick way to start using Yambopy is described here.


  • Make sure that you are using Python 3 and that you have the following python packages: numpy, scipy, matplotlib, netCDF4, xml.etree.
  • Go to a directory of your choice and clone yambopy from the git repository

<source lang="python"> git clone https://github.com/yambo-code/yambopy.git </source>

  • Enter into the yambopy folder and install

<source lang="python"> cd yambopy sudo python setup.py install </source>

If you don't have administrative privileges (for example on a computing cluster), type instead

<source lang="python"> cd yambopy python setup.py install --user </source>

  • [OPTIONAL] Install abipy [[1]] for band structure interpolations

<source lang="python"> pip install abipy </source>

  • Now yambopy is ready for use! Just go to tutorials folder and follow the docs!

<source lang="python"> cd tutorial/bn </source>

And go to GW tutorial. Convergence and approximations (BN) or Bethe-Salpeter equation tutorial. Optical absorption (BN).

You can find all the documentation of yambopy here http://yambopy.readthedocs.io/en/latest/index.html

Installation instructions for the hands-on of the 2020 Yambo school at ICTP, Trieste

  • Yambopy is already preinstalled in the Quantum Machine. Start the Quantum Machine and go to the tutorial folder

<source lang="python"> cd yambopy/tutorial/bn </source>

And go to GW tutorial. Convergence and approximations (BN) or Bethe-Salpeter equation tutorial. Optical absorption (BN).

You can find all the documentation of yambopy here http://yambopy.readthedocs.io/en/latest/index.html