Skip to content

feat: refresh playground examples with 2D notebook demos#91

Merged
andeplane merged 1 commit into
masterfrom
feat/pages-examples-from-notebooks
Jul 9, 2026
Merged

feat: refresh playground examples with 2D notebook demos#91
andeplane merged 1 commit into
masterfrom
feat/pages-examples-from-notebooks

Conversation

@andeplane

Copy link
Copy Markdown
Collaborator

Summary

The Pages playground now has an always-visible Multithreading checkbox (PR #75) that runs any script on the KOKKOS build with a thread count from the dropdown. That makes the dedicated LJ Melt (KOKKOS, multithreaded) example redundant — you can just tick the box on LJ Melt.

  • Remove the LJ Melt (KOKKOS, multithreaded) example (superseded by the checkbox).
  • Add two self-contained 2D examples ported from the md-basics notebook tutorials:
    • Maxwell–Boltzmann distribution (2D) — every atom starts at the same speed; collisions relax it to the Maxwell–Boltzmann form (WCA potential, enforce2d).
    • Condensation quench (2D) — a hot 2D LJ vapor quenched below its condensation point via a Langevin thermostat; droplets nucleate and coarsen.

These add physics the existing 3D-only set didn't cover (2D, WCA, Langevin thermostat, a first-order phase transition).

Test plan

  • CI green (full wasm build + vitest across default / KOKKOS / atomify variants).
  • Open the Pages demo, confirm the two new 2D examples appear and run, and that the KOKKOS example is gone while the Multithreading checkbox still works on any example.

Made with Cursor

The Pages demo already has an always-visible Multithreading checkbox that
runs any script on the KOKKOS build, so the dedicated "LJ Melt (KOKKOS,
multithreaded)" example is redundant — remove it.

Add two self-contained 2D examples ported from the md-basics notebook
tutorials: a Maxwell–Boltzmann relaxation and a condensation quench, which
showcase physics (2D, WCA, Langevin thermostat, a phase transition) the
existing 3D-only set does not.

Co-authored-by: Cursor <cursoragent@cursor.com>
@andeplane andeplane enabled auto-merge (squash) July 9, 2026 11:42
@andeplane andeplane merged commit 59ee98f into master Jul 9, 2026
3 checks passed
@andeplane andeplane deleted the feat/pages-examples-from-notebooks branch July 9, 2026 11:54
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.

1 participant