Most of week-9 bio, start of weapon systems homework 8
This commit is contained in:
Binary file not shown.
@@ -0,0 +1,27 @@
|
||||
import numpy as np
|
||||
import scipy as sp
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
def erp():
|
||||
pass
|
||||
|
||||
|
||||
def watts(db):
|
||||
return np.pow(10, db/10)
|
||||
|
||||
|
||||
def main():
|
||||
v_t = 300
|
||||
v_m = 800
|
||||
angle_final = np.radians(-20)
|
||||
range_max = 80E3
|
||||
erp = watts(50)
|
||||
|
||||
t_go
|
||||
|
||||
# OLD SYSTEM: MCG, active
|
||||
# NEW SYSTEM: HAW, semi-active
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,16 @@
|
||||
import numpy as np
|
||||
|
||||
def main():
|
||||
specific_impulse = 200
|
||||
m_burnout = 300
|
||||
v_burnout = 1000
|
||||
g = 9.81
|
||||
|
||||
m_launch = m_burnout * np.exp(v_burnout / (specific_impulse*g))
|
||||
m_initial = m_launch - m_burnout
|
||||
|
||||
print(m_initial)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user