LCOV - code coverage report
Current view: top level - src/fvbcs - FVNeumannBC.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 10 11 90.9 %
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 "FVNeumannBC.h"
      11             : 
      12             : registerMooseObject("MooseApp", FVNeumannBC);
      13             : 
      14             : InputParameters
      15       14757 : FVNeumannBC::validParams()
      16             : {
      17       14757 :   InputParameters params = FVFluxBC::validParams();
      18       14757 :   params.addClassDescription("Neumann boundary condition for finite volume method.");
      19       14757 :   params.addParam<Real>("value", 0.0, "The value of the flux crossing the boundary.");
      20       14757 :   return params;
      21           0 : }
      22             : 
      23         252 : FVNeumannBC::FVNeumannBC(const InputParameters & parameters)
      24         252 :   : FVFluxBC(parameters), _value(getParam<Real>("value"))
      25             : {
      26         252 : }
      27             : 
      28             : ADReal
      29       13327 : FVNeumannBC::computeQpResidual()
      30             : {
      31       26654 :   return -_value;
      32             : }

Generated by: LCOV version 1.14