AeroShapeOpt
CFD Surrogate Explorer

Parametric airfoil design using CST (Class-Shape Transformation) and real-time aerodynamic evaluation via the Hess-Smith panel method. Visualize Cl, Cd, Cp distributions, drag polars, and run gradient-based shape optimization in your browser — no CFD software required.

Airfoil Presets

Flight Conditions

−6°18°
100k3.0M10M

CST Shape Weights

Upper Surface (Au)

Lower Surface (Al)

Aerodynamic Coefficients

Lift Cl
Drag Cd
L/D Ratio
Cd pressure
Cd viscous
Max t/c
Compute Time

Shape Optimizer

Gradient-ascent on CST weights (simulates PPO policy steps). Updates shape iteratively to maximize selected objective while satisfying geometric constraints.

Ready — click Start Optimization

Aerodynamic Polar Sweep

Sweep α from −4° to +16° and compute Cl, Cd, L/D at each step using the panel method.

Airfoil Geometry — CST Parameterization

Pressure Coefficient Distribution Cp(x/c)

Thickness & Camber Distributions

Drag Polar — Hess-Smith Panel Method

L/D Ratio & Cl vs Angle of Attack

Optimization Convergence History

AeroShapeOpt — Physics & RL Architecture

CST Weights Bernstein polynomial coefficients (Au, Al)
Airfoil Shape x,z coordinates via class function C(ψ)·S(ψ)
Panel Solver Hess-Smith source + vortex panels → Cl, Cd, Cp
Reward / Objective L/D, Cl − constraint penalties
PPO Update Actor-critic policy gradient on CST space

CST Parameterization (Kulfan, 2008)

z(ψ) = C(ψ)·S(ψ) + ψ·ΔzTE

C(ψ) = ψ0.5(1−ψ)1.0 — round nose, sharp TE. S(ψ) = Σ Ai·Bi,n(ψ) where Bi,n are Bernstein basis polynomials. Low-dimensional (5 params/surface) with guaranteed smooth, valid airfoils.

Hess-Smith Panel Method (1967)

Cl = −Σ Cp·Δy,   Cd = Σ Cp·Δx

Source + vortex panels with Kutta condition (zero TE velocity). Solves N+1 linear equations for source strengths qi and circulation γ. Inviscid pressure drag + Schlichting skin friction: Cd = Cdp + 2Cf.

Schlichting Skin Friction (1979)

Cf = 0.455 / (log10 Re)2.58

Turbulent flat-plate skin friction coefficient. Multiplied by 2 for both airfoil surfaces. Valid for Re = 105–109. Provides physically consistent viscous drag estimate without boundary-layer solver.

← All ML/AI Projects View Source on GitHub