IntegralRayKernel
Description
IntegralRayKernel
is the base class for integrating a quantity along a Ray and accumulating the integral into a data member on the Ray. The integral computed is:
where is integrated from to .
IntegralRayKernel
is not to be used for contributing to a residual or Jacobian along a Ray. For this case, you should derive from RayKernel or ADRayKernel.
For examples, see:
VariableIntegralRayKernel for integrating a Variable or an AuxVariable
MaterialIntegralRayKernel for integrating a Material
FunctionIntegralRayKernel for integrating a Function
To integrate along a desired quantity, inherit from IntegralRayKernel and override the computeQpIntegral()
method in which _qp
is the current quadrature point index. For example:
Many other useful member variables exist that describe the Ray segment. For more information, see Using a RayKernel.
The integrated value produced by a class that derives from this should be obtained using the RayIntegralValue postprocessor. For example:
(contrib/moose/modules/ray_tracing/test/tests/raykernels/variable_integral_ray_kernel/variable_integral_ray_kernel.i)