你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-06 12:36:51 +08:00
Constants now imported from scipy.
这个提交包含在:
@@ -17,6 +17,12 @@
|
|||||||
# along with gprMax. If not, see <http://www.gnu.org/licenses/>.
|
# along with gprMax. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
from scipy.constants import c
|
||||||
|
from scipy.constants import mu_0 as m0
|
||||||
|
from scipy.constants import epsilon_0 as e0
|
||||||
|
|
||||||
|
# Impedance of free space (Ohms)
|
||||||
|
z0 = np.sqrt(m0 / e0)
|
||||||
|
|
||||||
# Data types:
|
# Data types:
|
||||||
# Solid and ID arrays use 32-bit integers (0 to 4294967295)
|
# Solid and ID arrays use 32-bit integers (0 to 4294967295)
|
||||||
@@ -25,16 +31,4 @@ import numpy as np
|
|||||||
# Main field arrays use floats (floattype) and complex numbers (complextype)
|
# Main field arrays use floats (floattype) and complex numbers (complextype)
|
||||||
|
|
||||||
floattype = np.float32
|
floattype = np.float32
|
||||||
complextype = np.complex64
|
complextype = np.complex64
|
||||||
|
|
||||||
# Speed of light in vacuum (m/s)
|
|
||||||
c = 2.9979245e8
|
|
||||||
|
|
||||||
# Permittivity of free space (F/m)
|
|
||||||
e0 = 8.854187e-12
|
|
||||||
|
|
||||||
# Permeability of free space (H/m)
|
|
||||||
m0 = 1.256637e-6
|
|
||||||
|
|
||||||
# Impedance of free space (Ohms)
|
|
||||||
z0 = 376.7303134
|
|
在新工单中引用
屏蔽一个用户