salvus.flow.simple_config.receiver.cartesian.collections
salvus.flow.simple_config.receiver.cartesian.collections salvus flow simple_config receiver cartesian collections Cartesian receiver collections.
Classes
ArrayPoint2D
ArrayPoint2Dclass ArrayPoint2D(salvus.flow.simple_config.receiver._ReceiverCollection):
def __init__(
self,
x: float | np.ndarray,
y: float | np.ndarray,
fields: list[str],
network_code: str = "XX",
station_code_pattern: str = "A{:04}",
location_code: str = "",
): ...All the operations on a read-only sequence.
Concrete subclasses must override new or init, getitem, and len.
Create an array of 2D point receivers given x and y coordinates.
xfloat | np.ndarray — X-coordinatesyfloat | np.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[_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 = "",
): ...All the operations on a read-only sequence.
Concrete subclasses must override new or init, getitem, and len.
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[_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 = "",
): ...All the operations on a read-only sequence.
Concrete subclasses must override new or init, getitem, and len.
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[_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 = "",
): ...All the operations on a read-only sequence.
Concrete subclasses must override new or init, getitem, and len.
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[_Base]: ...Convert to a list of receivers.
SideSetArrayPoint3D
SideSetArrayPoint3Dclass SideSetArrayPoint3D(
salvus.flow.simple_config.receiver._ReceiverCollection
):
def __init__(
self,
x: np.ndarray,
y: np.ndarray,
depth_in_meters: float,
fields: list[str],
network_code: str = "XX",
station_code_pattern: str = "A{:04}",
location_code: str = "",
): ...All the operations on a read-only sequence.
Concrete subclasses must override new or init, getitem, and len.
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).
xnp.ndarray — 1-D array of x coordinates.ynp.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[_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 = "",
): ...All the operations on a read-only sequence.
Concrete subclasses must override new or init, getitem, and len.
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[_Base]: ...Convert to a list of receivers.