https://mooseframework.inl.gov
MaterialIntegralRayKernel.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 
13 
16 {
18 
19  params.addClassDescription("Integrates a Material property along a Ray.");
20 
21  params.addRequiredParam<MaterialPropertyName>("mat_prop",
22  "The name of the material property to integrate");
23 
24  return params;
25 }
26 
28  : IntegralRayKernel(params), _mat(getMaterialProperty<Real>("mat_prop"))
29 {
30 }
31 
32 Real
34 {
35  return _mat[_qp];
36 }
registerMooseObject("RayTracingApp", MaterialIntegralRayKernel)
void addRequiredParam(const std::string &name, const std::string &doc_string)
MaterialIntegralRayKernel(const InputParameters &params)
const MaterialProperty< Real > & _mat
unsigned int _qp
The current quadrature point index.
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
static InputParameters validParams()
void addClassDescription(const std::string &doc_string)
virtual Real computeQpIntegral() override