Merge pull request #238 from sigurdeide/master

Update file gprMax/input_cmd_funcs.py
这个提交包含在:
Craig Warren
2020-02-07 10:40:45 +01:00
提交者 GitHub
当前提交 4dd155dffd

查看文件

@@ -695,3 +695,20 @@ def rx_steps(dx=0, dy=0, dz=0):
c = Coordinate(dx, dy, dz)
command('rx_steps', str(c))
return c
def geometry_objects_read(x, y, z, file1, file2):
"""Prints the #geometry_objects_read command.
Args:
x y z are the lower left (x,y,z) coordinates in the domain where the lower left corner of the geometry array should be placed.
file1 is the path to and filename of the HDF5 file that contains an integer array which defines the geometry.
file2 is the path to and filename of the text file that contains #material commands.
not used: c1 is an optional parameter which can be y or n, used to switch on and off dielectric smoothing. Dielectric smoothing can only be turned on if the geometry objects that are being read were originally generated by gprMax, i.e. via the #geometry_objects_write command.
Returns:
coordinates (tuple): namedtuple Coordinate in the domain where the lower left corner of the geometry array is placed.
"""
c = Coordinate(x, y, z)
command('geometry_objects_read', str(c), file1, file2)
return c