Genarris

A random structure generator for molecular crystals

Genarris generates molecular crystal structures by random sampling with physical constraints on intermolecular distances. Structures are generated in all space groups compatible with the molecular point group symmetry and the requested number of molecules per unit cell, including with molecules occupying special Wyckoff positions. The input to Genarris is a 3D structure of the molecule. For a flexible molecule, Genarris can be started from a conformational ensemble. A machine learned model estimates the molecular crystal volume from the single molecule structure. The Rigid Press algorithm uses a regularized hard-sphere potential to compress the unit cell and achieve close packing, while preserving the space group symmetries. Genrarris facilitates seamless execution of user-defined workflows for processing the initial pool of generated structures and provides an interface with various DFT codes and machine-learned interatomic potentials (MLIPs) for relaxations and energy evaluations. Genarris can be used to perform crystal structure prediction, to produce curated sets of structures to serve as initial populations for global optimization algorithms, or to generate training sets for machine learning. Genarris is written in Python and distributed under a permissive BSD-3 license.

Features:

  • Written in Python 3 with mpi4py parallelization
  • A machine learned model estimates the molecular crystal volume from the single molecule structure
  • Random structures are generated in all space groups, including with special Wyckoff positions
  • The Rigid Press algorithm compresses the unit cell to achieve close packing 
  • Special intermolecular distance settings are applied to strong hydrogen bonds
  • Seamless execution of user-defined workflows for clustering and down-selection
  • Interfaces with a variety of DFT codes and machine-learned interatomic potentials

References

  • X. Li, F. Curtis, T. Rose, C. Schober, A. Vazquez-Mayagoitia, K. Reuter, H. Oberhofer, and N. Marom “ Genarris: Random Generation of Molecular Crystal Structures and Fast Screening with a Harris Approximation”, J. Chem. Phys., 148, 241701 (2018).
  • R. Tom, T. Rose, I. Bier, H. O’Brien, A. Vazquez-Mayagoitia, and N. Marom “Genarris 2.0: A Random Structure Generator for Molecular Crystals”, Comput. Phys. Commun., 250, 107170 (2020).
  • Y. Yang, R. Tom, J. A. G. L. Wui, J. M. Moussa, and N. Marom “Genarris 3.0: Generating Close-Packed Molecular Crystal Structures with Rigid Press” J. Chem. Theory Comput. 21, 11318 (2025).