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>(
28 "non_positive_gauss_legendre_order",
false,
"Tests non-positive order in gauss-legendre quadrature");
29 params.addParam<
bool>(
"check_direction",
false,
"Checks for a non-valid direction index");
30 params.addParam<
bool>(
"orthonormal_vector_zero",
32 "Tests getting an orthonormal vector to a vector that has a zero norm");
41 if (getParam<bool>(
"non_positive_polar_order"))
43 if (getParam<bool>(
"non_positive_azimuthal_order"))
45 if (getParam<bool>(
"mu_min_larger"))
47 if (getParam<bool>(
"mu_min_too_small"))
49 if (getParam<bool>(
"mu_max_too_big"))
51 if (getParam<bool>(
"dim1"))
53 if (getParam<bool>(
"non_positive_gauss_legendre_order"))
55 std::vector<Real>
x,
y;
58 if (getParam<bool>(
"check_direction"))
60 if (getParam<bool>(
"orthonormal_vector_zero"))
static void gaussLegendre(const unsigned int order, std::vector< Real > &x, std::vector< Real > &w)
Builds Gauss-Legendre quadrature on 0, 1, with weights that sum to 1.
static InputParameters validParams()
const std::vector< double > y
RayTracingAngularQuadratureErrorTest(const InputParameters ¶meters)
const std::vector< double > x
static InputParameters validParams()
registerMooseObject("RayTracingTestApp", RayTracingAngularQuadratureErrorTest)
static libMesh::Point orthonormalVector(const libMesh::Point &v)
Gets the vector that is orthonormal to v.
void checkDirection(const unsigned int l) const
Throws a MooseError if the angular quadrature does not have direction l.