virtual void execute() override
Execute method.
registerMooseObject("MooseApp", LayeredAverage)
This UserObject computes volume integrals of a variable storing partial sums for the specified number...
LayeredAverage(const InputParameters ¶meters)
virtual void initialize() override
static InputParameters validParams()
const Real & _current_elem_volume
The current element volume (available during execute())
std::vector< Real > _layer_volumes
Value of the volume for each layer.
This UserObject computes averages of a variable storing partial sums for the specified number of inte...
virtual void execute() override
Execute method.
virtual void initialize() override
bool layerHasValue(unsigned int layer) const
Whether or not a layer has a value.
void gatherSum(T &value)
Gather the parallel sum of the variable passed in.
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 threadJoin(const UserObject &y) override
static InputParameters validParams()
unsigned int _num_layers
Number of layers to split the mesh into.
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.
virtual void threadJoin(const UserObject &y) override
virtual void finalize() override
Base class for user-specific data.
virtual void finalize() override