A high-performance, GPU-accelerated visualization engine for Wolfram Physics Project models. Explore how simple graph rewriting rules can give rise to complex structures like spacetime, black holes, and quantum mechanics.
- Stochastic Rewriting: Real-time graph transformation based on Wolfram's localized rules.
- Genesis Protocol: Automatic mass injection prevents "heat death" in small universes.
- High-Performance: Off-main-thread Web Worker calculation loop for smooth 60fps rendering even at 1000+ nodes.
- Glasmorphic Rendering: Beautiful, transparent nodes with emissive cores.
- Dynamic Physics: Interactive force-directed layout with adjustable gravity, friction, and link distance.
- Cosmic Effects: Toggle particle emissions, shadow propagation, and aura opacity.
Design your own universe! The built-in parser supports standard Wolfram signature syntax:
{{x,y},{u,v}} -> {{x,u},{y,v},{x,y}}Watch as your abstract rule builds geometry before your eyes.
# Clone the repository
git clone https://github.com/lg/wolfram-physics-explorer.git
# Install dependencies
npm install
# Run the simulation
npm run devWe maintain a rigorous test suite for the core physics engine and rule parser.
# Run unit tests
npm run test
# Check coverage
npx vitest run --coverage- State: The universe is a Hypergraph (nodes and links).
- Evolution: At each step, the
Enginescans the graph for patterns matching the selected Rule. - Rewrite: Matching subgraphs are replaced according to the rule's Right-Hand Side (RHS).
- Layout: A force-directed algorithm (d3-force-3d) organizes the new topology in 3D space.
MIT © 2024 Wolfram Physics Explorer Team


