[WIP] airfoil workbench

Show off your FreeCAD projects here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
Chris_G
Veteran
Posts: 2602
Joined: Tue Dec 31, 2013 4:10 pm
Location: France
Contact:

Re: [WIP] airfoil workbench

Post by Chris_G »

hammax wrote: Tue Dec 17, 2019 3:40 pm Chris_G's CurvesWB has a tool "DiscretizedEdge" with different parameter options.
One of them is curvature controlled with a special algorithm (???) by angular and curvature properties.
I simply exposed to the user what is offered by FreeCAD Edge.discretize() python API.
And this angular and curvature discretizing algorithm is offered by OCC :
https://www.opencascade.com/doc/occt-7. ... ction.html
hammax wrote: Tue Dec 17, 2019 3:40 pm How to harvest those points? => PointsWB => convert to points => export points
The "discretized_edge" object has a hidden Points property that contains all the points as a vector list.
In FreeCAD 0.19, if you right-click in the property view, you can enable "Show all", and you'll see all the hidden properties.
show_all.jpeg
show_all.jpeg (223.87 KiB) Viewed 1576 times
montagdude
Posts: 54
Joined: Tue Jan 08, 2019 9:04 pm

Re: [WIP] airfoil workbench

Post by montagdude »

Zolko wrote: Tue Dec 17, 2019 11:16 am
looo wrote: Tue Dec 17, 2019 10:29 am A different number of poles for each airfoil of a wing needs some recomputing of the splines to generate spline-surfaces
yes, this is a good point: fitting coordinates so that all airfoils from different families are treated equal in FreeCAD is a good idea.

looo wrote: Tue Dec 17, 2019 10:29 am So the user selects a start configuration and the optimizer should find a better design.
I think you're joking: you pretend to make a tool with which any random user can make better airfoils than the Seligs and Epplers and NACAs and RGs and HQs and Hepperles have done ? An optimizer only optimizes what the user has input, it's not some magic that will always give good results.
My airplane used a custom airfoil produced by an optimizer.

http://forum.freecadweb.org/viewtopic.php?t=39790

Besides being able to tailor the design to specific operating conditions, another advantage is that I could fix the trailing edge thickness based on the wood that would be used to build it. Of course, that's not to say that anyone could just push a button and end up with something good. It's garbage in, garbage out, and there are a lot of potential pitfalls that require experience to avoid. In the end, an optimizer is just another tool that may be useful for certain purposes.
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: [WIP] airfoil workbench

Post by looo »

montagdude wrote: Wed Dec 18, 2019 12:04 am Besides being able to tailor the design to specific operating conditions, another advantage is that I could fix the trailing edge thickness based on the wood that would be used to build it. Of course, that's not to say that anyone could just push a button and end up with something good. It's garbage in, garbage out, and there are a lot of potential pitfalls that require experience to avoid. In the end, an optimizer is just another tool that may be useful for certain purposes.
Yes, I agree. If you don't know what you are doing, better to use some airfoil available. Also most of the time optimisation doesn't make sense as the differences between real airfoil and the airfoil used for the computer design differ too much.
Std Wings which have basically the same conditions for every sections (despite induced aoa at the wing tip) are something already optimized to a point where not much gain in performance can be expected.
One use case I have in mind is a horten wing. These kind of wings have different aoa at every section. So it makes sense to use also different airfoils at each section. And at the wing tip some airfoils can help to reduce the negative yaw momentum (at least this is what I experienced with 3 prototypes.) As this airfoil is acting at low aoa you might want to optimize towards low drag at low cl and high drag at higher cl's. The problem with negative yaw momentum is introduced when the airplane rolls which leads to higher aoa at the side which moves downwards. This leads to higher lift pointing forward compared to the center of the wing. The same thing happens on the other side but in the opposite direction. This results in the effect of negative yaw momentum.
There are some ways to fight this. Negative aoa at the wing tip is what works best but is not good for performance. Using winglets or find is the traditional way (tailless wings). Optimizing the tip airfoils drag to introduce positive yaw momentum might help to reduce the negative aoa needed at the wing tip.
So that's my motivation for the optimizer. I know what worked best in reality (testing 3 different airfoils). So the start geometry is known. Looking at the conditions when a turn is introduced it might be possible to find a better design which helps to reduce the geometric twist (performance) or decrease the measure of stability (higher max lift).
User avatar
saso
Veteran
Posts: 1924
Joined: Fri May 16, 2014 1:14 pm
Contact:

Re: [WIP] airfoil workbench

Post by saso »

Few links that might be useful for this topic... Or not, I am not really sure :roll:

