Theoretical prediction of the heterogeneous atomic structures in multicomponent alloys is one of the most challenging issues in materials science. Here we present a first-principles demonstration of this by constructing an on-lattice effective multibody potential model to describe the energetics of hexagonal close-packed Mg crystals containing stacking faults (SFs) with Al and Gd substitutions. Remarkably
we showed that our intuitive model can describe the segregation of solute atoms to SFs and reproduce the characteristic short-range chemical order in dilute Mg–Gd and Mg–Al–Gd systems
including long-period stacking ordered structures
in a manner consistent with recent scanning transmission electron microscopy measurements.