-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathVleex.py
More file actions
30 lines (15 loc) · 676 Bytes
/
Vleex.py
File metadata and controls
30 lines (15 loc) · 676 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import numpy as np
np.seterr('raise')
def Vleex(lamb, Mleejx, Nleejx, gamma, numPlee, Dleehx, Gamma_Sq, Dleeqx,
Gamma_wh, Vinf, Aleex, gamma_Sl, gamma_T, Tleex):
Vleex = np.zeros(numPlee)
for f in range(1, numPlee+1):
term1x = np.dot(Mleejx[f], lamb) / (2 * np.pi)
term2x = -sum(Nleejx[f]) * gamma / (2 * np.pi)
term3x = Vinf
term4x = np.dot(Dleeqx[f], Gamma_Sq)
term5x = np.dot(Dleehx[f], Gamma_wh)
term6x = gamma_Sl * sum(Aleex) / (2 * np.pi)
term7x = gamma_T * sum(Tleex) / (2 * np.pi)
Vleex[f] = term1x + term2x + term3x + term4x + term5x + term6x + term7x
return Vleex