Very interesting to propose a standalone XFOIL cpp implementation.
But in it's current form, does it work? Yes it does!!!
After some fiddling in QT, got the code to work as a QTCore (console) app. Here are the result of my test run with the Clark_Y profile that was supplied...
16:13:11: Starting D:\BU Data\franc\Documents\Qt 6.4 Projects\xfoil cpp code\xfoil-cpp-master\XFoilCppQtConsole-v1_0\build-XFoilCppConsole_v01-Desktop_Qt_6_4_1_MinGW_64_bit-Debug\debug\XFoilCppConsole_v01.exe...
...trying the app...
Foil name : CLARK Y
alpha : 0
unconverged
alpha : 0.5
converged after 6 iterations
cl : 0.427821, cd : 0.0186391, cm : -0.090864, xcp : 0.460808
alpha : 1
converged after 6 iterations
cl : 0.487816, cd : 0.0184242, cm : -0.0906309, xcp : 0.433568
alpha : 1.5
converged after 6 iterations
cl : 0.548598, cd : 0.018087, cm : -0.0902569, xcp : 0.411737
alpha : 2
converged after 5 iterations
cl : 0.610265, cd : 0.0176569, cm : -0.0898107, xcp : 0.393859
alpha : 2.5
converged after 10 iterations
cl : 0.660385, cd : 0.0176162, cm : -0.0876769, xcp : 0.378949
alpha : 3
converged after 18 iterations
cl : 0.717778, cd : 0.0173455, cm : -0.0865112, xcp : 0.366212
alpha : 3.5
converged after 10 iterations
cl : 0.772395, cd : 0.0171815, cm : -0.0849039, xcp : 0.355104
alpha : 4
converged after 12 iterations
cl : 0.822422, cd : 0.0172887, cm : -0.0827883, xcp : 0.345331
alpha : 4.5
converged after 9 iterations
cl : 0.871521, cd : 0.0175337, cm : -0.0806324, xcp : 0.33666
alpha : 5
converged after 10 iterations
cl : 0.922261, cd : 0.0179523, cm : -0.0789286, xcp : 0.329182
alpha : 5.5
converged after 13 iterations
cl : 0.971935, cd : 0.0186046, cm : -0.0773216, xcp : 0.322598
alpha : 6
converged after 7 iterations
cl : 1.01944, cd : 0.0194007, cm : -0.0755659, xcp : 0.316597
alpha : 6.5
converged after 8 iterations
cl : 1.06488, cd : 0.0201268, cm : -0.0734492, xcp : 0.310836
alpha : 7
converged after 7 iterations
cl : 1.10885, cd : 0.0209515, cm : -0.0712557, xcp : 0.305499
alpha : 7.5
converged after 17 iterations
cl : 1.15344, cd : 0.0219144, cm : -0.0693026, xcp : 0.300682
alpha : 8
converged after 15 iterations
cl : 1.19891, cd : 0.0229112, cm : -0.067496, xcp : 0.296222
alpha : 8.5
converged after 15 iterations
cl : 1.23804, cd : 0.0240442, cm : -0.0647934, xcp : 0.291578
alpha : 9
converged after 29 iterations
cl : 1.27446, cd : 0.025286, cm : -0.0617014, xcp : 0.286941
alpha : 9.5
converged after 26 iterations
cl : 1.30554, cd : 0.0266484, cm : -0.0578592, xcp : 0.282098
alpha : 10
converged after 14 iterations
cl : 1.3239, cd : 0.0280615, cm : -0.0522448, xcp : 0.276476
alpha : 10.5
converged after 21 iterations
cl : 1.33581, cd : 0.029546, cm : -0.0460079, xcp : 0.270662
alpha : 11
converged after 17 iterations
cl : 1.34703, cd : 0.0314829, cm : -0.0402461, xcp : 0.265288
alpha : 11.5
converged after 26 iterations
cl : 1.35897, cd : 0.0338581, cm : -0.0354134, xcp : 0.260642
alpha : 12
converged after 24 iterations
cl : 1.36843, cd : 0.03663, cm : -0.0311105, xcp : 0.256458
alpha : 12.5
converged after 31 iterations
cl : 1.36974, cd : 0.0400564, cm : -0.0270804, xcp : 0.252591
alpha : 13
unconverged
alpha : 13.5
converged after 41 iterations
cl : 1.34562, cd : 0.0506535, cm : -0.0213254, xcp : 0.246692
alpha : 14
converged after 20 iterations
cl : 1.31988, cd : 0.0586657, cm : -0.0201086, xcp : 0.245036
alpha : 14.5
converged after 20 iterations
cl : 1.30345, cd : 0.0663187, cm : -0.0196859, xcp : 0.243878
16:13:17: D:\BU Data\franc\Documents\Qt 6.4 Projects\xfoil cpp code\xfoil-cpp-master\XFoilCppQtConsole-v1_0\build-XFoilCppConsole_v01-Desktop_Qt_6_4_1_MinGW_64_bit-Debug\debug\XFoilCppConsole_v01.exe exited with code 0
...very cool!
Thanks for your work in extracting this from XFLR5 code.
Much appreciated...
Very interesting to propose a standalone XFOIL cpp implementation.
But in it's current form, does it work? Yes it does!!!
After some fiddling in QT, got the code to work as a QTCore (console) app. Here are the result of my test run with the Clark_Y profile that was supplied...
16:13:11: Starting D:\BU Data\franc\Documents\Qt 6.4 Projects\xfoil cpp code\xfoil-cpp-master\XFoilCppQtConsole-v1_0\build-XFoilCppConsole_v01-Desktop_Qt_6_4_1_MinGW_64_bit-Debug\debug\XFoilCppConsole_v01.exe...
...trying the app...
Foil name : CLARK Y
alpha : 0
unconverged
alpha : 0.5
converged after 6 iterations
cl : 0.427821, cd : 0.0186391, cm : -0.090864, xcp : 0.460808
alpha : 1
converged after 6 iterations
cl : 0.487816, cd : 0.0184242, cm : -0.0906309, xcp : 0.433568
alpha : 1.5
converged after 6 iterations
cl : 0.548598, cd : 0.018087, cm : -0.0902569, xcp : 0.411737
alpha : 2
converged after 5 iterations
cl : 0.610265, cd : 0.0176569, cm : -0.0898107, xcp : 0.393859
alpha : 2.5
converged after 10 iterations
cl : 0.660385, cd : 0.0176162, cm : -0.0876769, xcp : 0.378949
alpha : 3
converged after 18 iterations
cl : 0.717778, cd : 0.0173455, cm : -0.0865112, xcp : 0.366212
alpha : 3.5
converged after 10 iterations
cl : 0.772395, cd : 0.0171815, cm : -0.0849039, xcp : 0.355104
alpha : 4
converged after 12 iterations
cl : 0.822422, cd : 0.0172887, cm : -0.0827883, xcp : 0.345331
alpha : 4.5
converged after 9 iterations
cl : 0.871521, cd : 0.0175337, cm : -0.0806324, xcp : 0.33666
alpha : 5
converged after 10 iterations
cl : 0.922261, cd : 0.0179523, cm : -0.0789286, xcp : 0.329182
alpha : 5.5
converged after 13 iterations
cl : 0.971935, cd : 0.0186046, cm : -0.0773216, xcp : 0.322598
alpha : 6
converged after 7 iterations
cl : 1.01944, cd : 0.0194007, cm : -0.0755659, xcp : 0.316597
alpha : 6.5
converged after 8 iterations
cl : 1.06488, cd : 0.0201268, cm : -0.0734492, xcp : 0.310836
alpha : 7
converged after 7 iterations
cl : 1.10885, cd : 0.0209515, cm : -0.0712557, xcp : 0.305499
alpha : 7.5
converged after 17 iterations
cl : 1.15344, cd : 0.0219144, cm : -0.0693026, xcp : 0.300682
alpha : 8
converged after 15 iterations
cl : 1.19891, cd : 0.0229112, cm : -0.067496, xcp : 0.296222
alpha : 8.5
converged after 15 iterations
cl : 1.23804, cd : 0.0240442, cm : -0.0647934, xcp : 0.291578
alpha : 9
converged after 29 iterations
cl : 1.27446, cd : 0.025286, cm : -0.0617014, xcp : 0.286941
alpha : 9.5
converged after 26 iterations
cl : 1.30554, cd : 0.0266484, cm : -0.0578592, xcp : 0.282098
alpha : 10
converged after 14 iterations
cl : 1.3239, cd : 0.0280615, cm : -0.0522448, xcp : 0.276476
alpha : 10.5
converged after 21 iterations
cl : 1.33581, cd : 0.029546, cm : -0.0460079, xcp : 0.270662
alpha : 11
converged after 17 iterations
cl : 1.34703, cd : 0.0314829, cm : -0.0402461, xcp : 0.265288
alpha : 11.5
converged after 26 iterations
cl : 1.35897, cd : 0.0338581, cm : -0.0354134, xcp : 0.260642
alpha : 12
converged after 24 iterations
cl : 1.36843, cd : 0.03663, cm : -0.0311105, xcp : 0.256458
alpha : 12.5
converged after 31 iterations
cl : 1.36974, cd : 0.0400564, cm : -0.0270804, xcp : 0.252591
alpha : 13
unconverged
alpha : 13.5
converged after 41 iterations
cl : 1.34562, cd : 0.0506535, cm : -0.0213254, xcp : 0.246692
alpha : 14
converged after 20 iterations
cl : 1.31988, cd : 0.0586657, cm : -0.0201086, xcp : 0.245036
alpha : 14.5
converged after 20 iterations
cl : 1.30345, cd : 0.0663187, cm : -0.0196859, xcp : 0.243878
16:13:17: D:\BU Data\franc\Documents\Qt 6.4 Projects\xfoil cpp code\xfoil-cpp-master\XFoilCppQtConsole-v1_0\build-XFoilCppConsole_v01-Desktop_Qt_6_4_1_MinGW_64_bit-Debug\debug\XFoilCppConsole_v01.exe exited with code 0
...very cool!
Thanks for your work in extracting this from XFLR5 code.
Much appreciated...