Skip to Content
CrystalsCrystals
  • Article
  • Open Access

9 September 2026

15 Pages

Classification of 2D-GIWAXS Images of Highly Textured Molecular Thin Films Towards Indexation: Triclinic Lattices

1
Materials Science and Engineering Program and Center for Advanced Microelectronics Manufacturing, Binghamton University, Binghamton, NY 13902, USA
2
R. F. Smith School of Chemical and Biomolecular Engineering, Cornell University, Ithaca, NY 14853, USA
This article belongs to the Special Issue Crystals: 15th Anniversary

Abstract

Low-symmetry triclinic lattices, as formed by molecular thin films, are conveniently characterized by grazing-incidence wide-angle X-ray scattering (GIWAXS). These films are often highly textured with a specific crystallographic plane ( H K L ) parallel to the surface and thus form uniaxial powders. A classification scheme is presented that lays the groundwork for determination of the surface unit cell and indexing such complex scattering images. After identifying a first surface unit cell, methods are discussed for normalizing the lattice constants and further reduction of the unit cell.

1. Introduction

Grazing-incidence wide-angle X-ray scattering (GIWAXS) is a powerful method to characterize the structure of molecular thin films [1,2,3]. Such films typically have low-symmetry lattices—triclinic or monoclinic—and are highly textured, i.e., there is a well-defined close-packed molecular plane ( H K L ) that forms parallel to the substrate. For isotropic substrates such as glass slides or silicon wafers covered with native oxide, there is no preferential in-plane orientation—crystalline grains form with a random in-plane orientation. Such uniaxial powders or 2D powders have characteristic scattering patterns that contain full information about the lateral packing and the perpendicular stacking of the molecular planes in a single GIWAXS image. Such scattering patterns can be collected on modern lab-based X-ray apparatus with a suitable 2D detector [2,3]. At a high-flux synchrotron radiation facility, crystallization processes during film formation and morphological transitions can even be studied in situ and in real time [4,5,6,7,8,9].
Molecular thin films of organic semiconductors are important for sensors [10,11,12], light-emitting devices [13,14,15], photovoltaics [16,17,18], and water-splitting [19,20]. They are prepared by thermal evaporation in vacuum or solution processes such as spin coating or blade coating, followed by a thermal annealing step [21,22,23,24]. Typically, such molecules crystallize in low-symmetry crystal lattices, in particular triclinic and monoclinic. Such low-symmetry lattices feature pronounced polymorphism—molecular materials often have several bulk polymorphs and can also form specific thin film polymorphs and metastable polymorphs as a function of the specific sample preparation conditions [25,26,27]. This behavior does not only have important implications for the charge transport in thin films of conjugated molecules [27,28,29,30,31,32,33] but also for solubility of the films, an important aspect in pharmaceutical molecules [34].
The general goal of such structural studies is to investigate the processing–structure–performance relationship, with GIWAXS covering the first two aspects [21,22]. For a quick check on what kind of film has formed (preferential molecular plane, polymorph), it is important to index the thin film diffraction pattern efficiently. A lot of information can already be obtained by determining the surface unit cell [3]. Successful indexing is also an essential first step towards a complete thin film structure determination [35,36,37,38,39].
After a review of the methodology for finding the surface unit cell, an application example will be discussed in detail, including basic crystallographic principles for finding the normalized primitive unit cell as well as methods to check whether this unit cell can be further reduced.

2. Methodology

When molecules form a well-defined close-packed layer parallel to the substrate, this layer will feature a surface unit cell with in-plane lattice vectors a ⃑ and b ⃑ . The usual construction of the reciprocal lattice
c ⃑ ∗ = 2 π a ⃑ × b ⃑ a ⃑ × b ⃑ · c ⃑
implies that the c ⃑ ∗ vector of the reciprocal surface unit cell is perpendicular to the plane of the film and has no in-plane components. Hence, the reciprocal surface unit cell can be parametrized in a convenient way by a set of lattice vectors a ⃑ ∗ , b ⃑ ∗ , c ⃑ ∗ with [3]:
a ⃑ ∗ = a ∥ ∗ 0 a ⊥ ∗ ,   b ⃑ ∗ = b ∥ ∗   c o s ( γ ∥ ∗ ) b ∥ ∗ s i n ( γ ∥ ∗ ) b ⊥ ∗ ,   c ⃑ ∗ = 0 0 c ⊥ ∗
This parametrization splits the problem of finding the six reciprocal lattice parameters into two steps: The first task is to determine the in-plane lattice with components a ∥ ∗ , b ∥ ∗ , γ ∥ ∗ [40]. Then, the perpendicular components can be determined in a straightforward way: c ⊥ ∗ is associated with the spacing of the ( 00 l ) reflections and a ⊥ ∗ and b ⊥ ∗ can be identified as the lowest q ⊥ values for the ( 10 l ) and ( 01 l ) rods, which were identified in the first step. This parametrization also motivates the introduction of scattering rods, which are series of diffraction spots with fixed h   and   k and varying l values. Scattering rods are a useful concept in grazing-incidence scattering and are also essential for retrieving a complete set of in-plane q -values, when diffraction spots with low q ⊥ values are missing or too weak to be observed.

2.1. The In-Plane Reciprocal Surface Unit Cell

