diff options
author | Marius Peter <blendoit@gmail.com> | 2019-06-12 15:13:23 -0700 |
---|---|---|
committer | Marius Peter <blendoit@gmail.com> | 2019-06-12 15:13:23 -0700 |
commit | 09fd81eac3f5861b043e00d4865fa205deba5319 (patch) | |
tree | 9a857b18884dd44137ebe2c5fd2d327d28288c42 /main.py | |
parent | 47b6bcca3455ea0d0e3996d31188ac34dcaa1f49 (diff) |
debug messages for plotting and saving coordinates
Diffstat (limited to 'main.py')
-rw-r--r-- | main.py | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -34,28 +34,29 @@ def main(): # Interate through all wings in population. for _ in range(1, POP_SIZE + 1): + # Create airfoil instance af = creator.Airfoil() # Define NACA airfoil coordinates af.add_naca(2412) - af.print_coord(2) + # af.print_coord(2) # Create spar instance af.spar = creator.Spar() # Define the spar coordinates, stored in single spar object af.spar.add(af.coord, 0.15) af.spar.add(af.coord, 0.55) - af.spar.print_coord(2) + # af.spar.print_coord(2) # Create stringer instance af.stringer = creator.Stringer() # Define the stringer coordinates from their amount af.stringer.add(af.coord, af.spar.coord, 4, 7, 5, 6) # Print coordinates of af.stringer to terminal - af.stringer.print_coord(2) + # af.stringer.print_coord(2) # Plot components with matplotlib - creator.plot(af, af.spar, af.stringer) + # creator.plot(af, af.spar, af.stringer) # Save component coordinates af.save_coord(SAVE_PATH, _) |