Skip to content

Latest commit

ย 

History

History
253 lines (197 loc) ยท 7.33 KB

File metadata and controls

253 lines (197 loc) ยท 7.33 KB

Animated Nuclear Reactions - Quick Guide

๐ŸŽฌ What's New?

Your nuclear reaction simulator now features cinematic animated sequences showing particles colliding and transforming in real-time!

๐Ÿš€ Installation

# Install new animation dependencies
cd frontend
npm install

# The following will be installed:
# - @react-spring/three (physics-based animations)
# - maath (3D math utilities)

๐ŸŽฎ How to Use

1. Start the App

bash infrastructure/scripts/dev.sh

2. Open in Browser

Navigate to http://localhost:3000

3. Select Animated Mode

Click the ๐ŸŽฌ Animated 3D button (third option)

4. Watch the Show!

The reaction plays automatically:

  1. Reactants enter from the left
  2. Collision happens at center with explosion
  3. Products emerge and move to the right

5. Replay Anytime

Click the ๐Ÿ”„ Replay Animation button to watch again

๐ŸŽฏ Animation Sequence

STEP 1: Reactant Entry (0-2 seconds)
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  โ—โ†’                                โ”‚  Particles enter
โ”‚                                    โ”‚  from left side
โ”‚    โ—โ†’                              โ”‚  with trail effects
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

STEP 2: Collision (2-2.5 seconds)
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                                    โ”‚
โ”‚              ๐Ÿ’ฅ                    โ”‚  BOOM!
โ”‚           Sparkles!                โ”‚  Explosion
โ”‚           Light flash              โ”‚  effect
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

STEP 3: Product Emergence (2.5-4 seconds)
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                                    โ”‚
โ”‚                    โ—               โ”‚  Products
โ”‚                      โ—             โ”‚  emerge and
โ”‚                        โ—           โ”‚  move right
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

STEP 4: Final State (4+ seconds)
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                              โ—     โ”‚  Products
โ”‚                              โ—     โ”‚  float in
โ”‚                              โ—     โ”‚  final position
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐ŸŽจ Visual Effects

Particle Trails

  • Glowing trails follow moving particles
  • Color-coded by particle type
  • Fade effect as particles move

Explosion

  • Expanding sphere of energy
  • 50 sparkle particles burst out
  • Light flash illuminates the scene
  • Orange-amber colors represent energy release

Smooth Motion

  • Spring physics create natural movement
  • Bounce effect when products emerge
  • Floating animation in final state

๐Ÿ”ฌ Try These Reactions!

Best for Animation

D-T Fusion (dt-fusion)

D + T โ†’ [BOOM!] โ†’ He-4 + n
Energy: 17.6 MeV
Perfect example of fusion!

U-235 Fission (u235-fission)

U-235 + n โ†’ [HUGE BOOM!] โ†’ Ba-141 + Kr-92 + 3n
Energy: 200 MeV
Massive energy release!

Pu-239 Fission (plutonium239-fission)

Pu-239 + n โ†’ [KABOOM!] โ†’ Xe-134 + Zr-103 + 3n
Energy: 207 MeV
Even more explosive!

C-14 Decay (carbon14-beta-decay)

C-14 โ†’ [gentle transformation] โ†’ N-14 + eโˆ’ + ฮฝฬ…e
Energy: 0.156 MeV
Subtle but beautiful!

๐ŸŽ›๏ธ Three View Modes

Mode Button Best For
2D View ๐Ÿ“Š Quick overview, static diagram
3D Interactive ๐ŸŽฎ Exploring angles, manual control
Animated 3D ๐ŸŽฌ Seeing the reaction happen โ† NEW!

๐ŸŽ“ Educational Benefits

What Students Learn

  1. Collision Process: See particles actually collide
  2. Energy Release: Explosion size shows energy scale
  3. Reaction Timing: Understand sequence of events
  4. Product Formation: Watch new particles emerge
  5. Conservation Laws: Track particle counts

Teaching Tips

  • Start with simple reactions (2 particles)
  • Progress to complex (multiple products)
  • Compare fusion vs fission animations
  • Discuss energy scales (explosion size)
  • Use replay to focus on specific phases

๐ŸŽฎ Controls During Animation

Mouse Controls

  • Left-click + drag: Rotate view
  • Scroll wheel: Zoom in/out
  • Right-click + drag: Pan camera

Animation Controls

  • Replay button: Restart from beginning
  • View mode buttons: Switch visualization types

Pro Tips

  1. Watch once: Let it play completely
  2. Replay and rotate: See from different angles
  3. Compare reactions: Switch and replay
  4. Zoom in: Focus on explosion
  5. Pause (use 3D Interactive mode for frozen view)

โšก Performance Tips

For Best Experience

โœ… Use Chrome or Firefox (latest versions) โœ… Close other tabs/applications โœ… Use desktop/laptop (not phone) for best quality โœ… Ensure graphics drivers are updated

If Animation is Slow

  • Switch to 3D Interactive or 2D View
  • Reduce browser window size
  • Close other browser tabs
  • Check CPU usage (close background apps)

๐Ÿ› Troubleshooting

Animation doesn't start

# Clear cache and reinstall
cd frontend
rm -rf node_modules package-lock.json
npm install

Animation stutters

  • Try: Lower browser zoom level (90% or 80%)
  • Try: Switch to 3D Interactive mode
  • Try: Close other applications

Replay button doesn't work

  • Refresh the page
  • Check console for errors (F12)

Explosion not visible

  • Zoom out using scroll wheel
  • Wait for full animation sequence
  • Check lighting (may be too bright/dark)

๐Ÿ“Š Animation Timing Reference

Event When Duration
First reactant enters 0.0s 1.5s
Second reactant enters 0.5s 1.5s
Collision begins 2.0s 0.5s
Explosion peaks 2.2s 0.3s
Products emerge 2.5s 0.8s each
Animation complete ~4.0s -

๐ŸŽจ Particle Colors

  • ๐Ÿ”ต Blue: Neutrons
  • ๐Ÿ”ด Red: Protons
  • ๐ŸŸข Green: Electrons/Positrons
  • ๐ŸŸ  Orange: Gamma rays/Photons
  • ๐ŸŸฃ Purple: Neutrinos
  • ๐Ÿ”ท Indigo: Heavy nuclei (U, Pu, etc.)
  • ๐Ÿฉท Pink: Alpha particles

๐Ÿ“š Learn More

Documentation

  • Full Animation Docs: docs/animated-3d-reactions.md
  • 3D Basics: docs/enhancement-3d-visualization.md
  • Visual Guide: docs/visual-guide.md

React Spring

๐ŸŽ‰ Share Your Reactions!

Capture screenshots or screen recordings of your favorite animated reactions and share them!

Best Practices

  • Use Full Screen mode (F11)
  • Record with OBS or similar
  • Capture explosion moments
  • Compare different reaction types

Version: 2.0.0 (Animated Edition)
Date: 2025-10-10
Status: Ready to Animate! ๐ŸŽฌ

Enjoy watching nuclear physics come to life! ๐Ÿ”ฌ๐Ÿ’ฅโœจ