The in-plane reciprocal lattice vector components are determined from the experimentally observed scattering rods, which yield a sorted sequence:
q 1 < q 2 < q 3 < …
These q -values correspond to a set of lengths of reciprocal lattice vectors forming a 2D lattice with unit cell parameters a ∥ ∗ , b ∥ ∗ , and γ ∥ ∗ . The determination of these lattice parameters is usually the most difficult part of indexing a GIWAXS pattern. However, Lagrange–Gauss (LG) reduction imposes strict limits on the reduced unit cell in 2D [40]. Reduction methods were originally developed by Lagrange [41] and Gauss [42] for their mathematical work on quadratic forms. It was then actually Gauss himself who pointed out, in a little sidenote to a book review [43], that positive quadratic forms had a deep connection with distances in point lattices and he speculated that this connection would be useful for the emerging science of crystallography.
Such a reduced unit cell features the two shortest possible lattice vectors a ⃑ ∥ ∗ and b ⃑ ∥ ∗ with an enclosed angle γ ∥ ∗ close to 90°. It is useful to also introduce the short diagonal d ∥ ∗ , which equally defines an optimum triangle within the reduced reciprocal surface unit cell (see Figure 1). d ∥ ∗ is given by
d ∥ ∗ 2 = a ∥ ∗ 2 + b ∥ ∗ 2 − 2   a ∥ ∗   b ∥ ∗ c o s ( γ ∥ ∗ )
Figure 1. Two equivalent ways of describing the Lagrange–Gauss-reduced unit cell. Instead of using a ∥ ∗ ,   b ∥ ∗ and γ ∥ ∗ , it is convenient to include the diagonal d ∥ ∗ , which can be easily identified with a suitable q i . Reproduced from [40] (D. M. Smilgies, 2026).
Conveniently, d ∥ ∗ can be directly assigned to one of the observed q i values, as will be detailed in Section 2.3, with LG reduction imposing
a ∥ ∗ ≤ b ∥ ∗ ≤ d ∥ ∗

2.2. Narrowing Down the γ ∥ ∗ Range

Before tackling the actual indexing problem, some other property of LG-reduced unit cells shall be explained, as is relevant here. γ ∥ ∗ offers a simple geometric way to quickly distinguish which assignments correspond to proper LG-reduced lattices. The angle is related to a ∥ ∗ , b ∥ ∗ , d ∥ ∗ by
cos γ ∥ ∗ = a ∥ ∗ 2 + b ∥ ∗ 2 − d ∥ ∗ 2 2   a ∥ ∗   b ∥ ∗
From the triangle formed by a ∥ ∗ , b ∥ ∗ , d ∥ ∗ and the LG-condition, a ∥ ∗ ≤ b ∥ ∗ ≤ d ∥ ∗ follows that the smallest possible γ ∥ ∗ is obtained for a given a ∥ ∗ and b ∥ ∗ when an isosceles triangle can be formed with b ∥ ∗ = d ∥ ∗ ; otherwise, the unit cell is not LG-reduced. This implies
γ ∥ ∗ ≥ γ ∥ , l i m ∗ = a c o s a ∥ ∗ 2   b ∥ ∗
This condition narrows the possible range of γ ∥ ∗ down considerably more for high aspect ratios of b ∥ ∗ / a ∥ ∗ , as shown in Figure 2.
Figure 2. γ ∥ ∗ range compatible with LG reduction as a function of the aspect ratio b ∥ ∗ / a ∥ ∗ . The area above the red solid curve is available and the hatched area corresponds to a ∥ ∗ , b ∥ ∗ , γ ∥ ∗ combinations that can be further reduced. Note how the available γ ∥ ∗ range becomes smaller as the aspect ratio increases.
We will also explain our choice of reducing the γ ∥ ∗ range further to γ ∥ ∗ ≤ 90 ° in more detail. In our previous publication, we motivated this condition by noting that in our case, we were only interested in the length of q -vectors rather than the full lattice symmetry. In particular, Figure 3 shows that lattices with γ ∥ ∗ = 90 ° + θ are mirror images of lattices with γ ∥ ∗ = 90 ° − θ and thus corresponding lattice vectors have the same lengths. This allowed us to restrain the γ ∥ ∗ range further to
γ ∥ , l i m ∗ ≤ γ ∥ ∗ ≤ 90 °
Figure 3. Equivalence of lattices with γ ∥ ∗ = 90 ° − θ and γ ∥ ∗ = 90 ° + θ . The two lattices are shown to be related by a mirror plane (dashed line) and hence generate the same length sequences of scattering vectors q i .
For all other γ ∥ ∗ values, a further reduced cell can be constructed with the LG algorithm. This reduced range is also necessary for consistency and to guarantee that the chosen diagonal (see Figure 1) remains shorter than the other diagonal.

2.3. Classification of GIWAXS Images of Triclinic Structures

The first task of indexing the in-plane reciprocal surface unit cell is to identify a ∥ ∗ , b ∥ ∗ , and d ∥ ∗ with the appropriate q i of the above sequence. Here, we will consider triclinic lattices, while we will leave the case of monoclinic lattices to the second part of this study. A similar classification was made in our previous paper [40]; however, here, we will refine the analysis further and include a more detailed analysis of special cases. The classification scheme lends itself to automation with software and the Scilab scripts used for the application example below will be available on GitHub.
The last three cases deal with the complications imposed when there are multiples of a ∥ ∗ in the q -sequence, i.e., for b ∥ ∗ / a ∥ ∗ > 2 . First of all, the multiples of a ∥ ∗ need to be identified and disregarded from the q i sequence. For γ ~ γ l i m , the difference between b ∥ ∗ and d ∥ ∗ may become too small to be resolved, in which case d ∥ ∗ should be set equal to b ∥ ∗ . The special case when b ∥ ∗ happens to be equal or very close to 2 a ∥ ∗ in length is already covered in the previous trial assignments. For n > 2 , other coincidences with b ∥ ∗ may have to be additionally considered. A quick comparison of the measured scattering images with the predicted spot positions, for instance, using the indexGIXS program in reciprocal space mode [44], can help to quickly identify such a situation.

2.4. A Simple Measure of Success

After a suitable candidate for a ∥ ∗ , b ∥ ∗ , d ∥ ∗ is found, the corresponding theoretical sequence can be generated by sorting the calculated vectors q ( h , k ) by their lengths.
q h , k = h 2 a ∥ ∗ 2 + k 2 b ∥ ∗ 2 + 2 h k   a ∥ ∗ b ∥ ∗ c o s ( γ ∥ ∗ )
The corresponding scattering rods can be overlaid onto the scattering pattern using a program such as indexGIXS [44] for visual inspection. This step not only matches the identified case to the data but also provides now a definite set of indices ( h k ) to associate with each of the scattering rods.
A simple numerical measure of success for the assignments is the total deviation ∆ from the experimental q i sequence. In the spirit of putting the focus on the experimental data, only the deviation of q i from the closest calculated q -vector q ( h , k ) will be considered and then all partial deviations will be summed by their absolute value. This also makes ∆ robust with regard to missing reflections in the q i sequence. In order to normalize the total deviation with regard to the length N of the experimental sequence and put it into a convenient range, ∆ is divided by N and multiplied by 10. With typical sequence lengths q i of 5 to 20 values, this provides a useful metric against which the various assignments of a ∥ ∗ , b ∥ ∗ , and d ∥ ∗ can be tested. From previous examples [40], it was found that for a good match, the value of ∆ lay below 1 or was at least close to 1.

