pyopensn.aquad.SLDFEsqQuadrature3DXYZ

class pyopensn.aquad.SLDFEsqQuadrature3DXYZ

Piecewise-linear finite element quadrature using quadrilaterals.

Wrapper of opensn::SLDFEsqQuadrature3DXYZ.

GetDiscreteToMomentOperator(self: pyopensn.aquad.AngularQuadrature) numpy.ndarray[numpy.float64]

Get the discrete-to-moment operator as a numpy array.

GetMomentToDiscreteOperator(self: pyopensn.aquad.AngularQuadrature) numpy.ndarray[numpy.float64]

Get the moment-to-discrete operator as a numpy array.

GetMomentToHarmonicsIndexMap(self: pyopensn.aquad.AngularQuadrature) list[pyopensn.aquad.HarmonicIndices]
LocallyRefine(self: pyopensn.aquad.SLDFEsqQuadrature3DXYZ, 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.SLDFEsqQuadrature3DXYZ, file_base: str) None

Prints the quadrature to file.

Parameters:

file_base (str) – File base name.

__init__(self: pyopensn.aquad.SLDFEsqQuadrature3DXYZ, **kwargs) None

Generates uniform spherical quadrilaterals from the subdivision of an inscribed cube.

Parameters:
  • level (int) – Number of subdivisions of the inscribed cube.

  • scattering_order (int) – Maximum scattering order supported by the angular quadrature. Optional when operator_method='galerkin_one', in which case the scattering order is automatically determined so that the number of moments equals the number of angles.

  • operator_method ({'standard', 'galerkin_one', 'galerkin_three'}, default='standard') – Method used to construct the discrete-to-moment and moment-to-discrete operators.

  • verbose (bool, default=False) – Verbosity.

property abscissae

Vector of polar and azimuthal angles.

property omegas

Vector of direction vectors.

property weights

Quadrature weights.