19 params.addParam<std::string>(
"data_name",
"Name of the data to change");
20 params.addParam<
Real>(
"add_value", 0,
"Value to add to the data");
21 params.addParam<
Real>(
"scale_value", 1,
"Value to scale the data with");
23 params.addParam<
bool>(
"change_direction",
false,
"Whether or not to change the Ray's direction");
24 params.addParam<
bool>(
"change_direction_zero",
26 "Whether or not to change the Ray's direction to the zero vector");
33 _ray_data_index(isParamValid(
"data_name")
34 ? _study.getRayDataIndex(getParam<
std::string>(
"data_name"))
35 :
Ray::INVALID_RAY_DATA_INDEX),
36 _add_value(getParam<
Real>(
"add_value")),
37 _scale_value(getParam<
Real>(
"scale_value"))
52 if (getParam<bool>(
"change_direction"))
54 if (getParam<bool>(
"change_direction_zero"))
static const RayDataIndex INVALID_RAY_DATA_INDEX
Invalid index into a Ray's data.
registerMooseObject("RayTracingTestApp", ChangeRayRayBCTest)
virtual void onBoundary(const unsigned int num_applying) override
Called on a Ray on the boundary to apply the Ray boundary condition.
const std::shared_ptr< Ray > & currentRay() const
Gets the current Ray that this is working on.
const RayDataIndex _ray_data_index
Basic datastructure for a ray that will traverse the mesh.
static InputParameters validParams()
ChangeRayRayBCTest(const InputParameters ¶ms)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void changeRayDirection(const Point &direction, const bool skip_changed_check=false)
Changes the current Ray's direction.
void mooseError(Args &&... args) const
static InputParameters validParams()