https://mooseframework.inl.gov
Loading...
Searching...
No Matches
InterfaceIntegralPostprocessor.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
12#include "libmesh/quadrature.h"
13
16{
19 "Postprocessor class adding basic capabilities to compute an integral over an interface. "
20 "This class is still abstract, refer to InterfaceIntegralVariableValuePostprocessor for a "
21 "derived class example");
22 return params;
23}
24
26 : InterfacePostprocessor(parameters), _qp(0), _integral_value(0)
27{
28}
29
30void
36
37void
43
44Real
49
50void
57
58Real
60{
61 Real sum = 0;
62 for (_qp = 0; _qp < _qrule->n_points(); _qp++)
63 sum += _JxW[_qp] * _coord[_qp] * computeQpIntegral();
64 return sum;
65}
66
67void
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
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 add generel capabilities to the InterfacePostprocessor to compute an integral over...
virtual Real computeQpIntegral()=0
virtual void initialize() override
Called before execute() is ever called so that data can be cleared.
InterfaceIntegralPostprocessor(const InputParameters &parameters)
virtual void execute() override
Execute method.
virtual Real getValue() const override
This will get called to actually grab the final value the postprocessor has calculated.
virtual void finalize() override
Finalize.
virtual void threadJoin(const UserObject &y) override
Must override.
BASE CLASS FOR IMPLEMENTING INTERFACE POSTRPOCESSOR ALL INTERFACE POSTPROCESOR SHOULD DERIVE FROM THI...
virtual void threadJoin(const UserObject &y) override
Must override.
static InputParameters validParams()
virtual void initialize() override
Called before execute() is ever called so that data can be cleared.
virtual void execute() override
Execute method.
virtual void finalize() override
Finalize.
const MooseArray< Real > & _JxW
const MooseArray< Real > & _coord
void gatherSum(T &value)
Gather the parallel sum of the variable passed in.
Base class for user-specific data.
Definition UserObject.h:20