3. Application Example

As a test case for the outlined methods, we use the complex GIWAXS pattern of zinc phthalocyanine (ZnPc) grown by thermal evaporation onto a graphene-covered substrate [45], as shown in Figure 4. Due to π - π interactions with the graphene layer, conjugated molecules tend to lie flat on graphene, which was also reported for ZnPc. Preventing the molecule from forming its stable β polymorph, this creates a metastable, albeit highly ordered, film that transforms back into the β polymorph upon heating to 400 °C [45]. The pattern has already been successfully indexed by the original authors and serves here as a high-quality test object. Apart from sample quality, it is also important to choose good scattering parameters to achieve sharp reflections. As a rule of thumb, the width of the sample along the beam should be less than 5% of the sample to detector distance, in order to avoid radial streaking in the reflections [46].
Figure 4. GIWAXS image of a ZnPc film thermally grown on a graphene-coated substrate. The best match sequence of q ( h , k ) and associated scattering rods (crosses) are overlaid.

3.1. The In-Plane Components

A total of 17 in-plane q i values were determined. The best match was found by assigning the first three values according to the second case in Table 1, a ∥ ∗ = b ∥ ∗ < d ∥ ∗ . The associated GIWAXS image with the scattering rods overlaid is shown in Figure 4. In addition, a simple graphical tool is provided in Figure 5. Here, every trial calculated sequence of q -values is represented by a sequence of dots, while the experimental sequence of q i -values is represented by vertical lines. This simple tool, shown here for the ZnPc pattern in Figure 4, provides a quick graphical overview of all trial assignments and their matches with the experiment. The procedures outlined here were cast into a computer program, Classify. The program is written in the free Scilab software [47] (version scilab-2026.1.0) and available on GitHub [48]. The best match was found for a rhombic lattice (case 2) with a ∥ ∗ = b ∥ ∗ = 4.65 nm−1 and γ ∥ ∗ = 82.0 ° , yielding a ∆ of 0.14.
Table 1. Basic assignments of a ∥ ∗ , b ∥ ∗ , d ∥ ∗ to the q i values.
Figure 5. Tentative assignments based on the seven cases in Table 1. Observed q i -values are shown as vertical lines. Colored dots are predictions based on the trial assignments of the q i . Cases 5–7 do not occur since multiples of a ∥ ∗ were not found.
As a final step, the full set of measured q i was used to perform a least-squares refinement of the in-plane reciprocal lattice parameters. By matching the experimental q i values with the calculated q ( h , k ) values and their indices from Equation (9), the in-plane surface unit cell parameters were refined as outlined previously [40]. The final set of parameters is a ∥ ∗ = b ∥ ∗ = 4.657 nm−1 and γ ∥ ∗ = 81.21°, yielding an improved ∆ of 0.07 from an original value of 0.14.

3.2. The Out-of-Plane Components

In the previous section, it was shown how the in-plane lattice constants of the reciprocal surface unit cell can be found and the scattering rods can be indexed with their in-plane indices ( h k ) . For the next step, the scattering rods ( 00 l ) , ( 10 l ) , and ( 01 l ) are used to directly identify c ⊥ ∗ , a ⊥ ∗ , and b ⊥ ∗ , respectively, as the lowest q ⊥ values on these rods. As a trial assignment, all values are chosen as positive. This will ensure that the angular lattice parameters are all acute in reciprocal space and obtuse in real space. This step is often straightforward, since low-index reflections are usually observable. However, the example highlights some complications that can occur.
The first thing to notice was that there was no observed reflection on the ( 00 l ) scattering rod. ZnPc is a planar molecule that lies flat on a graphene-covered substrate [45] and thus, the d-spacing perpendicular to the surface plane is relatively short, yielding a large Bragg angle. The reflections on the ( 00 l ) rod under grazing incidence are diffuse, i.e., these are not proper Bragg reflections, but due to the diffuse halo around the actual Bragg reflections [49] which may become too weak to observe at high Bragg angles. Using Bragg–Brentano geometry, the ZnPc (001) reflection was indeed observed [50].
Next, we found that a ∥ ∗ and b ∦ ∗ were equal, i.e., the ( 10 l ) and ( 01 l ) rods coincided. However, this does not necessarily mean that a ⊥ ∗ and b ⊥ ∗ need to be equal as well. So a ⊥ ∗ was tentatively assigned the lowest and b ⊥ ∗ the second-lowest q z j value. Then, c ⊥ ∗ was determined by fitting the next reflections on the overlapping ( 10 l ) and ( 01 l ) rods. A viewing program for the scattering pattern and the overlaid calculated diffraction spot positions such as indexGIXS [44] is very useful for this purpose.
However, the resulting fit turned out to be poor. In particular the ( 1 1 ¯ l ) and the ( 11 l ) rods did not come out right, as shown in the detailed view in Figure 6. Comparison with the published structure revealed that their in-plane reciprocal lattice vectors had very similar lengths, but their reciprocal surface unit cell had a γ ∥ ∗ angle larger than 90°, but with the same difference from 90° as ours. We chose to keep our value of γ ∥ ∗ , since our methodology was built on the condition of γ ∥ ∗ ≤ 90° (see Figure 1, Figure 2 and Figure 3). However, we found that if the value from a ⊥ ∗ was changed from positive to negative, a good fit resulted. Similarly, keeping a ⊥ ∗ positive but making b ⊥ ∗ negative also resulted in a good match, while having both parameters negative gave the same incorrect result as with both parameters positive. Interestingly, upon transforming back to direct space, these choices with either   a ⊥ ∗ < 0 or b ⊥ ∗ < 0 resulted in different unit cell parameters, but all unit cells had the same vector lengths and volume.
Figure 6. Proper choice of the sign of the out-of-plane components. a ⊥ ∗ and b ⊥ ∗ being both positive or both negative resulted in a poor match of the ( 1 1 ¯ l ) and ( 11 l ) scattering rods (a). A good fit resulted in the two cases where a ⊥ ∗   and b ⊥ ∗ had opposite signs (b). The diamonds indicate the calculated spot positions.
Before transforming back to direct space, the full set of spot positions, now that they have been indexed, is used to refine the out-of-plane parameters. In this case, the least-squares fitting problem is already linear:
h   a ⊥ ∗ + k   b ⊥ ∗ + l   c ⊥ ∗ = q z j
where q z j are measured out-of-plane position values along the h k scattering rods and h k l are determined with indexGIXS. Again, the least-square fitting solution for this overdetermined system of equations can be found by solving the normal equations [40]. The optimized parameters were   a ⊥ ∗ = −1.349 nm−1, b ⊥ ∗ = 2.347 nm−1, and c ⊥ ∗ = 19.403 nm−1. The corresponding Scilab script for this optimization can be found on Github as well [48].

