https://mooseframework.inl.gov
FunctionElementLoopIntegralGetValueTestPostprocessor.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 
12 
14 
17 {
19 
20  params.addClassDescription("Gets the value from a FunctionElementLoopIntegralUserObject.");
21 
22  params.addRequiredParam<UserObjectName>("function_element_loop_integral_uo",
23  "FunctionElementLoopIntegralUserObject name");
24 
25  return params;
26 }
27 
30  : GeneralPostprocessor(parameters),
31 
32  _uo(getUserObject<FunctionElementLoopIntegralUserObject>("function_element_loop_integral_uo"))
33 {
34 }
35 
36 void
38 {
39 }
40 
41 void
43 {
44 }
45 
48 {
49  return _uo.getValue();
50 }
const FunctionElementLoopIntegralUserObject & _uo
User object to get value from.
void addRequiredParam(const std::string &name, const std::string &doc_string)
Computes the integral of a function using an element loop.
static InputParameters validParams()
Gets the value from a FunctionElementLoopIntegralUserObject.
Real PostprocessorValue
registerMooseObject("ThermalHydraulicsTestApp", FunctionElementLoopIntegralGetValueTestPostprocessor)
virtual Real getValue() const
Returns the integral value.
void addClassDescription(const std::string &doc_string)