doc

Commit
49dfbb065271bb3cc49daaac4ddf3b10c838a273
Author
Marius Peter <blendoit@gmail.com>
Author date
Committer
Marius Peter <blendoit@gmail.com>
Committer date
Changed files
creator.py
index d548c986..eaf4d68a 100644..100644
@@ -15,10 +15,10 @@
15 15
16 16 """
17 17 The creator.py module contains class definitions for coordinates
18 Removed: and various components we add to an airfoil (spars, stringers, and ribs.)
18 Added: and various components we add to an airfoil (spars, stringers, and ribs).
19 19
20 20 Classes:
21 Removed: Airfoil: instantiated with class method to provide coordinates to heirs
21 Added: Airfoil: instantiated with class method to provide coordinates to heirs.
22 22 Spar: inherits from Airfoil.
23 23 Stringer: also inherits from Airfoil.
24 24
@@ -73,7 +73,7 @@
73 73
74 74 def add_naca(self, naca_num):
75 75 """
76 Removed: This function generates geometry for our chosen NACA airfoil shape.
76 Added: This function generates geometry for a NACA number passed as argument.
77 77 The nested functions perform the required steps to generate geometry,
78 78 and can be called to solve the geometry y-coordinate for any 'x' input.
79 79 Equation coefficients were retrieved from Wikipedia.org.
main.py
index 5b7358de..13922185 100644..100644
@@ -66,8 +66,8 @@
66 66 # Define NACA airfoil coordinates and mass
67 67 af.add_naca(NACA_NUM)
68 68 af.add_mass(AIRFOIL_MASS)
69 Removed: # af.info_print(2)
70 Removed: # af.info_save(SAVE_PATH, _)
69 Added: af.info_print(2)
70 Added: af.info_save(SAVE_PATH, _)
71 71
72 72 # Create spar instance
73 73 af.spar = creator.Spar()
@@ -78,8 +78,8 @@
78 78 af.spar.add_spar_caps(SPAR_CAP_AREA)
79 79 af.spar.add_mass(SPAR_MASS)
80 80 af.spar.add_webs(SPAR_THICKNESS)
81 Removed: # af.spar.info_print(2)
82 Removed: # af.spar.info_save(SAVE_PATH, _)
81 Added: af.spar.info_print(2)
82 Added: af.spar.info_save(SAVE_PATH, _)
83 83
84 84 # Create stringer instance
85 85 af.stringer = creator.Stringer()
@@ -92,24 +92,24 @@
92 92 af.stringer.add_area(STRINGER_AREA)
93 93 af.stringer.add_mass(STRINGER_MASS)
94 94 af.stringer.add_webs(SKIN_THICKNESS)
95 Removed: # af.stringer.info_print(2)
96 Removed: # af.stringer.info_save(SAVE_PATH, _)
95 Added: af.stringer.info_print(2)
96 Added: af.stringer.info_save(SAVE_PATH, _)
97 97
98 98 # Plot components with matplotlib
99 Removed: # creator.plot_geom(af)
99 Added: creator.plot_geom(af)
100 100
101 101 # Evaluator object contains airfoil analysis results.
102 102 eval = evaluator.Evaluator(af)
103 103 # The analysis is performed in the evaluator.py module.
104 104 eval.analysis(1, 1)
105 Removed: # eval.info_print(2)
106 Removed: # eval.info_save(SAVE_PATH, _)
107 Removed: # evaluator.plot_geom(eval)
108 Removed: # evaluator.plot_lift(eval)
105 Added: eval.info_print(2)
106 Added: eval.info_save(SAVE_PATH, _)
107 Added: evaluator.plot_geom(eval)
108 Added: evaluator.plot_lift(eval)
109 109
110 110 pop = generator.Population(10)
111 111
112 Removed: # print(help(creator))
112 Added: print(help(creator))
113 113 # print(help(evaluator))
114 114 # print(help(generator))
115 115