LCOV - code coverage report
Current view: top level - src/bcs - ArrayNeumannBC.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 12 13 92.3 %
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 "ArrayNeumannBC.h"
      11             : 
      12             : registerMooseObject("MooseApp", ArrayNeumannBC);
      13             : 
      14             : InputParameters
      15       14315 : ArrayNeumannBC::validParams()
      16             : {
      17       14315 :   InputParameters params = ArrayIntegratedBC::validParams();
      18       14315 :   params.addParam<RealEigenVector>("value", "The value of the gradient on the boundary.");
      19       14315 :   params.addClassDescription("Imposes the integrated boundary condition "
      20             :                              "$\\frac{\\partial u}{\\partial n}=h$, "
      21             :                              "where $h$ is a constant, controllable value.");
      22       14315 :   return params;
      23           0 : }
      24             : 
      25          26 : ArrayNeumannBC::ArrayNeumannBC(const InputParameters & parameters)
      26             :   : ArrayIntegratedBC(parameters),
      27          65 :     _value(isParamValid("value") ? getParam<RealEigenVector>("value")
      28          65 :                                  : RealEigenVector::Zero(_count))
      29             : {
      30          26 : }
      31             : 
      32             : void
      33      334080 : ArrayNeumannBC::computeQpResidual(RealEigenVector & residual)
      34             : {
      35      334080 :   residual -= _test[_i][_qp] * _value;
      36      334080 : }

Generated by: LCOV version 1.14