doc/tutorialsexercises/opticalresponse/tddft/lcaotddft_Na8/td_replay.py
raw| 1 | from gpaw.lcaotddft import LCAOTDDFT |
| 2 | from gpaw.lcaotddft.dipolemomentwriter import DipoleMomentWriter |
| 3 | |
| 4 | # Read the ground-state file |
| 5 | td_calc = LCAOTDDFT('gs.gpw') |
| 6 | |
| 7 | # Attach analysis tools |
| 8 | DipoleMomentWriter(td_calc, 'dm_replayed.dat') |
| 9 | |
| 10 | # Replay the propagation |
| 11 | td_calc.replay(name='wf.ulm', update='all') |