aiida-muon
aiida-muon is allows to find candidate muon implantation sites and hyperfine field by DFT supercell relaxations and from further symmetry and kinetics analysis.
General information
Registry checks
Plugins provided
Entry points
-
muon.find_muon
class:aiida_muon.workflows.find_muon:FindMuonWorkChainWorkChain for finding candidate muon implantation sites in a crystal. The workflow proceeds through the following stages: 1. **Supercell size determination** – either uses the ``sc_matrix`` provided by the user, or calls ``IsolatedImpurityWorkChain`` to determine the minimum converged supercell automatically. 2. **Initial muon sites** – the NICHE algorithm distributes candidate muon positions on a grid over the unit cell, respecting the ``mu_spacing`` distance constraint. 3. **Supercell generation** – each starting site is embedded into a supercell. 4. **Pre-relaxation (optional)** – reduce the number of DFT calculations by first relaxing with a cheap method: - ``gamma_pre_relax=True``: Γ-point-only DFT relaxation. - ``ML_pre_relax=True``: MLIP relaxation via ``PythonJob`` (experimental). After each pre-relaxation step, a clustering pass removes duplicates before the next (more expensive) step runs. 5. **Full DFT relaxation** – one ``PwRelaxWorkChain`` per surviving supercell (skipped when ``full_dft_relax=False``). 6. **Clustering** – relaxed muon positions are grouped by spatial proximity and energy; symmetry-equivalent sites are merged. 7. **Hyperfine and dipolar fields** (magnetic materials only) – a final SCF calculation places the muon at the origin (``PwBaseWorkChain``); the contact hyperfine field is evaluated from the spin density via ``pp.x``, and the classical dipolar field is computed with ``muesr``. Monitor support --------------- When ``aiida-monitor`` is installed, the ``aiida_monitor.default_monitor`` is attached automatically to every ``PwBaseWorkChain`` relaxation step (controlled by ``activate_monitors`` in ``get_builder_from_protocol``). Additional monitors can be passed via ``monitor_entry_point_list``.
Input Required Valid types Description relaxtrue DataInputs for SCF calculations. ML_pre_relaxfalse BoolTo run ML pre-relaxation or not charge_supercellfalse Bool, NoneTypeTo run charged supercell for positive muon or not (neutral supercell) full_dft_relaxfalse BoolWhether to run full k-mesh DFT relaxation. Set to False to skip DFT relaxation entirely (e.g. when only MLIP or Gamma pre-relaxation results are needed). gamma_pre_relaxfalse BoolTo run gamma pre-relaxation or not hubbardfalse Bool, NoneTypeTo check and get Hubbard U value or not hubbard_dictfalse Dict, NoneTypeDictionary of Hubbard U values impuritysupercellconvfalse Datathe preprocess IsolatedImpurityWorkChain step, if needed. kpoints_distancefalse FloatThe minimum desired distance in 1/Å between k-points in reciprocal space. magmomfalse List, NoneTypeList of 3D magnetic moments in Bohr magneton of the corresponding input structure if magnetic metadatafalse mu_spacingfalse Float, NoneTypeMinimum distance in Angstrom between two starting muon positions generated on a grid. niche_atomfalse Str, NoneTypeChemical symbol of the impurity atom to use for muon site generation. pp_codefalse Code, NoneTypeThe pp.x code-computer for post processing only if magmom is supplied pp_metadatafalse dict, NoneTypePreferred metadata and scheduler options for pp.x pre_clusteringfalse Bool, NoneTypeWhether to analyze and recompute structures after each pre-relaxation step. For full relax, it is always reanalyzed. pseudo_familyfalse Str, NoneTypeThe label of the pseudo family pwscffalse DataInputs for final SCF calculation with the muon at the origin. qe_settingsfalse Dict, NoneTypePreferred settings for the calc, otherwise default is used sc_matrixfalse List, NoneTypeList of length 1 for supercell size spin_pol_dftfalse Bool, NoneTypeSpin-polarised DFT simulation or not structurefalse StructureData, HubbardStructureData, NoneTypeInput initial structure supercells_listfalse List, NoneTypeList of supercells to be used for the relaxation Output Required Valid types Description all_index_uuidtrue Dictall_sitestrue Dictunique_sitestrue DictUnique sites after clustering unique_sites_dipolarfalse Listunique_sites_hyperfinefalse DictExit status Message 1 The process has failed with an unspecified error. 2 The process failed with legacy failure mode. 10 The process returned an invalid output. 11 The process did not register a required output. 404 The IsolatedImpurityWorkChain subprocesses failed 405 One of the PwRelaxWorkChain subprocesses failed 406 One of the PwBaseWorkChain subprocesses failed 407 One of the PPWorkChain subprocesses failed 408 No supercells available: try to decrease mu_spacing. -
muon.fine_tuning
aiida_muon.workflows.finetuning:FineTuningWorkChain -
muon.active_learning
aiida_muon.workflows.active_learning:ActiveLearningWorkChain