pyLSET: an open-source Python package for level set simulations
Abstract
pyLSET is an open-source Python package for level set simulations of evolving interface networks in 2D and 3D, with grain boundaries in polycrystals as the primary application. Each grain, or other region, is represented by a signed distance function on a fixed Cartesian grid. The package is built on PyTorch, which means that the same code runs on CPUs and GPUs, in single or double floating point precision. pyLSET provides the main components of multi-level set modeling of microstructure evolution. These comprise signed distance construction from voxelized label maps, such as grain maps from diffraction contrast tomography, several reinitialization methods, graph coloring with dynamic recoloring to limit the memory use and interaction corrections that restore a partition of space at junctions. Interface mobility and energy can be local and anisotropic, and stored energy and prescribed velocity fields can be added as driving forces. Immobile regions can represent free surfaces, particles or inclusions. A scalar field, such as a temperature, can be solved on the same grid, with the interface properties depending on it. Simulation data can be written to various formats suitable for further processing in dedicated visualization codes. The underlying level set formulation and its implementation are detailed, and examples are provided to verify the code against analytical solutions and to illustrate its performance, including a 3D grain growth simulation with more than 30\,000 grains on a single GPU.
Create a lesson
Related papers
An ensemble of open binary CALPHAD assessments quantifies the uncertainty of the Nd2Fe14B feasibility threshold and surfaces inconsistencies invisible to single-assessment users
Shared title terminologycond-mat.mtrl-sciIliya Radulov
OMNIA: Universal Neural Samplers for Atomistic Simulation
Shared title terminologycond-mat.mtrl-sciMouyang Cheng, Denis Blessing, Jiajun He et al.
Sulfur Plasma Opens Low-Temperature Reactive Sputtering to Diverse Sulfides
Shared title terminologycond-mat.mtrl-sciDaiki Motai, Issei Suzuki, Taichi Nogami et al.
VCMC: A Python Monte Carlo Workflow for Optical Electron-Phonon Coupling on Crystalline Systems
Shared title terminologycond-mat.mtrl-sciAmanda D. Torres, Bidhan Chandra Garain, Mario Barbatti et al.
Combined two-temperature model molecular dynamics simulations of Al-Cu alloys
Shared title terminologycond-mat.mtrl-sciSimon Kümmel, Johannes Roth
The qRIXS instrument at the Linac Coherent Light Source
Shared title terminologycond-mat.mtrl-sciLingjia Shen, Daniel Jost, Choongwon Seo et al.