a guest Jan 12th, 2017 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- def w_in(vel_in=accel_to_vel(), Y=Y_flr_section, Yi=Y_Zmounts(), Ys=Y_Zengine(), Yb=Y_Zbeam(), dB=False):
- """input power from the engine to the vehicle, velocity calculated from the
- accleration spectrum, and going through vib isolation"""
- top = [np.real(Y+Yb1)*((vel_in1)**2) for vel_in1,Yb1 in zip(vel_in, Yb)]
- bottom = [pow(np.abs(Y+Yb1+Yi1+Ys1+Yb1), 2) for Yb1,Yi1,Ys1,Yb1 in zip(Yb,Yi,Ys,Yb)]
- w = [t/b for t,b in zip(top,bottom)]
- if dB == False:
- return w
- if dB == True:
- Lp = [10*np.log10(w1/PWL_ref) for w1 in w]
- return Lp
RAW Paste Data