计算 delta-v 给出负结果

Calculating delta-v gives negative result

我正在尝试完全自己设计自己的模型火箭,但是当我尝试使用 Tsiolkovsky 方程计算 delta-v 时,我的代码只给出否定答案。

我认为这可能是因为我的火箭不够强大,不能有任何 delta-v,所以我使用了一个现实生活中的例子(土星 V),它给出了准确的结果,但仍然是负面的(第一阶段:- 2000 三角洲-v)。

这是我的代码:

import math
netMass = int(input('what is the  total mass of the rocket: '))
dryMass = int(input('what is the empty mass of the rocket: '))
Isp = int(input('what is the Isp of the engine: '))
fuelMass = netMass - dryMass
Δv = Isp*9.8*math.log(float(dryMass/netMass))
print(Δv)

我也没有 Numpy 可供使用,所以只能使用数学库。

在齐奥尔科夫斯基火箭方程中,应该使用的比率是湿质量(或初始总质量)除以干质量(或最终总质量)。那么代码应该是

import math
netMass = int(input('what is the  total mass of the rocket: '))
dryMass = int(input('what is the empty mass of the rocket: '))
Isp = int(input('what is the Isp of the engine: '))
fuelMass = netMass - dryMass
Δv = Isp*9.8*math.log(float(netMass/dryMass))
print(Δv)

这将为您提供真空中理想火箭的正确(正)值。