Papers
Topics
Authors
Recent
Search
2000 character limit reached

FindMuonWorkchain: Automated DFT+μ Workflow

Updated 29 May 2026
  • FindMuonWorkchain is an automated workflow for first-principles muon site exploration using DFT+μ, incorporating candidate generation, optimization, and field evaluation.
  • It integrates supercell convergence and symmetry analysis to filter and cluster candidate muon stopping sites with accurate dipolar and hyperfine field calculations.
  • Leveraging Quantum ESPRESSO and MUESR, the workflow provides reproducible μSR predictions validated against benchmark experiments across diverse material systems.

FindMuonWorkchain is a top-level automated AiiDA workflow for performing first-principles muon site finding and interaction calculations using the DFT+μ\mu framework, as described and implemented by Onuorah et al. (Onuorah et al., 2024). It operationalizes the strategy of modeling the muon as a hydrogen impurity in density functional theory and encompasses the generation, relaxation, and post-processing of candidate muon stopping sites in arbitrary host materials, automating the complex sequence required for quantitative muon spin spectroscopy calculations.

1. Workflow Architecture and Stepwise Execution

FindMuonWorkchain is implemented within the aiida-muon plugin and coordinates the end-to-end DFT+μ\mu protocol. The high-level orchestration involves two major components: supercell convergence (IsolatedImpurityWorkChain, imported from aiida-impuritysupercellconv) and muon site search, relaxation, and interaction evaluation (in FindMuonWorkchain proper).

The workflow executes as a seven-step pipeline:

  1. Initial Position Generation: N0N_0 candidate interstitial muon positions are generated in the primitive cell using a regular grid scheme with user-customizable spacing dud_u (default: 1 A˚1\ \text{\AA}). Points within 1 A˚1\ \text{\AA} of any host atom are discarded, and space-group symmetry analysis removes redundancies, yielding distinct starting sites.
  2. Supercell Convergence: If not specified, IsolatedImpurityWorkChain is invoked to determine the minimal supercell size that renders boundary forces from the inserted muon negligible, using a force-difference recipe with a typical threshold AF=1×103A_F = 1\times10^{-3} Ry/Bohr (0.0257\approx 0.0257 eV/\AA).
  3. Structure Preparation and Relaxation: For each candidate site, a supercell is constructed and a H pseudopotential is placed at the specified fractional coordinate. Full structural relaxation—using aiida-quantumespresso’s PwBaseWorkChain or PwRelaxWorkChain—is performed for each initial configuration.
  4. Relaxation Filtering: If fewer than 60%60\% of relaxations converge, the protocol aborts.
  5. Site Clustering and Symmetry Analysis: Relaxed structures are analyzed to identify symmetry-inequivalent muon sites based on distance (AdA_d, μ\mu0) and energy (μ\mu1, μ\mu2 eV) tolerances, with additional magnetic-symmetry expansion for magnetic hosts.
  6. Spin-Polarized SCF and Contact Field Evaluation (Optional): Spin-polarized self-consistent runs are performed for each unique relaxed configuration, extracting the Fermi-contact field μ\mu3 from the computed spin density.
  7. Dipolar Field Calculation: The classical dipolar field μ\mu4 at each site is computed via MUESR code, using a Lorentz-sphere summation of host nuclear or electronic moments.

All outputs—including relaxed supercell structures, total energies μ\mu5, energy differences μ\mu6, Fermi-contact fields μ\mu7, dipolar fields μ\mu8, and combined internal fields μ\mu9—are persisted in the AiiDA database (Onuorah et al., 2024).

2. Algorithms for Muon Site Identification and Supercell Convergence

Candidate muon sites are generated on a uniform grid: for lattice vectors N0N_00 and grid spacing N0N_01, the number of points along direction N0N_02 is N0N_03. Site exclusion proceeds by removing points within N0N_04 of any host atom, and symmetry reduction is performed with space-group analysis, resulting in N0N_05 inequivalent candidates.

Supercell convergence is ensured via the IsolatedImpurityWorkChain. The method iteratively increases the supercell size until the muon-induced force perturbation at the boundary (modeled using a H pseudopotential at a generic interstitial) drops below N0N_06. At each iteration, the procedure:

  • Inserts a H atom at a selected interstitial site.
  • Calculates forces with and without the impurity by DFT-SCF.
  • Fits the force difference N0N_07 vs. distance to an exponential decay, N0N_08.
  • Accepts the supercell if the maximum remaining N0N_09 and the maximal boundary distance exceeds dud_u0.

If convergence is not achieved within dud_u1, the workflow exits with an explicit error (Onuorah et al., 2024).

3. Computational Settings and Site Post-processing

The workchain employs Quantum ESPRESSO via aiida-quantumespresso for all DFT tasks. Pseudopotential selection defaults to SSSP PBE efficiency v1.3, with typical planewave cutoffs of 60 Ry (PW) and 480 Ry (charge). The dud_u2-point mesh spacing defaults to dud_u3 and smearing is Gaussian with dud_u4 Ry. Relaxations proceed until all atomic forces are less than dud_u5 Ry/Bohr; SCF energy convergence is set to dud_u6 Ry.

Site clustering reflects a multi-stage protocol:

  • Pairs of sites within dud_u7 and dud_u8 are reduced, keeping the lower-energy configuration.
  • Pymatgen’s SpacegroupAnalyzer distinguishes crystal symmetry-equivalent sites within dud_u9 (1 A˚1\ \text{\AA}0) and 1 A˚1\ \text{\AA}1 (1 A˚1\ \text{\AA}2 eV).
  • For magnetic hosts, candidate sites are expanded over the magnetic supercell, with re-queueing of missing inequivalent relaxations.

