www.mooseframework.org
SideFluxAverage.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 
15 #include "SideFluxAverage.h"
16 
17 template <>
20 {
22  return params;
23 }
24 
26  : SideFluxIntegral(parameters), _volume(0)
27 {
28 }
29 
30 void
32 {
34  _volume = 0;
35 }
36 
37 void
39 {
42 }
43 
44 Real
46 {
48 
50 
51  return integral / _volume;
52 }
53 
54 void
56 {
58  const SideFluxAverage & pps = static_cast<const SideFluxAverage &>(y);
59  _volume += pps._volume;
60 }
InputParameters validParams< SideFluxAverage >()
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
virtual Real getValue() override
This will get called to actually grab the final value the postprocessor has calculated.
const Real & _current_side_volume
SideFluxAverage(const InputParameters &parameters)
This postprocessor computes a side integral of the mass flux.
virtual void threadJoin(const UserObject &y) override
Must override.
void gatherSum(T &value)
Gather the parallel sum of the variable passed in.
Definition: UserObject.h:119
virtual Real getValue() override
This will get called to actually grab the final value the postprocessor has calculated.
virtual void threadJoin(const UserObject &y) override
Must override.
virtual void initialize() override
Called before execute() is ever called so that data can be cleared.
InputParameters validParams< SideFluxIntegral >()
virtual void initialize() override
Called before execute() is ever called so that data can be cleared.
virtual void execute() override
Execute method.
Base class for user-specific data.
Definition: UserObject.h:42
virtual void execute() override
Execute method.