Difference between revisions of "First steps in Yambopy"

From The Yambo Project
Jump to navigation Jump to search
Line 1: Line 1:
A typical yambo calculation proceeds as follows:
A typical yambo calculation proceeds as follows:


* Obtain the ground state proprieties from a DFT code (pw.x or abinit)
* 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)
* 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 once to complete the database
* Run yambo specifying the runlevels
* Run yambo specifying the run-levels
* Edit the yambo input file
* Edit the yambo input file
* Run yambo
* Run yambo

Revision as of 12:44, 26 April 2017

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
  • Edit the yambo input file
  • Run yambo
  • 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 read and edit yambo input files. The primary objective is to make the convergence tests easier.

A quick way to start using Yambopy is described here.

  • Enter in a node and create in the scratch a folder

<source lang="python"> ssh -Y tutoXY@cecam; ssh -Y node0XY cd /home/scratch mkdir your_name; cd your_name </source>

  • Clone yambopy from the git repository

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

  • Enter into the yambopy folder and install

<source lang="python"> cd yamboypy python setup.py install --user </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