https://mooseframework.inl.gov
IPHDGDirichletBC.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 
10 #include "IPHDGDirichletBC.h"
11 #include "IPHDGAssemblyHelper.h"
12 
15 {
16  auto params = IPHDGBC::validParams();
17  params.addRequiredParam<MooseFunctorName>("functor",
18  "The Dirichlet value for the primal variable");
19  return params;
20 }
21 
23  : IPHDGBC(params), _dirichlet_val(getFunctor<Real>("functor"))
24 {
25 }
26 
27 void
29 {
30  auto & iphdg_helper = iphdgHelper();
31  iphdg_helper.resizeResiduals();
32 
33  // u, lm_u
34  iphdg_helper.scalarDirichlet(_dirichlet_val);
35  iphdg_helper.lmDirichlet(_dirichlet_val);
36 }
static InputParameters validParams()
Implements a prescribed flux for an IP-HDG discretization.
Definition: IPHDGBC.h:19
static InputParameters validParams()
Definition: IPHDGBC.C:14
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
IPHDGDirichletBC(const InputParameters &parameters)
virtual void compute() override
compute the AD residuals
virtual IPHDGAssemblyHelper & iphdgHelper()=0
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const Moose::Functor< Real > & _dirichlet_val
Functor computing the Dirichlet boundary value.