你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-07 04:56:51 +08:00
Change to the build PML function name.
这个提交包含在:
@@ -35,7 +35,7 @@ from gprMax.input_cmds_multiuse import process_multicmds
|
|||||||
from gprMax.input_cmds_singleuse import process_singlecmds
|
from gprMax.input_cmds_singleuse import process_singlecmds
|
||||||
from gprMax.materials import Material
|
from gprMax.materials import Material
|
||||||
from gprMax.output import prepare_output_file, write_output
|
from gprMax.output import prepare_output_file, write_output
|
||||||
from gprMax.pml import build_pml, update_electric_pml, update_magnetic_pml
|
from gprMax.pml import build_pmls, update_electric_pml, update_magnetic_pml
|
||||||
from gprMax.utilities import update_progress, logo, human_size
|
from gprMax.utilities import update_progress, logo, human_size
|
||||||
from gprMax.yee_cell_build import build_electric_components, build_magnetic_components
|
from gprMax.yee_cell_build import build_electric_components, build_magnetic_components
|
||||||
|
|
||||||
@@ -276,7 +276,7 @@ def run_model(args, modelrun, numbermodelruns, inputfile, usernamespace):
|
|||||||
print('\nInput file processed in [HH:MM:SS]: {}'.format(datetime.timedelta(seconds=int(tinputprocend - tinputprocstart))))
|
print('\nInput file processed in [HH:MM:SS]: {}'.format(datetime.timedelta(seconds=int(tinputprocend - tinputprocstart))))
|
||||||
|
|
||||||
# Build the PML and calculate initial coefficients
|
# Build the PML and calculate initial coefficients
|
||||||
build_pml(G)
|
build_pmls(G)
|
||||||
|
|
||||||
# Build the model, i.e. set the material properties (ID) for every edge of every Yee cell
|
# Build the model, i.e. set the material properties (ID) for every edge of every Yee cell
|
||||||
tbuildstart = perf_counter()
|
tbuildstart = perf_counter()
|
||||||
|
@@ -228,7 +228,7 @@ class PML:
|
|||||||
self.HRF[x, :] = (2*Hsigma*G.dt) / (Hkappa * tmp)
|
self.HRF[x, :] = (2*Hsigma*G.dt) / (Hkappa * tmp)
|
||||||
|
|
||||||
|
|
||||||
def build_pml(G):
|
def build_pmls(G):
|
||||||
"""This function builds instances of the PML and calculates the initial parameters and coefficients including setting profile
|
"""This function builds instances of the PML and calculates the initial parameters and coefficients including setting profile
|
||||||
(based on underlying material er and mr from solid array).
|
(based on underlying material er and mr from solid array).
|
||||||
"""
|
"""
|
||||||
|
在新工单中引用
屏蔽一个用户