20 params.addParam<
bool>(
"non_positive_polar_order",
false,
"Tests non-positive polar_order");
21 params.addParam<
bool>(
22 "non_positive_azimuthal_order",
false,
"Tests non-positive azimuthal_order");
23 params.addParam<
bool>(
"mu_min_larger",
false,
"Tests mu_min being larger than mu_max");
24 params.addParam<
bool>(
"mu_min_too_small",
false,
"Tests mu_min < -1");
25 params.addParam<
bool>(
"mu_max_too_big",
false,
"Tests mu_max > 1");
26 params.addParam<
bool>(
"dim1",
false,
"Tests dimension 1");
27 params.addParam<
bool>(
"non_positive_gauss_legendre_order",
29 "Tests non-positive order in gauss-legendre quadrature");
30 params.addParam<
bool>(
"check_direction",
false,
"Checks for a non-valid direction index");
31 params.addParam<
bool>(
"orthonormal_vector_zero",
33 "Tests getting an orthonormal vector to a vector that has a zero norm");
42 if (getParam<bool>(
"non_positive_polar_order"))
44 if (getParam<bool>(
"non_positive_azimuthal_order"))
46 if (getParam<bool>(
"mu_min_larger"))
48 if (getParam<bool>(
"mu_min_too_small"))
50 if (getParam<bool>(
"mu_max_too_big"))
52 if (getParam<bool>(
"dim1"))
54 if (getParam<bool>(
"non_positive_gauss_legendre_order"))
56 std::vector<Real>
x,
y;
59 if (getParam<bool>(
"check_direction"))
61 if (getParam<bool>(
"orthonormal_vector_zero"))
const std::vector< double > y
const std::vector< double > x
registerMooseObject("RayTracingTestApp", RayTracingAngularQuadratureErrorTest)
static InputParameters validParams()
RayTracingAngularQuadratureErrorTest(const InputParameters ¶meters)
static InputParameters validParams()
void checkDirection(const unsigned int l) const
Throws a MooseError if the angular quadrature does not have direction l.
static void gaussLegendre(const unsigned int order, std::vector< Real > &x, std::vector< Real > &w)
Builds Gauss-Legendre quadrature on [0, 1] (symmetric about 0.5), with weights that sum to 1.
static libMesh::Point orthonormalVector(const libMesh::Point &v)
Gets the vector that is orthonormal to v.