.. _AbacusSCFFormat:

abacus/scf format
=================

Aliases
-------

``abacus/lcao/scf``, ``abacus/pw/scf``, ``abacus/scf``

Implementation: :class:`AbacusSCFFormat <dpdata.plugins.abacus.AbacusSCFFormat>`

Overview
--------


ABACUS self-consistent-field calculation directory.

`ABACUS <https://abacus.ustc.edu.cn/>`_ is an open-source DFT package.
The reader combines the calculation's ``INPUT`` and ``STRU`` files with
the corresponding ``OUT.<suffix>/running_scf.log`` output and returns the
final labeled configuration.
















Quick examples
--------------

The examples use the preferred alias ``abacus/scf``; any alias listed above is equivalent.

.. code-block:: python

   import dpdata
   
   # Data with energies and forces
   labeled_system = dpdata.LabeledSystem("input_file", fmt="abacus/scf")

Conversions
-----------

.. _AbacusSCFFormat_from_labeled_system:

Convert from this format to LabeledSystem
`````````````````````````````````````````

.. py:function:: dpdata.LabeledSystem(file_name, fmt: Literal['abacus/lcao/scf'] = None, **kwargs) -> dpdata.system.LabeledSystem
   :noindex:
.. py:function:: dpdata.LabeledSystem(file_name, fmt: Literal['abacus/pw/scf'] = None, **kwargs) -> dpdata.system.LabeledSystem
   :noindex:
.. py:function:: dpdata.LabeledSystem(file_name, fmt: Literal['abacus/scf'] = None, **kwargs) -> dpdata.system.LabeledSystem
   :noindex:
.. py:function:: dpdata.LabeledSystem.from_abacus_lcao_scf(file_name, **kwargs) -> dpdata.system.LabeledSystem
   :noindex:
.. py:function:: dpdata.LabeledSystem.from_abacus_pw_scf(file_name, **kwargs) -> dpdata.system.LabeledSystem
   :noindex:
.. py:function:: dpdata.LabeledSystem.from_abacus_scf(file_name, **kwargs) -> dpdata.system.LabeledSystem
   :noindex:

   
Load an ABACUS SCF calculation.


:Parameters:

    **file_name** : str or os.PathLike
        Calculation directory containing ``INPUT``, ``STRU``, and the
        ABACUS output directory.

    **\*\*kwargs** : dict
        Additional format arguments accepted for API compatibility.



:Returns:

    LabeledSystem
        converted system













