你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-08 07:24:19 +08:00
Changed PML thickness from tuple into ordered dictionary.
这个提交包含在:
@@ -16,12 +16,15 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with gprMax. If not, see <http://www.gnu.org/licenses/>.
|
# along with gprMax. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
from collections import OrderedDict
|
||||||
|
|
||||||
from colorama import init, Fore, Style
|
from colorama import init, Fore, Style
|
||||||
init()
|
init()
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
|
||||||
from gprMax.constants import c, floattype, complextype
|
from gprMax.constants import c, floattype, complextype
|
||||||
from gprMax.materials import Material
|
from gprMax.materials import Material
|
||||||
|
from gprMax.pml import PML
|
||||||
from gprMax.utilities import round_value
|
from gprMax.utilities import round_value
|
||||||
|
|
||||||
|
|
||||||
@@ -92,7 +95,7 @@ class FDTDGrid(Grid):
|
|||||||
self.timewindow = 0
|
self.timewindow = 0
|
||||||
self.nthreads = 0
|
self.nthreads = 0
|
||||||
self.cfs = []
|
self.cfs = []
|
||||||
self.pmlthickness = 10
|
self.pmlthickness = OrderedDict((key, 10) for key in PML.slabs)
|
||||||
self.pmls = []
|
self.pmls = []
|
||||||
self.materials = []
|
self.materials = []
|
||||||
self.mixingmodels = []
|
self.mixingmodels = []
|
||||||
|
在新工单中引用
屏蔽一个用户