LCOV - code coverage report
Current view: top level - src/vectorpostprocessors - SphericalAverage.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 9 10 90.0 %
Date: 2025-07-17 01:28:37 Functions: 3 3 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : //* This file is part of the MOOSE framework
       2             : //* https://mooseframework.inl.gov
       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             : 
      14             : registerMooseObject("MooseApp", SphericalAverage);
      15             : 
      16             : InputParameters
      17       14290 : SphericalAverage::validParams()
      18             : {
      19       14290 :   InputParameters params = SpatialAverageBase::validParams();
      20       14290 :   params.addClassDescription("Compute a spherical average of a variable as a function of radius "
      21             :                              "throughout the simulation domain.");
      22       14290 :   return params;
      23           0 : }
      24             : 
      25          13 : SphericalAverage::SphericalAverage(const InputParameters & parameters)
      26          13 :   : SpatialAverageBase(parameters)
      27             : {
      28          13 : }
      29             : 
      30             : Real
      31      128000 : SphericalAverage::computeDistance()
      32             : {
      33             :   // overwrite this method to implement cylindrical averages etc.
      34      128000 :   return (_q_point[_qp] - _origin).norm();
      35             : }

Generated by: LCOV version 1.14