https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
11
12// Local includes
13#include "TestRayDataStudy.h"
14
16
19{
20 auto params = GeneralRayKernel::validParams();
21 return params;
22}
23
25 : GeneralRayKernel(params), _test_ray_data_study(getStudy<TestRayDataStudy>())
26{
27}
28
29void
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}
registerMooseObject("RayTracingTestApp", TestRayDataRayKernel)
static InputParameters validParams()
const Real & _current_segment_length
The length of the current Ray's segment.
const std::shared_ptr< Ray > & currentRay() const
Gets the current Ray that this is working on.
RayKernel to be used in conjunction with TestRayDataStudy.
virtual void onSegment() override
Called on each segment of a Ray.
const TestRayDataStudy & _test_ray_data_study
TestRayDataRayKernel(const InputParameters &params)
static InputParameters validParams()
Test Ray study that generates a lot of Rays and sets data/aux data with a predictable pattern in conj...
RayData dataValueChange(const unsigned int i, const Real distance) const
const std::vector< RayDataIndex > & dataIndices() const