3.3. The Normal Form of the Triclinic Unit Cell

At this point, all components of the vectors of the reciprocal surface unit cell have been found and Equation (1) can be used to transform the reciprocal unit cell back to the direct space surface unit cell by exchanging starred vectors with unstarred vectors and vice versa. However, we are left with three possible triclinic unit cells to describe the same lattice and a question arises of whether there is a common normal form of the unit cell. Such a normal form is important for different unit cells providing good indexation of the structure to not be considered as different structures.
First of all, we observe that all three unit cells feature a mix of acute and obtuse angles. Such unit cells can be further refined. Following Niggli [51] and Gruber [52], we find that the simple transformation
a ⃑ → − a ⃑
does not change the lengths of the unit cell vectors or the volume of the unit cell. However, it affects the angles of b ⃑ and c ⃑ with respect to a ⃑ and turns them into the complementary angle:
β → 180 ° − β ,   γ → 180 ° − γ
Similar transformations can be found for b ⃑ and c ⃑ . Out of the three unit cell angles, all three can either be acute or obtuse—in which case we are done—or two can be acute and one can be obtuse, or vice versa. In the latter case, those two angles define the lattice vector to be inverted. Hence, it is always possible to find a representation of the triclinic unit cell, where the three angles are either all acute or all obtuse.
It should be mentioned that, despite the fact that these two normal forms of the triclinic lattice unit cell have the same unit cell vector lengths, they are distinctly different. While this difference does not affect the lengths of the scattering vectors in an experiment, it can affect the location of the reflections, as can be seen in the example of ZnPc, i.e., even for 2D powder scattering. When we switch from a positive a ⊥ ∗ to a negative one, the angle of a ⃑ with c ⃑ along the surface normal switches from acute to obtuse, similar for b ⊥ ∗ . So bringing the lattice parameters into the normal form using the simple transformation described above is indeed an essential step. Table 2 lists the different sets of lattice constants from the literature [45] and this work.
Table 2. Lattice constants derived for the ZnPc surface unit cell.
In fact, the two parametrizations for the reciprocal surface unit cell for ZnPc yield the same reduced form of the direct lattice. As for the lattice determined by the original authors [45], the two normal forms of the lattice constants are in good agreement except for some small differences, which may be due to calibration or measurement errors.

3.4. The Reduced Primitive Unit Cell

