-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathTMotor2685.rb
48 lines (41 loc) · 949 Bytes
/
TMotor2685.rb
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
42
43
44
45
46
47
require_relative 'Propeller'
require_relative 'prop_constructors'
require_relative 'Prop_Math'
class TMotor2685 < Propeller
#notes
=begin
geom data
35%, 14% is the peak = 17.5%
10%, 4% is where the hub end = 8
20%, 9% + 4% = 13
30%, 12% + 4% = 16.5
40%, 13% + 4.5% = 17.5
50%, 12% + 4.5% = 16.5
60%, 11% + 4% = 15
70%, 10% + 4% = 14
80%, 8% + 3% = 11
90%, 6% + 2% = 8
98%, 5% = 4
hub is 8% thick
=end
def initialize
super
@name = "TMotor2685"
@geom = parseGeomData('tmotor2685_geom.txt')#geom = [all radii, all chord, all twist]
@airfoil = parseAirfoil('naca6412_cad.dat') #foil = [[x,y] x n]
@keyRadii = @geom[0]
@radius = 330.0
end
def translate radius
return [(-0.1*(radius-0.3)**3+0.035)*@radius,0]
end
def getHubFoil
getFlatHub()
end
def stiffness_modifier radius, chord #note this returns what the new chord will be, not a scalefactore
if radius<0.15 && chord<30
return 30.0
end
return chord
end
end