Skip to content

Add new Criticality simulation page exploring self-organized criticality#37

Open
JSilvas wants to merge 7 commits intodevfrom
claude/new-criticality-page-01B1sEhETC7FckPBfPMo97oo
Open

Add new Criticality simulation page exploring self-organized criticality#37
JSilvas wants to merge 7 commits intodevfrom
claude/new-criticality-page-01B1sEhETC7FckPBfPMo97oo

Conversation

@JSilvas
Copy link
Owner

@JSilvas JSilvas commented Jan 31, 2026

Implemented a complete new simulation demonstrating stress avalanches and
power-law distributions, isolated from the original Stellarium simulation.

Features:

  • Hash-based routing (#/criticality) to toggle between simulations
  • StressBall physics with stress accumulation and critical thresholds
  • Cascade algorithm using BFS propagation for avalanche events
  • Event tracking and statistics (total avalanches, sizes, distributions)
  • PowerLawChart component showing histogram with log-scale visualization
  • Touch/click controls for mobile: tap to add stress, double-tap to pause
  • Responsive design with mobile-optimized control panel
  • Visual feedback: color gradients (blue→green→yellow→orange→red)
  • Configurable parameters: stress rates, thresholds, cascade mechanics
  • Keyboard shortcuts for quick interactions
  • Auto-pause on large avalanche events

Technical implementation:

  • Extended navigation in Header with route-aware active states
  • Custom cascade propagation with distance-based energy decay
  • Real-time power-law detection and visualization
  • Event markers showing recent avalanche epicenters
  • Refractory period system preventing rapid re-triggering
  • Mobile touch event handlers with multi-touch support

This demonstrates emergent criticality similar to earthquakes, forest fires,
and other natural systems that self-organize to critical states with
power-law distributed event sizes.

JSilvas and others added 7 commits February 26, 2025 15:45
Updated build config for gh-pages
Updated default UI values
Updated UI Language on Trails to be less confusing
Aligning JSX Trail Length with the Variable name TrailOpacity
Update color generation so that spawn blobs stay colored together.
Updating yarn production build
Implemented a complete new simulation demonstrating stress avalanches and
power-law distributions, isolated from the original Stellarium simulation.

Features:
- Hash-based routing (#/criticality) to toggle between simulations
- StressBall physics with stress accumulation and critical thresholds
- Cascade algorithm using BFS propagation for avalanche events
- Event tracking and statistics (total avalanches, sizes, distributions)
- PowerLawChart component showing histogram with log-scale visualization
- Touch/click controls for mobile: tap to add stress, double-tap to pause
- Responsive design with mobile-optimized control panel
- Visual feedback: color gradients (blue→green→yellow→orange→red)
- Configurable parameters: stress rates, thresholds, cascade mechanics
- Keyboard shortcuts for quick interactions
- Auto-pause on large avalanche events

Technical implementation:
- Extended navigation in Header with route-aware active states
- Custom cascade propagation with distance-based energy decay
- Real-time power-law detection and visualization
- Event markers showing recent avalanche epicenters
- Refractory period system preventing rapid re-triggering
- Mobile touch event handlers with multi-touch support

This demonstrates emergent criticality similar to earthquakes, forest fires,
and other natural systems that self-organize to critical states with
power-law distributed event sizes.
@netlify
Copy link

netlify bot commented Jan 31, 2026

Deploy Preview for stellarium failed.

Name Link
🔨 Latest commit 41d9af3
🔍 Latest deploy log https://app.netlify.com/projects/stellarium/deploys/697da323da7484000879460c

@JSilvas JSilvas changed the base branch from main to dev January 31, 2026 06:38
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.

2 participants