# LineSource¶

class acoular.sources.LineSource

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

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

direction = Tuple((0.0, 0.0, 1.0), …

Vector to define the orientation of the line source

length = Float(1,desc="length of the line source")

Vector to define the length of the line source in m

num_sources = Int(1)

number of monopol sources in the line source

source_strength = CArray(desc="coefficients of the source strength")

source strength for every monopole

coherence = Trait( 'coherent', 'incoherent', …

coherence

result(num=128)

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

Parameters
numinteger, defaults to 128

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

Returns
Samples in blocks of shape (num, numchannels).

The last block may be shorter than num.