r/aerodynamics • u/OrneryProfit659 • 5h ago
Validating a fast Python 2D Vortex-Method FSI solver against high-fidelity OpenFOAM
https://github.com/juroc58/sharp-fsiHey everyone, I’ve been building sharpFSI, an open-source Python solver for Vertical Axis Wind Turbines (VAWTs) with passive centrifugal-pendulum pitch control (CPPC).
While 2D Discrete Vortex Methods (DVM) are incredibly fast compared to RANS, they are notoriously tricky to get right when you add unsteady FSI and dynamic stall. To make sure the physics were solid, I built a 54-check analytical verification suite, and I’m also cross-checking the results against full OpenFOAM FSI runs.
About the Repo:
Core: 2D DVM with unsteady Kutta-Joukowski, dynamic stall correction, and multiresolution wake thinning.
Verification:
verify_solver.pyruns 54 automated checks (Wagner impulsive start, deep-stall limits, Kelvin budget conservation, structural elastic stops) to ensure the math doesn't drift.CI/CD: GitHub Actions runs the full verification suite on Python 3.11 and 3.12. (Just fixed a fun bug where skipping a cross-check test was failing the CI exit code!)
Speed: Accelerated with Numba.
If you're into vortex methods, FSI, or just want to see how to build a bulletproof automated verification suite for physics codes, I'd love your feedback on the repo!