Line data Source code
1 : //* This file is part of the MOOSE framework 2 : //* https://www.mooseframework.org 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 "KokkosADNeumannBC.h" 11 : 12 121065 : registerKokkosADResidualObject("MooseApp", KokkosADNeumannBC); 13 : 14 : InputParameters 15 2132 : KokkosADNeumannBC::validParams() 16 : { 17 2132 : InputParameters params = ADIntegratedBC::validParams(); 18 4282 : params.addParam<Real>("value", 19 4228 : 0.0, 20 : "For a Laplacian problem, the value of the gradient dotted with the " 21 : "normals on the boundary."); 22 6396 : params.declareControllable("value"); 23 2132 : params.addClassDescription("Imposes the integrated boundary condition " 24 : "$\\frac{\\partial u}{\\partial n}=h$, " 25 : "where $h$ is a constant, controllable value."); 26 2132 : return params; 27 0 : } 28 : 29 25 : KokkosADNeumannBC::KokkosADNeumannBC(const InputParameters & parameters) 30 18 : : ADIntegratedBC(parameters), _value(getParam<Real>("value")) 31 : { 32 17 : }