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"
12 
15 {
17  params.addRequiredParam<MooseFunctorName>("functor",
18  "The Dirichlet value for the primal variable");
19  return params;
20 }
21 
23  : ElementAndTraceScalarHDGBC(params), _dirichlet_val(getFunctor<Real>("functor"))
24 {
25 }
26 
27 void
29 {
30  helper.resizeResiduals();
31 
32  // u, lm_u
35 }
static InputParameters validParams()
Base boundary condition for element-and-trace scalar hybridized DG discretizations assembled with aut...
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
void resizeResiduals()
Resizes the element-interior and facet residual vectors for the current element.
virtual void compute(ElementAndTraceScalarHDGAssemblyHelper &helper) override
compute the AD residuals
IPHDGDirichletBC(const InputParameters &parameters)
Method-neutral assembly data and operations for an element-and-trace scalar hybridized DG discretizat...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static InputParameters validParams()
const Moose::Functor< Real > & _dirichlet_val
Functor computing the Dirichlet boundary value.
void lmDirichlet(const Moose::Functor< Real > &dirichlet_value)
Enforces a Dirichlet value in the facet equation.
virtual void scalarDirichlet(const Moose::Functor< Real > &dirichlet_value)=0
Assembles the element-interior equation on a Dirichlet boundary.