summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'main.py')
-rw-r--r--main.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/main.py b/main.py
index 9278eeb..b842e9e 100644
--- a/main.py
+++ b/main.py
@@ -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, _)
Copyright 2019--2024 Marius PETER