SingleSector¶
- class acoular.grids.SingleSector¶
Bases:
Sector
Base class for single sector types.
Defines the common interface for all single sector classes. This class can serve as a base for various single sector implementations. When used directly, it defines a sector that encompasses the whole grid. It includes attributes for handling border inclusion, tolerance for sector borders, and default behavior when no points are inside the sector.
Examples
Load example data and set diffrent Sectors for intergration in the sector integration example.
- include_border = Bool(True, desc='include points on the border')¶
If
True
, grid points lying on the sector border are included in the sector. Default isTrue
.
- abs_tol = Float(1e-12, desc='absolute tolerance for sector border')¶
The absolute tolerance to apply when determining if a grid point lies on the sector border. Default is
1e-12
.
- default_nearest = Bool(True, desc='``contains`` method return nearest grid point to center if none inside sector')¶
If
True
, thecontains
method (as inRectSector.contains()
,RectSector3D.contains()
,CircSector.contains()
, andPolySector.contains()
) returns the nearest grid point if no grid points are inside the sector. Default isTrue
.