12 #include "libmesh/quadrature.h" 22 :
SidePostprocessor(parameters), _qp(0), _integral_value(0), _qp_integration(true)
virtual Real computeIntegral()
SideIntegralPostprocessor(const InputParameters ¶meters)
bool _qp_integration
Whether to integrate over quadrature points or FaceInfos.
static InputParameters validParams()
unsigned int _qp
The local quadrature point index when computing an integral over quadrature points.
std::vector< const FaceInfo * > _face_infos
Holds the FaceInfos to loop on to consider all active neighbors of an element on a given side...
const MooseArray< Real > & _JxW
const std::vector< FaceInfo > & allFaceInfo() const
Accessor for all FaceInfo objects.
void gatherSum(T &value)
Gather the parallel sum of the variable passed in.
virtual Real computeFaceInfoIntegral(const FaceInfo *)
void getFaceInfos()
Computes the local FaceInfo(s) to use in functor arguments and interpolations.
This postprocessor computes a surface integral of the specified variable on a sideset on the boundary...
virtual void errorNoFaceInfo() const
Error method to call when face info is needed but not available.
virtual void finalize() override
This is called after execute() and after threadJoin()! This is probably where you want to do MPI comm...
const MooseArray< Real > & _coord
Base class for postprocessors executed on one or more sidesets.
virtual void initialSetup() override
Gets called at the beginning of the simulation before this object is asked to do its job...
virtual void threadJoin(const UserObject &y) override
Must override.
virtual Real computeQpIntegral()=0
virtual void initialize() override
Called before execute() is ever called so that data can be cleared.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual Real getValue() const override
This will get called to actually grab the final value the postprocessor has calculated.
static InputParameters validParams()
const QBase *const & _qrule
virtual void execute() override
Execute method.
virtual void initialSetup()
Gets called at the beginning of the simulation before this object is asked to do its job...
Real _integral_value
Holds the postprocessor result, the integral.
Base class for user-specific data.