diff options
author | Marius Peter <blendoit@gmail.com> | 2019-06-29 15:23:02 -0700 |
---|---|---|
committer | Marius Peter <blendoit@gmail.com> | 2019-06-29 15:23:02 -0700 |
commit | 49dfbb065271bb3cc49daaac4ddf3b10c838a273 (patch) | |
tree | 6c4913f430a9bbdbc161b1dd012a3840ee30dfb1 | |
parent | 2d792fd69a9d6306c78c346664761e22594e5a07 (diff) |
doc
-rw-r--r-- | creator.py | 6 | ||||
-rw-r--r-- | main.py | 24 |
2 files changed, 15 insertions, 15 deletions
@@ -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. @@ -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)) |