12#include "libmesh/quadrature.h"
20 params.
addRequiredParam<Point>(
"cylinder_axis",
"Vector along cylinder coordinate axis");
21 params.
addClassDescription(
"Compute a cylindrical average of a variableas a function of radius "
22 "throughout the simulation domain.");
28 _cyl_axis(getParam<Point>(
"cylinder_axis")),
29 _cyl_axis_norm(_cyl_axis.norm())
38 Real norm_oqp = oqp.norm();
42 return norm_oqp * std::sqrt(1 - cos_theta * cos_theta);
registerMooseObject("MooseApp", CylindricalAverage)
Compute a cylindrical average of a variableas a function of radius throughout the simulation domain.
CylindricalAverage(const InputParameters ¶meters)
const Real _cyl_axis_norm
axis norm
virtual Real computeDistance() override
compute the distance of the current quadarature point for binning
const Point _cyl_axis
vector along cylinder axis
static InputParameters validParams()
const MooseArray< Point > & _q_point
Base clase for computing spatial average of a variable over simple spatial regions of the computation...
static InputParameters validParams()
const Point _origin
origin of sphere [or other body]
unsigned int _qp
current quadrature point - used in computeVolume()