def fls_double(z2, z1, t, dis, alpha, reaSource=True, imgSource=True):
""" FLS expression for double integral solution.
"""
r_pos = np.sqrt(dis**2 + (z2 - z1)**2)
r_neg = np.sqrt(dis**2 + (z2 + z1)**2)
fls = 0.
if reaSource:
fls += 0.5*erfc(r_pos/np.sqrt(4*alpha*t))/r_pos
if imgSource:
fls += -0.5*erfc(r_neg/np.sqrt(4*alpha*t))/r_neg
return fls
评论列表
文章目录