-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: add nearest neighbours analysis (#53)
Some structures may have onsite atoms of the same specie but with different nearest neighbours (e.g. Fe3O4). The hp.x code can handle this only by specifying a maximum radius, within which one can find the desired neighbours. Still, this is not yet sufficient, as the radius might change during relaxation. To solve this: 1. The self-consistent workflow now checks the maximum number of nearest neighbours using a Voronoi alrogithrm, as implemented in Pymatgen, and defines the hp.x inputs so to print all the possible intersites couples up to a maximum radius. This radius corresponds to the maximum radius where the Voronoi algorithm looks for. 2. The parser is then instructed to only keep the interactions that were defined in the initial HubbardStructureData. This is useful in case the actual first neighbours are different then the "activated" intersite interactions, and the HUBBARD.dat cannot be parsed blindly. This methodology allows for having a more consistent definition and parsing of the nearest neighbours using Voronoi tessellation.
- Loading branch information
Showing
16 changed files
with
6,114 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
data_image0 | ||
_chemical_formula_structural MnCoS | ||
_chemical_formula_sum "Mn1 Co1 S1" | ||
_cell_length_a 4.02254 | ||
_cell_length_b 4.02254 | ||
_cell_length_c 4.02254 | ||
_cell_angle_alpha 60 | ||
_cell_angle_beta 60 | ||
_cell_angle_gamma 60 | ||
|
||
_space_group_name_H-M_alt "P 1" | ||
_space_group_IT_number 1 | ||
|
||
loop_ | ||
_space_group_symop_operation_xyz | ||
'x, y, z' | ||
|
||
loop_ | ||
_atom_site_type_symbol | ||
_atom_site_label | ||
_atom_site_symmetry_multiplicity | ||
_atom_site_fract_x | ||
_atom_site_fract_y | ||
_atom_site_fract_z | ||
_atom_site_occupancy | ||
Mn Mn1 1.0 0.00000 0.00000 0.00000 1.0000 | ||
Co Co1 1.0 0.75000 0.75000 0.75000 1.0000 | ||
S S1 1.0 0.50000 0.50000 0.50000 1.0000 |
24 changes: 24 additions & 0 deletions
24
tests/parsers/fixtures/hp/voronoi_hubbard_structure/HUBBARD.dat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Copy this data in the pw.x input file for DFT+Hubbard calculations | ||
HUBBARD {ortho-atomic} | ||
V Mn-3d Mn-3d 1 1 5.3443 | ||
V Mn-3d Co-3d 1 14 0.4967 | ||
V Mn-3d Co-3d 1 8 0.4967 | ||
V Mn-3d Co-3d 1 5 0.4967 | ||
V Mn-3d Co-3d 1 32 0.4967 | ||
V Mn-3d S-3p 1 42 0.0256 | ||
V Mn-3d S-3p 1 36 0.0256 | ||
V Mn-3d S-3p 1 18 0.0256 | ||
V Mn-3d S-3p 1 33 0.0256 | ||
V Mn-3d S-3p 1 15 0.0256 | ||
V Mn-3d S-3p 1 9 0.0256 | ||
V Co-3d Co-3d 2 2 6.6772 | ||
V Co-3d Mn-3d 2 79 0.4967 | ||
V Co-3d S-3p 2 45 0.1165 | ||
V Co-3d S-3p 2 69 0.1165 | ||
V Co-3d S-3p 2 51 0.1165 | ||
V Co-3d Mn-3d 2 76 0.4967 | ||
V Co-3d Mn-3d 2 70 0.4967 | ||
V Co-3d Mn-3d 2 52 0.4967 | ||
V Co-3d S-3p 2 3 0.1165 | ||
V Co-3d Co-3d 2 17 0.0948 | ||
V Co-3d Co-3d 2 44 0.0948 |
Oops, something went wrong.