Airfoils, wings and planes design
http://openvsp.org/
https://www.youtube.com/channel/UCgkncj ... TDw/videos

http://www.xflr5.tech/
https://www.youtube.com/playlist?list=P ... uEooHRWNUO
https://www.youtube.com/playlist?list=P ... vMbkmalfKg

https://dlr-sc.github.io/tigl/
https://rdcu.be/bIGUH

https://suave.stanford.edu/
https://github.com/suavecode/SUAVE

http://webfoil.engin.umich.edu/

https://www.youtube.com/watch?v=Yiz92Ekn7vU adjoint-based optimization

Surrogate modeling, optimization, sensitivity analysis and uncertainty quantification
https://dakota.sandia.gov/
https://www.youtube.com/playlist?list=P ... hOkePLrayY

http://www.openturns.org/
https://www.youtube.com/watch?v=mxRhgEAypzE
https://www.youtube.com/watch?v=oxHf40_yQnY
https://feaforall.com/how-to-interface- ... -analysis/
https://feaforall.com/openturns-tutoria ... nd-python/
https://blog.kitware.com/openturns-inte ... nty-tools/
https://github.com/openturns/presentati ... sentations

https://persalys.fr/
https://github.com/persalys/persalys

https://github.com/pymc-devs/pymc3

https://github.com/dme65/pySOT

https://github.com/SMTorg/SMT

https://openmdao.org/
https://openmdao.org/newdocs/versions/latest/main.html
https://www.youtube.com/user/OpenMDAO/videos
https://mdolab.engin.umich.edu/
https://www.youtube.com/c/MDOLab/videos
some tools from the above videos...
https://github.com/OpenMDAO/OpenMDAO
https://github.com/OpenMDAO/mphys
https://github.com/OpenMDAO/pyCycle
https://github.com/OpenMDAO/dymos
https://github.com/mdolab/OpenAeroStruct
https://github.com/mdolab/MACH-Aero
https://github.com/mdolab/adflow
https://github.com/mdolab/dafoam
https://github.com/mdolab/pyoptsparse
https://github.com/mdolab/openconcept
https://github.com/gjkennedy/tacs
https://github.com/gjkennedy/paropt
https://github.com/gjkennedy/tmr

https://openmdao.github.io/PracticalMDO/
https://www.youtube.com/playlist?list=P ... SrjNeY4M4-
https://mdobook.github.io/
https://www.youtube.com/playlist?list=P ... 6QzDf6tHmq
https://scholarsarchive.byu.edu/cgi/vie ... text=books
https://www.youtube.com/playlist?list=P ... jhNMFm2O-d
https://byu.box.com/shared/static/ywfay ... rqvurt.pdf
https://www.youtube.com/playlist?list=P ... GjK-XiEsUY

Learning Optimal Control with Dymos
https://www.youtube.com/watch?v=ho0bkIGf00o
https://openmdao.github.io/dymos/

Large Scale Wind Farm Optimization Integrating Julia with OpenMDAO
https://www.youtube.com/watch?v=_V7xrvXiESc
https://github.com/byuflowlab/OpenMDAO.jl
https://github.com/byuflowlab/CCBlade.jl
https://www.youtube.com/@BYUFLOWLab/videos

Leveraging OpenMDAO to enhance ONERA capabilities
https://www.youtube.com/watch?v=BfLWve5hQ0U
https://github.com/fast-aircraft-design/FAST-OAD
https://github.com/l-brevault/FELIN
https://github.com/OneraHub/WhatsOpt
https://gitlab.com/gemseo/dev/gemseo

Neural differential equations
https://julialang.org/blog/2019/01/fluxdiffeq
http://www.stochasticlifestyle.com/the- ... ntific-ml/
https://www.stochasticlifestyle.com/how ... mall-data/
https://www.youtube.com/watch?v=FGfx8CQHdQA
https://www.youtube.com/watch?v=5ZgEp36E71Y
https://www.youtube.com/watch?v=76gLISrSEro
https://github.com/mitmath/18337
https://github.com/mitmath/18S096SciML
https://sciml.ai/news/2020/03/29/SciML/
Last edited by saso on Wed Feb 07, 2024 1:42 pm, edited 23 times in total.
User avatar
saso
Veteran
Posts: 1924
Joined: Fri May 16, 2014 1:14 pm
Contact:

Re: [WIP] airfoil workbench

Post by saso »

Few talks on the topic of scientific computing and machine learning...

https://www.youtube.com/playlist?list=U ... 6cKKw0Dt5g

https://www.msri.org/workshops/928 (see the "Show Schedule, Notes/Handouts & Videos")
Post Reply