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 "IPHDGDirichletBC.h" 11 : #include "IPHDGAssemblyHelper.h" 12 : 13 : InputParameters 14 29891 : IPHDGDirichletBC::validParams() 15 : { 16 29891 : auto params = IPHDGBC::validParams(); 17 89673 : params.addRequiredParam<MooseFunctorName>("functor", 18 : "The Dirichlet value for the primal variable"); 19 29891 : return params; 20 0 : } 21 : 22 684 : IPHDGDirichletBC::IPHDGDirichletBC(const InputParameters & params) 23 1368 : : IPHDGBC(params), _dirichlet_val(getFunctor<Real>("functor")) 24 : { 25 684 : } 26 : 27 : void 28 106601 : IPHDGDirichletBC::compute() 29 : { 30 106601 : auto & iphdg_helper = iphdgHelper(); 31 106601 : iphdg_helper.resizeResiduals(); 32 : 33 : // u, lm_u 34 106601 : iphdg_helper.scalarDirichlet(_dirichlet_val); 35 106601 : iphdg_helper.lmDirichlet(_dirichlet_val); 36 106601 : }