Skip to content

Color atoms by LAMMPS group membership (#69) - #437

Merged
andeplane merged 10 commits into
mainfrom
feat/69-group-colors
Sep 11, 2026
Merged

Color atoms by LAMMPS group membership (#69)#437
andeplane merged 10 commits into
mainfrom
feat/69-group-colors

Conversation

@andeplane

@andeplane andeplane commented Sep 11, 2026

Copy link
Copy Markdown
Owner

The live run toolbar now exposes Color atoms, including a Groups section populated from LAMMPS's runtime group registry. Membership colors use a fixed 0/1 range and follow dynamic groups; switching groups while paused uses the cached membership snapshot immediately.

Execution-boundary instrumentation reads info groups, then lets LAMMPS itself define private membership variables before running. The print callback only reads/writes MEMFS; it never re-enters the native engine. A compact bitset carries membership to the renderer, and internal files/variables stay out of saved outputs and analysis. Original input snapshots remain unchanged.

Closes #69.

Validation: typecheck, 484 unit tests, production build, and 11 integrated real-engine/WebGL browser tests covering continuation/replay, dynamic radii, persistent tags, reopening structures, particle attributes/picking, SSAO, chart units, and group coloring. The group test covers a variable-expanded group name in an included file, paused selection, dynamic membership changes, and selecting all atoms. Unit coverage checks registry parsing and direct/continued/conditional execution-boundary instrumentation.

The live registry is refreshed before direct run/minimize commands (including literal commands in if); entirely generated command streams and groups newly created inside run every are discovered at the next instrumented execution boundary. Membership changes within already-discovered dynamic groups are streamed every synchronized step.

@andeplane
andeplane merged commit 3ad077a into main Sep 11, 2026
2 checks passed
@andeplane
andeplane deleted the feat/69-group-colors branch September 11, 2026 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Read LAMMPS groups and support coloring of them

1 participant