Acoular 18.01 documentation


«  MaskedTimeSamples   ::   sources   ::   PointSourceDipole  »


class acoular.sources.PointSource

Bases: acoular.sources.SamplesGenerator

Class to define a fixed point source with an arbitrary signal. This can be used in simulations.

The output is being generated via the result() generator.

signal = Trait(SignalGenerator)

Emitted signal, instance of the SignalGenerator class.

loc = Tuple((0.0, 0.0, 1.0), desc="source location")

Location of source in (x, y, z) coordinates (left-oriented system).

numchannels = Delegate('mpos', 'num_mics')

Number of channels in output, is set automatically / depends on used microphone geometry.

mpos = Trait(MicGeom, desc="microphone geometry")

Microphone locations as provided by a MicGeom-derived object.

env = Trait(Environment(), Environment)

Environment object that provides distances from grid points to microphone positions.

c = Float(343., desc="speed of sound")

Speed of sound, defaults to 343 m/s

start_t = Float(0.0, desc="signal start time")

Start time of the signal in seconds, defaults to 0 s.

start = Float(0.0, desc="sample start time")

Start time of the data aquisition at microphones in seconds, defaults to 0 s.

up = Int(16, desc="upsampling factor")

Upsampling factor, internal use, defaults to 16.

numsamples = Delegate('signal')

Number of samples, is set automatically / depends on signal.

sample_freq = Delegate('signal')

Sampling frequency of the signal, is set automatically / depends on signal.


Python generator that yields the output at microphones block-wise.


num : integer, defaults to 128

This parameter defines the size of the blocks to be yielded (i.e. the number of samples per block) .


Samples in blocks of shape (num, numchannels).

The last block may be shorter than num.

«  MaskedTimeSamples   ::   sources   ::   PointSourceDipole  »