How paulinotech1/cfd-simulator works
Karman is a browser-based 2D incompressible-flow bench: users choose a scene, run and interact with the simulation, then inspect rendered fields and statistics. The README identifies the browser solver as the reference implementation and lists seven presets; it also describes hardware/kernel information in the UI, but the referenced kernel source files are not in the supplied tree. The UI implementation is likewise absent, so its internal behavior is not expanded beyond the route-to-bench reference. Connections are limited to documented or indexed relationships.
Main entry points: solver.ts Flow solver · bench.tsx Interactive bench · render.ts Field renderer · index.tsx Home route
Components 8
Web bench
- Home route
src/routes/index.tsx - Interactive bench
src/components/bench.tsx
CFD simulation
- Scene presets
src/cfd/presets.ts - Flow solver
src/cfd/solver.ts - Field renderer
src/cfd/render.ts - Color mapping
src/cfd/colormap.ts - Simulation types
src/cfd/types.ts
Other components
- Bench user
Connections 9
- Bench user → Home route: opens bench
src/routes/index.tsx - Home route → Interactive bench: renders
src/routes/index.tsx - Interactive bench → Scene presets: selects scenes
- Interactive bench → Flow solver: runs simulation
- Flow solver → Field renderer: produces fields
src/cfd/render.ts - Field renderer → Color mapping: uses colors
src/cfd/render.ts - Scene presets → Simulation types: uses types
src/cfd/presets.ts - Flow solver → Simulation types: uses types
src/cfd/solver.ts - Field renderer → Flow solver: reads simulation
src/cfd/render.ts