LCOV - code coverage report
Current view: top level - src/postprocessors - NekSideAverage.C (source / functions) Hit Total Coverage
Test: neams-th-coe/cardinal: be601f Lines: 9 10 90.0 %
Date: 2025-07-15 20:50:38 Functions: 3 3 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /********************************************************************/
       2             : /*                  SOFTWARE COPYRIGHT NOTIFICATION                 */
       3             : /*                             Cardinal                             */
       4             : /*                                                                  */
       5             : /*                  (c) 2021 UChicago Argonne, LLC                  */
       6             : /*                        ALL RIGHTS RESERVED                       */
       7             : /*                                                                  */
       8             : /*                 Prepared by UChicago Argonne, LLC                */
       9             : /*               Under Contract No. DE-AC02-06CH11357               */
      10             : /*                With the U. S. Department of Energy               */
      11             : /*                                                                  */
      12             : /*             Prepared by Battelle Energy Alliance, LLC            */
      13             : /*               Under Contract No. DE-AC07-05ID14517               */
      14             : /*                With the U. S. Department of Energy               */
      15             : /*                                                                  */
      16             : /*                 See LICENSE for full restrictions                */
      17             : /********************************************************************/
      18             : 
      19             : #ifdef ENABLE_NEK_COUPLING
      20             : 
      21             : #include "NekSideAverage.h"
      22             : 
      23             : registerMooseObject("CardinalApp", NekSideAverage);
      24             : 
      25             : InputParameters
      26        1385 : NekSideAverage::validParams()
      27             : {
      28        1385 :   InputParameters params = NekSideIntegral::validParams();
      29        1385 :   params.addClassDescription("Average of a field over a boundary of the NekRS mesh");
      30        1385 :   return params;
      31           0 : }
      32             : 
      33         461 : NekSideAverage::NekSideAverage(const InputParameters & parameters) : NekSideIntegral(parameters)
      34             : {
      35         461 : }
      36             : 
      37             : Real
      38       12956 : NekSideAverage::getValue() const
      39             : {
      40       12956 :   Real area = nekrs::area(_boundary, _pp_mesh);
      41       12956 :   return NekSideIntegral::getValue() / area;
      42             : }
      43             : 
      44             : #endif

Generated by: LCOV version 1.14