https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
11
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
DualNumber< Real, DNDerivativeType, true > ADReal
registerMooseObject("ScalarTransportApp", BinaryRecombinationBC)
const ADTemplateVariableValue< T > & _u
static InputParameters validParams()
const ADTemplateVariableTestValue< T > & _test
Models loss due to binary recombination, e.g.
static InputParameters validParams()
const ADVariableValue & _v
The concentration of B, e.g.
BinaryRecombinationBC(const InputParameters &parameters)
ADReal computeQpResidual() override
const ADMaterialProperty< Real > & _Kr
recombination rate coefficient
unsigned int _qp