Acoular 20.10 documentation

RectSector

«  Sector   ::   grids   ::   CircSector  »

RectSector

class acoular.grids.RectSector

Bases: acoular.grids.Sector

Class for defining a rectangular sector.

Can be used for 2D Grids for definining a rectangular sector or for 3D grids for a rectangular cylinder sector parallel to the z-axis.

x_min = Float(-1.0, …

The lower x position of the rectangle

x_max = Float(1.0, …

The upper x position of the rectangle

y_min = Float(-1.0, …

The lower y position of the rectangle

y_max = Float(1.0, …

The upper y position of the rectangle

contains(pos)

Queries whether the coordinates in a given array lie within the rectangular sector. If no coordinate is inside, the nearest one to the rectangle center is returned if default_nearest is True.

Parameters
posarray of floats

Array with the shape 3x[number of gridpoints] containing the grid positions

Returns
array of bools with as many entries as columns in pos

Array indicating which of the given positions lie within the given sector

«  Sector   ::   grids   ::   CircSector  »