[ase-users] [ase-developers] vasp calculator in ase

John Kitchin jkitchin at andrew.cmu.edu
Fri Mar 14 14:58:59 CET 2014


auto in this case must be a string, like lreal = 'Auto'. This is a python
script, and the way you have typed it python expects auto to be a variable
that was previously defined.

The way to use any of the keywords in  vasp.py  is to use them as named
arguments in the calc = Vasp() code as you did above. vasp.py will indicate
whether you should use an integer, float, string, boolean, list or
dictionary as the value of the argument.

John

-----------------------------------
John Kitchin
Associate Professor
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
http://kitchingroup.cheme.cmu.edu



On Thu, Mar 13, 2014 at 2:00 PM, Chaudhry, Anurag <anurag.chaudhry at intel.com
> wrote:

>  Hello All,
>
>
>
> At the moment ASE documentation for VASP calculator (
> https://wiki.fysik.dtu.dk/ase/ase/calculators/vasp.html#module-vasp)
> lists some keywords specific to VASP calculations.  However the list does
> not contain many of the incar keywords recognized by vasp.  For example, to
> run a hybrid functional calculation in vasp there are a bunch of incar
> keywords documented in the vasp manual but none of them is listed on the
> ASE documentation.  How to set those keywords while invoking the vasp
> calculator from ASE ?
>
>
>
> I saw the vasp.py file in the <calculator> folder and it does recognize an
> extensive list of vasp keywords but I am not sure how to access them.
>
>
>
> To give an example of simple case which fails.  I tried vasp_co.py
> testcase bundled with ase (../ase/test/vasp/) and simply added the keyword
> "lreal=auto" while invoking the vasp calculator but I get an error.
>
>
>
> > python vasp_co.py
>
> Traceback (most recent call last):
>
>   File "vasp_co.py", line 30, in <module>
>
>     lreal=auto,
>
> NameError: name 'auto' is not defined
>
>
>
> Below is how I edited the section of vasp calculator :
>
> calc = Vasp(
>
>             xc = 'PBE',
>
>             prec = 'Low',
>
>             algo = 'Fast',
>
>             lreal = Auto
>
>             ismear= 0,
>
>             sigma = 1.,
>
>             istart = 0,
>
>             lwave = False,
>
>             lcharg = False)
>
>
>
> Any suggestions/comment welcome.
>
>
>
> Thank you.
>
> Anurag
>
>
>
>
>
> _______________________________________________
> ase-developers mailing list
> ase-developers at listserv.fysik.dtu.dk
> https://listserv.fysik.dtu.dk/mailman/listinfo/ase-developers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.fysik.dtu.dk/pipermail/ase-users/attachments/20140314/00ec3033/attachment.html>


More information about the ase-users mailing list