LCOV - code coverage report
Current view: top level - src/userobjects - NearestRadiusLayeredAverage.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 11 12 91.7 %
Date: 2025-07-17 01:28:37 Functions: 2 2 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             : // MOOSE includes
      11             : #include "NearestRadiusLayeredAverage.h"
      12             : #include "LayeredAverage.h"
      13             : 
      14             : registerMooseObject("MooseApp", NearestRadiusLayeredAverage);
      15             : 
      16             : InputParameters
      17       14315 : NearestRadiusLayeredAverage::validParams()
      18             : {
      19             :   InputParameters params =
      20       14315 :       NearestPointBase<LayeredAverage, ElementIntegralVariableUserObject>::validParams();
      21             : 
      22             :   // this object sets 'dist_norm' so the user shouldn't input it
      23       14315 :   params.set<MooseEnum>("dist_norm") = "radius";
      24       14315 :   params.suppressParameter<MooseEnum>("dist_norm");
      25             : 
      26             :   // 'direction' in this case corresponds to 'axis' so the user shouldn't input it
      27       14315 :   params.set<MooseEnum>("axis") = params.get<MooseEnum>("direction");
      28       14315 :   params.suppressParameter<MooseEnum>("axis");
      29             : 
      30       14315 :   params.addClassDescription(
      31             :       "Computes averages of a variable storing partial sums for the specified number of intervals "
      32             :       "in a direction (x,y,z). Given a list of points this object computes the layered average "
      33             :       "closest to each one of those points, where the distance is computed in terms of radius (or "
      34             :       "distance to the origin in the plane perpendicular to 'direction').");
      35             : 
      36       14315 :   return params;
      37           0 : }
      38             : 
      39          26 : NearestRadiusLayeredAverage::NearestRadiusLayeredAverage(const InputParameters & parameters)
      40          26 :   : NearestPointBase<LayeredAverage, ElementIntegralVariableUserObject>(parameters)
      41             : {
      42          26 : }

Generated by: LCOV version 1.14