Skip to content

Commit

Permalink
Update turbStats.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mao114 authored Jan 20, 2022
1 parent f9d1f0e commit 1025094
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions turbStats.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ def tilt_mat(N, D, r0, L, save_path = './data', thre = 0.002, adj = 1, use_temp
np.save(os.path.join(save_path,'S_half-size_{}-D_r0_{:.4f}.npy'.format(N,D_r0)),data)


def get_r0(Cn2, L, lambda=0.5e-5):
r0 = ((0.423 * (2*np.pi/labmda)**2) * Cn2 * integrate.quad(_f,0,L,args=L)[0]) ** (-3/5)
def get_r0(Cn2, L, lbd=0.5e-6):
r0 = ((0.423 * (2*np.pi/lbd)**2) * Cn2 * integrate.quad(_f,0,L,args=L)[0]) ** (-3/5)

return r0

Expand Down

0 comments on commit 1025094

Please sign in to comment.