aiida_hubbard.calculations.functions.structure_relabel_kinds#
Calculation function to relabel the kinds of a Hubbard structure.
Module Contents#
Functions#
|
Create a clone of the given structure but with new kinds, based on the new hubbard sites. |
|
Return a relabelled symbol. |
- aiida_hubbard.calculations.functions.structure_relabel_kinds.structure_relabel_kinds(hubbard_structure: aiida_quantumespresso.data.hubbard_structure.HubbardStructureData, hubbard: aiida.orm.Dict, magnetization: dict | None = None) aiida.orm.Dict[source]#
Create a clone of the given structure but with new kinds, based on the new hubbard sites.
- Parameters:
hubbard_structure –
HubbardStructureDatainstance.hubbard – the
hubbardoutput Dict node of aHpCalculation.magnetization – Dict instance containing the starting_magnetization QuantumESPRESSO inputs.
- Returns:
dict with keys:
hubbard_structure: relabelledHubbardStructureDatastarting_magnetization: updated magnetization asDict(if provided in inputs)
- aiida_hubbard.calculations.functions.structure_relabel_kinds.get_relabelled_symbol(symbol: str, counter: int) str[source]#
Return a relabelled symbol.
Warning
this function produces up to 36 different chemical symbols.
- Parameters:
symbol – a chemical symbol, NOT a kind name
counter – a integer to assing the new label. Up to 9 an interger is appended, while an ascii uppercase letter is used. Lower cases are discarded to avoid possible misleading names
- Returns:
a 3 digit length symbol (QuantumESPRESSO allows only up to 3)