I'll build an immersive supercell radar simulator. Let me start by exploring the project structure, then architect a proper physics engine + separate renderer.
Let me check the existing setup files.
Now I understand the setup. Let me build this step by step. I'll start with the shared types and the radar color palette (NWS-style reflectivity and velocity LUTs).
Now the core physics engine — a particle-based supercell model with a mesocyclone vortex, inflow/outflow, vertical condensate lifecycle, and parameter-driven growth/decay.
Let me fix the two unused variable warnings.
Now the separate renderer that deposits particle physics onto a grid and colorizes it into either reflectivity or velocity radar, drawn on a PPI scope with range rings.
Now the React UI. Let me create the radar scope component with the animation loop, then the control panel, diagnostics, and legend.
Now the control panel with all the storm-ingredient sliders.
Now the diagnostics panel that shows live storm readouts, and the legend colorbar.
Now let me add slider styling to the CSS and build the main App that ties everything together.
Now let me update the page title and then build to check for errors.
The build succeeds. Now let me refine the physics for better visual results. I want to ensure (1) reflectivity reaches realistic dBZ values with bright cores, and (2) the precipitation forms a recognizable forward-flank shield + hook rather than a tight blob. Let me improve the dBZ mapping and add forward-flank downdraft advection for precipitating parcels.
Now let me use those normalized motion components in the outflow/forward-flank logic:
Let me make CAPE genuinely drive core intensity (higher CAPE → stronger updraft → denser hydrometeor cores / higher dBZ), which is physically correct and gives the sliders real visual impact.
The build is clean. Let me re-read the engine to verify the physics loop and variable usage are correct.
The physics loop is correct. Let me reconsider the rotation rate — at realistic mesocyclone velocities and ~4.5km core, the angular wrap over the storm's life is marginal, which would weaken the hook. Let me tighten the mesocyclone core (faster angular rate + more realistic size) and boost rotation so the hook wraps clearly, scaling with SRH.
Let me rebuild to confirm, then I'll review the renderer once more for correctness.
Everything builds. Let me make the start overlay match the circular scope shape for a cleaner look.
I've realized a critical physics issue: with realistic m/s velocities and km scales, the parcels orbit too slowly relative to their lifetime to actually wrap into a hook — they'd only sweep a narrow arc before evaporating. I need to redesign the vortex profile (sustained rotation over a broad region), lengthen the bright-precipitation residence time, and slow fallout so parcels wrap ~150–200° around the mesocyclone. Let me rewrite the engine with this corrected model.
The build is clean. Let me make two small refinements: soften the rotation velocities slightly for credibility, and fix the rotation bar max in the diagnostics so it doesn't saturate at default settings.
The storm would look too small on a 120km-radius scope. Let me zoom the scope to a storm-scale view (~72km radius) so the supercell fills the display like a real tracking radar, and tighten the storm-drift clamp so it stays framed.
Let me fine-tune the rotation radius and bright-canopy residence so parcels wrap far enough (~160–220°) to form a proper hook rather than just an arc.
I found a critical bug: parcels spawn 12–24 km out and spiral inward slowly, but the death rule kills any parcel that hasn't condensed within 16 seconds — so they'd die before ever reaching the updraft core, and the storm would never produce precipitation. Let me fix the injection (closer spawn, initial inward velocity, stronger convergence) and make the death rule give parcels enough time to reach the core and condense.
Let me finalize the injection parameters — closer spawn radius, faster inflow, and adequate capacity for high-instability presets — so parcels reach the updraft promptly without overflowing.
Let me do a final review of the complete engine to ensure all the edits are coherent.
The engine is coherent. One UX improvement: at low initial intensity, very few parcels spawn, so the scope could look empty for the first ~2 seconds after "Initiate Storm." Let me seed a small cumulus on reset so growth is immediately visible, refactoring the spawn logic.
Files built: src/sim/types.ts, src/sim/palette.ts, src/sim/SupercellEngine.ts, src/sim/RadarRenderer.ts, src/components/RadarScope.tsx, src/components/ControlPanel.tsx, src/components/DiagnosticsPanel.tsx, src/components/Legend.tsx, src/index.css, src/App.tsx, index.html