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 function, c_ref = MAC and small bug fixed in example .py #33

Closed SzymonSzyszko closed 4 years ago

SzymonSzyszko commented 4 years ago

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

peterdsharpe commented 4 years ago

Looks good @SzymonSzyszko - nice work!

I've made a few small comments before merging! Once these are resolved, I think we're good to go!