/ concept-collection / mesh-pde-solver
Sign in
concept-collection / mesh-pde-solver
mesh-pde-solver / CLAUDE.md
3.2 KBPreviewCodeBlameHistoryRaw

CLAUDE.md#

Tips for future agents working in this repo.

Architecture#

matlab/            the MATLAB project the numbl session runs
  main.m           `mip load --install surfacefun` -> solver_session()
  solver_session.m opens the placeholder uihtml figure (the event bridge)
  solve_pde.m      mesh -> surfacemesh -> resample -> surfaceop -> per-patch data
  load_gmsh_quads.m       minimal MSH 2.2 ASCII reader (canonical form only)
  surfacemesh_from_quads.m  replaces surfacemesh.fromGmsh (see below)
src/mesh/          Pyodide + meshio upload pipeline (bridge.py runs in Pyodide)
src/engine/        thin wrapper over numbl/browser's createNumblSession:
                   the app-level solve protocol (mesh.msh + 'solve' events,
                   one in flight, timeout). numbl owns the worker, VFS, mip
                   bootstrap, and IndexedDB package persistence.
src/pde/presets.ts PDE definitions, presets, size limits
src/render/        three.js SurfaceView (mesh preview / solution) + parula
scripts/engine-test.mjs  headless Node check of the whole MATLAB pipeline

Key gotchas#

Testing#

moveopenescclose