|
| 1 | +.. _sssec-gpaw: |
| 2 | + |
| 3 | +Input GPAW |
| 4 | +++++++++++ |
| 5 | + |
| 6 | +The :class:`GPAWInputGenerator <dftinputgen.gpaw.GPAWInputGenerator>` class |
| 7 | +(derived from :class:`DftInputGenerator <dftinputgen.base.DftInputGenerator>`) |
| 8 | +implements functionality to generate python scripts for the `GPAW`_ |
| 9 | +package. |
| 10 | + |
| 11 | +Python scripts are written that use `ASE`_ with GPAW specified via a |
| 12 | +calculator object. This calculator object is where all settings for |
| 13 | +the DFT calculation is given. An example of the calculator object |
| 14 | +that is automatically written is given below. |
| 15 | + |
| 16 | +.. code-block:: python |
| 17 | +
|
| 18 | + slab.calc = GPAW( |
| 19 | + h=0.16, |
| 20 | + kpts={'size': [4, 4, 1]}, |
| 21 | + occupations={'name': 'fermi-dirac', 'width': 0.05}, |
| 22 | + poissonsolver={'dipolelayer': 'xy'}, |
| 23 | + xc='BEEF-vdW' |
| 24 | + ) |
| 25 | +
|
| 26 | +For each calculator setting, a list of valid parameters is looked up from |
| 27 | +a ``GPAW_TAGS`` dictionary which is then defined within the written |
| 28 | +calculator object (more information about the valid calculator parameters |
| 29 | +and defaults provided as ``calculation_presets`` is :ref:`here |
| 30 | +<sssec-gpaw-input-settings>`). |
| 31 | + |
| 32 | +Currently supported calculations include relaxations, bulk optimizations, |
| 33 | +and total energy. |
| 34 | + |
| 35 | +**Note:** The scripts are written assuming that the crystal structure |
| 36 | +is stored in an `ASE readable format`_ (e.g. traj, cif, etc..) with |
| 37 | +the desired initial magnetic moments defined. |
| 38 | + |
| 39 | +.. _`GPAW`: https://wiki.fysik.dtu.dk/gpaw/index.html |
| 40 | +.. _`ASE`: https://wiki.fysik.dtu.dk/ase/ |
| 41 | +.. _`ASE readable format`: https://wiki.fysik.dtu.dk/ase/ase/io/io.html |
| 42 | + |
| 43 | +Interfaces |
| 44 | +========== |
| 45 | + |
| 46 | +.. automodule:: dftinputgen.gpaw.gpaw |
| 47 | + :members: |
| 48 | + :inherited-members: |
| 49 | + :undoc-members: |
0 commit comments