www.mooseframework.org
AxisymmetricCenterlineAverageValue.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* DO NOT MODIFY THIS HEADER */
3 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
4 /* */
5 /* (c) 2010 Battelle Energy Alliance, LLC */
6 /* ALL RIGHTS RESERVED */
7 /* */
8 /* Prepared by Battelle Energy Alliance, LLC */
9 /* Under Contract No. DE-AC07-05ID14517 */
10 /* With the U. S. Department of Energy */
11 /* */
12 /* See COPYRIGHT for full restrictions */
13 /****************************************************************/
14 
16 #include "libmesh/quadrature.h"
17 
18 template <>
21 {
23  params.addClassDescription("Computes the average value of a variable on a "
24  "sideset located along the centerline of an "
25  "axisymmetric model.");
26 
27  return params;
28 }
29 
31  const InputParameters & parameters)
32  : SideAverageValue(parameters), _volume(0)
33 {
34 }
35 
36 Real
38 {
39  return _current_side_elem->volume();
40 }
41 
42 Real
44 {
45  Real sum = 0;
46  for (_qp = 0; _qp < _qrule->n_points(); _qp++)
47  sum += _JxW[_qp] * computeQpIntegral();
48  return sum;
49 }
AxisymmetricCenterlineAverageValue(const InputParameters &parameters)
InputParameters validParams< AxisymmetricCenterlineAverageValue >()
This postprocessor computes a volume integral of the specified variable.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
const Elem *& _current_side_elem
const MooseArray< Real > & _JxW
InputParameters validParams< SideAverageValue >()
void addClassDescription(const std::string &doc_string)
This method adds a description of the class that will be displayed in the input file syntax dump...