https://mooseframework.inl.gov
BinaryRecombinationBC.C
Go to the documentation of this file.
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 
16 {
17  auto params = ADIntegratedBC::validParams();
18  params.addClassDescription("Models recombination of the variable with a coupled species at "
19  "boundaries, resulting in loss");
20  params.addRequiredCoupledVar("v", "The other mobile variable that takes part in recombination");
21  params.addParam<MaterialPropertyName>(
22  "Kr", "Kr", "The name of the material property for the recombination coefficient");
23  return params;
24 }
25 
27  : ADIntegratedBC(parameters), _v(adCoupledValue("v")), _Kr(getADMaterialProperty<Real>("Kr"))
28 {
29 }
30 
31 ADReal
33 {
34  return _test[_i][_qp] * _Kr[_qp] * _u[_qp] * _v[_qp];
35 }
const ADTemplateVariableValue< T > & _u
ADReal computeQpResidual() override
Models loss due to binary recombination, e.g.
DualNumber< Real, DNDerivativeType, true > ADReal
static InputParameters validParams()
unsigned int _qp
static InputParameters validParams()
registerMooseObject("ScalarTransportApp", BinaryRecombinationBC)
const ADMaterialProperty< Real > & _Kr
recombination rate coefficient
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const ADTemplateVariableTestValue< T > & _test
BinaryRecombinationBC(const InputParameters &parameters)
const ADVariableValue & _v
The concentration of B, e.g.