Grand-canonical Monte-Carlo simulation methods for charge-decorated cluster
expansions
Fengyu Xie,∗Peichen Zhong, Luis Barroso-Luque, Bin Ouyang, and Gerbrand Ceder†
Department of Materials Science and Engineering,
University of California, Berkeley, California 94720, United States and
Materials Sciences Division, Lawrence Berkeley National Laboratory, California 94720, United States
Monte-Carlo sampling of lattice model Hamiltonians is a well-established technique in statistical
mechanics for studying the configurational entropy of crystalline materials. When species to be
distributed on the lattice model carry charge, the charge balance constraint on the overall system
prohibits single-site Metropolis exchanges in MC. In this article, we propose two methods to perform
MC sampling in the grand-canonical ensemble in the presence of a charge-balance constraint. The
table-exchange method (TE) constructs small charge-conserving excitations, and the square-charge
bias method (SCB) allows the system to temporarily drift away from charge neutrality. We illustrate
the effect of internal hyper-parameters on the efficiency of these algorithms and suggest practical
strategies on how to apply these algorithms to real applications.
INTRODUCTION
Configurational disorder is particularly important for
understanding the thermodynamic properties of materi-
als at non-zero temperatures, especially in systems com-
posed of multiple components. The cluster-expansion
(CE) method has been a successful approach to study
the statistical mechanics of configurational disorder in
solids[1–4], and has been used to calculate phase di-
agrams in alloys[5–8] and ionic solids [9–12], predict
the short-range order related properties under finite
temperatures[13–16], find the ground-state ordering in
alloys[17–22], and even compute voltage profile of bat-
tery electrode materials[23–27].
The CE model can be understood as a generalization of
the Ising model. The micro-states in a solid solution are
represented as a series of occupancy variables σ, which
denote the chemical species occupying each lattice site.
The energy of a micro-state is described as a function
of occupancy and is expanded as a sum of many-body
interactions:
E(σ) = X
β
mβJβhΦα(σ)iα∈β,(1)
where Φα’s are a set of cluster basis functions that take
as input the occupancy values of different clusters of mul-
tiple sites. The cluster basis functions are then grouped
and averaged over lattice symmetry orbits βto gener-
ate the correlation functions hΦαiα∈β; and mβis the
multiplicity of orbit βper crystallographic unit cell. The
linear-expansion coefficients Jβare called effective cluster
interactions (ECI). In a typical approach, ECIs are fitted
to the first-principles calculated energy of a large num-
ber of ordered super-cells, through a variety of suggested
procedures [28–36]. Thermodynamic quantities can be
obtained by sampling the CE energy with Monte-Carlo
simulations (CE-MC) [6, 37–39]. This workflow allows
fast statistical mechanics computation of configurational
disorder, using only a relatively small number of first-
principles calculations. More detailed descriptions of the
CE-MC method can be found in various review papers
[35, 40–44].
CE-MC can be performed in a canonical ensemble or
in a grand-canonical ensemble. In a canonical ensemble,
the configuration states are sampled with a fixed com-
position of each species. Using the Metropolis-Hastings
algorithm [45, 46], a typical Metropolis step involves the
swapping of the species occupying two randomly chosen
sites (canonical swap). In a grand-canonical ensemble,
the states are sampled under fixed chemical potentials
allowing the relative amounts of each species to vary.
A Metropolis step in the grand-canonical ensemble usu-
ally replaces the occupying species on one randomly cho-
sen site with another species (single-species exchange).
Grand canonical simulations are the preferred approach
for studying phase transition in solids, as the simulation
cell is always in a single-phase state, and phase transi-
tions are relatively easy to observe. In contrast, multiple
phases can coexist in canonical simulations, giving a dis-
proportionate influence to the interfacial energy between
phases.
Single-species exchanges can be applied without issue
when the species are all charge-neutral atoms. How-
ever, in an ionic system in which all the species carry
charge, net zero charge needs to be maintained, essen-
tially coupling allowed species exchanges. For simulating
ionic liquids, various methods have been proposed such
as: inserting and removing only charge-neutral combi-
nations of ions[47]; performing single insertion or dele-
tion while controlling the statistical average of the net
charge equal to be zero[48, 49]; or using an expanded
grand-canonical ensemble[50]. However, charge balance
in lattice-model CE-MC with arbitrary complexity has
not been addressed in the literature yet.
In this study, we introduce two CE-MC sampling meth-
ods to handle the charge-balance constraint in the grand-
canonical CE-MC for ionic systems with charge deco-
arXiv:2210.01165v1 [cond-mat.mtrl-sci] 3 Oct 2022