[ase-users] ase-db calculator interface

Marcin Dulak Marcin.Dulak at fysik.dtu.dk
Thu Oct 16 00:34:10 CEST 2014


Hi,

i do this to the standard vasp interface for a single -point SCF:

class Vasp(VaspORIG):
     name = 'vasp'
     def check_state(self, atoms): return []
     def todict(self): return {}

...

    e = atoms.get_potential_energy()
    f = atoms.get_forces(apply_constraint=False)
    atoms.calc.results = {'energy': e, 'forces': f}

The same trick works for espresso and jacapo.

Best regards,

Marcin


On 10/15/2014 10:47 PM, John Kitchin wrote:
> Hi,
>
> Is the information a calculator needs to store to create entries in 
> ase.db documented anywhere? We are adding vasp calculations to a db, 
> but the entries do not have energy attributes, and I suppose it is 
> because our vasp calculator is not ase.calculator compliant ;)
>
> it looks like many other attributes are there, e.g. pbc, numbers, 
> etc... but not energy and not forces.
>
> Any hints? Thanks,
>
> John
>
> -----------------------------------
> John Kitchin
> Professor
> Doherty Hall A207F
> Department of Chemical Engineering
> Carnegie Mellon University
> Pittsburgh, PA 15213
> 412-268-7803
> http://kitchingroup.cheme.cmu.edu
>
>
>
> _______________________________________________
> ase-users mailing list
> ase-users at listserv.fysik.dtu.dk
> https://listserv.fysik.dtu.dk/mailman/listinfo/ase-users


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.fysik.dtu.dk/pipermail/ase-users/attachments/20141016/3687d128/attachment.html>


More information about the ase-users mailing list