你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-08 07:24:19 +08:00
Updated material name when creating a material for a resistive voltage source.
这个提交包含在:
@@ -405,7 +405,7 @@ def run_model(args, modelrun, numbermodelruns, inputfile, usernamespace):
|
|||||||
requirednumID = G.ID[0, source.positionx, source.positiony, source.positionz]
|
requirednumID = G.ID[0, source.positionx, source.positiony, source.positionz]
|
||||||
material = next(x for x in G.materials if x.numID == requirednumID)
|
material = next(x for x in G.materials if x.numID == requirednumID)
|
||||||
newmaterial = deepcopy(material)
|
newmaterial = deepcopy(material)
|
||||||
newmaterial.ID = material.ID + '|VoltageSource_' + str(source.resistance)
|
newmaterial.ID = material.ID + '+VoltageSource_' + str(source.resistance)
|
||||||
newmaterial.numID = len(G.materials)
|
newmaterial.numID = len(G.materials)
|
||||||
newmaterial.se += G.dx / (source.resistance * G.dy * G.dz)
|
newmaterial.se += G.dx / (source.resistance * G.dy * G.dz)
|
||||||
newmaterial.average = False
|
newmaterial.average = False
|
||||||
@@ -414,7 +414,7 @@ def run_model(args, modelrun, numbermodelruns, inputfile, usernamespace):
|
|||||||
requirednumID = G.ID[1, source.positionx, source.positiony, source.positionz]
|
requirednumID = G.ID[1, source.positionx, source.positiony, source.positionz]
|
||||||
material = next(x for x in G.materials if x.numID == requirednumID)
|
material = next(x for x in G.materials if x.numID == requirednumID)
|
||||||
newmaterial = deepcopy(material)
|
newmaterial = deepcopy(material)
|
||||||
newmaterial.ID = material.ID + '|VoltageSource_' + str(source.resistance)
|
newmaterial.ID = material.ID + '+VoltageSource_' + str(source.resistance)
|
||||||
newmaterial.numID = len(G.materials)
|
newmaterial.numID = len(G.materials)
|
||||||
newmaterial.se += G.dy / (source.resistance * G.dx * G.dz)
|
newmaterial.se += G.dy / (source.resistance * G.dx * G.dz)
|
||||||
newmaterial.average = False
|
newmaterial.average = False
|
||||||
@@ -423,7 +423,7 @@ def run_model(args, modelrun, numbermodelruns, inputfile, usernamespace):
|
|||||||
requirednumID = G.ID[2, source.positionx, source.positiony, source.positionz]
|
requirednumID = G.ID[2, source.positionx, source.positiony, source.positionz]
|
||||||
material = next(x for x in G.materials if x.numID == requirednumID)
|
material = next(x for x in G.materials if x.numID == requirednumID)
|
||||||
newmaterial = deepcopy(material)
|
newmaterial = deepcopy(material)
|
||||||
newmaterial.ID = material.ID + '|VoltageSource_' + str(source.resistance)
|
newmaterial.ID = material.ID + '+VoltageSource_' + str(source.resistance)
|
||||||
newmaterial.numID = len(G.materials)
|
newmaterial.numID = len(G.materials)
|
||||||
newmaterial.se += G.dz / (source.resistance * G.dx * G.dy)
|
newmaterial.se += G.dz / (source.resistance * G.dx * G.dy)
|
||||||
newmaterial.average = False
|
newmaterial.average = False
|
||||||
|
在新工单中引用
屏蔽一个用户