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 "ADVectorRobinBC.h" 11 : 12 : registerMooseObject("MooseApp", ADVectorRobinBC); 13 : 14 : InputParameters 15 14332 : ADVectorRobinBC::validParams() 16 : { 17 14332 : InputParameters params = ADVectorIntegratedBC::validParams(); 18 14332 : params.addClassDescription("Imposes the Robin integrated boundary condition " 19 : "$\\frac{\\partial u}{\\partial n}=u$."); 20 42996 : params.addParam<Real>( 21 28664 : "coefficient", 1.0, "Coefficient multiplier for the Robin boundary condition term."); 22 14332 : return params; 23 0 : } 24 : 25 35 : ADVectorRobinBC::ADVectorRobinBC(const InputParameters & parameters) 26 35 : : ADVectorIntegratedBC(parameters), _coef(getParam<Real>("coefficient")) 27 : { 28 35 : } 29 : 30 : ADReal 31 109876 : ADVectorRobinBC::computeQpResidual() 32 : { 33 219752 : return _coef * _test[_i][_qp] * _u[_qp]; 34 : }