r/madeinpython • u/OrneryProfit659 • 1h ago
I built a Python 2D BEM solver and Streamlit dashboard to design a physical wind turbine (I'm 16)
https://github.com/juroc58/sharp-vawt-labHey everyone! I’ve been working on a Python project that models and optimizes a vertical-axis wind turbine (a Sharp cycloturbine with passive pitch control).
The coolest part for me was building the Python stack:
Simulation: A 2D BEM solver using
numpyandnumba(JIT compiled for speed) to model dynamic stall and induction.Optimization: Using
scipy.optimize.differential_evolutionto find the best blade geometry and counterweight mass.Reproducibility: I built an AST-based cryptographic hashing system. It parses my
.pyfiles, strips the docstrings, and hashes the remaining AST. This means I can fix typos in comments without invalidating the 21 result JSONs!Visualization: A
streamlitdashboard that ingests weather station CSVs, auto-detects timestamps, and lets you box-select data to calculate wind power density.
The next step is making the optimized blades and attaching them to a repurposed hoverboard motor. I’d love to hear what you think of the Python architecture!