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 "ADDirichletBC.h" 11 : 12 : registerMooseObject("MooseApp", ADDirichletBC); 13 : 14 : InputParameters 15 16489 : ADDirichletBC::validParams() 16 : { 17 16489 : InputParameters params = ADDirichletBCBaseTempl<Real>::validParams(); 18 16489 : params.addRequiredParam<Real>("value", "Value of the BC"); 19 16489 : params.declareControllable("value"); 20 16489 : params.addClassDescription("Imposes the essential boundary condition $u=g$, where $g$ " 21 : "is a constant, controllable value."); 22 16489 : return params; 23 0 : } 24 : 25 1112 : ADDirichletBC::ADDirichletBC(const InputParameters & parameters) 26 1112 : : ADDirichletBCBaseTempl<Real>(parameters), _value(getParam<Real>("value")) 27 : { 28 1112 : } 29 : 30 : ADReal 31 105062 : ADDirichletBC::computeQpValue() 32 : { 33 105062 : return _value; 34 : }