Difference between revisions of "First steps in Yambopy"

From The Yambo Project
Jump to navigation Jump to search
Line 1: Line 1:
Enter in a node and create in the scratch a folder
A typical yambo calculation proceeds as follows:
 
* Obtain the ground state proprieties from a DFT code (pw.x or 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 specifying the runlevels
* 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">
<source lang="python">
Line 7: Line 23:
</source>
</source>


You clone yambopy from the git repository
* Clone yambopy from the git repository


<source lang="python">
<source lang="python">
Line 13: Line 29:
</source>
</source>


You enter into the yambopy folder and install
* Enter into the yambopy folder and install


<source lang="python">
<source lang="python">
Line 20: Line 36:
</source>
</source>


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


<source lang="python">
<source lang="python">

Revision as of 12:26, 26 April 2017

A typical yambo calculation proceeds as follows:

  • Obtain the ground state proprieties from a DFT code (pw.x or 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 specifying the runlevels
  • 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