Acoular 16.5 documentation

Environment

«  SlotJet   ::   environments   ::   UniformFlowEnvironment  »

Environment

class acoular.environments.Environment

Bases: traits.has_traits.HasPrivateTraits

A simple acoustic environment without flow.

This class provides the facilities to calculate the travel time (distances) between grid point locations and microphone locations.

r(c, gpos, mpos=0.0)

Calculates distances between grid point locations and microphone locations or the origin.

Parameters:

c : float

The speed of sound to use for the calculation.

gpos : array of floats of shape (3, N)

The locations of points in the beamforming map grid in 3D cartesian co-ordinates.

mpos : array of floats of shape (3, M), optional

The locations of microphones in 3D cartesian co-ordinates. If not given, then only one microphone at the origin (0, 0, 0) is considered.

Returns:

r : array of floats

The distances in a twodimensional (N, M) array of floats. If M==1, then only a onedimensional array is returned.

«  SlotJet   ::   environments   ::   UniformFlowEnvironment  »