peterdsharpe / AeroSandbox

Aircraft design optimization made fast through modern automatic differentiation. Composable analysis tools for aerodynamics, propulsion, structures, trajectory design, and much more.
https://peterdsharpe.github.io/AeroSandbox/
MIT License
690 stars 111 forks source link

MAC calculation functions #34

Closed SzymonSzyszko closed 4 years ago

SzymonSzyszko commented 4 years ago

Edit: Changes made according to previous comments

Added 3 functions in wing.py:

mean_aerodynamic_chord - returns wing's MAC mean_aerodynamic_chord_x - returns wing's MAC x coordinate (LE) mean_aerodynamic_chord_y - returns wing's MAC y coordinate (LE)

Changed c_ref to be c_ref = MAC; instead of mean_geometric_chord

Fixed a minor bug in one of the examples. String input to wing symmetry/asymmetry of control surfaces was invalid. Now it works fine

Hope you will find it useful,

Szymon