你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-07 23:14:03 +08:00
fixed "gaussiandotdot", "gaussiandotdotnorm" and "ricker" formulae to produce the correct centre frequency wavelet as requested by the user.
这个提交包含在:
@@ -43,11 +43,15 @@ class Waveform:
|
|||||||
Returns:
|
Returns:
|
||||||
waveform (float): Calculated value for waveform.
|
waveform (float): Calculated value for waveform.
|
||||||
"""
|
"""
|
||||||
|
if self.type == 'gaussiandotdot' or self.type == 'gaussiandotdotnorm' or self.type == "ricker":
|
||||||
chi = 1 / self.freq
|
chi = np.sqrt(2) / self.freq
|
||||||
zeta = 2 * np.pi * np.pi * self.freq * self.freq
|
zeta = 2 * np.pi * np.pi * self.freq * self.freq /2
|
||||||
delay = time - chi
|
delay = time - chi
|
||||||
|
else:
|
||||||
|
chi = 1 / self.freq
|
||||||
|
zeta = 2 * np.pi * np.pi * self.freq * self.freq
|
||||||
|
delay = time - chi
|
||||||
|
|
||||||
if self.type == 'gaussian':
|
if self.type == 'gaussian':
|
||||||
waveform = np.exp(-zeta * delay * delay)
|
waveform = np.exp(-zeta * delay * delay)
|
||||||
|
|
||||||
|
在新工单中引用
屏蔽一个用户