The surface unit cell does not have to have the same size as the bulk unit cell, in particular, for the case in which the plane parallel to the substrate does not correspond to one of the faces of the bulk unit cell. A simple criterion to assess the size of the surface unit cell is to estimate the number of molecules per unit cell by estimating the density from the molecular mass and the volume of the unit cell.
ρ m o l = Z   M W V u c   N A
Z is the number of molecules in the unit cell, M W is the molecular weight in (g/mol), V u c is the volume of the unit cell and N A is Avogadro’s constant in (1/mol). For purely organic molecules, this density would be close to 1 g/cm3. If available, published density values can be used. Comparing the density values from microscopic estimates and macroscopic measurements, the number of molecules that would be contained in the unit cell, Z , can be estimated. For ZnPc, the published density value is around 1.6 g/cm3 [53], with the higher density being based on the heavy Zn atom in its center. For Z = 1, we essentially obtain the same value 1.62 g/cm3 from the unit cell. Hence, the unit cell identified above is primitive.
After Niggli, for any primitive unit cell, a unique reduced unit cell can be found [51]. This is particularly useful for the comparison of triclinic unit cells, which can assume many shapes, as seen in the previous section. Dirichlet already found the normalization conditions used in the previous section, and he additionally demanded that the face diagonals of the unit cell be longer than the largest edge of the unit cell face, resulting in three additional conditions for the reduced unit cell [54] (see also Equation (4)):
a 2 + b 2 − 2   a   b   c o s ( γ ) ≥ b 2
a 2 + c 2 − 2   a   c   c o s ( β ) ≥ c 2
b 2 + c 2 − 2   b   c   c o s ( α ) ≥ c 2
The form of the conditions was chosen such that these conditions applied to both all acute and all obtuse angles [51,52]. In addition, the Dirichlet conditions were expressed directly in terms of the lattice constants. For the obtuse case, a condition for the body diagonal has to be added:
a 2 + b 2 + c 2 − 2   b   c   cos α − 2   c   a   cos β − 2   a   b   c o s ( γ ) ≥ c 2
These conditions were further refined for special cases such as a = b or angles equaling 90° by Eisenstein [55] and were finally cast into 44 crystallographic cases by Niggli [51]. For the surface unit cell found above, we found that it had already failed the Dirichlet conditions and thus could be reduced further.
Here, we applied the modern LLL algorithm to the surface unit cell [56]. This algorithm is based on the LG reduction in two dimensions [57]. In three dimensions, the second-shortest vector is first made almost perpendicular to the shortest lattice vector; then, the third vector is made almost perpendicular to both of the previous vectors, using a modification of the well-known Gram–Schmidt orthogonalization. If vectors have to be resorted by size, the procedure is repeated. LLL has become famed in the cryptography community where the algorithm is used to find reduced unit cells in high-dimensional lattices for encryption purposes. LLL has a parameter δ with 0.25 < δ < 1 that guarantees a finite number of iterations. For just three dimensions, LLL can be used in the most precise mode with δ = 1 and almost always finds the unique Niggli cell. For comparing two structures based on their primitive unit cells, it is recommended to use LLL on both sets of unit cells, since unit cells in the older literature may not be fully reduced.
Scilab scripts for LLL were prepared by Claude Sonnet 5 and Gemini 1.5 Pro. The algorithm contains less than 200 lines of code and converges instantaneously. The reduction in the refined surface unit cell was consistent between different versions of the code and yielded identical reduced unit cells to within six digits. Interestingly, we found that there was in fact a further reduced unit cell for ZnPc that closely resembled the structure of the triclinic α -phase of the related molecule copper phthalocyanine (CuPc) [58]. When properly normalized, as shown in Table 3, both unit cells appear almost identical.
Table 3. Comparison of the reduced ZnPc unit cell with the lattice constants of α -CuPc [58].
The algorithm was extended to also provide the transformation matrix S to the new set of lattice vectors. This base transformation
a ⃑ ′ b ⃑ ′ c ⃑ ′ = S a ⃑ b ⃑ c ⃑ = 0 0 1 0 1 − 2 1 0 1 a ⃑ b ⃑ c ⃑
yielded the new reduced unit cell. How does it relate to the surface unit cell? Specifically, what is the plane parallel to the substrate within the refined unit cell? By using the transposed matrix S T from the equation above, we find [59]:
H ′ K ′ L ′ = H K L   S T =   001 0 0 1 0 1 0 1 − 2 1 = 1 − 2 1
For the properly normalized unit cell, the 1 2 ¯ 1 plane was also found to be parallel to the substrate for α -CuPc [58].
The associated Scilab scripts, as well as the indexGIXS program, are provided on GitHub [47]. The reduced unit cell and its orientation were tested with indexGIXS and yielded a consistent match of the GIWAXS pattern with the refined surface unit cell, as shown in Figure 7. A similar reduction procedure including the transformation matrix is also provided by the Bilbao Crystallographic Server [60] and confirms the results presented here. However, the server does not provide information about the methods used.
Figure 7. The ZnPc pattern with the fully reduced unit cell and a 1 2 ¯ 1 orientation that closely resembles the α -phase of CuPc. The full indexGIXS output with all parameters is shown.
These findings underline that for comparison of triclinic structures and polymorph determination, using the fully reduced unit cell is important, as we have seen in this study: we have found a variety of primitive unit cells that all index the GIWAXS pattern perfectly. Finding the proper reduced unit cell for a triclinic lattice is important since polymorphism is prevalent in this low-symmetry crystallographic system. In particular, care is indicated before claiming a new polymorph, if based on a unit cell that has not undergone proper scrutiny. For ZnPc, previously reported single crystal structures were monoclinic; however, Schünemann et al. found evidence for a triclinic α -ZnPc phase in thin films [61], in analogy to the α -phase of the closely related molecule CuPc [58,62]. The fully reduced unit cell of ZnPc films in this study has very similar lattice parameters, which supports that α -ZnPc was indeed formed [45].

4. Conclusions

A method for determining the surface unit cell of low-symmetry molecular thin films from GIWAXS images is provided, refining our earlier reported method further. LG reduction seriously reduces the possible range of reciprocal surface unit cell parameters. While a finite number of assignments of a ∥ ∗ , b ∥ ∗ , and d ∥ ∗ are possible, these can be quickly accepted or rejected by matching the experimental q i sequence with calculated sequences. A successful match will also reveal the corresponding in-plane Miller indices ( h k ) of the scattering rods. Using this information, the out-of-plane components can be identified conveniently. After each indexing step, a least-squares optimization should be performed. The current paper focuses on situations where all scattering rods are observable. In a second part, monoclinic structures will be discussed, including situations with missing scattering rods and parasitic reflections.
Even within the framework of LG-reduction, it was found that triclinic lattices could have a number of primitive unit cells. Basic crystallographic methods were used to show that these cells were equivalent and could always be normalized to a single choice with all angles acute or all angles obtuse. Finally, the standard surface unit cell thus identified was found to be further reducible, which resulted in a fully reduced bulk unit cell for this structure using the LLL algorithm. Such additional reduction steps are important for polymorph identification when comparing thin film data with previously known single crystal polymorphs.

Funding

Data were collected at the former D1 beamline of the Cornell High-Energy Synchrotron Source (CHESS), which was funded by the National Science Foundation under award, DMR-1332208.

Data Availability Statement

The test data set and associated Scilab scripts are available on GitHub in the folder “classifyGIXS” [47].

Acknowledgments

The Briseno group is thanked for a copy of the GIWAXS data set on ZnPc that was used for testing the methods presented here. During the preparation of this study, the author used Claude Sonnet 5 and Google Gemini 1.5 Pro to research lattice normalization methods and the associated literature, as well as to develop Scilab scripts implementing the LLL algorithm for the ultimate reduction in the triclinic lattice constants. The author has thoroughly reviewed the provided literature, tested the algorithms, and takes full responsibility for the presented results.

Conflicts of Interest

The author declares no conflicts of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript; or in the decision to publish the results.

Abbreviations

The following abbreviations are used in this manuscript:
GIWAXSGrazing-incidence wide-angle X-ray scattering
ZnPcZinc phthalocyanine
CuPcCopper phthalocyanine

