你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-07 15:10:13 +08:00
PML default parameters and removed excess funcs
这个提交包含在:
@@ -50,16 +50,16 @@ class FDTDGrid:
|
||||
self.iterations = 0
|
||||
self.timewindow = 0
|
||||
|
||||
# PML parameters - set some defaults to use if not user provided
|
||||
self.pmls = {}
|
||||
self.pmls['formulation'] = None
|
||||
self.pmls['formulation'] = 'HORIPML'
|
||||
self.pmls['cfs'] = []
|
||||
self.pmls['slabs'] = []
|
||||
# Ordered dictionary required so that PMLs are always updated in the
|
||||
# same order. The order itself does not matter, however, if must be the
|
||||
# same from model to model otherwise the numerical precision from adding
|
||||
# the PML corrections will be different.
|
||||
self.pmls['thickness'] = OrderedDict((key, None) for key in PML.boundaryIDs)
|
||||
|
||||
self.pmls['thickness'] = OrderedDict((key, 10) for key in PML.boundaryIDs)
|
||||
|
||||
self.materials = []
|
||||
self.mixingmodels = []
|
||||
@@ -78,19 +78,6 @@ class FDTDGrid:
|
||||
self.snapshots = []
|
||||
self.subgrids = []
|
||||
|
||||
def n_edges(self):
|
||||
i = self.nx
|
||||
j = self.ny
|
||||
k = self.nz
|
||||
e = (i * j * (k - 1)) + (j * k * (i - 1)) + (i * k * (j - 1))
|
||||
return e
|
||||
|
||||
def n_nodes(self):
|
||||
return self.nx * self.ny * self.nz
|
||||
|
||||
def n_cells(self):
|
||||
return (self.nx - 1) * (self.ny - 1) * (self.nz - 1)
|
||||
|
||||
def within_bounds(self, p):
|
||||
if p[0] < 0 or p[0] > self.nx:
|
||||
raise ValueError('x')
|
||||
|
在新工单中引用
屏蔽一个用户