你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-08 15:27:57 +08:00
materials macro for evtk
这个提交包含在:
@@ -205,8 +205,10 @@ class GeometryView:
|
||||
pml = np.ones((G.nx, G.ny, G.nz))
|
||||
pml[10:-10, 10:-10, 10:-10] = 0
|
||||
|
||||
material_ids = ','.join([m.ID for m in G.materials if '+' not in m.ID])
|
||||
|
||||
fp = './test-evtk-hl'
|
||||
rectilinearToVTK(fp, x, y, z, cellData = {"materials" : G.solid, "pml": pml}, comments = ['hi', 'world'])
|
||||
rectilinearToVTK(fp, x, y, z, cellData = {"Material" : G.solid, "pml": pml}, comments = [material_ids, 'world'])
|
||||
|
||||
def write_vtk(self, G, pbar):
|
||||
"""Writes the geometry information to a VTK file.
|
||||
|
在新工单中引用
屏蔽一个用户