[gpaw-users] Restarting without external potential

Ask Hjorth Larsen asklarsen at gmail.com
Thu Jan 14 17:54:02 CET 2016


Dear Marko

2016-01-12 14:18 GMT+01:00 Marko Melander <marmela at dtu.dk>:
> Dear all,
>
> I have a converged calculation with an external potential. I would like to
> compute the energy without the external potential but with the wave
> function/density from the external potential calculation. Currently I am
> doing
>
> calc = GPAW('KS_with_external.gpw', external = None, fix density = True)
> atoms.set_calc(calc)
> atoms.get_potential_energy()
>
> This only returns the energy with the external potential. What would correct
> way to restart from old wave functions and get the energy without the
> external potential?

Restarting and changing parameters can unfortunately be a messy business.

A reasonable attempt to achieve the desired behaviour would be to say
calc.scf.converged = False.

Best regards
Ask

>
> Cheers,
> Marko Melander
>
> _______________________________________________
> gpaw-users mailing list
> gpaw-users at listserv.fysik.dtu.dk
> https://listserv.fysik.dtu.dk/mailman/listinfo/gpaw-users


More information about the gpaw-users mailing list