salvus.flow.simple_config.receiver.cartesian.collections
Cartesian receiver collections.
Classes
ArrayPoint2D
ArrayPoint2Dclass ArrayPoint2D(salvus.flow.simple_config.receiver._ReceiverCollection):
def __init__(
self,
x: Union[float, numpy.ndarray],
y: Union[float, numpy.ndarray],
fields: List[str],
network_code: str = "XX",
station_code_pattern: str = "A{:04}",
location_code: str = "",
): ...Create an array of 2D point receivers given x and y coordinates.
xUnion[float, numpy.ndarray] — X-coordinatesyUnion[float, numpy.ndarray] — Y-coordinatesfieldsList[str] — Fields to store.network_codestr — Network code.station_code_patternstr — Station code pattern.location_codestr — Location code.
to_list()
to_list()def to_list(self) -> List[salvus.flow.simple_config.receiver._Base]: ...Convert to a list of receivers.
RingPoint2D
RingPoint2Dclass RingPoint2D(salvus.flow.simple_config.receiver._ReceiverCollection):
def __init__(
self,
x: float,
y: float,
radius: float,
count: int,
fields: List[str],
network_code: str = "XX",
station_code_pattern: str = "A{:04}",
location_code: str = "",
): ...Create a ring of Point2D receivers.
xfloat — x-coordinate of the center.yfloat — y-coordinate of the center.radiusfloat — Radius of the ring in meters.countint — Number or receivers to create.fieldsList[str] — Which fields to save for the receivers.network_codestr — Station code for all the receivers.station_code_patternstr — Station code pattern. Will be called with str.format() and the receiver index as the sole argument.location_codestr — Location code for all receivers.
to_list()
to_list()def to_list(self) -> List[salvus.flow.simple_config.receiver._Base]: ...Convert to a list of receivers.
RingPoint3D
RingPoint3Dclass RingPoint3D(salvus.flow.simple_config.receiver._ReceiverCollection):
def __init__(
self,
x: float,
y: float,
z: float,
radius: float,
count: int,
fields: List[str],
network_code: str = "XX",
station_code_pattern: str = "A{:04}",
location_code: str = "",
): ...Create a ring of Point3D receivers in the x-y-plane at a fixed elevation in the z direction.
xfloat — x-coordinate of the center.yfloat — y-coordinate of the center.zfloat — z-coordinate for the elevation of the ring.radiusfloat — Radius of the ring in meters.countint — Number or receivers to create.fieldsList[str] — Which fields to save for the receivers.network_codestr — Station code for all the receivers.station_code_patternstr — Station code pattern. Will be called with str.format() and the receiver index as the sole argument.location_codestr — Location code for all receivers.
to_list()
to_list()def to_list(self) -> List[salvus.flow.simple_config.receiver._Base]: ...Convert to a list of receivers.
RingsOnSpherePoint3D
RingsOnSpherePoint3Dclass RingsOnSpherePoint3D(
salvus.flow.simple_config.receiver._ReceiverCollection
):
def __init__(
self,
x: float,
y: float,
z: float,
radius: float,
elevations: List[float],
spacing_in_meters: float,
fields: List[str],
network_code: str = "XX",
station_code_pattern: str = "A{:04}",
location_code: str = "",
): ...Create a spherical aperture with Point3D receivers aligned on rings at different elevations of the sphere. The number of receivers per elevation is determined based on the spacing in meters.
xfloat — x-coordinate of the center.yfloat — y-coordinate of the center.zfloat — z-coordinate of the center.radiusfloat — Radius of the ring in meters.elevationsList[float] — z-elevations of the ring.spacing_in_metersfloat — approximate horizontal spacing between the receivers.fieldsList[str] — Which fields to save for the receivers.network_codestr — Station code for all the receivers.station_code_patternstr — Station code pattern. Will be called with str.format() and the receiver index as the sole argument.location_codestr — Location code for all receivers.
to_list()
to_list()def to_list(self) -> List[salvus.flow.simple_config.receiver._Base]: ...Convert to a list of receivers.
SideSetArrayPoint3D
SideSetArrayPoint3Dclass SideSetArrayPoint3D(
salvus.flow.simple_config.receiver._ReceiverCollection
):
def __init__(
self,
x: numpy.ndarray,
y: numpy.ndarray,
depth_in_meters: float,
fields: List[str],
network_code: str = "XX",
station_code_pattern: str = "A{:04}",
location_code: str = "",
): ...Create a 2-D array of point receivers appropriate for 3-D simulations.
Internally this function will create a meshgrid-like array of
receivers, spanned by the 1-D x and y coordinate arrays. Receivers
will be buried depth meters below the "z1" side set (which
generally represents the surface in a 3-D Cartesian mesh).
xnumpy.ndarray — 1-D array of x coordinates.ynumpy.ndarray — 1-D array of y coordinates.depth_in_metersfloat — Depth of the receivers below the z1 side set.fieldsList[str] — Fields that the receivers should save.network_codestr — Network code. Defaults to “XX”.station_code_patternstr — Station code pattern. Defaults to “A{:04}”.location_codestr — Location code. Defaults to "".
to_list()
to_list()def to_list(self) -> List[salvus.flow.simple_config.receiver._Base]: ...Convert to a list of receivers.
SpherePoint3D
SpherePoint3Dclass SpherePoint3D(salvus.flow.simple_config.receiver._ReceiverCollection):
def __init__(
self,
x: float,
y: float,
z: float,
radius: float,
count: int,
fields: List[str],
network_code: str = "XX",
station_code_pattern: str = "A{:04}",
location_code: str = "",
): ...Create a sphere of Point3D receivers using the Fibonacci algorithm.
xfloat — x-coordinate of the center.yfloat — y-coordinate of the center.zfloat — z-coordinate of the center.radiusfloat — Radius of the sphere in meters.countint — Number or receivers to create.fieldsList[str] — Which fields to save for the receivers.network_codestr — Station code for all the receivers.station_code_patternstr — Station code pattern. Will be called with str.format() and the receiver index as the sole argument.location_codestr — Location code for all receivers.
to_list()
to_list()def to_list(self) -> List[salvus.flow.simple_config.receiver._Base]: ...Convert to a list of receivers.