serendipyty.seismic.input.sources

Created on Wed Feb 7 15:10:52 2018

@author: Filippo Broggini (ETH Zürich) - filippo.broggini@erdw.ethz.ch

Classes

BaseSource(**kwargs) Base class for representing a source emitter on a grid.
PointSource(loc, wavelet[, mode]) Subclass of BaseSource for representing a point source emitter on a grid.
class serendipyty.seismic.input.sources.BaseSource(**kwargs)[source]

Bases: object

Base class for representing a source emitter on a grid.

Methods

plot([tmax, aspect, style, figsize]) Plot the source wavelet.
set_shot(shot)
__init__(**kwargs)[source]

Constructor for the BaseSource class.

plot(tmax=None, aspect='auto', style='wavelet', figsize=None)[source]

Plot the source wavelet.

Parameters:

tmax : float

Max time to plot.

aspect: float, ‘auto’, ‘equal’

See matplotlib documentation.

style: str

Not used.

__weakref__

list of weak references to the object (if defined)

class serendipyty.seismic.input.sources.PointSource(loc, wavelet, mode='q')[source]

Bases: serendipyty.seismic.input.sources.BaseSource

Subclass of BaseSource for representing a point source emitter on a grid.

Parameters:

loc : float, ndarray

Location of the source in the physical coordinates of the domain. loc should be a (n x 3) ndarray, where n denotes the number of sources.

wavelet : BaseWavelet

Function of time that produces the source wavelet. If only one source location is present, then wavelet should be a (1 x nt) ndarray. If multiple (n) source locations are present, then wavelet can be a (1 x nt) ndarray or a (n x nt) ndarray. In the first case, the same wavelet will be used for all source locations.

mode : string, optional

Mode of the source. Monopole source: ‘q’, 0. Dipole sources: ‘fx’, 1, ‘fy’, 2, ‘fz’, 3.

**kwargs : dict, optional

May be used to specify approximation and approximation_width to base class.

Methods

plot([tmax, aspect, style, figsize]) Plot the source wavelet.
set_shot(shot)
__init__(loc, wavelet, mode='q')[source]

Constructor for the PointSource class.