RectSector¶
- class acoular.grids.RectSector¶
Bases:
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, desc='minimum x position of the rectangle')¶
The lower x position of the rectangle
- x_max = Float(1.0, desc='maximum x position of the rectangle')¶
The upper x position of the rectangle
- y_min = Float(-1.0, desc='minimum y position of the rectangle')¶
The lower y position of the rectangle
- y_max = Float(1.0, desc='maximum y position of the rectangle')¶
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