PointSource

class pysit.core.sources.PointSource(mesh, pos, src_func, intensity=1.0, **kwargs)[source]

Bases: pysit.core.mesh_representation.PointRepresentationBase, pysit.core.sources.SourceBase

Subclass of PointRepresentationBase and SourceBase for representing a point source emitter on a grid.

Attributes:
domain : pysit.Domain

Inherited from base class.

position : tuple of float

Inherited from base class.

sampling_operator : scipy.sparse matrix

Inherited from base class.

adjoint_sampling_operator : scipy.sparse matrix

Inherited from base class.

intensity : float, optional

Intensity of the source wavelet.

w : function or function object

Function of time that produces the source wavelet.

Methods

f(t, **kwargs) Evaluate w(t)*delta(x-x’) numerically.

Methods Summary

f(self[, t, nu]) Evaluate source emitter at time t on numerical grid.
serialize_dict(self[, i])
unserialize_dict(self, d)

Methods Documentation

f(self, t=0.0, nu=None, **kwargs)[source]

Evaluate source emitter at time t on numerical grid.

Parameters:
t : float

Time at which to evaluate the source wavelet.

**kwargs : dict, optional

May pass additional parameters to the source wavelet call.

Returns:
The function w evaluated on a grid as an ndarray shaped like the domain.
serialize_dict(self, i=None)[source]
unserialize_dict(self, d)[source]