你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-07 23:14:03 +08:00
Refactored Lorentz coefficient expressions.
这个提交包含在:
@@ -106,13 +106,13 @@ class Material(object):
|
|||||||
elif self.type == 'lorentz':
|
elif self.type == 'lorentz':
|
||||||
# tau for Lorentz materials are pole frequencies
|
# tau for Lorentz materials are pole frequencies
|
||||||
# alpha for Lorentz materials are the damping coefficients
|
# alpha for Lorentz materials are the damping coefficients
|
||||||
wp2 = (2 * np.pi * self.tau[x]) * (2 * np.pi * (1 / self.tau[x]))
|
wp2 = (2 * np.pi * self.tau[x])**2
|
||||||
self.w[x] = -(wp2 * self.deltaer[x]) * 1j / np.sqrt(wp2 - (self.alpha[x] * self.alpha[x]))
|
self.w[x] = -1j * ((wp2 * self.deltaer[x]) / np.sqrt(wp2 - self.alpha[x]**2))
|
||||||
self.q[x] = -self.alpha[x] + np.sqrt(wp2 - (self.alpha[x] * self.alpha[x])) * 1j
|
self.q[x] = -self.alpha[x] + (1j * np.sqrt(wp2 - self.alpha[x]**2))
|
||||||
elif self.type == 'drude':
|
elif self.type == 'drude':
|
||||||
# tau for Drude materials are pole frequencies
|
# tau for Drude materials are pole frequencies
|
||||||
# alpha for Drude materials are the inverse of relaxation times
|
# alpha for Drude materials are the inverse of relaxation times
|
||||||
wp2 = (2 * np.pi * self.tau[x]) * (2 * np.pi * self.tau[x])
|
wp2 = (2 * np.pi * self.tau[x])**2
|
||||||
self.se += wp2 / self.alpha[x]
|
self.se += wp2 / self.alpha[x]
|
||||||
self.w[x] = - (wp2 / self.alpha[x])
|
self.w[x] = - (wp2 / self.alpha[x])
|
||||||
self.q[x] = - self.alpha[x]
|
self.q[x] = - self.alpha[x]
|
||||||
|
在新工单中引用
屏蔽一个用户