-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfinTerms.py
45 lines (27 loc) · 874 Bytes
/
finTerms.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import math
LN = 2.0 # length of nose
d = 3.0 # diameter at base of nose
dF = 4.0 # diameter at front of transition
dR = 5.0 # diameter at rear of transition
LT = 6.0 # length of transition
XP = 7.0 # distance from tip of nose to front of transition
CR = 8.0 # fin root chord
CT = 9.0 # fin tip chord
S = 1.0 # fin semispan
LF = 2.0 # length of fin mid-chord line
R = 3.0 # radius of body at aft end
XR = 4.0 # distance between fin root leading edge and fin tip leading edge parallel to body
XB = 5.0 # distance from nose tip to fin root chord leading edge
N = 6.0 # number of fins
#cnf
raizcuadrada = math.sqrt(1 + ((2 * LF) / (CR + CT))**2)
cnf = (1.0 + (R/(S + R) ) ) * (
((4.0 * N) * (S/d)*(S/d)) /
(1.0 + raizcuadrada))
print cnf
#XF
Xf = XB + ((XR / 3.0) * ((CR+(2.0*CT)) / (CR+CT) ) + (1.0/6.0) * (
(CR+CT) - ((CR*CT) / (CR+CT))
)
)
print Xf