pyopensn.aquad.GLProductQuadrature1DSpherical
- class pyopensn.aquad.GLProductQuadrature1DSpherical
Gauss-Legendre quadrature for 1D spherical geometry.
Wrapper of
opensn::GLProductQuadrature1DSpherical.The
n_polarGauss-Legendre directions are ordered by increasing direction cosine \(\mu\) and bracketed by zero-weight starting (\(\mu=-1\)) and final (\(\mu=+1\)) directions, which start and end the angular-derivative recursion. The weights sum to one. Use withpyopensn.solver.DiscreteOrdinatesCurvilinearProblemon a 1D mesh withcoord_sys="spherical".- GetAbscissa(self: pyopensn.aquad.AngularQuadrature, arg0: int) pyopensn.aquad.QuadraturePointPhiTheta
- GetAzimuthalAngles(self: pyopensn.aquad.ProductQuadrature) list[float]
- GetDimension(self: pyopensn.aquad.AngularQuadrature) int
- 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]
- GetNumAngles(self: pyopensn.aquad.AngularQuadrature) int
- GetNumAzimuthalAngles(self: pyopensn.aquad.ProductQuadrature) int
- GetNumMoments(self: pyopensn.aquad.AngularQuadrature) int
- GetNumPolarAngles(self: pyopensn.aquad.ProductQuadrature) int
- GetOmega(self: pyopensn.aquad.AngularQuadrature, arg0: int) pyopensn.math.Vector3
- GetPolarAngles(self: pyopensn.aquad.ProductQuadrature) list[float]
- GetScatteringOrder(self: pyopensn.aquad.AngularQuadrature) int
- GetWeight(self: pyopensn.aquad.AngularQuadrature, arg0: int) float
- __init__(self: pyopensn.aquad.GLProductQuadrature1DSpherical, **kwargs) None
Construct a Gauss-Legendre quadrature for 1D spherical geometry.
- Parameters:
n_polar (int) – Number of Gauss-Legendre directions (even).
scattering_order (int) – Maximum Legendre scattering order supported by the angular quadrature. The standard moment operators are used.
verbose (bool, default=False) – Verbosity.
- property abscissae
Vector of polar and azimuthal angles.
- property omegas
Vector of direction vectors.
- property weights
Quadrature weights.