VOLT
Plugins

Grain Segmentation

Detect and segment grain boundaries in polycrystalline materials.

Overview

Grain Segmentation identifies individual grains in polycrystalline materials. It detects grain boundaries, computes grain orientations, and extracts grain-level statistics from atomistic simulation data.

Parameters

ParameterTypeDefaultDescription
rmsdfloat0.1RMSD threshold for PTM structure identification.
minGrainAtomCountint100Minimum number of atoms required to consider a cluster as a grain.
adoptOrphanAtomsbooltrueAdopt orphan atoms into the nearest grain.
handleCoherentInterfacesbooltrueHandle coherent interfaces between grains.
outputBondsboolfalseOutput neighbor bonds.

Output

{outputBase}_grains.msgpack

type Vec3 = [float, float, float];

// [x, y, z, w]
type Quaternion = [float, float, float, float];

interface Grain {
    id: int;
    size: int;
    orientation: Quaternion;
    // center of mass
    pos: Vec3;
}

interface GrainSegmentationOutput {
    main_listing: {
        total_grains: int;
        merging_threshold: float;
    };
    sub_listings: {
        grains: Grain[];
    };
}

On this page