Skip to content

Commit

Permalink
Band structure verification workflow and tidy standard structure coll…
Browse files Browse the repository at this point in the history
…ecting function
  • Loading branch information
unkcpz committed Jun 18, 2024
1 parent d5c3c88 commit 4017490
Show file tree
Hide file tree
Showing 19 changed files with 1,070 additions and 401 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ aiida-sssp-workflow = "aiida_sssp_workflow.cli:cmd_root"

[project.entry-points."aiida.workflows"]
"sssp_workflow.measure.transferability" = "aiida_sssp_workflow.workflows.measure.transferability:EOSTransferabilityWorkChain"
"sssp_workflow.measure_bands" = "aiida_sssp_workflow.workflows.measure.bands:BandsMeasureWorkChain"
"sssp_workflow.measure.bands" = "aiida_sssp_workflow.workflows.measure.bands:BandStructureWorkChain"
"sssp_workflow.convergence.caching" = "aiida_sssp_workflow.workflows.convergence.caching:_CachingConvergenceWorkChain"
"sssp_workflow.convergence.eos" = "aiida_sssp_workflow.workflows.convergence.eos:ConvergenceEOSWorkChain"
"sssp_workflow.convergence.cohesive_energy" = "aiida_sssp_workflow.workflows.convergence.cohesive_energy:ConvergenceCohesiveEnergyWorkChain"
Expand Down
14 changes: 7 additions & 7 deletions src/aiida_sssp_workflow/protocol/bands.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ balanced:
occupations: smearing
degauss: 0.02
smearing: cold
conv_thr_per_atom: 1.0e-10
kpoints_distance_scf: 0.2
kpoints_distance_bands: 0.2
kpoints_distance_band_structure: 0.025
mixing_beta: 0.4
conv_thr_per_atom: 1.0e-8
kpoints_distance: 0.2
kpoints_distance_bs: 0.025

init_nbands_factor: 5
fermi_shift: 15.0
Expand All @@ -21,10 +21,10 @@ test:
occupations: smearing
degauss: 0.0045
smearing: fd
mixing_beta: 0.4
conv_thr_per_atom: 1.0e-6
kpoints_distance_scf: 0.25
kpoints_distance_bands: 0.25
kpoints_distance_band_structure: 0.10
kpoints_distance: 0.25
kpoints_distance_bs: 0.10

init_nbands_factor: 3
fermi_shift: 10.0
100 changes: 6 additions & 94 deletions src/aiida_sssp_workflow/statics/generatemapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,103 +8,12 @@
ACTINIDE_ELEMENTS,
LANTHANIDE_ELEMENTS,
NO_GS_CONF_ELEMENTS,
ALL_ELEMENTS,
UNSUPPORTED_ELEMENTS,
)

MAPPING_FILE_PATH = Path(__file__).parent / "structures" / "mapping.json"

ALL_ELEMENTS = (
[
"Ag",
"Al",
"Ar",
"As",
"At",
"Au",
"Ba",
"Be",
"B",
"Bi",
"Br",
"Ca",
"Cd",
"Ce",
"C",
"Cl",
"Co",
"Cr",
"Cs",
"Cu",
"Dy",
"Er",
"Eu",
"Fe",
"F",
"Ga",
"Gd",
"Ge",
"He",
"Hf",
"H",
"Hg",
"Ho",
"I",
"In",
"Ir",
"K",
"Kr",
"La",
"Li",
"Lu",
"Mg",
"Mn",
"Mo",
"Na",
"Nb",
"Nd",
"Ne",
"N",
"Ni",
"O",
"Os",
"Pb",
"Pd",
"P",
"Pm",
"Po",
"Pr",
"Pt",
"Rb",
"Re",
"Rh",
"Rn",
"Ru",
"Sb",
"Sc",
"Se",
"S",
"Si",
"Sm",
"Sn",
"Sr",
"Ta",
"Tb",
"Tc",
"Te",
"Ti",
"Tl",
"Tm",
"V",
"W",
"Xe",
"Yb",
"Y",
"Zn",
"Zr",
]
+ ACTINIDE_ELEMENTS
+ NO_GS_CONF_ELEMENTS
)


def run():
d = {}
Expand All @@ -115,7 +24,10 @@ def run():
# We use DC (Diamond Cubic) for the convergence test for all elements.
# Because it usually give the lagrest cutoff energy, which is the most strict test.
for e in ALL_ELEMENTS:
if e in NO_GS_CONF_ELEMENTS:
if e in UNSUPPORTED_ELEMENTS:
band_configuration = "N/A"
convergence_configuration = "N/A"
elif e in NO_GS_CONF_ELEMENTS:
# we don't have At in typical
band_configuration = "DC"
convergence_configuration = "DC"
Expand Down
Loading

0 comments on commit 4017490

Please sign in to comment.