summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorMarius Peter <blendoit@gmail.com>2019-06-08 20:00:40 -0700
committerMarius Peter <blendoit@gmail.com>2019-06-08 20:00:40 -0700
commit9a033eb0777c63537334c5cbff1fc6499b7f7650 (patch)
tree5707f24f190ebe885724f1d162a864bed9a05a76 /main.py
parent8595e54bd7ecc2108f8da8a084900085f83fd409 (diff)
Fixed spar plotting
Diffstat (limited to 'main.py')
-rw-r--r--main.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/main.py b/main.py
index a6e75a3..f62a88a 100644
--- a/main.py
+++ b/main.py
@@ -19,7 +19,7 @@ import random
import time
start_time = time.time()
-CHORD_LENGTH = 40
+CHORD_LENGTH = 100
SEMI_SPAN = 200
POP_SIZE = 1
@@ -41,7 +41,8 @@ def main():
# Create spar instance
af.spar = creator.Spar()
# Define the spar coordinates
- af.spar.add_spar(af.coordinates, 'aluminium', 0.15)
+ af.spar.add_spar(af.coordinates, 0.15)
+ af.spar.add_spar(af.coordinates, 0.55)
# Print coordinates of af.spar to terminal
af.spar.print_coord(4)
# Plot components with matplotlib
Copyright 2019--2024 Marius PETER