summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--creator.py6
-rw-r--r--main.py24
2 files changed, 15 insertions, 15 deletions
diff --git a/creator.py b/creator.py
index d548c98..eaf4d68 100644
--- a/creator.py
+++ b/creator.py
@@ -15,10 +15,10 @@
"""
The creator.py module contains class definitions for coordinates
-and various components we add to an airfoil (spars, stringers, and ribs.)
+and various components we add to an airfoil (spars, stringers, and ribs).
Classes:
- Airfoil: instantiated with class method to provide coordinates to heirs
+ Airfoil: instantiated with class method to provide coordinates to heirs.
Spar: inherits from Airfoil.
Stringer: also inherits from Airfoil.
@@ -73,7 +73,7 @@ class Airfoil:
def add_naca(self, naca_num):
"""
- This function generates geometry for our chosen NACA airfoil shape.
+ This function generates geometry for a NACA number passed as argument.
The nested functions perform the required steps to generate geometry,
and can be called to solve the geometry y-coordinate for any 'x' input.
Equation coefficients were retrieved from Wikipedia.org.
diff --git a/main.py b/main.py
index 5b7358d..1392218 100644
--- a/main.py
+++ b/main.py
@@ -66,8 +66,8 @@ def main():
# Define NACA airfoil coordinates and mass
af.add_naca(NACA_NUM)
af.add_mass(AIRFOIL_MASS)
- # af.info_print(2)
- # af.info_save(SAVE_PATH, _)
+ af.info_print(2)
+ af.info_save(SAVE_PATH, _)
# Create spar instance
af.spar = creator.Spar()
@@ -78,8 +78,8 @@ def main():
af.spar.add_spar_caps(SPAR_CAP_AREA)
af.spar.add_mass(SPAR_MASS)
af.spar.add_webs(SPAR_THICKNESS)
- # af.spar.info_print(2)
- # af.spar.info_save(SAVE_PATH, _)
+ af.spar.info_print(2)
+ af.spar.info_save(SAVE_PATH, _)
# Create stringer instance
af.stringer = creator.Stringer()
@@ -92,24 +92,24 @@ def main():
af.stringer.add_area(STRINGER_AREA)
af.stringer.add_mass(STRINGER_MASS)
af.stringer.add_webs(SKIN_THICKNESS)
- # af.stringer.info_print(2)
- # af.stringer.info_save(SAVE_PATH, _)
+ af.stringer.info_print(2)
+ af.stringer.info_save(SAVE_PATH, _)
# Plot components with matplotlib
- # creator.plot_geom(af)
+ creator.plot_geom(af)
# Evaluator object contains airfoil analysis results.
eval = evaluator.Evaluator(af)
# The analysis is performed in the evaluator.py module.
eval.analysis(1, 1)
- # eval.info_print(2)
- # eval.info_save(SAVE_PATH, _)
- # evaluator.plot_geom(eval)
- # evaluator.plot_lift(eval)
+ eval.info_print(2)
+ eval.info_save(SAVE_PATH, _)
+ evaluator.plot_geom(eval)
+ evaluator.plot_lift(eval)
pop = generator.Population(10)
- # print(help(creator))
+ print(help(creator))
# print(help(evaluator))
# print(help(generator))
Copyright 2019--2024 Marius PETER