2
1. Introduction
Surface science is essential to understand and
predict many physical phenomena including
heterogeneous catalysis [1, 2], photo-catalysis
[3, 4], material interfaces [5, 6], and optical
properties [7, 8]. Surface science is also
crucial to study the shape and properties
of nanocrystals [9], which are essential to
quantum dot applications [10, 11], and 2D
materials, exhibiting exceptional electrical,
optical and mechanical properties [12, 13].
Beyond physical chemistry, surface science
also plays a crucial role in biomedical [14]
and bioengineering [15] applications, and
dictates crystal growth [16], which is known
to affect, for instance, the performance of
high explosives [17, 18]. Moreover, in all
applications where the material exhibits a
high surface to volume ratio, the properties
of the surface (exposed crystal faces) largely
determine the properties of the material.
Despite the progress of characterization
techniques, simulations remain a fundamen-
tal part of surface science, either to comple-
ment [19] or fully predict [20, 21] the proper-
ties of surfaces, interfaces, and nanoparticles.
Electronic transport, optical properties, and
even surface reconstructions can be a signifi-
cant challenge for empirical models and, in or-
der to perform these simulations, ab initio level
of theory is often required due to the complex-
ity of the phenomena involved [22]. In most
cases, the first step involved in these calcula-
tions will involve building a model crystal slab,
which should obey the following constraints:
the system must give us access to the surfaces
of interest to the particular problem, it must
be periodic in all other directions, and, in order
to improve computational efficiency, it must be
as small as possible (electronic structure cal-
culations are usually performed on hundreds
to a few thousands atoms, at most). This
results in a crystal-based parallelepiped with
planes that are not necessarily orthogonal to
each other since, in the general case, the unit
cell is triclinic (i.e. the lattice vectors are non-
orthogonal to each other with differing lengths
and angles to one another).
In order to study crystal surfaces with
quantum chemistry methods, it is often
necessary to have a crystal slab cut through
planes that expose the face one wants to study
and that also satisfies the periodic boundary
conditions (PBCs) imposed by the crystal
unit cell. A typical minimalistic system is
depicted in Figure 1. This is a z−axis view
of a 3 ×3×3 = 27 monoclinical unit cell
system showing the slab PBC vectors. In
this case the p2vector was enlarged in order
to have some vacuum that could expose the
surface of interest. At first, this system
may not seem complicated as it can be
easily built with an ad-hoc procedure using
an off-the-shelf molecular visualization tool.
There are however, many cases in which
building such a system in this way could
turn into a complicated and time consuming
endeavor. Triclinic unit cells exposing some
crystal face with large Miller indices fall
within this category. Moreover, a lot of time
and effort is consumed when errors in the
simulations arise due to an ill-chosen system
slab. How do we then proceed to construct
any desired crystallographic system by just
knowing the basic crystallographic data? In
this article, we explain a method based on
purely algebraic/geometrical transformations
that leads to a sufficiently small crystal slab
exposing the desired crystal faces. We would
like to offer a detailed and simple step-by-step
procedure that the reader could fully code up
on their own. Moreover, the method developed
in this paper can also be used to construct