Acoular 23.11 documentation


«  SingleSector   ::   grids   ::   RectSector3D  »


class acoular.grids.RectSector

Bases: acoular.grids.SingleSector

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


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.

posarray of floats

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

array of bools with as many entries as columns in pos

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

«  SingleSector   ::   grids   ::   RectSector3D  »