https://mooseframework.inl.gov
TestRayDataRayKernel.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #include "TestRayDataRayKernel.h"
11 
12 // Local includes
13 #include "TestRayDataStudy.h"
14 
15 registerMooseObject("RayTracingTestApp", TestRayDataRayKernel);
16 
19 {
20  auto params = GeneralRayKernel::validParams();
21  return params;
22 }
23 
25  : GeneralRayKernel(params), _test_ray_data_study(getStudy<TestRayDataStudy>())
26 {
27 }
28 
29 void
31 {
32  const auto & data_indices = _test_ray_data_study.dataIndices();
33 
34  for (unsigned int i = 0; i < data_indices.size(); ++i)
35  currentRay()->data(data_indices[i]) +=
37 }
const Real & _current_segment_length
The length of the current Ray&#39;s segment.
RayData dataValueChange(const unsigned int i, const Real distance) const
const std::vector< RayDataIndex > & dataIndices() const
registerMooseObject("RayTracingTestApp", TestRayDataRayKernel)
const TestRayDataStudy & _test_ray_data_study
const std::shared_ptr< Ray > & currentRay() const
Gets the current Ray that this is working on.
virtual void onSegment() override
Called on each segment of a Ray.
static InputParameters validParams()
Test Ray study that generates a lot of Rays and sets data/aux data with a predictable pattern in conj...
static InputParameters validParams()
RayKernel to be used in conjunction with TestRayDataStudy.
TestRayDataRayKernel(const InputParameters &params)