www.mooseframework.org
InterfaceAverageVariableValuePostprocessor.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 #include "InterfaceValueTools.h"
12 
14 
17 {
19  params.addClassDescription("Computes the average value of a variable on an "
20  "interface. Note that this cannot be used on the "
21  "centerline of an axisymmetric model.");
22  return params;
23 }
24 
26  const InputParameters & parameters)
28 {
29 }
30 
31 Real
33 {
35  return integral / _interface_primary_area;
36 }
virtual Real getValue() const override
This will get called to actually grab the final value the postprocessor has calculated.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
Real _interface_primary_area
the area of the primary side of the interface
InterfaceAverageVariableValuePostprocessor(const InputParameters &parameters)
virtual Real getValue() const override
This will get called to actually grab the final value the postprocessor has calculated.
This postprocessor computes a spatial average value of the specified variable value on the interface...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
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...
This postprocessor computes a weighted (by area) integral of the specified variable.
registerMooseObject("MooseApp", InterfaceAverageVariableValuePostprocessor)