References

  1. Steele, J.A.; Solano, E.; Hardy, D.; Dayton, D.; Ladd, D.; White, K.; Chen, P.; Hou, J.; Huang, H.; Saha, R.A.; et al. How to GIWAXS: Grazing Incidence Wide Angle X-Ray Scattering Applied to Metal Halide Perovskite Thin Films. Adv. Energy Mater. 2023, 13, 2300760. [Google Scholar] [CrossRef] [Scilit]
  2. Werzer, O.; Kowarik, S.; Gasser, F.; Jiang, Z.; Strzalka, J.; Nicklin, C.; Resel, R. X-Ray Diffraction under Grazing Incidence Conditions. Nat. Rev. Methods Primers 2024, 4, 15. [Google Scholar] [CrossRef] [Scilit]
  3. Smilgies, D.-M. Probing Functional Thin Films with Grazing Incidence X-Ray Scattering: The Power of Indexing. Crystals 2025, 15, 63. [Google Scholar] [CrossRef] [Scilit]
  4. Smilgies, D.M.; Li, R.; Giri, G.; Chou, K.W.; Diao, Y.; Bao, Z.; Amassian, A. Look Fast: Crystallization of Conjugated Molecules during Solution Shearing Probed in-Situ and in Real Time by X-Ray Scattering. Phys. Status Solidi-Rapid Res. Lett. 2013, 7, 177–179. [Google Scholar] [CrossRef] [Scilit]
  5. Wan, J.; Li, Y.; Ulbrandt, J.G.; Smilgies, D.M.; Hollin, J.; Whalley, A.C.; Headrick, R.L. Transient Phases during Fast Crystallization of Organic Thin Films from Solution. APL Mater. 2016, 4, 9464. [Google Scholar] [CrossRef] [Scilit]
  6. Chou, K.W.; Khan, H.U.; Niazi, M.R.; Yan, B.; Li, R.; Payne, M.M.; Anthony, J.E.; Smilgies, D.-M.; Amassian, A. Late Stage Crystallization and Healing during Spin-Coating Enhance Carrier Transport in Small-Molecule Organic Semiconductors. J. Mater. Chem. C 2014, 2, 5681–5689. [Google Scholar] [CrossRef] [Scilit]
  7. Gu, X.; Shaw, L.; Gu, K.; Toney, M.F.; Bao, Z. The Meniscus-Guided Deposition of Semiconducting Polymers. Nat. Commun. 2018, 9, 534. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  8. Tamayo, A.; Riera-Galindo, S.; Jones, A.O.F.; Resel, R.; Mas-Torrent, M. Impact of the Ink Formulation and Coating Speed on the Polymorphism and Morphology of a Solution-Sheared Thin Film of a Blended Organic Semiconductor. Adv. Mater. Interfaces 2019, 6, 950. [Google Scholar] [CrossRef] [Scilit]
  9. Kumagai, S.; Yamamura, A.; Makita, T.; Tsurumi, J.; Lim, Y.Y.; Wakimoto, T.; Isahaya, N.; Nozawa, H.; Sato, K.; Mitani, M.; et al. Scalable Fabrication of Organic Single-Crystalline Wafers for Reproducible TFT Arrays. Sci. Rep. 2019, 9, 15897. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  10. Zhang, M.; Zhou, M.; Sun, J.; Tong, Y.; Zhao, X.; Tang, Q.; Liu, Y. Recent Progress in Intrinsically Stretchable Sensors Based on Organic Field-Effect Transistors. Sensors 2025, 25, 925. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  11. Mandal, S.; Marsh, A.V.; Faber, H.; Ghoshal, T.; Goswami, D.K.; Tsetseris, L.; Heeney, M.; Anthopoulos, T.D. A Robust Organic Hydrogen Sensor for Distributed Monitoring Applications. Nat. Electron. 2025, 8, 343–352. [Google Scholar] [CrossRef] [Scilit]
  12. Yamashita, Y.; Hayakawa, H.; Wang, P.; Makita, T.; Kumagai, S.; Watanabe, S.; Takeya, J. Ion Sensors Based on Organic Semiconductors Acting as Quasi-Reference Electrodes. Proc. Natl. Acad. Sci. USA 2024, 121, e2405933121. [Google Scholar] [CrossRef]
  13. Wan, Y.; Deng, J.; Wu, W.; Zhou, J.; Niu, Q.; Li, H.; Yu, H.; Gu, C.; Ma, Y. Efficient Organic Light-Emitting Transistors Based on High-Quality Ambipolar Single Crystals. ACS Appl. Mater. Interfaces 2020, 12, 43976–43983. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  14. Liu, L.; Chen, Z.; Ma, X.; Li, X.; Cai, Y.; Liu, S.; Huang, W.; Liu, D.; Lin, Z.; Zhang, J.; et al. Circularly Polarized Bulk-Heterojunction Memory-Computing Organic Light-Emitting Diodes for a Neural Radiance Field-Based 3D Display. Nat. Photonics 2026. [Google Scholar] [CrossRef] [Scilit]
  15. Oono, T.; Aoki, Y.; Sasaki, T.; Shoji, H.; Okada, T.; Shimizu, T.; Hatakeyama, T.; Fukagawa, H. A Pathway to Coexistence of Electroluminescence and Photovoltaic Conversion in Organic Devices. Nat. Commun. 2026, 17, 694. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  16. Jiang, Y.; Sun, S.; Xu, R.; Liu, F.; Miao, X.; Ran, G.; Liu, K.; Yi, Y.; Zhang, W.; Zhu, X. Non-Fullerene Acceptor with Asymmetric Structure and Phenyl-Substituted Alkyl Side Chain for 20.2% Efficiency Organic Solar Cells. Nat. Energy 2024, 9, 975–986. [Google Scholar] [CrossRef] [Scilit]
  17. Qi, F.; Li, Q.; Lu, H.; Zhang, R.; Liu, S.; Kaminsky, W.; Wei, Y.; Fan, Q.; Zhang, H.; Lei, D.; et al. Alleviating Non-Radiative Losses in Organic Solar Cells through Side-Chain Regulation of Low-Bandgap Non-Fullerene Acceptors. Nat. Commun. 2026, 17, 712. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  18. He, C.; Chen, Z.; Wang, T.; Shen, Z.; Li, Y.; Zhou, J.; Yu, J.; Fang, H.; Li, Y.; Li, S.; et al. Asymmetric Electron Acceptor Enables Highly Luminescent Organic Solar Cells with Certified Efficiency over 18%. Nat. Commun. 2022, 13, 2598. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  19. Schwieg, J.; Wijerathne, N.; Morgan, K.; Alexandre, M.; Wei, W.D. Advances in Organic Semiconductors for Solar-Driven Hydrogen Generation from Water. ACS Appl. Mater. Interfaces 2026, 18, 9265–9284. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  20. Guo, Y.; Zhou, Q.; Zhu, B.; Tang, C.Y.; Zhu, Y. Advances in Organic Semiconductors for Photocatalytic Hydrogen Evolution Reaction. EES Catal. 2023, 1, 333–352. [Google Scholar] [CrossRef] [Scilit]
  21. Richter, L.J.; Delongchamp, D.M.; Amassian, A. Morphology Development in Solution-Processed Functional Organic Blend Films: An in Situ Viewpoint. Chem. Rev. 2017, 117, 6332–6366. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  22. Hiszpanski, A.M.; Loo, Y.L. Directing the Film Structure of Organic Semiconductors via Post-Deposition Processing for Transistor and Solar Cell Applications. Energy Environ. Sci. 2014, 7, 592–608. [Google Scholar] [CrossRef] [Scilit]
  23. Jones, A.O.F.; Chattopadhyay, B.; Geerts, Y.H.; Resel, R. Substrate-Induced and Thin-Film Phases: Polymorphism of Organic Materials on Surfaces. Adv. Funct. Mater. 2016, 26, 2233–2255. [Google Scholar] [CrossRef] [Scilit]
  24. Chung, H.; Diao, Y. Polymorphism as an Emerging Design Strategy for High Performance Organic Electronics. J. Mater. Chem. C 2016, 4, 3915–3933. [Google Scholar] [CrossRef] [Scilit]
  25. Giri, G.; Li, R.; Smilgies, D.-M.; Li, E.Q.; Diao, Y.; Lenn, K.M.; Chiu, M.; Lin, D.W.; Allen, R.; Reinspach, J.; et al. One-Dimensional Self-Confinement Promotes Polymorph Selection in Large-Area Organic Semiconductor Thin Films. Nat. Commun. 2014, 5, 3573. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  26. Hiszpanski, A.M.; Baur, R.M.; Kim, B.; Tremblay, N.J.; Nuckolls, C.; Woll, A.R.; Loo, Y.L. Tuning Polymorphism and Orientation in Organic Semiconductor Thin Films via Post-Deposition Processing. J. Am. Chem. Soc. 2014, 136, 15749–15756. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  27. Diao, Y.; Shaw, L.; Bao, Z.; Mannsfeld, S.C.B. Morphology Control Strategies for Solution-Processed Organic Semiconductor Thin Films. Energy Environ. Sci. 2014, 7, 2145–2159. [Google Scholar] [CrossRef] [Scilit]
  28. Jurchescu, O.D.; Mourey, D.A.; Subramanian, S.; Parkin, S.R.; Vogel, B.M.; Anthony, J.E.; Jackson, T.N.; Gundlach, D.J. Effects of Polymorphism on Charge Transport in Organic Semiconductors. Phys. Rev. B Condens. Matter Mater. Phys. 2009, 80, 5201. [Google Scholar] [CrossRef] [Scilit]
  29. Burnett, E.K.; Ly, J.; Niazi, M.R.; Zhang, L.; McCuskey, S.R.; Amassian, A.; Smilgies, D.-M.; Mannsfeld, S.C.B.; Briseno, A.L. Bistetracene Thin Film Polymorphic Control to Unravel the Effect of Molecular Packing on Charge Transport. Adv. Mater. Interfaces 2018, 5, 1701607. [Google Scholar] [CrossRef] [Scilit]
  30. Riera-Galindo, S.; Tamayo, A.; Mas-Torrent, M. Role of Polymorphism and Thin-Film Morphology in Organic Semiconductors Processed by Solution Shearing. ACS Omega 2018, 3, 2329–2339. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  31. Smilgies, D.-M.; Li, R. Directional Crystallization of Conjugated Molecules during Coating Processes. Molecules 2023, 28, 5371. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  32. Diao, Y.; Tee, B.C.K.; Giri, G.; Xu, J.; Kim, D.H.; Becerril, H.A.; Stoltenberg, R.M.; Lee, T.H.; Xue, G.; Mannsfeld, S.C.B.; et al. Solution Coating of Large-Area Organic Semiconductor Thin Films with Aligned Single-Crystalline Domains. Nat. Mater. 2013, 12, 665–671. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  33. Chen, J.; Shao, M.; Xiao, K.; Rondinone, A.J.; Loo, Y.L.; Kent, P.R.C.; Sumpter, B.G.; Li, D.; Keum, J.K.; Diemer, P.J.; et al. Solvent-Type-Dependent Polymorphism and Charge Transport in a Long Fused-Ring Organic Semiconductor. Nanoscale 2014, 6, 449–456. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  34. Guthrie, S.M.; Smilgies, D.-M.; Giri, G. Controlling Polymorphism in Pharmaceutical Compounds Using Solution Shearing. Cryst. Growth Des. 2018, 18, 602–606. [Google Scholar] [CrossRef] [Scilit]
  35. Schiefer, S.; Huth, M.; Dobrinevski, A.; Nickel, B. Determination of the Crystal Structure of Substrate-Induced Pentacene Polymorphs in Fiber Structured Thin Films. J. Am. Chem. Soc. 2007, 129, 10316–10317. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  36. Breiby, D.W.; Bunk, O.; Andreasen, J.W.; Lemke, H.T.; Nielsen, M.M. Simulating X-Ray Diffraction of Textured Films. J. Appl. Crystallogr. 2008, 41, 262–271. [Google Scholar] [CrossRef] [Scilit]
  37. Mannsfeld, S.C.B.; Tang, M.L.; Bao, Z. Thin Film Structure of Triisopropylsilylethynyl-Functionalized Pentacene and Tetraceno [2,3-b]thiophene from Grazing Incidence X-Ray Diffraction. Adv. Mater. 2011, 23, 127–131. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  38. Yoshida, H.; Inaba, K.; Sato, N. X-Ray Diffraction Reciprocal Space Mapping Study of the Thin Film Phase of Pentacene. Appl. Phys. Lett. 2007, 90, 6193. [Google Scholar] [CrossRef] [Scilit]
  39. Nabok, D.; Puschnig, P.; Ambrosch-Draxl, C.; Werzer, O.; Resel, R.; Smilgies, D.M. Crystal and Electronic Structures of Pentacene Thin Films from Grazing-Incidence x-Ray Diffraction and First-Principles Calculations. Phys. Rev. B Condens. Matter Mater. Phys. 2007, 76, 5322. [Google Scholar] [CrossRef] [Scilit]
  40. Smilgies, D.M. Indexing 2D Powders and Lagrange–Gauss Reduction. Crystals 2026, 16, 43. [Google Scholar] [CrossRef] [Scilit]
  41. Lagrange, J.-L. Recherches d’arithmétique. Nouv. Mémoires De L’académie R. Des Sci. Et Belles-Lett. De Berl. 1773, 1773, 265–312. [Google Scholar]
  42. Gauss, C.F. Disquisitiones Arithmeticæ; Gerhard Fleischer, jun.: Leipzig, Germany, 1801. [Google Scholar]
  43. Gauss, C.F. Recension Einer Schrift von Herrn Prof. Dr. Seeber Über Die Ternären Quadratischen Formen. Gött. Gel. Anz. 1831, 108, 1065–1077. [Google Scholar]
  44. Smilgies, D.M.; Li, R. IndexGIXS: Software for Visualizing and Interactive Indexing of Grazing-Incidence Scattering Data. J. Appl. Crystallogr. 2026, 59, 960–967. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  45. Gonzalez Arellano, D.L.; Burnett, E.K.; Demirci Uzun, S.; Zakashansky, J.A.; Champagne, V.K.; George, M.; Mannsfeld, S.C.B.; Briseno, A.L. Phase Transition of Graphene-Templated Vertical Zinc Phthalocyanine Nanopillars. J. Am. Chem. Soc. 2018, 140, 8185–8191. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  46. Smilgies, D.-M. Scherrer Grain-Size Analysis Adapted to Grazing-Incidence Scattering with Area Detectors. J. Appl. Crystallogr. 2009, 42, 1030–1034. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  47. Scilab. Available online: https://www.scilab.org (accessed on 2 August 2026).
  48. GitHub. Available online: https://github.com/smilgies/scilab/tree/main (accessed on 2 August 2026).
  49. Smilgies, D.-M. Grazing-Incidence X-Ray Scattering of Lamellar Thin Films. J. Appl. Crystallogr. 2019, 52, 247–251. [Google Scholar] [CrossRef] [Scilit]
  50. Guo, Z.; Ophus, C.; Bustillo, K.C.; Fair, R.; Mannsfeld, S.C.B.; Briseno, A.L.; Gomez, E.D. 4D Scanning Transmission Electron Microscopy (4D-STEM) Reveals Crystallization Mechanisms of Organic Semiconductors on Graphene. MRS Commun. 2023, 13, 47–54. [Google Scholar] [CrossRef] [Scilit]
  51. Niggli, P. Kristallographische und Strukturtheoretische Grundbegriffe. Handbuch der Experimentalphysik; Akademische Verlagsgesellschaft: Leipzig, Germany, 1928; Volume 7, pp. 108–176. [Google Scholar]
  52. Gruber, B. The Relationship between Reduced Cells in a General Bravais Lattice. Acta Cryst. 1973, 29, 433–440. [Google Scholar] [CrossRef] [Scilit]
  53. Chemical Book. Available online: https://www.chemicalbook.com/ChemicalProductProperty_US_CB1109397.aspx (accessed on 2 August 2026).
  54. Dirichlet, P.G.L. Über Die Reduction Der Positiven Quadratischen Formen Mit Drei Unbestimmten Ganzen Zahlen. J. Reine Angew. Math. 1850, 40, 209–227. [Google Scholar] [CrossRef] [Scilit]
  55. Eisenstein, G. Tabelle Der Reducierten Positiven Ternären Quadratischen Formen, Nebst Den Resultaten Neuer Forschungen Über Diese Formen. J. Reine Angew. Math. 1851, 41, 141–190. [Google Scholar] [CrossRef] [Scilit][Green Version]
  56. Lenstra, A.K.; Lenstra, H.W.; Lovasz, L. Factoring Polynomials with Rational Coefficients. Math. Ann. 1982, 261, 515–534. [Google Scholar] [CrossRef] [Scilit]
  57. Vallée, B. Gauss’ Algorithm Revisited. J. Algorithms 1991, 12, 556–572. [Google Scholar] [CrossRef] [Scilit]
  58. Hoshino, A.; Takenaka, Y.; Miyaji, H. Redetermination of the Crystal Structure of α-Copper Phthalocyanine Grown on KCl. Acta Crystallogr. B 2003, 59, 393–403. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  59. Smilgies, D.-M. Phenylene Lattices. Acta Crystallogr. B 2005, 61, 357–358. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  60. Bilbao Crystallographic Server. Available online: https://cryst.ehu.es/cgi-bin/cryst/programs/nph-rcell (accessed on 2 August 2026).
  61. Schünemann, C.; Elschner, C.; Levin, A.A.; Levichkova, M.; Leo, K.; Riede, M. Zinc Phthalocyanine-Influence of Substrate Temperature, Film Thickness, and Kind of Substrate on the Morphology. Thin Solid Films 2011, 519, 3939–3945. [Google Scholar] [CrossRef] [Scilit]
  62. Erk, P.; Hengelsberg, H.; Haddow, M.F.; Van Gelder, R. The Innovative Momentum of Crystal Engineering. CrystEngComm 2004, 6, 474–483. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.