xopto.pf.util.pfpolygongk module¶
- class GkPolygon(ggk_lim: Tuple[float, float] = (0, 0.97), a_lim: Tuple[float, float] = (- 0.5, 10), n: int = 5000, verbose: bool = False, filename: Optional[str] = None)[source]¶
Bases:
xopto.pf.util.pfpolygonbase.GammaDeltaPolygonBase
Creates an object for fast polygon-based validation of the Gk scattering phase function domain.
- Parameters
ggk_lim (tuple) – Range of the g_gk parameter of the scattering phase function.
a_lim (tuple) – Range of the a_gk parameter of the scattering phase function.
n (int) – Number of points along each border of the domain.
verbose (bool) – Print progress information to stdout.
filename (str) – Load polygon data from a file. See the static method
fromfile()
.
- DEFAULT_POLYGON_FILE = 'gk_polygon.npz'¶
- NUM_POINTS = 10000¶