Acoular 20.10 documentation

CircSector

«  RectSector   ::   grids   ::   PolySector  »

CircSector

class acoular.grids.CircSector

Bases: acoular.grids.Sector

Class for defining a circular sector.

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

x = Float(0.0, …

x position of the circle center

y = Float(0.0, …

y position of the circle center

r = Float(1.0, …

radius of the circle

contains(pos)

Queries whether the coordinates in a given array lie within the circular sector. If no coordinate is inside, the nearest one outside 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

«  RectSector   ::   grids   ::   PolySector  »