LCOV - code coverage report
Current view: top level - src/bcs - DissociationFluxBC.C (source / functions) Hit Total Coverage
Test: idaholab/moose scalar_transport: #31405 (292dce) with base fef103 Lines: 11 12 91.7 %
Date: 2025-09-04 07:56:42 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 "DissociationFluxBC.h"
      11             : 
      12             : registerMooseObject("ScalarTransportApp", DissociationFluxBC);
      13             : 
      14             : InputParameters
      15         410 : DissociationFluxBC::validParams()
      16             : {
      17         410 :   auto params = ADIntegratedBC::validParams();
      18         820 :   params.addRequiredCoupledVar("v",
      19             :                                "The variable that is dissociating on this boundary to "
      20             :                                "form the mobile species (specified with the variable param)");
      21         820 :   params.addParam<MaterialPropertyName>(
      22             :       "Kd", "Kd", "The name of the material property for the dissociation coefficient");
      23         410 :   params.addClassDescription("Models creation of the variable at boundaries due to dissociation of "
      24             :                              "a coupled variable, e.g. B -> A");
      25         410 :   return params;
      26           0 : }
      27             : 
      28         220 : DissociationFluxBC::DissociationFluxBC(const InputParameters & parameters)
      29         440 :   : ADIntegratedBC(parameters), _v(adCoupledValue("v")), _Kd(getADMaterialProperty<Real>("Kd"))
      30             : {
      31         220 : }
      32             : 
      33             : ADReal
      34       37132 : DissociationFluxBC::computeQpResidual()
      35             : {
      36       74264 :   return -_test[_i][_qp] * _Kd[_qp] * _v[_qp];
      37             : }

Generated by: LCOV version 1.14