飞机总体设计作业

2019-10-27  本文已影响0人  lippon

给定参数

rangeR = 1500Km
people numberN = 622
W_ {payload} = 55980 Kg
cruise altitude H = 11000m, M_{cruise} = 0.85, V_{cruise} = 903.5Km/h ,C_{cruise}=0.51/h
The mission profile of aircraft is divided as takeoff, climb,cruise and landing
aspect ratio of winA = 9.6
wetted area rationS_{wet}/s_{ref} = 6.0

重量估算

源码

# create by lippon
# 2019-10-27
def fun(W_TOguess, W_PL, m_ff, m_e, times):
    W_F = 0
    W_OEtent = 0
    W_Etent = 0
    W_E = 0
    time = 0


    while True:
        time += 1
        W_F = (1 - m_ff)*W_TOguess
        W_OEtent = W_TOguess - W_F - W_PL
        W_Etent = W_OEtent - W_TOguess * 0.005
        W_E = W_TOguess * m_e
        W_TO = W_E + W_TOguess * 0.005 + W_F + W_PL

        if abs(W_E - W_Etent)/W_E < 0.005 or time > times:
            break
        else:
            W_TOguess = (W_TOguess + W_TO)/2

        print(time)

    return W_TO

print(fun(2887389, 519204, 0.79, 0.65, 100))
上一篇下一篇

猜你喜欢

热点阅读