LCOV - code coverage report
Current view: top level - src/bcs - DiffusionFluxBC.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 9 10 90.0 %
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 "DiffusionFluxBC.h"
      11             : 
      12             : registerMooseObject("MooseApp", DiffusionFluxBC);
      13             : 
      14             : InputParameters
      15       14290 : DiffusionFluxBC::validParams()
      16             : {
      17       14290 :   InputParameters params = FluxBC::validParams();
      18       14290 :   params.addClassDescription(
      19             :       "Computes a boundary residual contribution consistent with the Diffusion Kernel. "
      20             :       "Does not impose a boundary condition; instead computes the boundary "
      21             :       "contribution corresponding to the current value of grad(u) and accumulates "
      22             :       "it in the residual vector.");
      23       14290 :   return params;
      24           0 : }
      25             : 
      26          13 : DiffusionFluxBC::DiffusionFluxBC(const InputParameters & parameters) : FluxBC(parameters) {}
      27             : 
      28             : RealGradient
      29       19200 : DiffusionFluxBC::computeQpFluxResidual()
      30             : {
      31       19200 :   return _grad_u[_qp];
      32             : }
      33             : 
      34             : RealGradient
      35       64512 : DiffusionFluxBC::computeQpFluxJacobian()
      36             : {
      37       64512 :   return _grad_phi[_j][_qp];
      38             : }

Generated by: LCOV version 1.14