pyiron_atomistics.vasp.vasprun.Vasprun#
- class pyiron_atomistics.vasp.vasprun.Vasprun[source]#
Bases:
VasprunMethods
__init__()from_file([filename])Parsing vasprun.xml from the working directory
get_electronic_structure([es_class])Get's the electronic structure from the VASP calculation
Gets the final structure from the simulation
Gets the initial structure from the simulation :returns: The initial structure :rtype: pyiron.atomistics.structure.atoms.Atoms
Gets the input from the vasp potentiostat output and stores it using intuitive names
Gets the number of valence electrons for each atom in the final structure
parse_atom_information_to_dict(node, d)Parses atom information from a node to a dictionary
parse_calc_to_dict(node, d)Parses ionic step data from a node to a dictionary
parse_cce_to_dict(node, d)parse_eigenvalues_to_dict(node, d)Parses eigenvalue and occupancy data from a node to a dictionary
parse_fermi_level_to_dict(node, d)Parses fermi level from a node to a dictionary
parse_item_to_dict(node, d)Parses values from an item to a dictionary
parse_kpoints_to_dict(node, d)Parses k-points data from a node to a dictionary
parse_parameters(node, d)Parses parameter data from a node to a dictionary
parse_partial_dos_to_dict(node, d)Parses partial dos data from a node to a dictionary
parse_projected_dos_to_dict(node, d)Parses partial dos data from a node to a dictionary
parse_recursively(node, d[, key_name])Parses recursively from a node to a dictionary
parse_root_to_dict(filename)Parses from the main xml root.
parse_scf(node)Parses the total energy and dipole moments for a VASP calculation
parse_structure_to_dict(node, d)Parses structure from a node to a dictionary
parse_total_dos_to_dict(node, d)Parses total dos data from a node to a dictionary
- from_file(filename: str = 'vasprun.xml')[source]#
Parsing vasprun.xml from the working directory
- Parameters:
filename (str) – Path to the vasprun file
- get_electronic_structure(es_class=<class 'vaspparser.dft.waves.electronic.ElectronicStructure'>)[source]#
Get’s the electronic structure from the VASP calculation
- Returns:
The electronic structure object
- Return type:
pyiron.atomistics.waves.electronic.ElectronicStructure
- get_final_structure()[source]#
Gets the final structure from the simulation
- Returns:
The final structure
- Return type:
pyiron.atomistics.structure.atoms.Atoms
- get_initial_structure()[source]#
Gets the initial structure from the simulation :returns: The initial structure :rtype: pyiron.atomistics.structure.atoms.Atoms
- get_potentiostat_output()[source]#
Gets the input from the vasp potentiostat output and stores it using intuitive names
- Returns:
Dictionary with potentiostat output
- Return type:
dict/None
- get_valence_electrons_per_atom()[source]#
Gets the number of valence electrons for each atom in the final structure
- Returns:
Array of valence charges
- Return type:
numpy.ndarray
- parse_atom_information_to_dict(node, d)[source]#
Parses atom information from a node to a dictionary
- Parameters:
node (xml.etree.Element instance) – The node to parse
d (dict) – The dictionary to which data is to be parsed
- parse_calc_to_dict(node, d)[source]#
Parses ionic step data from a node to a dictionary
- Parameters:
node (xml.etree.Element instance) – The node to parse
d (dict) – The dictionary to which data is to be parsed
- parse_eigenvalues_to_dict(node, d)[source]#
Parses eigenvalue and occupancy data from a node to a dictionary
- Parameters:
node (xml.etree.Element instance) – The node to parse
d (dict) – The dictionary to which data is to be parsed
- parse_fermi_level_to_dict(node, d)[source]#
Parses fermi level from a node to a dictionary
- Parameters:
node (xml.etree.Element instance) – The node to parse
d (dict) – The dictionary to which data is to be parsed
- static parse_item_to_dict(node, d)[source]#
Parses values from an item to a dictionary
- Parameters:
node (etree.Element instance) – Node to be parsed
d (dict) – The dictionary to which data is to be parsed
- Returns:
d (dictionary)
- parse_kpoints_to_dict(node, d: dict)[source]#
Parses k-points data from a node to a dictionary
- Parameters:
node (xml.etree.Element instance) – The node to parse
d (dict) – The dictionary to which data is to be parsed
- parse_parameters(node, d)[source]#
Parses parameter data from a node to a dictionary
- Parameters:
node (xml.etree.Element instance) – The node to parse
d (dict) – The dictionary to which data is to be parsed
- parse_partial_dos_to_dict(node, d)[source]#
Parses partial dos data from a node to a dictionary
- Parameters:
node (xml.etree.Element instance) – The node to parse
d (dict) – The dictionary to which data is to be parsed
- parse_projected_dos_to_dict(node, d)[source]#
Parses partial dos data from a node to a dictionary
- Parameters:
node (xml.etree.Element instance) – The node to parse
d (dict) – The dictionary to which data is to be parsed
- parse_recursively(node, d, key_name=None)[source]#
Parses recursively from a node to a dictionary
- Parameters:
node (xml.etree.Element instance) – The node to parse
d (dict) – The dictionary to which data is to be parsed
key_name (str) – Forcefully assign a key name in case it is not present in the xml file
- parse_scf(node)[source]#
Parses the total energy and dipole moments for a VASP calculation
- Parameters:
node – (xml.etree.Element instance): The node to parse
- Returns:
Dictionary to containing parsed data
- Return type:
d (dict)