你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-07 15:10:13 +08:00
Added a pre-commit config file and reformatted all the files accordingly by using it.
这个提交包含在:
@@ -1,8 +1,8 @@
|
||||
"""An antenna model similar to a MALA 1.2GHz antenna in free space
|
||||
|
||||
This example model demonstrates how to use one of the built-in antenna models.
|
||||
This example model demonstrates how to use one of the built-in antenna models.
|
||||
|
||||
The geometry is 3D and the domain filled with freespace (the default). The
|
||||
The geometry is 3D and the domain filled with freespace (the default). The
|
||||
antenna model method is imported from its toolbox and the objects that build the
|
||||
antenna are iteratively added to the scene.
|
||||
"""
|
||||
@@ -25,7 +25,7 @@ z = 0.220
|
||||
|
||||
scene = gprMax.Scene()
|
||||
|
||||
title = gprMax.Title(name=fn.with_suffix('').name)
|
||||
title = gprMax.Title(name=fn.with_suffix("").name)
|
||||
domain = gprMax.Domain(p1=(x, y, z))
|
||||
dxdydz = gprMax.Discretisation(p1=(dl, dl, dl))
|
||||
time_window = gprMax.TimeWindow(time=6e-9)
|
||||
@@ -37,8 +37,7 @@ scene.add(time_window)
|
||||
|
||||
# Import antenna model and add to model
|
||||
ant_pos = (0.132, 0.095, 0.100)
|
||||
mala_objects = antenna_like_MALA_1200(ant_pos[0], ant_pos[1], ant_pos[2],
|
||||
resolution=dl)
|
||||
mala_objects = antenna_like_MALA_1200(ant_pos[0], ant_pos[1], ant_pos[2], resolution=dl)
|
||||
for obj in mala_objects:
|
||||
scene.add(obj)
|
||||
|
||||
|
在新工单中引用
屏蔽一个用户