pyopensn.aquad.SLDFEsqQuadrature2DXY
- class pyopensn.aquad.SLDFEsqQuadrature2DXY
Two-dimensional variant of the piecewise-linear finite element quadrature.
This quadrature is created from the 3D SLDFEsq set by removing directions with negative xi.
Wrapper of
opensn::SLDFEsqQuadrature2DXY.- LocallyRefine(self: pyopensn.aquad.SLDFEsqQuadrature2DXY, ref_dir: pyopensn.math.Vector3, cone_size: float, dir_as_plane_normal: bool = False) None
Locally refines the cells.
- Parameters:
ref_dir (pyopensn.math.Vector3) – Reference direction \(\vec{r}\).
cone_size (float) – Cone size (in radians) \(\theta\).
dir_as_plane_normal (bool, default=False) – If true, interpret SQ-splitting as when \(|\omega \cdot \vec{r}| < \sin(\theta)\). Otherwise, SQs will be split if \(\omega \cdot \vec{r} > \cos(\theta)\).
- PrintQuadratureToFile(self: pyopensn.aquad.SLDFEsqQuadrature2DXY, file_base: str) None
Prints the quadrature to file.
- Parameters:
file_base (str) – File base name.
- __init__(self: pyopensn.aquad.SLDFEsqQuadrature2DXY, **kwargs) None
Generates a 2D SLDFEsq quadrature by removing directions with negative xi.
- Parameters:
level (int) – Number of subdivisions of the inscribed cube.
scattering_order (int) – Maximum scattering order supported by the angular quadrature.
- property abscissae
Vector of polar and azimuthal angles.
- property omegas
Vector of direction vectors.
- property weights
Quadrature weights.