LCOV - code coverage report
Current view: top level - src/postprocessors - InterfaceAverageVariableValuePostprocessor.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 11 12 91.7 %
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 "InterfaceAverageVariableValuePostprocessor.h"
      11             : #include "InterfaceValueTools.h"
      12             : 
      13             : registerMooseObject("MooseApp", InterfaceAverageVariableValuePostprocessor);
      14             : 
      15             : InputParameters
      16       14636 : InterfaceAverageVariableValuePostprocessor::validParams()
      17             : {
      18       14636 :   InputParameters params = InterfaceIntegralVariableValuePostprocessor::validParams();
      19       14636 :   params.addClassDescription("Computes the average value of a variable on an "
      20             :                              "interface. Note that this cannot be used on the "
      21             :                              "centerline of an axisymmetric model.");
      22       14636 :   return params;
      23           0 : }
      24             : 
      25         193 : InterfaceAverageVariableValuePostprocessor::InterfaceAverageVariableValuePostprocessor(
      26         193 :     const InputParameters & parameters)
      27         193 :   : InterfaceIntegralVariableValuePostprocessor(parameters)
      28             : {
      29         193 : }
      30             : 
      31             : Real
      32         163 : InterfaceAverageVariableValuePostprocessor::getValue() const
      33             : {
      34         163 :   Real integral = InterfaceIntegralVariableValuePostprocessor::getValue();
      35         163 :   return integral / _interface_primary_area;
      36             : }

Generated by: LCOV version 1.14