4. Interaction Calculations: Dipolar and Hyperfine Fields

FindMuonWorkchain supports rigorous evaluation of both classical dipolar and electronic hyperfine fields at muon sites.

  • Dipolar Field: For 1 A˚1\ \text{\AA}3 host magnetic moments 1 A˚1\ \text{\AA}4, the classical dipolar field at the muon site 1 A˚1\ \text{\AA}5 is:

1 A˚1\ \text{\AA}6

where 1 A˚1\ \text{\AA}7 is the displacement vector from the muon to each 1 A˚1\ \text{\AA}8. Implementation utilizes MUESR for a Lorentz-sphere summation over all relevant moments.

  • Fermi-Contact (Isotropic Hyperfine) Field: The Fermi-contact field is extracted as:

1 A˚1\ \text{\AA}9

where 1 A˚1\ \text{\AA}0 is the spin density at the muon site.

  • Anisotropic Hyperfine Tensor: Although the full tensor is not exhaustively implemented in the primary workflow, its DFT expression is:

1 A˚1\ \text{\AA}1

This suggests potential extension of the workflow to include full tensor evaluation when required.

5. Input Schema, Software Infrastructure, and Example Invocation

Core inputs to FindMuonWorkchain are provided as Python data objects:

  • structure (AiiDA StructureData, e.g., from CIF)
  • magnetic_structure (optional, mCIF or AiiDA MagneticStructureData)
  • du (float, grid spacing, default 1 A˚1\ \text{\AA}2)
  • charged_supercell (Bool: charged or neutral muon)
  • hubbard and custom_hubbard (Bool and Dict: DFT+U control and manual 1 A˚1\ \text{\AA}3 values)
  • Code labels for Quantum ESPRESSO (pw.x) and MUESR

The workchain interfaces with three main AiiDA computational elements:

Plugin/WorkChain Role Key Inputs/Outputs
IsolatedImpurityWorkChain Supercell convergence structure, force threshold 1 A˚1\ \text{\AA}4 SC, matrix
PwBaseWorkChain / PwRelaxWC DFT structural relaxation SC structure, pseudo, cutoffs 1 A˚1\ \text{\AA}5 energies, forces
calcfunction muesr_dipolar Dipolar field evaluation relaxed structure, mag. config 1 A˚1\ \text{\AA}6 1 A˚1\ \text{\AA}7

Editor's term: "SC" = supercell; "PW" = plane wave.

Typical user invocation can occur in Python: AdA_d2 or from the command line: AdA_d3 (Onuorah et al., 2024)

6. Validation and Performance Across Test Cases

Validation is performed on diverse material prototypes:

  • LiF and bcc Fe: The force-difference protocol reproduces benchmark supercell choices (1 A˚1\ \text{\AA}8 for LiF, 1 A˚1\ \text{\AA}9 for Fe), in line with hyperfine-convergence tests.
  • CaFAF=1×103A_F = 1\times10^{-3}0 (charged vs neutral): For MuAF=1×103A_F = 1\times10^{-3}1, the linear F–MuAF=1×103A_F = 1\times10^{-3}2–F state (bond length AF=1×103A_F = 1\times10^{-3}3) emerges as lowest energy in a AF=1×103A_F = 1\times10^{-3}4 SC. Neutral MuAF=1×103A_F = 1\times10^{-3}5 converges to the cubic void center in AF=1×103A_F = 1\times10^{-3}6 SC. Displacement patterns match prior DFT+AF=1×103A_F = 1\times10^{-3}7 without ZPM correction.
  • LaAF=1×103A_F = 1\times10^{-3}8NiOAF=1×103A_F = 1\times10^{-3}9 (AFM insulator): 0.0257\approx 0.02570 SC, 0.0257\approx 0.02571 yields 52 initial sites; 0.0257\approx 0.02572 eV. Four muon–O bound sites (two apical, two planar) are recovered. Dipolar fields at apical sites (0.0257\approx 0.02573 mT, 0.0257\approx 0.02574 mT) closely match experiment (0.0257\approx 0.02575 mT, 0.0257\approx 0.02576 mT); the contact term is negligible. Demonstrates necessity for DFT+U in gap formation and 0.0257\approx 0.02577 localization on Ni.
  • AV0.0257\approx 0.02578Sb0.0257\approx 0.02579 Kagome metals: Identical 60%60\%0 supercells for K, Rb, and Cs hosts. The site p1 (between A and Sb layers) best models the Kubo–Toyabe ZF-60%60\%1SR depolarization, as judged by second-moment 60%60\%2 calculations.
  • LaCoPO (FM metal): 60%60\%3 SC, 60%60\%4(Co) 60%60\%5 eV, 20 initial positions yield four candidates. Site p1 (60%60\%6 from P) is lowest energy, 60%60\%7 mT (rescaled to 60%60\%8 mT via 60%60\%9). Highlights partial self-consistency effects for itinerant magnets (Onuorah et al., 2024).

7. Significance and Context in Computational Muon Spectroscopy

FindMuonWorkchain enables automated, reproducible DFT+AdA_d0 workflows for the computational quantification of muon stopping sites and their local fields, systematically linking experiment to first principles. A key advance is the fully automated supercell convergence, symmetry-aware clustering, and robust post-processing of nuclear and electronic fields at muon sites. This protocol extends compatibility to a wide variety of hosts, including complex insulators, metals, magnetic and nonmagnetic materials, providing direct validation against experimental AdA_d1SR data. As such, it constitutes a core digital infrastructure for computational muon spin spectroscopy (Onuorah et al., 2024).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to FindMuonWorkchain.