你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-07 15:10:13 +08:00
Added space in comments.
这个提交包含在:
@@ -136,6 +136,7 @@ def geometry_view(xs, ys, zs, xf, yf, zf, dx, dy, dz, filename, type='n'):
|
|||||||
dx, dy, dz (float): Spatial discretisation of geometry view.
|
dx, dy, dz (float): Spatial discretisation of geometry view.
|
||||||
filename (str): Filename where geometry file information will be stored.
|
filename (str): Filename where geometry file information will be stored.
|
||||||
type (str): Can be either n (normal) or f (fine) which specifies whether to output the geometry information on a per-cell basis (n) or a per-cell-edge basis (f).
|
type (str): Can be either n (normal) or f (fine) which specifies whether to output the geometry information on a per-cell basis (n) or a per-cell-edge basis (f).
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
s, f, d (tuple): 3 namedtuple Coordinate for the start, finish coordinates and spatial discretisation
|
s, f, d (tuple): 3 namedtuple Coordinate for the start, finish coordinates and spatial discretisation
|
||||||
"""
|
"""
|
||||||
@@ -155,6 +156,7 @@ def snapshot(xs, ys, zs, xf, yf, zf, dx, dy, dz, time, filename):
|
|||||||
dx, dy, dz (float): Spatial discretisation of geometry view.
|
dx, dy, dz (float): Spatial discretisation of geometry view.
|
||||||
time (float): Time in seconds (float) or the iteration number (integer) which denote the point in time at which the snapshot will be taken.
|
time (float): Time in seconds (float) or the iteration number (integer) which denote the point in time at which the snapshot will be taken.
|
||||||
filename (str): Filename where geometry file information will be stored.
|
filename (str): Filename where geometry file information will be stored.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
s, f, d (tuple): 3 namedtuple Coordinate for the start, finish coordinates and spatial discretisation
|
s, f, d (tuple): 3 namedtuple Coordinate for the start, finish coordinates and spatial discretisation
|
||||||
"""
|
"""
|
||||||
@@ -178,6 +180,7 @@ def edge(xs, ys, zs, xf, yf, zf, material):
|
|||||||
Args:
|
Args:
|
||||||
xs, ys, zs, xf, yf, zf (float): Start and finish coordinates.
|
xs, ys, zs, xf, yf, zf (float): Start and finish coordinates.
|
||||||
material (str): Material identifier.
|
material (str): Material identifier.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
s, f (tuple): 2 namedtuple Coordinate for the start and finish coordinates
|
s, f (tuple): 2 namedtuple Coordinate for the start and finish coordinates
|
||||||
"""
|
"""
|
||||||
@@ -194,6 +197,7 @@ def plate(xs, ys, zs, xf, yf, zf, material):
|
|||||||
Args:
|
Args:
|
||||||
xs, ys, zs, xf, yf, zf (float): Start and finish coordinates.
|
xs, ys, zs, xf, yf, zf (float): Start and finish coordinates.
|
||||||
material (str): Material identifier(s).
|
material (str): Material identifier(s).
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
s, f (tuple): 2 namedtuple Coordinate for the start and finish coordinates
|
s, f (tuple): 2 namedtuple Coordinate for the start and finish coordinates
|
||||||
"""
|
"""
|
||||||
@@ -211,6 +215,7 @@ def triangle(x1, y1, z1, x2, y2, z2, x3, y3, z3, thickness, material):
|
|||||||
x1, y1, z1, x2, y2, z2, x3, y3, z3 (float): Coordinates of the vertices.
|
x1, y1, z1, x2, y2, z2, x3, y3, z3 (float): Coordinates of the vertices.
|
||||||
thickness (float): Thickness for a triangular prism, or zero for a triangular patch.
|
thickness (float): Thickness for a triangular prism, or zero for a triangular patch.
|
||||||
material (str): Material identifier(s).
|
material (str): Material identifier(s).
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
v1, v2, v3 (tuple): 3 namedtuple Coordinate for the vertices
|
v1, v2, v3 (tuple): 3 namedtuple Coordinate for the vertices
|
||||||
"""
|
"""
|
||||||
@@ -298,6 +303,7 @@ def excitation_file(file1):
|
|||||||
|
|
||||||
Args:
|
Args:
|
||||||
file1 (str): filename
|
file1 (str): filename
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
file1 (str): filename
|
file1 (str): filename
|
||||||
"""
|
"""
|
||||||
@@ -314,6 +320,7 @@ def waveform(shape, amplitude, frequency, identifier):
|
|||||||
amplitude (float): is the amplitude of the waveform.
|
amplitude (float): is the amplitude of the waveform.
|
||||||
frequency (float): is the frequency of the waveform in Hertz.
|
frequency (float): is the frequency of the waveform in Hertz.
|
||||||
identifier (str): is an identifier for the waveform used to assign it to a source.
|
identifier (str): is an identifier for the waveform used to assign it to a source.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
identifier (str): is an identifier for the waveform used to assign it to a source.
|
identifier (str): is an identifier for the waveform used to assign it to a source.
|
||||||
"""
|
"""
|
||||||
@@ -331,6 +338,7 @@ def hertzian_dipole(polarization, f1, f2, f3, identifier, t0=None, t_remove=None
|
|||||||
identifier (str): is the identifier of the waveform that should be used with the source.
|
identifier (str): is the identifier of the waveform that should be used with the source.
|
||||||
t0 (float): is an optinal argument for the time delay in starting the source.
|
t0 (float): is an optinal argument for the time delay in starting the source.
|
||||||
t_remove (float): is a time to remove the source.
|
t_remove (float): is a time to remove the source.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
coordinates (tuple): namedtuple Coordinate of the source location
|
coordinates (tuple): namedtuple Coordinate of the source location
|
||||||
"""
|
"""
|
||||||
@@ -348,6 +356,7 @@ def rx(x, y, z, identifier=None, to_save=None):
|
|||||||
x, y, z (float): are the coordinates (x,y,z) of the receiver in the model.
|
x, y, z (float): are the coordinates (x,y,z) of the receiver in the model.
|
||||||
identifier (str): is the optional identifier of the receiver
|
identifier (str): is the optional identifier of the receiver
|
||||||
to_save (list): is a list of outputs with this receiver. It can be any selection from 'Ex', 'Ey', 'Ez', 'Hx', 'Hy', 'Hz', 'Ix', 'Iy', or 'Iz'.
|
to_save (list): is a list of outputs with this receiver. It can be any selection from 'Ex', 'Ey', 'Ez', 'Hx', 'Hy', 'Hz', 'Ix', 'Iy', or 'Iz'.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
coordinates (tuple): namedtuple Coordinate of the receiver location
|
coordinates (tuple): namedtuple Coordinate of the receiver location
|
||||||
"""
|
"""
|
||||||
@@ -362,6 +371,7 @@ def src_steps(dx=0, dy=0, dz=0):
|
|||||||
|
|
||||||
Args:
|
Args:
|
||||||
dx, dy, dz (float): are the increments in (x, y, z) to move all simple sources or all receivers.
|
dx, dy, dz (float): are the increments in (x, y, z) to move all simple sources or all receivers.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
coordinates (tuple): namedtuple Coordinate of the increments
|
coordinates (tuple): namedtuple Coordinate of the increments
|
||||||
"""
|
"""
|
||||||
@@ -377,6 +387,7 @@ def rx_steps(dx=0, dy=0, dz=0):
|
|||||||
|
|
||||||
Args:
|
Args:
|
||||||
dx, dy, dz (float): are the increments in (x, y, z) to move all simple sources or all receivers.
|
dx, dy, dz (float): are the increments in (x, y, z) to move all simple sources or all receivers.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
coordinates (tuple): namedtuple Coordinate of the increments
|
coordinates (tuple): namedtuple Coordinate of the increments
|
||||||
"""
|
"""
|
||||||
|
在新工单中引用
屏蔽一个用户