www.mooseframework.org
SphericalAverage.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 
10 #include "SphericalAverage.h"
11 
12 #include "libmesh/quadrature.h"
13 
15 
17 
20 {
22  return params;
23 }
24 
26  : SpatialAverageBase(parameters)
27 {
28 }
29 
30 Real
32 {
33  // overwrite this method to implement cylindrical averages etc.
34  return (_q_point[_qp] - _origin).norm();
35 }
SphericalAverage::computeDistance
virtual Real computeDistance() override
compute the distance of the current quadrature point for binning
Definition: SphericalAverage.C:31
SphericalAverage
Compute a spherical average of a variable as a function of radius throughout the simulation domain.
Definition: SphericalAverage.h:23
SpatialAverageBase
Base clase for computing spatial average of a variable over simple spatial regions of the computation...
Definition: SpatialAverageBase.h:23
defineLegacyParams
defineLegacyParams(SphericalAverage)
ElementUserObject::_q_point
const MooseArray< Point > & _q_point
Definition: ElementUserObject.h:61
InputParameters
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
Definition: InputParameters.h:53
SphericalAverage.h
SpatialAverageBase::_qp
unsigned int _qp
current quadrature point - used in computeVolume()
Definition: SpatialAverageBase.h:58
SphericalAverage::validParams
static InputParameters validParams()
Definition: SphericalAverage.C:19
SphericalAverage::SphericalAverage
SphericalAverage(const InputParameters &parameters)
Definition: SphericalAverage.C:25
SpatialAverageBase::_origin
const Point _origin
origin of sphere [or other body]
Definition: SpatialAverageBase.h:46
registerMooseObject
registerMooseObject("MooseApp", SphericalAverage)
SpatialAverageBase::validParams
static InputParameters validParams()
Definition: SpatialAverageBase.C:20