source

This file contains the Source class for storing information on the type and location of an active-source.

class Source(x, y, z)

Bases: object

A Source class for storing information about an active-source.

__init__(x, y, z)

Initialize a Source class object.

Parameters:

x, y, z (float) – Source position in terms of x, y, and z all in meters.

Returns:

Source – Initialized Source object.

classmethod from_source(other)
property x
property y
property z
class SourceWithSignal(x, y, z, amp, dt)

Bases: Source, TimeSeries

Contains source position and signal information.

__init__(x, y, z, amp, dt)

Create from spatial and signal information.

Parameters:
  • x, y, z (float) – Source position in terms of x, y, and z all in meters.

  • amp (interable of floats) – Amplitude of source signal.

  • dt (float) – Time step in seconds.

Returns:

Source – Initialized Source object.