Acoular 24.10 documentation

RectSector3D

«  RectSector   ::   grids   ::   CircSector  »

RectSector3D

class acoular.grids.RectSector3D

Bases: RectSector

Class for defining a cuboid sector.

Can be used for 3D Grids for definining a cuboid sector.

z_min = Float(-1.0, desc='minimum z position of the cuboid')

The lower z position of the cuboid

z_max = Float(1.0, desc='maximum z position of the cuboid')

The upper z position of the cuboid

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

«  RectSector   ::   grids   ::   CircSector  »