aiida_vasp.parsers.content_parsers.outcar#
The OUTCAR parser interface.
Contains the parsing interfaces to parsevasp used to parse OUTCAR content.
Module Contents#
Classes#
The parser interface that enables parsing of |
|
Parser for processing OUTCAR generated by VASP with VTST |
Functions#
Parse the block of total forces from the OUTCAR file. |
|
Scan for NEB output in the OUTCAR content. |
API#
- class aiida_vasp.parsers.content_parsers.outcar.OutcarParser(*, handler: TextIO | BinaryIO | None = None, data: aiida.orm.Data | None = None, settings: dict[str, Any] | None = None, options: dict[str, Any] | None = None, raise_errors: bool = False)[source]#
Bases:
aiida_vasp.parsers.content_parsers.base.BaseFileParserThe parser interface that enables parsing of
OUTCARcontent.The parser is triggered by using the
elastic_moduli,magnetizationorsite-magnetizationrun_statsorrun_statusquantity keys.Initialization
- DEFAULT_SETTINGS = None#
- PARSABLE_QUANTITIES = None#
- _init_from_handler(handler: Any) None[source]#
Initialize a
parsevaspobject ofOutcarusing a file like handler.- Parameters:
handler (file-like object) – A file like object that provides the necessary
OUTCARcontent to be parsed.
- property run_status#
Fetch status of calculations.
- Returns:
A dictionary containing the keys
finished, which is True if the VASP calculation contain timing information in the end of theOUTCAR. The keyionic_convergedis True if the number of ionic steps detected is smaller than the supplied NSW. The keyelectronic_convergedis True if the number of electronic steps is smaller than NELM (defaults to 60 in VASP). It is also possible to check if all the ionic steps did reached NELM and thus did not converged if the keyconsistent_nelm_breachisTrue, whilecontains_nelm_breachis True if one or more ionic steps reached NELM and thus did not converge electronically.- Return type:
- property run_stats#
Fetch the run statistics, which included timings and memory consumption.
- Returns:
A dictionary containing timing and memory consumption information that are parsed from the end of the
OUTCARfile. The key names are mostly preserved, except for the memory which is prefixed withmem_usage_. Units are preserved fromOUTCARand there are some differences between VASP 5 and 6.- Return type:
- property symmetries#
Fetch some basic symmetry data.
- Returns:
A dictionary containing the number of space group operations in the key
num_space_group_operationsand the detected supplied cell inoriginal_cell_type. Insymmetrized_cell_typethe cell on which VASP performs the calculation has been included. Each value in the dictionary is a list, where each entry represent one ionic step.- Return type:
- property elastic_moduli#
Fetch the elastic moduli tensor.
- Returns:
A dictionary containing ndarrays with the rigid ion elastic moduli, both symmetrized and non-symmetrized for the keys
symmetrizedandnon_symmetrizedrespectively. The keytotalcontain both the rigid ion and the ionic contributions to the elastic tensor for the symmetrized case.- Return type:
- property site_magnetization#
Fetch the site dependent magnetization.
- Returns:
A dictionary containing the key
spherewhich contains the integrated magnetization in units of Bohr magneton. Additional keys undersphereare given for each direction and for non-collinear calculations all of them are used. Thesite_momentyields the magnetization per site, with a key describing the site number and then thes,p,detc. the projections of the site magnetization andtotcontaining the total magnetization for that site. Thetotal_magnetizationgives the sum of each magnetization projection and magnetization total for each site. Thefull_cellkey yields the magnetization from the electronic part of the last electronic step in a list.- Return type:
- class aiida_vasp.parsers.content_parsers.outcar.VtstNebOutcarParser(*args, **kwargs)[source]#
Bases:
aiida_vasp.parsers.content_parsers.outcar.OutcarParserParser for processing OUTCAR generated by VASP with VTST
Initialization
Instantiate the parser.
- DEFAULT_SETTINGS = None#
- PARSABLE_QUANTITIES = None#
- property neb_data#
Parsed NEB results
- property forces#
Parsed forces
- property outcar_positions#
Parsed positions
- property outcar_cell#
Parsed cell vectors
- property total_energies#
Parsed total energies
- aiida_vasp.parsers.content_parsers.outcar._parse_force_block(lines: List[str]) Tuple[List[List[float]], List[List[float]]][source]#
Parse the block of total forces from the OUTCAR file.