LCOV - code coverage report
Current view: top level - src/bcs - ADRobinBC.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: #32971 (54bef8) with base c6cf66 Lines: 11 12 91.7 %
Date: 2026-05-29 20:35:17 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 "ADRobinBC.h"
      11             : 
      12             : registerMooseObject("MooseApp", ADRobinBC);
      13             : 
      14             : InputParameters
      15        3124 : ADRobinBC::validParams()
      16             : {
      17        3124 :   InputParameters params = ADIntegratedBC::validParams();
      18        6248 :   params.addClassDescription("Imposes the Robin integrated boundary condition "
      19             :                              "$\\frac{\\partial u}{\\partial n}=u$.");
      20        6248 :   params.addParam<Real>(
      21        6248 :       "coefficient", 1.0, "Coefficient multiplier for the Robin boundary condition term.");
      22        3124 :   return params;
      23           0 : }
      24             : 
      25          33 : ADRobinBC::ADRobinBC(const InputParameters & parameters)
      26          66 :   : ADIntegratedBC(parameters), _coef(getParam<Real>("coefficient"))
      27             : {
      28          33 : }
      29             : 
      30             : ADReal
      31       27260 : ADRobinBC::computeQpResidual()
      32             : {
      33       54520 :   return _coef * _test[_i][_qp] * _u[_qp];
      34             : }

Generated by: LCOV version 1.14