18 params.addRequiredParam<
unsigned int>(
"data_size",
"Size for the test Ray data");
19 params.addRequiredParam<
unsigned int>(
"aux_data_size",
"Size for the test aux Ray data");
25 _data_size(getParam<unsigned
int>(
"data_size")),
26 _aux_data_size(getParam<unsigned
int>(
"aux_data_size"))
37 for (
unsigned int i = 0; i < 3; ++i)
76 for (
const std::shared_ptr<Ray> & ray :
_rays)
78 for (
unsigned int i = 0; i < 3; ++i)
94 const Ray & const_ray = *ray;
RayDataIndex registerRayData(const std::string &name)
Register a value to be filled in the data on a Ray with a given name.
virtual void onCompleteRay(const std::shared_ptr< Ray > &ray)
Entry point for acting on a ray when it is completed (shouldContinue() == false)
std::vector< RayData > & data()
Gets a writeable reference to the Ray's data.
TestRayDataStudy(const InputParameters ¶meters)
virtual void modifyRays() override
Insertion point for after _rays is defined for other derived test studies to modify the Rays...
bool absoluteFuzzyEqual(const T &var1, const T2 &var2, const T3 &tol=libMesh::TOLERANCE *libMesh::TOLERANCE)
RayData dataValueChange(const unsigned int i, const Real distance) const
RayDataIndex registerRayAuxData(const std::string &name)
Register a value to be filled in the aux data on a Ray with a given name.
const std::size_t _aux_data_size
std::vector< RayDataIndex > _actual_start_indices
std::vector< RayData > & auxData()
Gets a writeable reference to the Ray's auxilary data.
registerMooseObject("RayTracingTestApp", TestRayDataStudy)
static InputParameters validParams()
Real distance(const Point &p)
Test Ray study that generates a lot of Rays and sets data/aux data with a predictable pattern in conj...
const BoundingBox & boundingBox() const
Get the nodal bounding box for the domain.
virtual void onCompleteRay(const std::shared_ptr< Ray > &ray) override
Entry point for acting on a ray when it is completed (shouldContinue() == false)
std::vector< RayDataIndex > _data_indices
Basic datastructure for a ray that will traverse the mesh.
static InputParameters validParams()
Real distance() const
Gets the distance this Ray has traveled.
RayData auxDataValue(const unsigned int i, const Ray &ray) const
void mooseError(Args &&... args) const
std::vector< std::shared_ptr< Ray > > & _rays
Vector of Rays that the user will fill into in defineRays() (restartable)
const std::size_t _data_size
float RayData
Type for a Ray's data.
A RayTracingStudy used for generating a lot of rays for testing purposes.
auto min(const L &left, const R &right)
RayData dataValue(const unsigned int i, const Ray &ray) const
void ErrorVector unsigned int
std::vector< RayDataIndex > _aux_data_indices