https://mooseframework.inl.gov
FunctionIntegralRayKernel.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 #include "Function.h"
13 
15 
18 {
20 
21  params.addClassDescription("Integrates a function along a Ray.");
22 
23  params.addRequiredParam<FunctionName>("function", "The function");
24 
25  return params;
26 }
27 
29  : IntegralRayKernel(params), _function(getFunction("function"))
30 {
31 }
32 
33 Real
35 {
36  return _function.value(_t, _q_point[_qp]);
37 }
void addRequiredParam(const std::string &name, const std::string &doc_string)
Integrates a function along a Ray.
registerMooseObject("RayTracingApp", FunctionIntegralRayKernel)
static InputParameters validParams()
unsigned int _qp
The current quadrature point index.
FunctionIntegralRayKernel(const InputParameters &params)
const MooseArray< Point > & _q_point
The physical location of the segment&#39;s quadrature points, indexed by _qp.
Base class for a RayKernel that integrates along a Ray segment and stores the result in a scalar valu...
static InputParameters validParams()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void addClassDescription(const std::string &doc_string)
virtual Real value(Real t, const Point &p) const
virtual Real computeQpIntegral() override