你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-07 23:14:03 +08:00
Merge remote-tracking branch 'origin/master'
这个提交包含在:
@@ -264,7 +264,7 @@ Allows you to introduce a material into the model described by a set of constitu
|
|||||||
* ``f1`` is the relative permittivity, :math:`\epsilon_r`
|
* ``f1`` is the relative permittivity, :math:`\epsilon_r`
|
||||||
* ``f2`` is the conductivity (Siemens/metre), :math:`\sigma`
|
* ``f2`` is the conductivity (Siemens/metre), :math:`\sigma`
|
||||||
* ``f3`` is the relative permeability, :math:`\mu_r`
|
* ``f3`` is the relative permeability, :math:`\mu_r`
|
||||||
* ``f4`` is the magnetic conductivity, :math:`\sigma_*`
|
* ``f4`` is the magnetic loss (Ohms/metre), :math:`\sigma_*`
|
||||||
* ``str1`` is an identifier for the material.
|
* ``str1`` is an identifier for the material.
|
||||||
|
|
||||||
For example ``#material: 3 0.01 1 0 my_sand`` creates a material called ``my_sand`` which has a relative permittivity (frequency independent) of :math:`\epsilon_r = 3`, a conductivity of :math:`\sigma = 0.01` S/m, and is non-magnetic, i.e. :math:`\mu_r = 1` and :math:`\sigma_* = 0`
|
For example ``#material: 3 0.01 1 0 my_sand`` creates a material called ``my_sand`` which has a relative permittivity (frequency independent) of :math:`\epsilon_r = 3`, a conductivity of :math:`\sigma = 0.01` S/m, and is non-magnetic, i.e. :math:`\mu_r = 1` and :math:`\sigma_* = 0`
|
||||||
|
@@ -258,7 +258,7 @@ def run_model(args, modelrun, numbermodelruns, inputfile, inputdirectory):
|
|||||||
dielectricsmoothing = 'dielectric smoothing permitted.'
|
dielectricsmoothing = 'dielectric smoothing permitted.'
|
||||||
else:
|
else:
|
||||||
dielectricsmoothing = 'dielectric smoothing not permitted.'
|
dielectricsmoothing = 'dielectric smoothing not permitted.'
|
||||||
print('{:3}\t{:12}\tepsr={:4.2f}, sig={:.3e} S/m; mur={:4.2f}, sig*={:.3e} S/m; '.format(material.numID, material.ID, material.er, material.se, material.mr, material.sm) + tmp + dielectricsmoothing)
|
print('{:3}\t{:12}\tepsr={:4.2f}, sig={:.3e} S/m; mur={:4.2f}, sig*={:.3e} Ohms/m; '.format(material.numID, material.ID, material.er, material.se, material.mr, material.sm) + tmp + dielectricsmoothing)
|
||||||
|
|
||||||
# Write files for any geometry views
|
# Write files for any geometry views
|
||||||
if G.geometryviews:
|
if G.geometryviews:
|
||||||
|
@@ -43,10 +43,14 @@ 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)
|
||||||
|
在新工单中引用
屏蔽一个用户