Line data Source code
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 "FunctionIntegralRayKernel.h" 11 : 12 : #include "Function.h" 13 : 14 : registerMooseObject("RayTracingApp", FunctionIntegralRayKernel); 15 : 16 : InputParameters 17 82 : FunctionIntegralRayKernel::validParams() 18 : { 19 82 : InputParameters params = IntegralRayKernel::validParams(); 20 : 21 82 : params.addClassDescription("Integrates a function along a Ray."); 22 : 23 164 : params.addRequiredParam<FunctionName>("function", "The function"); 24 : 25 82 : return params; 26 0 : } 27 : 28 44 : FunctionIntegralRayKernel::FunctionIntegralRayKernel(const InputParameters & params) 29 44 : : IntegralRayKernel(params), _function(getFunction("function")) 30 : { 31 44 : } 32 : 33 : Real 34 360 : FunctionIntegralRayKernel::computeQpIntegral() 35 : { 36 360 : return _function.value(_t, _q_point[_qp]); 37 : }