LCOV - code coverage report
Current view: top level - src/bcs - ADRobinBC.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 419b9d Lines: 11 12 91.7 %
Date: 2025-08-08 20:01:16 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       14334 : ADRobinBC::validParams()
      16             : {
      17       14334 :   InputParameters params = ADIntegratedBC::validParams();
      18       14334 :   params.addClassDescription("Imposes the Robin integrated boundary condition "
      19             :                              "$\\frac{\\partial u}{\\partial n}=u$.");
      20       43002 :   params.addParam<Real>(
      21       28668 :       "coefficient", 1.0, "Coefficient multiplier for the Robin boundary condition term.");
      22       14334 :   return params;
      23           0 : }
      24             : 
      25          36 : ADRobinBC::ADRobinBC(const InputParameters & parameters)
      26          36 :   : ADIntegratedBC(parameters), _coef(getParam<Real>("coefficient"))
      27             : {
      28          36 : }
      29             : 
      30             : ADReal
      31       31830 : ADRobinBC::computeQpResidual()
      32             : {
      33       63660 :   return _coef * _test[_i][_qp] * _u[_qp];
      34             : }

Generated by: LCOV version 1.14