https://mooseframework.inl.gov
SideIntegralFunctorUserObject.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 
14 {
17  params.addRequiredParam<MooseFunctorName>("functor", "The functor to be integrated");
18  return params;
19 }
20 
22  : SideIntegralUserObject(parameters),
24  _functor(getFunctor<Real>("functor"))
25 {
26 }
27 
28 Real
30 {
32  return _functor(elem_side_qp, determineState());
33 }
An interface for accessing Moose::Functors for systems that do not care about automatic differentiati...
SideIntegralFunctorUserObject(const InputParameters &parameters)
const unsigned int & _current_side
current side of the current element
Moose::StateArg determineState() const
Create a functor state argument that corresponds to the implicit state of this object.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
const MooseArray< Point > & _q_point
void addRequiredParam(const std::string &name, const std::string &doc_string)
This method adds a parameter and documentation string to the InputParameters object that will be extr...
const Moose::Functor< Real > & _functor
Functor to integrate.
This postprocessor computes a side integral of the specified variable over a given boundary...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static InputParameters validParams()
const QBase *const & _qrule
static InputParameters validParams()
const Elem *const & _current_elem
Argument for requesting functor evaluation at quadrature point locations on an element side...