{"id":50660382,"url":"https://github.com/voltlabs-research/grain-segmentation","last_synced_at":"2026-06-08T02:01:24.036Z","repository":{"id":336792619,"uuid":"1150377392","full_name":"VoltLabs-Research/grain-segmentation","owner":"VoltLabs-Research","description":"Algorithms for detects and segments grain boundaries in polycrystalline materials. Identifies individual grains, computes grain orientations, and extracts grain boundary networks from atomistic simulations.","archived":false,"fork":false,"pushed_at":"2026-06-08T00:22:04.000Z","size":88,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-08T01:20:54.983Z","etag":null,"topics":["lammps","materials-science","molecular-dynamics","simulations"],"latest_commit_sha":null,"homepage":"https://docs.voltcloud.dev/docs/plugins/grain-segmentation","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/VoltLabs-Research.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-05T07:52:55.000Z","updated_at":"2026-06-08T00:15:54.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/VoltLabs-Research/grain-segmentation","commit_stats":null,"previous_names":["voltlabs-research/grainsegmentation","voltlabs-research/grain-segmentation"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/VoltLabs-Research/grain-segmentation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VoltLabs-Research%2Fgrain-segmentation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VoltLabs-Research%2Fgrain-segmentation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VoltLabs-Research%2Fgrain-segmentation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VoltLabs-Research%2Fgrain-segmentation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VoltLabs-Research","download_url":"https://codeload.github.com/VoltLabs-Research/grain-segmentation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VoltLabs-Research%2Fgrain-segmentation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34044919,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["lammps","materials-science","molecular-dynamics","simulations"],"created_at":"2026-06-08T02:01:23.327Z","updated_at":"2026-06-08T02:01:24.031Z","avatar_url":"https://github.com/VoltLabs-Research.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GrainSegmentation\n\n`GrainSegmentation` segments grains from the current frame using PTM-backed local structure information.\n\n## One-Command Install\n\n```bash\ncurl -sSL https://raw.githubusercontent.com/VoltLabs-Research/CoreToolkit/main/scripts/install-plugin.sh | bash -s -- GrainSegmentation\n```\n\n## Build from source\n\nRequires [Conan 2.x](https://docs.conan.io/2/installation.html), CMake 3.20+, and a C++23 compiler (GCC 14+ or Clang 17+).\n\n### Prerequisites\n\nThe following Conan packages must be available in your local cache:\n\n- `coretoolkit/1.0.0` (from the `CoreToolkit` repository)\n- `structure-identification/1.0.0` (from the `StructureIdentification` repository)\n- `polyhedral-template-matching/1.0.0` (from the `PolyhedralTemplateMatching` repository)\n\nFor each dependency, clone its repository and create the package:\n\n```bash\nconan create \u003cpath-to-dependency-repo\u003e --build=missing -o \"hwloc/*:shared=True\"\n```\n\n### Build\n\nFrom the root of this repository:\n\n```bash\nconan install . -of build --build=missing -o \"hwloc/*:shared=True\"\ncmake --preset conan-release\ncmake --build build/build/Release -j\n```\n\n### Run\n\n```bash\n./build/build/Release/grain-segmentation --help\n```\n\n### Package as Conan recipe\n\nTo make this plugin available as a Conan package for other projects:\n\n```bash\nconan create . --build=missing -o \"hwloc/*:shared=True\"\n```\n\n## CLI\n\nUsage:\n\n```bash\ngrain-segmentation \u003clammps_file\u003e [output_base] [options]\n```\n\n### Arguments\n\n| Argument | Required | Description | Default |\n| --- | --- | --- | --- |\n| `\u003clammps_file\u003e` | Yes | Input LAMMPS dump file. | |\n| `[output_base]` | No | Base path for output files. | derived from input |\n| `--rmsd \u003cfloat\u003e` | No | RMSD threshold for PTM. | `0.1` |\n| `--minGrainAtomCount \u003cint\u003e` | No | Minimum atoms per grain. | `100` |\n| `--adoptOrphanAtoms \u003ctrue\\|false\u003e` | No | Adopt orphan atoms into neighboring grains. | `true` |\n| `--handleCoherentInterfaces \u003ctrue\\|false\u003e` | No | Handle coherent interfaces specially. | `true` |\n| `--outputBonds` | No | Export neighbor bonds. | `false` |\n| `--threads \u003cint\u003e` | No | Maximum worker threads. | auto |\n| `--help` | No | Print CLI help. | |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoltlabs-research%2Fgrain-segmentation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvoltlabs-research%2Fgrain-segmentation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoltlabs-research%2Fgrain-segmentation/lists"}