summaryrefslogtreecommitdiff
path: root/creator.py
diff options
context:
space:
mode:
authorMarius Peter <blendoit@gmail.com>2019-06-24 19:10:41 -0700
committerMarius Peter <blendoit@gmail.com>2019-06-24 19:10:41 -0700
commit576c9232ec279b6f9e50f7c4d56c9836208d1c07 (patch)
tree2ed84801a6857b24107a3d1c68d218094ef0c6f5 /creator.py
parentd9e01e38d69111c71308b19bb60d315187f312d9 (diff)
variable name consistency & docstrings
Diffstat (limited to 'creator.py')
-rw-r--r--creator.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/creator.py b/creator.py
index 3d13c8f..40a25bc 100644
--- a/creator.py
+++ b/creator.py
@@ -168,13 +168,13 @@ class Airfoil(Coordinates):
'''Returns thickness from 1 'x' along the airfoil chord.'''
x = 0 if x < 0 else x
- y_t = 5 * t * self.chord * (
+ z_t = 5 * t * self.chord * (
+ 0.2969 * sqrt(x / self.chord)
- 0.1260 * (x / self.chord)
- 0.3516 * (x / self.chord) ** 2
+ 0.2843 * (x / self.chord) ** 3
- 0.1015 * (x / self.chord) ** 4)
- return y_t
+ return z_t
def get_theta(x):
dz_c = float()
@@ -238,9 +238,8 @@ class Spar(Coordinates):
Add a single spar at the % chord location given to function.
Parameters:
- coordinates: provided by Airfoil.coordinates[x, z, x, z].
- material: spar's material. Assumes homogeneous material.
- spar_x: spar's location as a % of total chord length.
+ airfoil: gives the spar access to airfoil's coordinates.
+ x_loc_percent: spar's location as a % of total chord length.
Return:
None
Copyright 2019--2024 Marius PETER