你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-07 23:14:03 +08:00
Reformatting some code.
这个提交包含在:
@@ -45,15 +45,15 @@ class Waveform:
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
# Coefficients for certain waveforms
|
# Coefficients for certain waveforms
|
||||||
if self.type == 'gaussiandotdot' or self.type == 'gaussiandotdotnorm' or self.type == 'ricker':
|
if self.type == 'gaussian' or self.type == 'gaussiandot' or self.type == 'gaussiandotnorm':
|
||||||
chi = np.sqrt(2) / self.freq
|
|
||||||
zeta = np.pi * np.pi * self.freq * self.freq
|
|
||||||
delay = time - chi
|
|
||||||
elif self.type == 'gaussian' or self.type == 'gaussiandot' or self.type == 'gaussiandotnorm':
|
|
||||||
chi = 1 / self.freq
|
chi = 1 / self.freq
|
||||||
zeta = 2 * np.pi * np.pi * self.freq * self.freq
|
zeta = 2 * np.pi * np.pi * self.freq * self.freq
|
||||||
delay = time - chi
|
delay = time - chi
|
||||||
|
elif self.type == 'gaussiandotdot' or self.type == 'gaussiandotdotnorm' or self.type == 'ricker':
|
||||||
|
chi = np.sqrt(2) / self.freq
|
||||||
|
zeta = np.pi * np.pi * self.freq * self.freq
|
||||||
|
delay = time - chi
|
||||||
|
|
||||||
# Waveforms
|
# Waveforms
|
||||||
if self.type == 'gaussian':
|
if self.type == 'gaussian':
|
||||||
waveform = np.exp(-zeta * delay * delay)
|
waveform = np.exp(-zeta * delay * delay)
|
||||||
|
在新工单中引用
屏蔽一个用户