Skip to content

Commit a77f33d

Browse files
committedJun 26, 2018
¥ 测试了不同桨叶片数对拉力/功率之间关系的影响
¥ 测试过程中再次感受到牛顿迭代法的收敛性有多差!
1 parent a686fb7 commit a77f33d

File tree

3 files changed

+25
-25
lines changed

3 files changed

+25
-25
lines changed
 

‎src/00_const.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const ν = 1.46e-4 #运动黏性系数 无量纲
55
const g = 9.8 #重力加速度 量纲kg*m*s^-2
66
const v_sound = 343.2 #音速 量纲m/s
77
const Nro = Int64(2) #Number of rotors
8-
const Nb = Int64(4) #Number of blades
8+
const Nb = Int64(3) #Number of blades
99
const R = 0.8255 #旋翼半径 量纲m
1010
const chroot = 0.095*R # 桨根弦长
1111
const airfoil = "NACA0012" # Airfoil
@@ -18,7 +18,7 @@ const Vtip = Ω*R # blade tip velocity
1818
const αs = -0.0*π/180.0 # 旋翼轴倾角 量纲rad
1919
const= 0.0 # 桨叶根部挥舞弹簧刚度 量纲???
2020
const vair = 0.0 # 来流速度 量纲 m/s
21-
const T = 1000/cos(αs) #飞行器重量 (量纲为kg*m*s^-2)
21+
const T = 300/cos(αs) #飞行器重量 (量纲为kg*m*s^-2)
2222
const dpsideg = 10.0 # 方位角步进长度(量纲为deg)
2323
const betap = 0.0/180*π # Precone
2424
# const βang0 = 0.0/180*π # 挥舞角初值

‎src/solfunction.jl

+21-21
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ end
8787

8888
# judge if the indeuce velocity is trimmed
8989
# rmsind = trvind(vindj[1],vindj[2])
90-
if iternum>10
90+
if iternum>100
9191
print("=== Induced Velocity can not be converaged ===\n")
9292
print("=== Thrust is $(T0) ===\n")
9393
# print("=== The Total Power need is $(power)===\n")
@@ -107,26 +107,26 @@ end
107107
vbertmp = vbeui(vall_s, β, dβ, rb)
108108
vber = vbertmp
109109

110-
# calculate the blade flap using 精细数值方法
111-
bftmp = bladeflap(β, dβ, ddβ, vber, chord, θ0, θ_lat, θ_lon, dr, rb)
112-
if bftmp[1] # judge if the flap iteration converaged
113-
β = bftmp[2]
114-
= bftmp[3]
115-
ddβ = bftmp[4]
116-
β0 = bftmp[5]
117-
βlon = bftmp[6]
118-
βlat = bftmp[7]
119-
end
120-
121-
# # 使用经验公式求解挥舞
122-
# vind_ = lmdui # mean(vdiskind)[3]/(Ω*R)
123-
# βtmp = staticbf(θ75, (twist1+twist2), θ_lon, θ_lat, μ_air, abs.(λ_air+vind_))
124-
# β = βtmp[1]
125-
# dβ = βtmp[2]
126-
# ddβ = βtmp[3]
127-
# β0 = βtmp[4]
128-
# βlon = βtmp[5]
129-
# βlat = βtmp[6]
110+
# # calculate the blade flap using 精细数值方法
111+
# bftmp = bladeflap(β, dβ, ddβ, vber, chord, θ0, θ_lat, θ_lon, dr, rb)
112+
# if bftmp[1] # judge if the flap iteration converaged
113+
# β = bftmp[2]
114+
# dβ = bftmp[3]
115+
# ddβ = bftmp[4]
116+
# β0 = bftmp[5]
117+
# βlon = bftmp[6]
118+
# βlat = bftmp[7]
119+
# end
120+
121+
# 使用经验公式求解挥舞
122+
vind_ = lmdui # mean(vdiskind)[3]/(Ω*R)
123+
βtmp = staticbf(θ75, (twist1+twist2), θ_lon, θ_lat, μ_air, abs.(λ_air+vind_))
124+
β = βtmp[1]
125+
= βtmp[2]
126+
ddβ = βtmp[3]
127+
β0 = βtmp[4]
128+
βlon = βtmp[5]
129+
βlat = βtmp[6]
130130

131131
# calculate force, moment and power
132132
rftmp = rotoraero(vber, chord, β, dβ, ddβ, θ0, θ_lat, θ_lon, dr, rb)

‎test/uitest.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ include(pwd()*"//src//rotorforce.jl")
1313
include(pwd()*"//src//solfunction.jl")
1414
include(pwd()*"//src//trim.jl")
1515

16-
ttainp = [0.3068026697055875, 0.010809323652109164, -0.03433742775135728]
16+
ttainp = [0.3068026697055875, 0.0, -0.0]
1717
trresult = trfm(ttainp[1], ttainp[2], ttainp[3], sol_ui, ntiter)
1818
show(trresult)
1919

2020
toc()
2121

22-
# cost extra 1139.1348 seconds
22+
# cost extra 1139.1348 seconds
2323
# ---> just make [0.3068026697055875, 0.010809323652109164, -0.03433742775135728]
2424
# ---> become [0.3071093557471181, -5.913775258831376e-5, -0.0359532799927037]
2525
# ---> it is not necessary and effecitve for fast analysis

0 commit comments

Comments
 (0)
Please sign in to comment.