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 "BinaryRecombinationBC.h" 11 : 12 : registerMooseObject("ScalarTransportApp", BinaryRecombinationBC); 13 : 14 : InputParameters 15 369 : BinaryRecombinationBC::validParams() 16 : { 17 369 : auto params = ADIntegratedBC::validParams(); 18 369 : params.addClassDescription("Models recombination of the variable with a coupled species at " 19 : "boundaries, resulting in loss"); 20 738 : params.addRequiredCoupledVar("v", "The other mobile variable that takes part in recombination"); 21 738 : params.addParam<MaterialPropertyName>( 22 : "Kr", "Kr", "The name of the material property for the recombination coefficient"); 23 369 : return params; 24 0 : } 25 : 26 198 : BinaryRecombinationBC::BinaryRecombinationBC(const InputParameters & parameters) 27 396 : : ADIntegratedBC(parameters), _v(adCoupledValue("v")), _Kr(getADMaterialProperty<Real>("Kr")) 28 : { 29 198 : } 30 : 31 : ADReal 32 37132 : BinaryRecombinationBC::computeQpResidual() 33 : { 34 37132 : return _test[_i][_qp] * _Kr[_qp] * _u[_qp] * _v[_qp]; 35 : }