Git Product home page Git Product logo

thin-airfoil-theory's Introduction

Thin-Airfoil-Theory

Description.

Implement the Thin Airfoil Theory given the coordinates of the profile to be analysed. The format of the .dat (or .txt) file should contain as the first line the header, and the rest of the rows should contain two columns, where the first one contains the x coordinates and the last one the corresponding y coordinates.

Algorithm

Since the necessary equation of the mean camber line is not available for many complex profiles, the thin airfoil theory cannot be applied directly. Moreover, the x coordinates of the upper and lower surfaces will not coincide in most of the available datasets, thus the average between y coordinates may not yield exact results. Consequently, a more general approach should be implemented. To achieve the former, the so called Voronoi diagrams are implemented (https://en.wikipedia.org/wiki/Voronoi_diagram) using the scipy algorithm. As a result, a set of points belonging to the mean camber line are obtained. Finally, a fit of this data is performed using polynomials, which result in quite accurate fittings for most of the airfoils. The used degree of the polynomial is automatically chosen based on the residuals (sum of the squares of the errors). Finally, the analytical equations are implemented, yielding as many coefficients as the user desires.

Troubleshooting.

The user may visualize how good the actual fitting using the built-in method visualize_voronoi_diagram. In case the resulting set of points (labeled as real on the generated graph) oscillates a lot in some regions, try increasing the number of coordinates. To do so, one may load the profile on XFLR5 and refine it both globally and locally where required. The accuracy of the Voronoi diagram vastly depends on the resolution of the profile. In case the polynomial fitting is not good enough, the user is encouraged to implement its own fitting algorithm.

References.

Anderson Jr, J. D. (2010). Fundamentals of aerodynamics. Tata McGraw-Hill Education.

thin-airfoil-theory's People

Contributors

davidpoves avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.