AeroDyn 2D: NACA 0012 Interactive CFD Wind Tunnel

AeroDyn 2D: NACA 0012 Interactive CFD Wind Tunnel A real-time, browser-native 2D CFD wind tunnel powered by the Lattice Boltzmann Method. Table of Contents Overview Airfoil Geometry The Lattice Boltzmann Method D2Q9 Velocity Set Collision: BGK with Smagorinsky SGS Closure Streaming & Bounce-Back Boundary Conditions Solver Architecture Grid & State Representation Double-Buffering Strategy Numerical Stability Aerodynamics Post-Processing Pressure Coefficient Distribution Lift Coefficient Estimation Stall Detection Visualization Pipeline Scalar Field Rendering via LUTs Flow Tracing Particles Static Streamlines Interactive Controls Performance Characteristics Known Limitations & Future Work Links Overview AeroDyn 2D is a self-contained, zero-dependency fluid dynamics simulator that runs entirely in the browser. It solves the 2D incompressible Navier-Stokes equations in the weakly compressible limit using the Lattice Boltzmann Method (LBM) on a structured D2Q9 lattice, with a NACA 0012 airfoil as the immersed solid boundary. The simulation exposes interactive control over angle of attack (AoA), Reynolds number, and inlet velocity, and provides real-time post-processing of the pressure coefficient (Cp) distribution, lift coefficient (Cl), and wake vorticity field. ...

15 min · 3044 words · Kayra Sari

E6B Flight Computer & Vector Physics Simulator

E6B Flight Computer & Vector Physics Simulator A fully functional aviation navigation tool built from first principles — wind triangle, ISA atmospheric model, fuel planning, and a live Matter.js physics visualizer in vanilla JavaScript with zero runtime dependencies. Table of Contents Overview Architecture The Aviation Mathematics Atmospheric Chain — Pressure → Density → TAS The Wind Triangle Solver Leg Performance — ETE & Fuel Burn State Management & Reactivity Matter.js Physics Visualizer Rigid Body & Force Model Bezel Compass & Whiz-Wheel Interaction Wind Particle System Test Suite Key Technical Decisions Running It Repository Links Overview E6B Flight Computer is a self-contained, zero-dependency aviation navigation tool that runs entirely in the browser. It reimplements the mechanical “whiz wheel” — the circular slide rule pilots have used since the 1940s — as a physically accurate computational model paired with a real-time vector physics canvas. ...

10 min · 2084 words · Kayra Sari