We present an open source program, PolyPal, that can generate a polycrystalline virtual specimen in the micrometer scale for atomistic calculations and visualization. Unlike regular meshes or perfect lattices, atomic positions in polycrystalline materials need to be defined before calculations, and the capability of an atom-generation code is evaluated by the maximum size of the virtual specimen it can generate as well as by the efficiency of the necessary input-output process. Present atom-generation codes are implemented in a serial fashion, and the maximum size of the virtual specimen is limited by the on-board memory. Furthermore, it is difficult to handle a single position file with billions of atoms not only because it takes a long time to read in a row but also full domain decomposition takes hours. PolyPal addresses these challenges with a fully parallelized MPI input-output scheme that supports multiple export options on a Linux cluster. It has no limit in the system size with virtually perfect scalability. Additionally by controlling the size distribution and homogeneity of grains, the program can simulate different microstructures, as typically found in the bulk system or in thin-film samples, prepared with different fabrication processes. PolyPal will harness molecular dynamics codes in the coming age of the exascale computing. Program summaryProgram Title: PolyPalCPC Library link to program files:https://doi.org/10.17632/5cpbmrtzbr.1Developer's repository link:https://gitlab.com/GeonbuShin/polypal.gitLicensing provisions: GPLv3Programming language: C++Nature of problem: There is no open source code capable of generating massive polycyrstalline microstructures that contain billions of atoms. Existing codes run in a single thread, and hence, have a system size limited by the memory resources. Also, a single input/output filestream is not appropriate for a system with a large amount of atoms as file reading and writing would take a prohibitively long time, working as a bottleneck.Solution method: PolyPal not only creates atomic structures in parallel but also writes positions to multiple files in parallel within the Message Passing Interface (MPI). The parallel computing feature not only enables access to micrometer-scale atomic systems but also accelerates the entire process from atomic generation to file generation. In this code, each subdomain is filled with atoms simultaneously according to the prescribed domain topology with inherent load balancing. The atomic structure is written out to multiple files in parallel; one structure file is generated for each domain assigned to the corresponding node of a computing cluster via MPI-IO, which drastically reduces the input-output time, and makes it possible to handle a large virtual specimen.Additional comments including restrictions and unusual features: PolyPal can generate a layered polycrystalline structure to mimic a thin-film specimen prepared by deposition. The code utilizes MPI-IO to accelerate file output.
Read full abstract