12 #include "libmesh/mesh_tools.h" 61 const std::vector<Point>
64 std::vector<Point> points;
68 Point pt(0.0, 0.0, 0.0);
This UserObject computes volume integrals of a variable storing partial sums for the specified number...
registerMooseObject("MooseApp", LayeredIntegral)
virtual void initialize() override
Called before execute() is ever called so that data can be cleared.
static InputParameters validParams()
virtual Real computeIntegral()
static InputParameters validParams()
virtual const std::vector< Point > spatialPoints() const override
Optional interface function for providing the points at which a UserObject attains spatial values...
static InputParameters validParams()
std::vector< Real > _layer_centers
center coordinates of each layer
virtual void threadJoin(const UserObject &y)
unsigned int _direction
The component direction the layers are going in. We cache this for speed (so we're not always going t...
virtual void execute() override
Execute method.
virtual void initialize() override
virtual Real getLayerValue(unsigned int layer) const
Get the value for a given layer.
void setLayerValue(unsigned int layer, Real value)
Set the value for a particular layer.
virtual void initialize()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const Elem *const & _current_elem
The current element pointer (available during execute())
virtual unsigned int getLayer(Point p) const
Helper function to return the layer the point lies in.
This base class computes volume integrals of a variable storing partial sums for the specified number...
virtual void threadJoin(const UserObject &y) override
This postprocessor computes a volume integral of the specified variable.
LayeredIntegral(const InputParameters ¶meters)
Base class for user-specific data.
virtual void threadJoin(const UserObject &y) override
Must override.
virtual void finalize() override