LCOV - code coverage report
Current view: top level - src/bcs - VacuumBC.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 12 13 92.3 %
Date: 2025-07-17 01:28:37 Functions: 4 4 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 "VacuumBC.h"
      11             : 
      12             : registerMooseObject("MooseApp", VacuumBC);
      13             : 
      14             : InputParameters
      15       15826 : VacuumBC::validParams()
      16             : {
      17       15826 :   InputParameters params = IntegratedBC::validParams();
      18       15826 :   params.addClassDescription("Vacuum boundary condition for diffusion.");
      19       15826 :   params.addParam<Real>("alpha", 1, "Diffusion coefficient.");
      20       15826 :   return params;
      21           0 : }
      22             : 
      23         799 : VacuumBC::VacuumBC(const InputParameters & parameters)
      24         799 :   : IntegratedBC(parameters), _alpha(getParam<Real>("alpha"))
      25             : {
      26         798 : }
      27             : 
      28             : Real
      29     2670084 : VacuumBC::computeQpResidual()
      30             : {
      31     2670084 :   return _test[_i][_qp] * _alpha * _u[_qp] / 2.;
      32             : }
      33             : 
      34             : Real
      35     1383332 : VacuumBC::computeQpJacobian()
      36             : {
      37     1383332 :   return _test[_i][_qp] * _alpha * _phi[_j][_qp] / 2.;
      38             : }

Generated by: LCOV version 1.14